CN101022454B - Interentity auditing method and system - Google Patents

Interentity auditing method and system Download PDF

Info

Publication number
CN101022454B
CN101022454B CN2006101539861A CN200610153986A CN101022454B CN 101022454 B CN101022454 B CN 101022454B CN 2006101539861 A CN2006101539861 A CN 2006101539861A CN 200610153986 A CN200610153986 A CN 200610153986A CN 101022454 B CN101022454 B CN 101022454B
Authority
CN
China
Prior art keywords
message
entity
audit
session
consistency detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN2006101539861A
Other languages
Chinese (zh)
Other versions
CN101022454A (en
Inventor
薛莉莉
简海燕
王伟杰
黄福清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Priority claimed from CN 200610008212 external-priority patent/CN1870647A/en
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2006101539861A priority Critical patent/CN101022454B/en
Publication of CN101022454A publication Critical patent/CN101022454A/en
Application granted granted Critical
Publication of CN101022454B publication Critical patent/CN101022454B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

An auditing method between entities includes sending the first message of conversation to be audited to the second entity by the first entity, making response on received first message and sending the second message to the first entity by the second entity and carrying out auditing treatment by the first entity according to received second message. The auditing system used for realizing said method is also disclosed.

Description

A kind of auditing method of inter-entity and system
Technical field
The present invention relates to mobile communication technology, relate in particular to a kind of auditing method and system of inter-entity.
Background technology
Present (the ITU of International Telecommunications Union, International Telecommunication Union) formulating next generation network (NGN, Next Generation Network) the resource access control function (RACF under the framework, Resource and Admission Control Function) subsystem, RACF is responsible for the resource negotiation and the distribution of application layer and transport layer, QoS control to Access Network, core net is provided, comprises and admit control, QoS route and resource reservation etc.; Passing through of network address translation (NAT, Network Address Translation), gate control and fire compartment wall etc. is provided at the network boundary place simultaneously.
In the RACF subsystem, mainly contain two class entities: strategy decision function (PDF, Policy DecisionFunction) and transfer resource controlled function (TRCF, Transport Resource Control Function).Wherein, TRCF comprises Access Network transfer resource controlled function (A-TRCF, Access TransportResource Control Function) and core net transfer resource controlled function (C-TRCF, CoreTransport Resource Control Function).Wherein, A-TRCF is responsible for access network resources management and QoS control; C-TRCF is responsible for the resource management and the QoS control of core net; PDF is responsible for being defined as A-TRCF or the C-TRCF that each Business Stream provides service, and provides a single tie point to service control function (SCF, the Service Control Function) entity of application layer, hides the details of transport network layer.
Between above-mentioned mutual entity PDF and SCF, and what use between PDF and the TRCF is diameter (Diameter) agreement.Because this agreement is not to the consistency detection of inter-entity, be that Audit Mechanism is stipulated, when having situation such as network delay, equipment fault, initiate a request as SCF, after the PDF normal response, session is set up successfully, and when session need discharge, caused transmission packet loss if network problem takes place this moment, release message can't be notified PDF, then SCF may repeatedly retransmit back release resource, and PDF causes the session of SCF and PDF inconsistent owing to receiving that not release message keeps this session.For also having similar problem between PDF and the TRCF, cause regular traffic not carry out equally.As seen be difficult to guarantee the consistency of two resources such as inter-entity session in the prior art.
Summary of the invention
In view of this, one aspect of the present invention provides a kind of auditing method of inter-entity, can guarantee the resource consistency of two inter-entity.
The present invention provides a kind of auditing system of inter-entity on the other hand, can guarantee the resource consistency of two inter-entity.
The auditing method of inter-entity provided by the present invention is achieved by following technical solution:
Set in advance cycle timer, cycle timer duration, audit timer and audit timer duration, the cycle timer duration is set less than the audit timer duration, this method comprises the steps:
A ', second entity start the audit timer;
A, first entity periodically send first message to second entity according to cycle timer at the session that will audit, and described first message is the consistency detection request message;
B, second entity respond first message that receives, and send second message to first entity, and described second message is the consistency detection response message;
B ', second entity restart the audit timer;
C, first entity are according to second message that receives, the processing of auditing, if first entity is overtime at cycle timer, or continuously at preset period number intercycle timer expiry, do not receive second message from second entity, then audit failure, with the session release of request consistency detection, and the business information of this session of the local storage of deletion;
Second entity is at the audit timer expiry, or the timer expiry of auditing in default expired times continuously, does not receive the consistency detection request message from described first entity, and then audit is unusual, carries out abnormality processing.
Preferably, steps A is specially: when the current sessions flow reduced or disappear, first entity sent first message at the session that will audit to second entity.
Wherein, described step B comprises:
B1, second entity judge according to the consistency detection request message that receives, if the session of request consistency detection exists in this message, and execution in step B2 then, otherwise, execution in step B3;
B2, second entity return the consistency detection response message that carries the successful result code of indication to first entity, or return the consistency detection response message of the business information of carrying session, end step B;
B3, second entity return the consistency detection response message of the result code that carries the indication failure to first entity.
Wherein, first entity is according to second message that receives among the described step C, and auditing to handle comprises:
First entity carries the successful result code of indication in determining the consistency detection response message that is received, then audit successfully; In determining the consistency detection response message that is received, carry the result code of indication failure, then audit failure, the processing of failing.
Perhaps, first entity is according to second message that receives among the described step C, and auditing to handle comprises:
First entity carries the business information of session in determining the consistency detection response message that is received, then the business information of this business information with this session of local storage compared, if the two unanimity is then audited successfully; Otherwise audit is unusual, carries out abnormality processing.
Preferably, the described audit timer duration that sets in advance comprises: when first entity and the second entity initial session, set the audit timer duration.
Preferably, when described first entity and the second entity initial session, set the audit timer duration and comprise:
Second entity sends the initial session request message that carries the audit timer duration to first entity; First entity is set the audit timer duration according to the audit timer duration in the initial session request message, and returns the initial session response message of setting the response of audit timer duration to second entity;
Described second entity starts the audit timer and comprises: second entity starts the audit timer according to the initial session response message.
Perhaps, when described first entity and the second entity initial session, set the audit timer duration and comprise:
Second entity sends the initial session request message that does not carry the audit timer duration to first entity; First entity is set the audit timer duration, and returns the initial session response message that carries the audit timer duration to second entity;
Described second entity starts the audit timer and comprises: second entity starts the audit timer according to the audit timer duration in the initial session response message.
Wherein, described initial session request message comprises: initial authorization authentication request AAR message, described initial session response message comprises: initial authorization authentication response AAA message.
Wherein, described consistency detection request message comprises: authorization requests RAR message again, described consistency detection response message comprises: authorization response RAA message again.
Preferably, described first entity comprises: diameter Diameter server end, described second entity comprises: Diameter client.
Wherein, described Diameter client is: service control function SCF, and described Diameter server end is: strategy decision function PDF;
Perhaps described Diameter client is: strategy decision function PDF, described Diameter server end is: transfer resource controlled function TRCF.
The auditing system of inter-entity provided by the present invention is achieved by following technical solution:
This system comprises: first entity and second entity, cycle timer and cycle timer duration are set in first entity in advance, audit timer and audit timer duration are set in second entity in advance, described cycle timer duration is less than the audit timer duration, wherein
First entity is used for according to cycle timer, periodically sends first message to second entity at the session that will audit, and described first message is the consistency detection request message; And receiving second message that second entity returns, described second message is the consistency detection response message; According to reception result, the processing of auditing, if first entity is overtime at cycle timer, or continuously at preset period number intercycle timer expiry, do not receive second message from second entity, then audit failure, with the session release of request consistency detection, and the business information of this session of the local storage of deletion;
Second entity is used for starting the audit timer according to the audit timer duration; Reception is from first message of described first entity, and makes response, returns second message to first entity, and after returning second message to first entity, restarts the audit timer; At the audit timer expiry, or the timer expiry of in default expired times, auditing continuously, do not receive consistency detection request message from described first entity, then audit is unusual, carries out abnormality processing.
Wherein, described first entity is: the Diameter server end, described second entity is: Diameter client.
From such scheme as can be seen, the present invention is by carrying out the audit process of consistency detection in inter-entity, and promptly first entity sends first message at the session that will audit to second entity; Second entity responds first message that receives, and sends second message to first entity; First entity is according to second message that receives, the processing of auditing.Thereby guarantee that first entity can know the present situation of second entity, and make respective handling, guarantee the resource consistency of inter-entity according to the present situation.
Further, by the one-period timer is set, first entity can be according to cycle timer, periodically initiate the consistency detection request message to second entity, thereby can guarantee that first entity can in time know the present situation of second entity, further guarantee the resource consistency of inter-entity.
In addition, by an audit timer is set, second entity is according to the consistency detection request message of audit timer monitoring reception first entity, thereby can make second entity in time know the present situation of first entity, and make respective handling according to the present situation, guarantee the resource consistency of inter-entity to greatest extent.
Wherein, the audit length of timer can be consulted to set by first entity and second entity when initial session, has improved the flexibility that the audit timer duration is set; In addition, the cycle timer duration is set less than the audit timer duration, guarantees second entity when the normal consistency detection request message that receives from first entity, the audit timer can be not overtime.
At last, the present invention utilizes existing type of message in the Diameter in the specific implementation, uses Diameter message to carry the required various information of above-mentioned audit process, thereby it is simple that scheme is realized, and is convenient easy-to-use.
Description of drawings
Fig. 1 is the exemplary process diagram of the auditing method of inter-entity of the present invention;
Fig. 2 is the exemplary configurations schematic diagram of the auditing system of inter-entity of the present invention;
Fig. 3 is the flow chart of the auditing method of inter-entity in the embodiment of the invention one;
Fig. 4 is the structural representation of the auditing system of inter-entity in the embodiment of the invention one;
When Fig. 5 is PDF and SCF for entity in the embodiment of the invention one, the flow chart of the auditing method of inter-entity;
When Fig. 6 is PDF and SCF for entity in the embodiment of the invention one, the structural representation of the auditing system of inter-entity;
When Fig. 7 is TRCF and PDF for entity in the embodiment of the invention one, the flow chart of the auditing method of inter-entity;
When Fig. 8 is TRCF and PDF for entity in the embodiment of the invention one, the structural representation of the auditing system of inter-entity;
Fig. 9 is the flow chart of the auditing method of inter-entity in the embodiment of the invention two;
Figure 10 is the structural representation of the auditing system of inter-entity in the embodiment of the invention two;
When Figure 11 is PDF and SCF for entity in the embodiment of the invention two, the flow chart of the auditing method of inter-entity;
When Figure 12 is PDF and SCF for entity in the embodiment of the invention two, the structural representation of the auditing system of inter-entity;
When Figure 13 is TRCF and PDF for entity in the embodiment of the invention two, the flow chart of the auditing method of inter-entity;
When Figure 14 is TRCF and PDF for entity in the embodiment of the invention two, the structural representation of the auditing system of inter-entity.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with embodiment and accompanying drawing, the present invention is described in more detail.
Basic thought of the present invention is: carry out the audit process of consistency detection in inter-entity, and this audit process can reduce or situation about disappearing be carried out at session traffic, this moment, first entity sent first message at the session that will audit to second entity; Second entity responds first message that receives, and sends second message to first entity; First entity is according to second message that receives, the processing of auditing.Wherein, first message and second message also promptly audit message and the audit response message.First message comprises: the consistency detection request message, second message comprises: the consistency detection response message.
Fig. 1 is the exemplary process diagram based on the auditing method of the inter-entity of above-mentioned thought.
Step 101, first entity sends the consistency detection request message at the session that will audit to second entity.
In this step, can be set at the consistency detection of dialogue-based ID, also can be set at the consistency detection of conversation-based business information.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the consistency detection request message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the consistency detection request message.And the consistency detection request message can send when session traffic reduces or disappear.
Wherein, default setting can be the consistency of conversation-based business information.
Step 102, second entity responds the consistency detection request message that receives, and sends the consistency detection response message to first entity.
In this step, second entity receives the consistency detection request message from first entity, and according to the consistency detection request message that is received, whether the session of judging consistency detection that this message is asked exists, and carries different response messages according to judged result in the consistency detection response message.
If the session of the consistency detection of asking exists, then according to the consistency detection that is based on session id in the consistency detection request message, or the consistency detection of conversation-based business information, if the consistency detection of dialogue-based ID is then carried the successful result code of indication in the consistency detection response message; If the consistency detection of dialogue-based business information, then in the consistency detection response message, carry the business information of session.Default setting can return the business information of session.
If the session of the consistency detection of asking does not exist, then in the consistency detection response message, carry the result code of indication failure.
Step 103, first entity is according to the consistency detection response message that receives, the processing of auditing.
In this step, first entity receives the consistency detection response message from second entity, according to the type of response message in the consistency detection response message, and the processing of auditing.
If response message is then audited successfully for the successful result code of indication.
If response message is the result code of indication failure, then audit failure, the failure of auditing is handled.Such as first entity can with the session of request consistency detection discharge, and the business information of this session of the local storage of deletion need not to send the unusual request message of session to second entity.
If response message is the business information of session, then the business information of this business information with this session of local storage compared, if the two unanimity is then audited successfully; Otherwise audit is unusual, carries out abnormality processing.
Wherein, carry out abnormality processing and comprise: first entity sends the unusual request message of session to second entity, and second entity can select whether to stop session; Perhaps first entity uses the business information of session in the consistency detection response message that is received to upgrade the business information of this session of local storage.
Fig. 2 is the exemplary block diagram based on the auditing system of the inter-entity of above-mentioned thought.As shown in Figure 2, this system comprises: first entity and second entity.
Wherein, first entity is used for sending the consistency detection request message at the session that will audit to second entity, and receives the consistency detection response message that second entity returns, according to reception result, and the processing of auditing.
Second entity is used to receive the consistency detection request message from described first entity, and makes response, returns the consistency detection response message to first entity.
Wherein, store the business information of the session that will audit in first entity.First entity when second entity sends the consistency detection request message, can be set at the consistency detection of dialogue-based ID at the session that will audit, also can be set at the consistency detection of conversation-based business information.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the consistency detection request message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the consistency detection request message.
Second entity is judged whether the session of consistency detection that this message is asked exists, and is carried different response messages according to judged result in the consistency detection response message after receiving consistency detection request message from first entity.If the session of the consistency detection of asking exists, then according to the consistency detection that is based on session id in the consistency detection request message, or the consistency detection of conversation-based business information, if the consistency detection of dialogue-based ID is then carried the successful result code of indication in the consistency detection response message; If the consistency detection of dialogue-based business information, then in the consistency detection response message, carry the business information of session.If the session of the consistency detection of asking does not exist, then in the consistency detection response message, carry the result code of indication failure.
After first entity receives the consistency detection response message that second entity returns, according to the type of response message in the consistency detection response message, the processing of auditing.If response message is then audited successfully for the successful result code of indication; If response message is the result code of indication failure, then audit failure, audit failure is handled, can be with the session release of institute's request consistency detection as first entity, and the business information of this session of the local storage of deletion, need not to send the unusual request message of session to second entity; If response message is the business information of session, then the business information of this business information with this session of local storage compared, if the two unanimity is then audited successfully; Otherwise audit is unusual, carries out abnormality processing.
Wherein, carry out abnormality processing and comprise: first entity sends the unusual request message of session to second entity, and second entity can select whether to stop session; Perhaps first entity uses the business information of session in the consistency detection response message that is received to upgrade the business information of this session of local storage.
The auditing method of above-mentioned inter-entity and system have realized that first entity in the entity knows second entity the present situation and carry out the purpose of respective handling, can be timely or periodically know second entity the present situation and carry out the purpose of respective handling in order to realize first entity.Further, set in advance cycle timer among the present invention.
Then for auditing method, in step 101, first entity is according to cycle timer, periodically send consistency detection message at the session that will audit, and reception is monitored from the situation of the consistency detection response message of second entity, if overtime at cycle timer to second entity, or continuously at preset period number intercycle timer expiry, when not receiving from the response of the consistency detection of second entity, then audit failure, the processing of failing.Wherein, failing to handle comprises: first entity discharges the session of the consistency detection of asking, and the business information of this session of the local storage of deletion, need not to send the unusual request message of session to second entity.
For auditing system, first entity is further used for: cycle timer is set, periodically send the consistency detection request message at the session that will audit to second entity, receive the situation of the consistency detection response message that second entity returns according to cycle timer monitoring, overtime at cycle timer, or, do not receive consistency detection response from second entity continuously at preset period number intercycle timer expiry, then audit failure, the processing of failing.
In addition, the present invention is in order to allow second entity also can in time know the present situation of first entity and to make respective handling, and same second entity also is provided with the monitoring to first entity.Promptly more further, in second entity, set in advance the audit timer.And in order to guarantee second entity when the normal consistency detection request message that receives from first entity, the audit timer can be not overtime, the audit timer duration is set greater than the cycle timer duration.
Then for auditing method, further comprise before the step 101: second entity starts the audit timer.And reception is monitored from the situation of the consistency detection message of first entity according to the audit timer, at the audit timer expiry, or the timer expiry of in default expired times, auditing continuously, do not receive consistency detection request message from described first entity, then audit is unusual, carries out abnormality processing.As discharging the session of audit timer expiry.In the step 102, after sending the consistency detection response message, further comprise: second entity restarts the audit timer.
Wherein, the audit length of timer can be set when first entity and the second entity initial session.Detailed process comprises:
Second entity sends the initial session request message that does not carry the audit timer duration to first entity; First entity is set the audit timer duration, and returns the initial session response message that carries the audit timer duration to second entity, and second entity starts the audit timer according to the audit timer duration in the initial session response message then.
Perhaps second entity sends the initial session request message that carries the audit timer duration to first entity; First entity is set the audit timer duration according to the audit timer duration in the initial session request message, and returns the initial session response message of setting the response of audit timer duration to second entity; Second entity starts the audit timer according to the initial session response message then.
Wherein, if first entity is made amendment to the audit timer duration in the initial session request message, then carry amended audit timer duration in the initial session response message; If first entity is not made amendment to the audit timer duration in the initial session request message, then do not carry the audit timer duration in the initial session response message, second entity starts the audit timer according to the initial session response message then.That is: if carry the audit timer duration in the initial session response message, then start the audit timer according to the audit timer duration in the initial session response message; Otherwise the audit timer duration of setting according to second entity starts the audit timer.
For auditing system, second entity is further used for: the audit timer is set, when initial session, send conversation request message to first entity, consult to set the audit timer duration with first entity, start the audit timer according to the audit timer duration, monitoring receives the situation of the consistency detection request message of first entity transmission according to the audit timer, at the audit timer expiry, or the timer expiry of in default expired times, auditing continuously, do not receive consistency detection request message from described first entity, then audit is unusual, carries out abnormality processing; And after returning the consistency detection response message, restart the audit timer to first entity.
First entity is further used for: receive the conversation request message of second entity when initial session, and consult to set the audit timer duration with second entity.
During specific implementation, the present invention is example with the Diameter, uses the process that above-mentioned thought realizes audit.Wherein, second entity is a Diameter client, first entity is the Diameter server end, in the RACF of NGN subsystem, Diameter client<-the Diameter server end comprises: SCF<-PDF and PDF<-TRCF etc., in the implementation procedure, utilize the existing message of Diameter, as utilizing initial authorization authentication request (AAR at Diameter client and Diameter server end, Authorization Authentication Request) message is as the initial session request message, and utilize initial authorization authentication response (AAA, Authorization Authentication Answer) message realizes the setting of audit timer duration as the initial session response message; Utilize authorization requests (RAR again, Re-Auth-Request) message is as the consistency detection request message, and (RAA, Re-Auth-Answer) message realizes the transmission and the response of consistency detection request message as the consistency detection response message to utilize again authorization response.
Wherein, the setting of audit timer duration can be carried at and be sent to the Diameter server end in the AAR message by the Diameter client timer duration of will auditing, the Diameter server end is determined final audit timer duration according to actual conditions then, sends to Diameter client by AAA message; Or after the Diameter server termination received the common AAR message that sends from Diameter client, whether decision needed to set the audit timer alone, and if desired, the timer duration of then will auditing is told Diameter client by AAA message.
Below in conjunction with specific embodiment auditing method and system based on the inter-entity of above-mentioned thought are described in detail.
Embodiment one:
Referring to Fig. 3, Fig. 3 is the flow chart of the auditing method of inter-entity in the embodiment of the invention one, and as shown in Figure 3, this flow process comprises the steps:
Step 301, Diameter client sends the RAR message of carrying the consistency detection solicited message at the session that will audit to the Diameter server end.
In this step, can be set at the consistency detection of dialogue-based ID, also can be set at the consistency detection of conversation-based business information.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the RAR message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the RAR message.And the RAR message of carrying the consistency detection solicited message can send when session traffic reduces or disappear.
Step 302, Diameter client receives the RAR message from the Diamete server end.
Step 303~step 304 judges according to RAR message whether the session of the consistency detection of asking exists, and if there is no, then response message is the result code of misdirection, and execution in step 305 then; If session exists, then judge the consistency detection information in the RAR message, if the consistency detection of dialogue-based ID, then response message is the successful result code of indication, if the consistency detection of dialogue-based business information, then response message is the business information of session, and execution in step 305 then.
Step 305, Diameter client are returned the RAA message of carrying response message to the Diameter server end.
Step 306, the Diameter server termination is received the RAA message from Diameter client.
Step 307, the Diameter server end is judged the type of response message in the RAA message, if for the successful result code of indication, then audit successfully; If be the result code of indication failure, then audit failure, the processing of failing can discharge the session of the consistency detection of asking; If be business information, then execution in step 308.
Step 308, the Diameter server end compares the business information of the business information in the RAA message that is received with this session of local storage, if the two unanimity is then audited successfully; Otherwise audit is unusual, can send session to Diameter client and ask (ASR, Abort-Session-Request) message unusually; Perhaps upgrade the business information of local storage with the business information in the RAA message.
Fig. 4 is the structural representation based on the auditing system of the auditing method of inter-entity shown in Figure 3.Comprise: Diameter server end and Diameter client.
Wherein, the Diameter server end is used for sending the RAR message of carrying the consistency detection solicited message to Diameter client at the session that will audit, and receive the RAA message of carrying the consistency detection response message that Diameter client returns, and according to reception result, the processing of auditing.
Diameter client is used to receive the RAR message of carrying the consistency detection solicited message from the Diameter server end, and makes response, returns the RAA message of carrying the consistency detection response message to the Diameter server end.
Wherein, the Diameter server end can be set at the consistency detection of dialogue-based ID when sending RAR message, also can be set at the consistency detection of conversation-based business information.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the RAR message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the RAR message.And the RAR message of carrying the consistency detection solicited message can send when session traffic reduces or disappear.
After Diameter client receives RAR message, judge according to RAR message whether the session of the consistency detection of asking exists, if there is no, then response message is the result code of misdirection; If session exists, then judge the consistency detection information in the RAR message, if the consistency detection of dialogue-based ID, then response message is the successful result code of indication, if the consistency detection of dialogue-based business information, then response message is the business information of session, and Diameter client returns the RAA message of carrying response message to the Diameter server end then.
After the Diameter server termination is received RAA message, judge the type of response message in the RAA message, if, then audit successfully for the successful result code of indication; If be the result code of indication failure, then audit failure, the processing of failing can discharge the session of the consistency detection of asking; If be business information, then the Diameter server end compares the business information of the business information in the RAA message that is received with this session of local storage, if the two unanimity is then audited successfully; Otherwise audit is unusual, can send ASR message to Diameter client; Perhaps upgrade the business information of local storage with the business information in the RAA message.
Be SCF below with the Diameter client, the Diameter server end is that PDF is an example, is described in detail.
Referring to Fig. 5, when Fig. 5 is SCF and PDF for entity in the embodiment of the invention one, the flow chart of the auditing method of inter-entity, as shown in Figure 5, this flow process comprises the steps:
Step 501, SCF sends the RAR message of carrying the consistency detection solicited message at the session that will audit to PDF.
In this step, can be set at the consistency detection of dialogue-based ID, also can be set at the consistency detection of conversation-based business information.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the RAR message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the RAR message.And the RAR message of carrying the consistency detection solicited message can send when session traffic reduces or disappear.
Step 502, SCF receives the RAR message from PDF.
Step 503~step 504 judges according to RAR message whether the session of the consistency detection of asking exists, and if there is no, then response message is the result code of misdirection, and execution in step 505 then; If session exists, then judge the consistency detection information in the RAR message, if the consistency detection of dialogue-based ID, then response message is the successful result code of indication, if the consistency detection of dialogue-based business information, then response message is the business information of session, and execution in step 505 then.
Step 505, SCF returns the RAA message of carrying response message to PDF.
Step 506, PDF receives the RAA message from SCF.
Step 507, PDF judges the type of response message in the RAA message, if for the successful result code of indication, then audit successfully; If be the result code of indication failure, then audit failure, the processing of failing can discharge the session of the consistency detection of asking; If be business information, then execution in step 508.
Step 508, PDF compares the business information of the business information in the RAA message that is received with this session of local storage, if the two unanimity is then audited successfully; Otherwise audit is unusual, can send ASR message to SCF; Perhaps upgrade the business information of local storage with the business information in the RAA message.
Fig. 6 is the structural representation based on the auditing system of the auditing method of inter-entity shown in Figure 5.Comprise: PDF and SCF.
Wherein, PDF is used for sending the RAR message of carrying the consistency detection solicited message at the session that will audit to SCF, and receives the RAA message of carrying the consistency detection response message that SCF returns, according to reception result, and the processing of auditing.
SCF is used to receive the RAR message of carrying the consistency detection solicited message from PDF, and makes response, returns the RAA message of carrying the consistency detection response message to PDF.
Wherein, PDF can be set at the consistency detection of dialogue-based ID when sending RAR message, also can be set at the consistency detection of conversation-based business information.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the RAR message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the RAR message.And the RAR message of carrying the consistency detection solicited message can send when session traffic reduces or disappear.
After SCF receives RAR message, judge according to RAR message whether the session of the consistency detection of asking exists, if there is no, then response message is the result code of misdirection; If session exists, then judge the consistency detection information in the RAR message, if the consistency detection of dialogue-based ID, then response message is the successful result code of indication, if the consistency detection of dialogue-based business information, then response message is the business information of session, and SCF returns the RAA message of carrying response message to PDF then.
After PDF receives RAA message, judge the type of response message in the RAA message, if, then audit successfully for the successful result code of indication; If be the result code of indication failure, then audit failure, the processing of failing can discharge the session of the consistency detection of asking; If be business information, then PDF compares the business information of the business information in the RAA message that is received with this session of local storage, if the two unanimity is then audited successfully; Otherwise audit is unusual, can send ASR message to SCF; Perhaps upgrade the business information of local storage with the business information in the RAA message.
Be PDF below with the Diameter client, the Diameter server end is that TRCF is an example, is described in detail.
Referring to Fig. 7, when Fig. 7 is PDF and TRCF for entity in the embodiment of the invention one, the flow chart of the auditing method of inter-entity, as shown in Figure 7, this flow process comprises the steps:
Step 701, PDF sends the RAR message of carrying the consistency detection solicited message at the session that will audit to TRCF.
In this step, can be set at the consistency detection of dialogue-based ID, also can be set at the consistency detection of conversation-based business information.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the RAR message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the RAR message.And the RAR message of carrying the consistency detection solicited message can send when session traffic reduces or disappear.
Step 702, PDF receives the RAR message from TRCF.
Step 703~step 704 judges according to RAR message whether the session of the consistency detection of asking exists, and if there is no, then response message is the result code of misdirection, and execution in step 705 then; If session exists, then judge the consistency detection information in the RAR message, if the consistency detection of dialogue-based ID, then response message is the successful result code of indication, if the consistency detection of dialogue-based business information, then response message is the business information of session, and execution in step 705 then.
Step 705, PDF returns the RAA message of carrying response message to TRCF.
Step 706, TRCF receives the RAA message from PDF.
Step 707, TRCF judges the type of response message in the RAA message, if for the successful result code of indication, then audit successfully; If be the result code of indication failure, then audit failure, the processing of failing can discharge the session of the consistency detection of asking; If be business information, then execution in step 708.
Step 708, TRCF compares the business information of the business information in the RAA message that is received with this session of local storage, if the two unanimity is then audited successfully; Otherwise audit is unusual, can send ASR message to PDF; Perhaps upgrade the business information of local storage with the business information in the RAA message.
Fig. 8 is the structural representation based on the auditing system of the auditing method of inter-entity shown in Figure 7.Comprise: TRCF and PDF.
Wherein, TRCF is used for sending the RAR message of carrying the consistency detection solicited message at the session that will audit to PDF, and receives the RAA message of carrying the consistency detection response message that PDF returns, according to reception result, and the processing of auditing.
PDF is used to receive the RAR message of carrying the consistency detection solicited message from TRCF, and makes response, returns the RAA message of carrying the consistency detection response message to TRCF.
Wherein, TRCF can be set at the consistency detection of dialogue-based ID when sending RAR message, also can be set at the consistency detection of conversation-based business information.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the RAR message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the RAR message.And the RAR message of carrying the consistency detection solicited message can send when session traffic reduces or disappear.
After PDF receives RAR message, judge according to RAR message whether the session of the consistency detection of asking exists, if there is no, then response message is the result code of misdirection; If session exists, then judge the consistency detection information in the RAR message, if the consistency detection of dialogue-based ID, then response message is the successful result code of indication, if the consistency detection of dialogue-based business information, then response message is the business information of session, and PDF returns the RAA message of carrying response message to TRCF then.
After TRCF receives RAA message, judge the type of response message in the RAA message, if, then audit successfully for the successful result code of indication; If be the result code of indication failure, then audit failure, the processing of failing can discharge the session of the consistency detection of asking; If be business information, then TRCF compares the business information of the business information in the RAA message that is received with this session of local storage, if the two unanimity is then audited successfully; Otherwise audit is unusual, can send ASR message to PDF; Perhaps upgrade the business information of local storage with the business information in the RAA message.
On the basis of embodiment one, cycle timer can further be set take into account the cycle timer duration, then the Diameter server end sends the RAR message of carrying consistency detection information to Diameter client when cycle timer reaches the cycle timer duration; And successfully receiving the RAA message of carrying the consistency detection response message of Diameter client, and when auditing successfully, restart cycle timer, reach the purpose that periodically sends RAR message, and receive the situation that Diameter client returns RAA message by the cycle timer monitoring, when overtime at cycle timer, or continuously at preset period number intercycle timer expiry, when not receiving the RAA message from Diameter client, the audit failure, the processing of failing, such as discharge the session etc. of request consistency detection.
Equally, be SCF for Diameter client, the Diameter server end is PDF; Perhaps Diameter client is PDF, and situation was the same when the Diameter server end was TRCF.
On the basis of embodiment one,, cycle timer takes into account the cycle timer duration except can being set, audit timer and audit timer duration can also be set again, and the audit timer duration is set when Diameter server end and Diameter client initial session.Be SCF for Diameter client equally, the Diameter server end is PDF; Perhaps Diameter client is PDF, also is suitable for when the Diameter server end is TRCF.At this situation, be described in detail below in conjunction with embodiment two.
Embodiment two:
Referring to Fig. 9, Fig. 9 is the flow chart of the auditing method of inter-entity in the embodiment of the invention two, and as shown in Figure 9, this flow process comprises the steps:
Step 901, Diameter client send the AAR message of carrying the audit timer duration to the Diameter server end.
In Diameter, during initial session, Diameter client can send the AAR message that contains the Diameter client business information to the Diameter server end, authorizes for the Diameter server end and recognizes, and, be used for identifying this session to session id of this session generation.The present invention carries the audit timer duration of Diameter client initial setting by using this message, informs that the Diameter server end audits, and consistency is monitored.Wherein, the audit timer duration can be set similar and different value according to different sessions by client.
Step 902, the Diameter server end is receiving from the AAR message of Diameter client and after finishing authorization identifying, is returning the AAA message of setting the response of audit timer duration to Diameter client.In Diameter server end execution in step 903, then the Diameter client execution in step 905 afterwards.
In this step, the Diameter server end can directly adopt from the audit timer duration in the AAR message of Diameter client as the final audit timer duration of setting, also can make amendment to this timer of auditing, revise if desired, then amended audit timer duration is carried in the AAA message as the final audit timer duration of setting and sends to Diameter client.
The Diameter server end can be stored in the business information in the AAR message in the local storage after receiving AAR message.
Step 903, Diameter server end setting cycle timer duration, this value is less than the audit timer duration of setting.
In this step, for fear of because the audit timer duration of the cycle timer of Diameter server end and Diameter client is identical, and the Diameter server end that causes is when periodically sending the consistency detection request, the just in time overtime abnormal conditions of audit timer of Diameter client, the cycle timer duration can be arranged to audit 1/2nd, three of timer duration/first-class less than the value of audit timer, occurrence can be determined according to actual conditions.
Step 904, the Diameter server end is according to cycle timer duration start-up period timer.
After step 905, Diameter client receive AAA message, start the audit timer.
In this step, Diameter client receives AAA message, judges whether to carry the audit timer in the AAA message, if having, then starts the audit timer according to the audit timer duration in the AAA message; Otherwise the audit timer duration of setting according to Diameter client starts the audit timer.According to the audit timer Diameter server end in the step 906 being sent the RAR message of carrying the consistency detection solicited message monitors.
Step 906, when the cycle timer of Diameter server end reached the preset period timer duration, the Diameter server end sent the RAR message of carrying the consistency detection solicited message to Diameter client.
In this step, when sending RAR message, adding this message of indication in message is the sign of consistency detection request message, and the indication Diameter client is made response to the consistency detection of current sessions.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the RAR message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the RAR message.
Wherein, the consistency detection request message can send when session traffic reduces or disappear.If promptly session is normal, then timer expiry also can send this consistency detection request message.
Step 907, Diameter client judge whether to receive the RAR message from the Diameter server end before the audit timer expiry, if then execution in step 908; Otherwise, carry out abnormality processing.
In this step, if Diameter client is at the audit timer expiry, when promptly surpassing the audit timer duration of setting; Perhaps set in advance expired times, Diameter client audit timer is overtime continuously in default expired times, do not receive from the Diameter server end carry the RAR message of consistency detection solicited message the time, carry out abnormality processing.
Abnormality processing comprises: whether Diameter client discharges the local session of audit timer expiry according to actual conditions decisions, if discharge local session, and process ends after discharging local session then; Perhaps whether decision sends AAR message to the Diameter server end again, if, then return execution in step 901, otherwise, process ends.
Wherein,, can receive conversation message, even if then the audit timer expiry is not thought unusual when not receiving the RAR message of carrying the consistency detection solicited message yet if session is normal.
Step 908, after Diameter client received RAR message, request responded to consistency detection, sent the RAA message of carrying response message to the Diameter server end, the Diameter client execution in step 909 afterwards, Diameter server end execution in step 910.
In this step,, then in RAA message, carry the business information of indicating successful result code or carrying session in RAR message if the current sessions that the Diameter server end is asked exists.If the indication information in the RAR message is the consistency detection of dialogue-based ID, then under the situation of session id unanimity, the successful result code of indication is carried in the RAA message; If the indication information in the RAR message is the consistency detection of dialogue-based business information, then under the situation of session id unanimity, the business information of session is carried in the RAA message, the business information of this moment may be identical with the business information in the step 901, also may be different with the business information in the step 901, in addition more than the business information in the step 901.
If the current sessions that the Diameter server end is asked does not exist, then in RAA message, carry the result code of indication failure in RAR message.
Step 909, Diameter client judge whether the consistency detection response is successful information, if be successful information, then Diameter client returns execution in step 904.
Step 910, Diameter server end judge whether to receive the RAA message from Diameter client before cycle timer is overtime, if then execution in step 911; Otherwise, carry out abnormality processing.
In this step, overtime if after the Diameter server end sends the RAR message of carrying consistency detection information at cycle timer, when promptly surpassing the cycle timer duration of setting; Perhaps set in advance number of cycles, if Diameter server end cycle timer in the preset period number continuously overtime do not receive from Diameter client carry the RAA message of response message the time, the audit failure, can discharge local session, and the release of notifying other related entities to carry out this session, and process ends; Perhaps return execution in step 906, send the RAR message of carrying the consistency detection solicited message to Diameter client again.
Step 911 is after the Diameter server end is received RAA message, according to response message entrained in the RAA message processing of auditing.If response message is then returned execution in step 904 for the successful result code of indication; If response message is the business information of session, then execution in step 912; If response message is then carried out abnormality processing for the result code of indication failure.
In this step, if response message then can discharge local session for the result code of indication failure, and the release of notifying other related entities to carry out this session, process ends.
Step 912, the Diameter server end compares the business information of the business information in the response message with this session of local storage, and judges that whether the two is consistent, if consistent, then returns execution in step 904; Otherwise carry out abnormality processing.
In this step, abnormality processing comprises: when the business information of this business information and this session of local storage is compared, if the two is inconsistent, then the Diameter server end can send ASR message to Diameter client, selects whether to stop session by Diameter client; Perhaps the Diameter server end can upgrade the business information of this session of local storage with the business information in the RAA message, returns execution in step 904 then.
In above-mentioned flow process shown in Figure 9, step 901 and step 902 can also for: Diameter client is common AAR message to the AAR message that the Diameter server end sends in the step 901, does not promptly carry the audit timer duration.The Diameter server end is receiving from the AAR message of Diameter client and after finishing authorization identifying in the step 902, whether decision sets the audit timer as required, if set the audit timer, the audit timer duration that then will set is carried in the AAA message and sends to Diameter client, and sets the cycle timer duration less than the audit timer duration.All the other steps are constant.
More than the auditing method of inter-entity in the embodiment of the invention two is described in detail, again the auditing system of inter-entity in the embodiment of the invention two is elaborated below.
Referring to Figure 10, Figure 10 is based on the structural representation of the auditing system of the auditing method of above-mentioned inter-entity in the embodiment of the invention two.As shown in figure 10, this system comprises: Diameter server end and Diameter client.
Diameter client is used for sending the AAR message of carrying the audit timer duration to the Diameter server end, and receives the AAA message from the setting audit timer duration response of Diameter server end, according to the message initiated audit timer of AAA; Reception is from the RAR message of the consistency detection request of carrying of Diameter server end, and request responds to consistency detection, returns the RAA message of carrying response message to the Diameter server end.
Wherein, after Diameter client receives AAA message, judge whether carry the audit timer in the AAA message,, then start the audit timer according to the audit timer duration in the AAA message if having; Otherwise, the audit timer duration of setting according to Diameter client starts the audit timer, and Diameter client is according to the situation of audit timer monitoring reception from the RAR message of the consistency detection request of carrying of Diameter server end, and, carry out abnormality processing overtime or when in predefined expired times, not receiving RAR message.Abnormality processing comprises: Diameter client determines whether to discharge the local session of audit timer expiry according to actual conditions; Perhaps whether decision sends AAR message to the Diameter server end again.
Wherein, if session is normal, even if then the audit timer expiry is not thought unusual when not receiving the RAR message of carrying the consistency detection solicited message yet.
The Diameter server end is used to receive the AAR message of carrying the audit timer duration from Diameter client, and sets final audit timer duration, sends to Diameter client by AAA message; And setting is less than the cycle timer duration of audit timer duration, long periodicity sends the RAR message of carrying the consistency detection solicited message during according to cycle timer to Diameter client, and receive RAA message from the Diameter client response, according to the processing of auditing of the response message in the RAA message.
Wherein, the consistency detection request message can send when session traffic reduces or disappear.If promptly session is normal, then timer expiry also can send this consistency detection request message.
The Diameter server end can directly adopt from the audit timer duration in the AAR message of Diameter client as the final audit timer duration of setting, also can make amendment to this timer of auditing, revise if desired, then amended audit timer duration is carried in the AAA message as the final audit timer duration of setting and sends to Diameter client; And the Diameter server end is according to the situation of cycle timer monitoring reception RAA message, if it is overtime at cycle timer, perhaps in the number of cycles that sets in advance, during the continuously overtime RAA of not receiving message, can discharge local session, and notify other related entities to carry out the release of this session; Perhaps send the RAR message of carrying the consistency detection solicited message to Diameter client again.
Wherein, audit to handle according to the response message in the RAA message and comprise: if response message then restarts cycle timer for the successful result code of indication; If response message then can discharge local session, and notify other related entities to carry out the release of this session for the result code of indication failure; If response message is the business information of session, then the Diameter server end compares the business information of the business information in the response message with this session of local storage, and judges that whether the two is consistent, if consistent, then restarts cycle timer; If the two is inconsistent, then the Diameter server end can send ARS message to Diameter client, selects whether to stop session by Diameter client; Perhaps the Diameter server end can upgrade the business information of this session of local storage with the business information in the RAA message, restarts cycle timer then.
When the Diameter client in the said system sends AAR message to the Diameter server end, can carry the audit timer duration, and determine whether set the audit timer duration according to actual needs by the Diameter server end, set if desired, the audit timer duration that then will set sends to Diameter client by AAA message, and all the other functions are identical.
Be SCF below with the Diameter client, the Diameter server end is that PDF is an example, is described in detail.
Referring to Figure 11, Figure 11 is the flow chart of the auditing method of inter-entity in the embodiment of the invention two, and as shown in figure 11, this flow process comprises the steps:
Step 1101, SCF sends the AAR message of carrying the audit timer duration to PDF.
In Diameter, during initial session, SCF can send the AAR message that contains the SCF business information to PDF, authorizes for PDF and recognizes, and this session is generated a session id, is used for identifying this session.The present invention carries the audit timer duration of SCF initial setting by using this message, informs that PDF audits, and monitors consistency.Wherein, the audit timer duration can be set similar and different value according to different sessions by client.
Step 1102, PDF is receiving from the AAR message of SCF and after finishing authorization identifying, is returning the AAA message of setting the response of audit timer duration to SCF.In PDF execution in step 1103, then the SCF execution in step 1105 afterwards.
In this step, PDF can directly adopt from the audit timer duration in the AAR message of SCF as the final audit timer duration of setting, also can make amendment to this timer of auditing, revise if desired, then amended audit timer duration is carried in the AAA message as the final audit timer duration of setting and sends to SCF.
PDF can be stored in the business information in the AAR message in the local storage after receiving AAR message.
Step 1103, PDF setting cycle timer duration, this value is less than the audit timer duration of setting.
In this step, for fear of because the audit timer duration of the cycle timer of PDF and SCF is identical, and the PDF that causes is when periodically sending the consistency detection request, the just in time overtime abnormal conditions of audit timer of SCF, the cycle timer duration can be arranged to audit 1/2nd, three of timer duration/first-class less than the value of audit timer, occurrence can be determined according to actual conditions.
Step 1104, PDF is according to cycle timer duration start-up period timer.
Step 1105 after SCF receives AAA message, starts the audit timer.
In this step, SCF receives AAA message, judges whether to carry the audit timer in the AAA message, if having, then starts the audit timer according to the audit timer duration in the AAA message; Otherwise the audit timer duration of setting according to SCF starts the audit timer.According to the audit timer PDF in the step 1106 being sent the RAR message of carrying the consistency detection solicited message monitors.
Step 1106, when the cycle timer of PDF reached the preset period timer duration, PDF sent the RAR message of carrying the consistency detection solicited message to SCF.
In this step, when sending RAR message, adding this message of indication in message is the sign of consistency detection request message, and indication SCF makes response to the consistency detection of current sessions.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the RAR message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the RAR message.
Wherein, the consistency detection request message can send when session traffic reduces or disappear.If promptly session is normal, then timer expiry also can send this consistency detection request message.
Step 1107, SCF judges whether to receive the RAR message from PDF before the audit timer expiry, if then execution in step 1108; Otherwise, carry out abnormality processing.
In this step, if SCF is at the audit timer expiry, when promptly surpassing the audit timer duration of setting; Perhaps set in advance expired times, SCF audit timer is overtime continuously in default expired times, do not receive from PDF carry the RAR message of consistency detection solicited message the time, carry out abnormality processing.
Abnormality processing comprises: whether SCF discharges the local session of audit timer expiry according to actual conditions decisions, if discharge local session, and process ends after discharging local session then; Perhaps whether decision sends AAR message to PDF again, if, then return execution in step 1101, otherwise, process ends.
Wherein, if session is normal, even if then the audit timer expiry is not thought unusual when not receiving the RAR message of carrying the consistency detection solicited message yet.
Step 1108, after SCF received RAR message, request responded to consistency detection, sent the RAA message of carrying response message to PDF, and the SCF execution in step 1109 afterwards, PDF execution in step 1110.
In this step,, then in RAA message, carry the business information of indicating successful result code or carrying session in RAR message if the current sessions that PDF is asked exists.If the indication information in the RAR message is the consistency detection of dialogue-based ID, then under the situation of session id unanimity, the successful result code of indication is carried in the RAA message; If the indication information in the RAR message is the consistency detection of dialogue-based business information, then under the situation of session id unanimity, the business information of session is carried in the RAA message, the business information of this moment may be identical with the business information in the step 1101, also may be different with the business information in the step 1101, in addition more than the business information in the step 1101.
If the current sessions that PDF is asked does not exist, then in RAA message, carry the result code of indication failure in RAR message.
Step 1109, SCF judges whether the consistency detection response is successful information, if be successful information, then SCF returns execution in step 1104.
Step 1110, PDF judges whether to receive the RAA message from SCF before cycle timer is overtime, if then execution in step 1111; Otherwise, carry out abnormality processing.
In this step, overtime if after PDF sends the RAR message of carrying consistency detection information at cycle timer, when promptly surpassing the cycle timer duration of setting; Perhaps set in advance number of cycles, if the PDF cycle timer in the preset period number continuously overtime do not receive from SCF carry the RAA message of response message the time, the audit failure can discharge local session, and the release of notifying other related entities to carry out this session, and process ends; Perhaps return execution in step 1106, send the RAR message of carrying the consistency detection solicited message to SCF again.
Step 1111 is after PDF receives RAA message, according to response message entrained in the RAA message processing of auditing.If response message is then returned execution in step 1104 for the successful result code of indication; If response message is the business information of session, then execution in step 1112; If response message is then carried out abnormality processing for the result code of indication failure.
In this step, if response message then can discharge local session for the result code of indication failure, and the release of notifying other related entities to carry out this session, process ends.
Step 1112, PDF compares the business information of the business information in the response message with this session of local storage, and judges that whether the two is consistent, if consistent, then returns execution in step 1104; Otherwise carry out abnormality processing.
In this step, abnormality processing comprises: when the business information of this business information and this session of local storage was compared, if the two is inconsistent, then PDF can send ASR message to SCF, selects whether to stop session by SCF; Perhaps PDF can upgrade the business information of this session of local storage with the business information in the RAA message, returns execution in step 1104 then.
In above-mentioned flow process shown in Figure 11, step 1101 and step 1102 can also for: SCF is common AAR message to the AAR message that PDF sends in the step 1101, does not promptly carry the audit timer duration.PDF is receiving from the AAR message of SCF and after finishing authorization identifying in the step 1102, whether decision sets the audit timer as required, if set the audit timer, the audit timer duration that then will set is carried in the AAA message and sends to SCF, and sets the cycle timer duration less than the audit timer duration.All the other steps are constant.
More than the auditing method of inter-entity in the embodiment of the invention two is described in detail, again the auditing system of inter-entity in the embodiment of the invention two is elaborated below.
Referring to Figure 12, Figure 12 is based on the structural representation of the auditing system of the auditing method of above-mentioned inter-entity in the embodiment of the invention two.As shown in figure 12, this system comprises: PDF and SCF.
SCF is used for sending the AAR message of carrying the audit timer duration to PDF, and receives the AAA message from the setting audit timer duration response of PDF, according to the message initiated audit timer of AAA; Reception is from the RAR message of the consistency detection request of carrying of PDF, and request responds to consistency detection, returns the RAA message of carrying response message to PDF.
Wherein, after SCF receives AAA message, judge whether carry the audit timer in the AAA message,, then start the audit timer according to the audit timer duration in the AAA message if having; Otherwise, the audit timer duration of setting according to SCF starts the audit timer, and SCF is according to the situation of audit timer monitoring reception from the RAR message of the consistency detection request of carrying of PDF, and, carry out abnormality processing overtime or when in predefined expired times, not receiving RAR message.Abnormality processing comprises: SCF determines whether to discharge the local session of audit timer expiry according to actual conditions; Perhaps whether decision sends AAR message to PDF again.
Wherein, if session is normal, even if then the audit timer expiry is not thought unusual when not receiving the RAR message of carrying the consistency detection solicited message yet.
PDF is used to receive the AAR message of carrying the audit timer duration from SCF, and sets final audit timer duration, sends to SCF by AAA message; And setting is less than the cycle timer duration of audit timer duration, long periodicity sends the RAR message of carrying the consistency detection solicited message during according to cycle timer to SCF, and receive RAA message from the SCF response, according to the processing of auditing of the response message in the RAA message.
Wherein, the consistency detection request message can send when session traffic reduces or disappear.If promptly session is normal, then timer expiry also can send this consistency detection request message.
PDF can directly adopt from the audit timer duration in the AAR message of SCF as the final audit timer duration of setting, also can make amendment to this timer of auditing, revise if desired, then amended audit timer duration is carried in the AAA message as the final audit timer duration of setting and sends to SCF; And PDF is according to the situation of cycle timer monitoring reception RAA message, if it is overtime at cycle timer, perhaps in the number of cycles that sets in advance, during the continuously overtime RAA of not receiving message, can discharge local session, and notify other related entities to carry out the release of this session; Perhaps send the RAR message of carrying the consistency detection solicited message to SCF again.
Wherein, audit to handle according to the response message in the RAA message and comprise: if response message then restarts cycle timer for the successful result code of indication; If response message then can discharge local session, and notify other related entities to carry out the release of this session for the result code of indication failure; If response message is the business information of session, then PDF compares the business information of the business information in the response message with this session of local storage, and judges that whether the two is consistent, if consistent, then restarts cycle timer; If the two is inconsistent, then PDF can send ARS message to SCF, selects whether to stop session by SCF; Perhaps PDF can upgrade the business information of this session of local storage with the business information in the RAA message, restarts cycle timer then.
When the SCF in the said system sends AAR message to PDF, can carry the audit timer duration, and determine whether set the audit timer duration according to actual needs, set if desired by PDF, the audit timer duration that then will set sends to SCF by AAA message, and all the other functions are identical.
Be PDF below with the Diameter client, the Diameter server end is that TRCF is an example, is described in detail.
Referring to Figure 13, Figure 13 is the flow chart of the auditing method of inter-entity in the embodiment of the invention two, and as shown in figure 13, this flow process comprises the steps:
Step 1301, PDF sends the AAR message of carrying the audit timer duration to TRCF.
In Diameter, during initial session, PDF can send the AAR message that contains the PDF business information to TRCF, authorizes for TRCF and recognizes, and this session is generated a session id, is used for identifying this session.The present invention carries the audit timer duration of PDF initial setting by using this message, informs that TRCF audits, and monitors consistency.Wherein, the audit timer duration can be set similar and different value according to different sessions by client.
Step 1302, TRCF is receiving from the AAR message of PDF and after finishing authorization identifying, is returning the AAA message of setting the response of audit timer duration to PDF.In TRCF execution in step 1303, then the PDF execution in step 1305 afterwards.
In this step, TRCF can directly adopt from the audit timer duration in the AAR message of PDF as the final audit timer duration of setting, also can make amendment to this timer of auditing, revise if desired, then amended audit timer duration is carried in the AAA message as the final audit timer duration of setting and sends to PDF.
TRCF can be stored in the business information in the AAR message in the local storage after receiving AAR message.
Step 1303, TRCF setting cycle timer duration, this value is less than the audit timer duration of setting.
In this step, for fear of because the audit timer duration of the cycle timer of TRCF and PDF is identical, and the TRCF that causes is when periodically sending the consistency detection request, the just in time overtime abnormal conditions of audit timer of PDF, the cycle timer duration can be arranged to audit 1/2nd, three of timer duration/first-class less than the value of audit timer, occurrence can be determined according to actual conditions.
Step 1304, TRCF is according to cycle timer duration start-up period timer.
Step 1305 after PDF receives AAA message, starts the audit timer.
In this step, PDF receives AAA message, judges whether to carry the audit timer in the AAA message, if having, then starts the audit timer according to the audit timer duration in the AAA message; Otherwise the audit timer duration of setting according to PDF starts the audit timer.According to the audit timer TRCF in the step 1306 being sent the RAR message of carrying the consistency detection solicited message monitors.
Step 1306, when the cycle timer of TRCF reached the preset period timer duration, TRCF sent the RAR message of carrying the consistency detection solicited message to PDF.
In this step, when sending RAR message, adding this message of indication in message is the sign of consistency detection request message, and indication PDF makes response to the consistency detection of current sessions.If be set at the consistency detection of dialogue-based ID, the indication information that then will detect session id is carried in the RAR message; If be set at the consistency detection of dialogue-based business information, the indication information that then will detect session service information is carried in the RAR message.
Wherein, the consistency detection request message can send when session traffic reduces or disappear.If promptly session is normal, then timer expiry also can send this consistency detection request message.
Step 1307, PDF judges whether to receive the RAR message from TRCF before the audit timer expiry, if then execution in step 1308; Otherwise, carry out abnormality processing.
In this step, if PDF is at the audit timer expiry, when promptly surpassing the audit timer duration of setting; Perhaps set in advance expired times, PDF audit timer is overtime continuously in default expired times, do not receive from TRCF carry the RAR message of consistency detection solicited message the time, carry out abnormality processing.
Abnormality processing comprises: whether PDF discharges the local session of audit timer expiry according to actual conditions decisions, if discharge local session, and process ends after discharging local session then; Perhaps whether decision sends AAR message to TRCF again, if, then return execution in step 1301, otherwise, process ends.
Wherein, if session is normal, even if then the audit timer expiry is not thought unusual when not receiving the RAR message of carrying the consistency detection solicited message yet.
Step 1308, after PDF received RAR message, request responded to consistency detection, sent the RAA message of carrying response message to TRCF, and the PDF execution in step 1309 afterwards, TRCF execution in step 1310.
In this step,, then in RAA message, carry the business information of indicating successful result code or carrying session in RAR message if the current sessions that TRCF is asked exists.If the indication information in the RAR message is the consistency detection of dialogue-based ID, then under the situation of session id unanimity, the successful result code of indication is carried in the RAA message; If the indication information in the RAR message is the consistency detection of dialogue-based business information, then under the situation of session id unanimity, the business information of session is carried in the RAA message, the business information of this moment may be identical with the business information in the step 1301, also may be different with the business information in the step 1301, in addition more than the business information in the step 1301.
If the current sessions that TRCF is asked does not exist, then in RAA message, carry the result code of indication failure in RAR message.
Step 1309, PDF judges whether the consistency detection response is successful information, if be successful information, then PDF returns execution in step 1304.
Step 1310, TRCF judges whether to receive the RAA message from PDF before cycle timer is overtime, if then execution in step 1311; Otherwise, carry out abnormality processing.
In this step, overtime if after TRCF sends the RAR message of carrying consistency detection information at cycle timer, when promptly surpassing the cycle timer duration of setting; Perhaps set in advance number of cycles, if the TRCF cycle timer in the preset period number continuously overtime do not receive from PDF carry the RAA message of response message the time, the audit failure can discharge local session, and the release of notifying other related entities to carry out this session, and process ends; Perhaps return execution in step 1306, send the RAR message of carrying the consistency detection solicited message to PDF again.
Step 1311 is after TRCF receives RAA message, according to response message entrained in the RAA message processing of auditing.If response message is then returned execution in step 1304 for the successful result code of indication; If response message is the business information of session, then execution in step 1312; If response message is then carried out abnormality processing for the result code of indication failure.
In this step, if response message then can discharge local session for the result code of indication failure, and the release of notifying other related entities to carry out this session, process ends.
Step 1312, TRCF compares the business information of the business information in the response message with this session of local storage, and judges that whether the two is consistent, if consistent, then returns execution in step 1304; Otherwise carry out abnormality processing.
In this step, abnormality processing comprises: when the business information of this business information and this session of local storage was compared, if the two is inconsistent, then TRCF can send ASR message to PDF, selects whether to stop session by PDF; Perhaps TRCF can upgrade the business information of this session of local storage with the business information in the RAA message, returns execution in step 1304 then.
In above-mentioned flow process shown in Figure 13, step 1301 and step 1302 can also for: PDF is common AAR message to the AAR message that TRCF sends in the step 1301, does not promptly carry the audit timer duration.TRCF is receiving from the AAR message of PDF and after finishing authorization identifying in the step 1302, whether decision sets the audit timer as required, if set the audit timer, the audit timer duration that then will set is carried in the AAA message and sends to PDF, and sets the cycle timer duration less than the audit timer duration.All the other steps are constant.
More than the auditing method of inter-entity in the embodiment of the invention two is described in detail, again the auditing system of inter-entity in the embodiment of the invention two is elaborated below.
Referring to Figure 14, Figure 14 is based on the structural representation of the auditing system of the auditing method of above-mentioned inter-entity in the embodiment of the invention two.As shown in figure 14, this system comprises: TRCF and PDF.
PDF is used for sending the AAR message of carrying the audit timer duration to TRCF, and receives the AAA message from the setting audit timer duration response of TRCF, according to the message initiated audit timer of AAA; Reception is from the RAR message of the consistency detection request of carrying of TRCF, and request responds to consistency detection, returns the RAA message of carrying response message to TRCF.
Wherein, after PDF receives AAA message, judge whether carry the audit timer in the AAA message,, then start the audit timer according to the audit timer duration in the AAA message if having; Otherwise, the audit timer duration of setting according to PDF starts the audit timer, and PDF is according to the situation of audit timer monitoring reception from the RAR message of the consistency detection request of carrying of TRCF, and, carry out abnormality processing overtime or when in predefined expired times, not receiving RAR message.Abnormality processing comprises: PDF determines whether to discharge the local session of audit timer expiry according to actual conditions; Perhaps whether decision sends AAR message to TRCF again.
Wherein, if session is normal, even if then the audit timer expiry is not thought unusual when not receiving the RAR message of carrying the consistency detection solicited message yet.
TRCF is used to receive the AAR message of carrying the audit timer duration from PDF, and sets final audit timer duration, sends to PDF by AAA message; And setting is less than the cycle timer duration of audit timer duration, long periodicity sends the RAR message of carrying the consistency detection solicited message during according to cycle timer to PDF, and receive RAA message from the PDF response, according to the processing of auditing of the response message in the RAA message.Wherein, the consistency detection request message can send when session traffic reduces or disappear.If promptly session is normal, then timer expiry also can send this consistency detection request message.
TRCF can directly adopt from the audit timer duration in the AAR message of PDF as the final audit timer duration of setting, also can make amendment to this timer of auditing, revise if desired, then amended audit timer duration is carried in the AAA message as the final audit timer duration of setting and sends to PDF; And TRCF is according to the situation of cycle timer monitoring reception RAA message, if it is overtime at cycle timer, perhaps in the number of cycles that sets in advance, during the continuously overtime RAA of not receiving message, can discharge local session, and notify other related entities to carry out the release of this session; Perhaps send the RAR message of carrying the consistency detection solicited message to PDF again.
Wherein, audit to handle according to the response message in the RAA message and comprise: if response message then restarts cycle timer for the successful result code of indication; If response message then can discharge local session, and notify other related entities to carry out the release of this session for the result code of indication failure; If response message is the business information of session, then TRCF compares the business information of the business information in the response message with this session of local storage, and judges that whether the two is consistent, if consistent, then restarts cycle timer; If the two is inconsistent, then TRCF can send ARS message to PDF, selects whether to stop session by PDF; Perhaps TRCF can upgrade the business information of this session of local storage with the business information in the RAA message, restarts cycle timer then.
When the PDF in the said system sends AAR message to TRCF, can carry the audit timer duration, and determine whether set the audit timer duration according to actual needs by TRCF, set if desired, the audit timer duration that then will set sends to PDF by AAA message, and all the other functions are identical.
Above embodiment is example with the Diameter, and the auditing method and the system of the inter-entity of using Diameter described in detail, and in the practical application, above-mentioned thought can be applied to use the entity of other agreement equally.Those skilled in the art can extend to this scheme in other field on the basis with reference to thought of the present invention and embodiment easily.
As seen; above-described specific embodiment; purpose of the present invention, technical scheme and beneficial effect are further described; institute is understood that; the above is specific embodiments of the invention only, and is not intended to limit the scope of the invention, and is within the spirit and principles in the present invention all; any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (14)

1. the auditing method of an inter-entity is characterized in that, sets in advance cycle timer, cycle timer duration, audit timer and audit timer duration, the cycle timer duration is set less than the audit timer duration, and this method comprises the steps:
A ', second entity start the audit timer;
A, first entity periodically send first message to second entity according to cycle timer at the session that will audit, and described first message is the consistency detection request message;
B, second entity respond first message that receives, and send second message to first entity, and described second message is the consistency detection response message;
B ', second entity restart the audit timer;
C, first entity are according to second message that receives, the processing of auditing, if first entity is overtime at cycle timer, or continuously at preset period number intercycle timer expiry, do not receive second message from second entity, then audit failure, with the session release of request consistency detection, and the business information of this session of the local storage of deletion;
Second entity is at the audit timer expiry, or the timer expiry of auditing in default expired times continuously, does not receive the consistency detection request message from described first entity, and then audit is unusual, carries out abnormality processing.
2. the method for claim 1 is characterized in that, steps A is specially: when the current sessions flow reduced or disappear, first entity sent first message at the session that will audit to second entity.
3. the method for claim 1 is characterized in that, described step B comprises:
B1, second entity judge according to the consistency detection request message that receives, if the session of request consistency detection exists in this message, and execution in step B2 then, otherwise, execution in step B3;
B2, second entity return the consistency detection response message that carries the successful result code of indication to first entity, or return the consistency detection response message of the business information of carrying session, end step B;
B3, second entity return the consistency detection response message of the result code that carries the indication failure to first entity.
4. method as claimed in claim 3 is characterized in that, first entity is according to second message that receives among the described step C, and auditing to handle comprises:
First entity carries the successful result code of indication in determining the consistency detection response message that is received, then audit successfully; In determining the consistency detection response message that is received, carry the result code of indication failure, then audit failure, the processing of failing.
5. method as claimed in claim 3 is characterized in that, first entity is according to second message that receives among the described step C, and auditing to handle comprises:
First entity carries the business information of session in determining the consistency detection response message that is received, then the business information of this business information with this session of local storage compared, if the two unanimity is then audited successfully; Otherwise audit is unusual, carries out abnormality processing.
6. the method for claim 1 is characterized in that, the described audit timer duration that sets in advance comprises: when first entity and the second entity initial session, set the audit timer duration.
7. method as claimed in claim 6 is characterized in that, when described first entity and the second entity initial session, sets the audit timer duration and comprises:
Second entity sends the initial session request message that carries the audit timer duration to first entity; First entity is set the audit timer duration according to the audit timer duration in the initial session request message, and returns the initial session response message of setting the response of audit timer duration to second entity;
Described second entity starts the audit timer and comprises: second entity starts the audit timer according to the initial session response message.
8. method as claimed in claim 6 is characterized in that, when described first entity and the second entity initial session, sets the audit timer duration and comprises:
Second entity sends the initial session request message that does not carry the audit timer duration to first entity; First entity is set the audit timer duration, and returns the initial session response message that carries the audit timer duration to second entity;
Described second entity starts the audit timer and comprises: second entity starts the audit timer according to the audit timer duration in the initial session response message.
9. as claim 7 or 8 described methods, it is characterized in that described initial session request message comprises: initial authorization authentication request AAR message, described initial session response message comprises: initial authorization authentication response AAA message.
10. as any described method in the claim 1 to 8, it is characterized in that described consistency detection request message comprises: authorization requests RAR message again, described consistency detection response message comprises: authorization response RAA message again.
11. as any described method in the claim 1 to 8, it is characterized in that described first entity comprises: diameter Diameter server end, described second entity comprises: Diameter client.
12. method as claimed in claim 11 is characterized in that, described Diameter client is: service control function SCF, and described Diameter server end is: strategy decision function PDF;
Perhaps described Diameter client is: strategy decision function PDF, described Diameter server end is: transfer resource controlled function TRCF.
13. the auditing system of an inter-entity, it is characterized in that, this system comprises: first entity and second entity, cycle timer and cycle timer duration are set in first entity in advance, audit timer and audit timer duration are set in second entity in advance, described cycle timer duration is less than the audit timer duration, wherein
First entity is used for according to cycle timer, periodically sends first message to second entity at the session that will audit, and described first message is the consistency detection request message; And receiving second message that second entity returns, described second message is the consistency detection response message; According to reception result, the processing of auditing, if first entity is overtime at cycle timer, or continuously at preset period number intercycle timer expiry, do not receive second message from second entity, then audit failure, with the session release of request consistency detection, and the business information of this session of the local storage of deletion;
Second entity is used for starting the audit timer according to the audit timer duration; Reception is from first message of described first entity, and makes response, returns second message to first entity, and after returning second message to first entity, restarts the audit timer; At the audit timer expiry, or the timer expiry of in default expired times, auditing continuously, do not receive consistency detection request message from described first entity, then audit is unusual, carries out abnormality processing.
14. system as claimed in claim 13 is characterized in that, described first entity is: the Diameter server end, described second entity is: Diameter client.
CN2006101539861A 2006-02-16 2006-09-15 Interentity auditing method and system Expired - Fee Related CN101022454B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101539861A CN101022454B (en) 2006-02-16 2006-09-15 Interentity auditing method and system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN200610008212.X 2006-02-16
CN 200610008212 CN1870647A (en) 2006-02-16 2006-02-16 System and method for audit between entity
CN2006101539861A CN101022454B (en) 2006-02-16 2006-09-15 Interentity auditing method and system

Publications (2)

Publication Number Publication Date
CN101022454A CN101022454A (en) 2007-08-22
CN101022454B true CN101022454B (en) 2010-10-13

Family

ID=38710104

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101539861A Expired - Fee Related CN101022454B (en) 2006-02-16 2006-09-15 Interentity auditing method and system

Country Status (1)

Country Link
CN (1) CN101022454B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883464A (en) * 2012-09-13 2013-01-16 大唐移动通信设备有限公司 Gx interface resource releasing method and device
CN106408354A (en) * 2016-11-04 2017-02-15 北京铭嘉实咨询有限公司 Method and system for providing service for users among different enterprises

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110320544A1 (en) * 2010-06-29 2011-12-29 Alcatel-Lucent Canada, Inc. Diameter session audits
US8539033B2 (en) * 2010-06-29 2013-09-17 Alcatel Lucent Diameter session audits
CN107872396B (en) * 2016-09-26 2021-07-16 华为技术有限公司 Communication method with timeout control, processing device, terminal device and server
CN106506669B (en) * 2016-11-21 2019-12-13 中国移动通信集团江苏有限公司 Method, device and system for processing session information
CN107103086B (en) * 2017-04-28 2020-11-06 杭州升迈科技有限公司 Data acquisition auditing method and system, and computer readable storage medium
CN109697204B (en) 2017-10-23 2021-03-30 创新先进技术有限公司 Data auditing method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6728895B1 (en) * 1995-12-01 2004-04-27 Silicon Graphics, Inc. System and method for resource recovery in a distributed system
CN1545240A (en) * 2003-11-14 2004-11-10 中兴通讯股份有限公司 Method for detecting H.248 protocol abnormal context
CN1708141A (en) * 2004-06-08 2005-12-14 华为技术有限公司 Method for realeasing terminal resource in media gateway
CN1710874A (en) * 2004-06-18 2005-12-21 华为技术有限公司 Method for ensuring business reliability in end-to-end business quality constitution

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6728895B1 (en) * 1995-12-01 2004-04-27 Silicon Graphics, Inc. System and method for resource recovery in a distributed system
CN1545240A (en) * 2003-11-14 2004-11-10 中兴通讯股份有限公司 Method for detecting H.248 protocol abnormal context
CN1708141A (en) * 2004-06-08 2005-12-14 华为技术有限公司 Method for realeasing terminal resource in media gateway
CN1710874A (en) * 2004-06-18 2005-12-21 华为技术有限公司 Method for ensuring business reliability in end-to-end business quality constitution

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
全文.
同上.

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102883464A (en) * 2012-09-13 2013-01-16 大唐移动通信设备有限公司 Gx interface resource releasing method and device
CN102883464B (en) * 2012-09-13 2015-02-04 大唐移动通信设备有限公司 Gx interface resource releasing method and device
CN106408354A (en) * 2016-11-04 2017-02-15 北京铭嘉实咨询有限公司 Method and system for providing service for users among different enterprises

Also Published As

Publication number Publication date
CN101022454A (en) 2007-08-22

Similar Documents

Publication Publication Date Title
CN101022454B (en) Interentity auditing method and system
CN102090042A (en) Message restriction for Diameter servers
CN107919969B (en) Policy control method and device
CN100349445C (en) Method for implementing resource preretention of agency requir mode in next network
CN108738082B (en) Session processing method, device and system
CN100479374C (en) Method for processing urgent business in network communication
CN101771564B (en) Method, device and system for processing session context
WO2010142203A1 (en) Method, apparatus and system for controlling tunnel identifier allocation
US20060165224A1 (en) Apparatus and method for managing network resources
US8661533B2 (en) Method for resource and admission control
WO2011020363A1 (en) Method and system for realizing load balance and diameter client
CN102577449B (en) Method, device and system for activation and deactivation of priority service
CN100550881C (en) A kind of method that realizes the multimedia priority business
CN101217561B (en) A method to enhance the storage reliability of the network and a network device
CN105493533B (en) Online charging method, gateway equipment and online charging equipment
KR101442260B1 (en) Method for synchronizing policy information in policy management system
CN101072139A (en) Method for realizing network quit for WiMAX communication system
CN101137104B (en) Method and system for implementing resource release
KR101007736B1 (en) Policy based network system and method of management in network policy
CN104009961A (en) PPPoE session ID distribution method and equipment thereof
CN101146052B (en) Method for processing emergent service in network communication
CN101695049A (en) Method and device for processing businesses in monitoring system
CN103458499A (en) Off-line processing method and equipment
CN101146053A (en) Method for realize user request resource reservation in next generation of network
EP1757072B1 (en) Arrangement and method for delayed re-allocation of addresses

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101013

Termination date: 20120915