CN104468506A - Session state detection method and device - Google Patents

Session state detection method and device Download PDF

Info

Publication number
CN104468506A
CN104468506A CN201410590010.5A CN201410590010A CN104468506A CN 104468506 A CN104468506 A CN 104468506A CN 201410590010 A CN201410590010 A CN 201410590010A CN 104468506 A CN104468506 A CN 104468506A
Authority
CN
China
Prior art keywords
message
session
entity
pcrf server
session status
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.)
Pending
Application number
CN201410590010.5A
Other languages
Chinese (zh)
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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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
Application filed by Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201410590010.5A priority Critical patent/CN104468506A/en
Publication of CN104468506A publication Critical patent/CN104468506A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a session state detection method and device. By detecting the session state between an application function (AF) entity and a policy and charging rule function (PCRF) server, it is guaranteed that session resources of the AF entity and the PCRF server can be released in time on an abnormal condition, the consistency of the session state between the AF entity and the PCRF server is improved, and the situation that a system can not provide service due to the fact that the session resources are hung is avoided. The session state detection method comprises the steps that the AF entity sends a first message used for detecting the session state to the PCRF server when determining that the sessions state needs to be detected; the AF entity sends a notification message used for indicating the PCRF server to release the session resources corresponding to the AF entity to the PCRF server when not receiving a second message replied by the PCRF server and used for responding to the first message within a preset waiting duration, and the AF entity releases the session resources corresponding to the PCRF server.

Description

Session status detection method and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of session status detection method and device.
Background technology
Rx interface is application function (Application Function, AF) entity and tactful and charging rule functions (Policy and Charging Rules Function, PCRF) interface between server, third generation collaborative project (3rd Generation Partnership Project, 3GPP) the standard interface of tissue definition, Primary Reference agreement is 3GPP TS 29.214 and 3GPP TS 29.213, diameter protocol (Diameter) message is adopted to carry out alternately, transport layer adopts transmission control protocol (Transfer Control Protocol, TCP) message.AF entity after session establishment, by Diameter authentication authorization request (AuthenticationAuthorization Request, AAR) message informing PCRF server session is set up, PCRF server-assignment relevant bearer resource, set up access side session, and send Diameter Certificate Authority response (Authentication Authorization Answer, AAA) message to AF entity.After AF entity receives DiameterAAA message, session establishment completes.When end session is wanted in AF entity side, such as: at IP Multimedia System (IP Multimedia Subsystem, IMS) network, AF entity receives SIP BYE message, AF entity sends Diameter session termination request (Session TerminationRequest to PCRF server, STR) message, PCRF server terminates access bearer side resource after receiving STR message, Diameter session termination response (Session Termination Answer is replied to AF entity, STA) response message, after AF entity receives Diameter STA message, AF entity continues the terminating procedures performing the session of AF entity.
When after session establishment, for a certain reason, such as: TCP chain rupture, equipment fault, restart, Network Packet Loss etc., AF entity and PCRF server temporarily cannot normally mutual time, there will be the inconsistent situation that cannot discharge with resource of session status of PCRF server and AF entity, such as: Diameter STR message is lost; TCP chain rupture, Diameter STR message sends unsuccessfully; AF entity fault, Diameter STR message not to send etc. abnormal conditions.When above abnormal conditions occur, the session status of AF entity and PCRF server may be inconsistent, and associated session resource can be tangled.
How the Session Resources relevant for Rx interface relevant device discharges when generation causes session status inconsistent extremely, 3GPP TS 29.214 and 3GPP TS 29.213 agreement do not have clear and definite description, and other relevant 3GPP agreements and IETF agreement do not have definition and the description of this respect yet.Common way is after the TCP chain chain rupture between AF entity and PCRF server, and AF entity and PCRF server determine whether discharge associated session according to local mechanism, have following two kinds of modes in prior art:
Mode one, use TCP chain rupture timer, at timer expiry, and link setup is still unsuccessful, and the Session Resources release that AF entity and PCRF server just will be relevant, to ensure that Session Resources is not tangled.
In mode two, message between AF entity and PCRF server, the source of carrying-state-mark (Origin-State-Id) property value is to (Attribute Value Pair, AVP), whether AF entity and the inspection of PCRF server receive in message containing this AVP, if there is this AVP, reexamine this AVP and indicate the events such as whether opposite equip. restarts, fault, again according to local policy, determine whether existing session resource discharged, under ensureing abnormal application scenarios, resource is not tangled.
But, no matter be by TCP chain rupture timer or the mode notified by AVP, do not can solve the problems such as Session Resources release, the stability of a system and user awareness.Specifically, there is following a few point defect in above-mentioned two kinds of modes.
One, user awareness is poor.No matter above that way, all existing Session Resources can be discharged, the user carrying out conversing will be hung up, and user awareness is poor.
Two, TCP chain Single Point of Faliure.In mode one after the chain rupture of TCP chain, the Session Resources release of having set up all or setting up, TCP whether chain rupture has become the key factor of session releasing session resource of whether dismantling, and in fact causes the Single Point of Faliure of whole system.
Three, network failure etc. are abnormal, and resource still cannot discharge.Session request (Abort Session Request is interrupted for causing Diameter STR message, Diameter because of network failure, ASR) message and Diameter authorization requests (Re-Authorization Request again, RAR) message packet loss, Cuo Bao, transmission time-out etc. situation occur time, the resource of the network equipment can be tangled, and cannot discharge.
Four, method imperfection.Mode one depends on the state of bottom TCP chain, but not the session status of application protocol, if TCP chain is unstable, so the service that provides of whole system is also unstable, and utility cession is once set up, and is the state not relying on TCP chain relatively; Mode two determination strategy is comparatively complicated.And AVP carry be equipment before state, equipment judges whether that terminating utility cession depends on old state, also depend on AF entity and PCRF server to have communicated with each other processing policy, requirement is proposed to equipment, cause unavoidably and require too high to determination strategy, equipment becomes complicated, not general.
In sum, in prior art, Rx interface relevant device AF entity and PCRF server are when occurring abnormal, cause session status inconsistent, and then the resource release that can not well conversate, and the stability of a system and user awareness etc. are poor.
Summary of the invention
Embodiments provide a kind of session status detection method and device, by detecting the session status between AF entity and PCRF server, ensure in abnormal cases, the Session Resources of AF entity and PCRF server can discharge in time, improve the consistency of session status between AF entity and PCRF server, avoid Session Resources to be tangled, system cannot provide service.
A kind of session status detection method that the embodiment of the present invention provides, comprising: when application function AF entity is determined to need to detect session status, send the first message for detecting session status to strategy and charging rule functions PCRF server; When described AF entity within the waiting time of presetting, do not receive that described PCRF server replys for responding the second message of described first message time, the notification message in order to indicate described PCRF server to discharge the Session Resources corresponding with described AF entity is sent to described PCRF server, further, the Session Resources that described AF entity release is corresponding with described PCRF server.
In the said method that the embodiment of the present invention provides, when determining to need to detect session status, session status between AF entity detection and PCRF server, the reply of PCRF server is not received in Preset Time, the Session Resources that the release of notice PCRF server is corresponding with AF entity, the Session Resources that release is corresponding with PCRF server simultaneously, under ensureing abnormal conditions, the Session Resources of AF entity and PCRF server can discharge in time, improve the consistency of session status between AF entity and PCRF server, the mode notified with TCP chain rupture timer and AVP in prior art is compared, no matter be session testing process or resource dispose procedure, do not need additionally to increase message flow, realize simple, and avoid Session Resources to be tangled, system cannot provide service.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, also comprise: when described AF entity receives the second message of described PCRF server reply within the waiting time of presetting, described AF entity is determined with the session status of described PCRF server normal.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, before described AF entity determines to need to detect session status, also comprise: described AF entity obtains the interval duration detecting session status; The session connection duration of described AF entity statistics and described PCRF server; Described AF entity is determined to need to detect session status, be specially: when described AF entity determines that described session connection duration is less than the interval duration of described detection session status, and the difference of the interval duration of described session connection duration and described detection session status is when being less than predetermined threshold value, determine to need to detect session status.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, described AF entity obtains the interval duration detecting session status, be specially: when the next-hop network equipment session of described AF entity and described PCRF server refresh consult successfully time, described AF entity obtains the refresh duration that session refreshing is consulted from the session refreshing negotiate response message of described next-hop network device replied, and described AF entity is using the interval duration of this refresh duration as described detection session status; Or described AF entity obtains pre-configured session status detect-message and sends duration, and described session status detect-message is sent the interval duration of duration as described detection session status.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, the method also comprises: described AF solid generation comprises the message of the interval duration of described detection session status, and this message is sent to described PCRF server, to notify that described PCRF server detects the interval duration of session status; The session connection duration of described AF entity statistics and described PCRF server, be specially: described AF entity receives described PCRF server and sends when being used to indicate the message of the interval duration accepting described detection session status, the session connection duration of described AF entity statistics and described PCRF server.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, described AF entity obtains the interval duration detecting session status, is specially: described AF entity using in advance and the session status detect-message of described PCRF server commitment send the interval duration of duration as described detection session status.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, before described AF entity determines to need to detect session status, also comprise: when the next-hop network equipment session of described AF entity and described PCRF server is consulted successfully, described AF solid generation Diameter authentication authorization request AAR message, and this Diameter AAR message is sent to described PCRF server, to notify that described PCRF server session changes, described AF entity preserves property value in this Diameter AAR message to the value of AVP and AVP; When described AF entity receives the Diameter Certificate Authority response AAA message of described PCRF server transmission, described AF entity is determined to have changed with described PCRF server session, and wherein, described session changes to: session establishment or session updates.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, described first message is the Diameter AAR message that described AF entity is preserved.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, described first message is the Diameter AAR message only comprising essential AVP.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, also comprise: when the Diameter that described AF entity receives the transmission of described PCRF server interrupts session request ASR message, the Session Resources that described AF entity release is corresponding with described PCRF server, and send Diameter interruption conversational response (Abort Session Answer, ASA) message to described PCRF server.
A kind of session status detection method that the embodiment of the present invention provides, comprising: whether PCRF monitoring server receives the first message for detecting session status that AF entity sends; When described PCRF server does not receive described first message of described AF entity transmission in preset duration, described PCRF server sends the notification message in order to indicate described AF entity to discharge the Session Resources corresponding with described PCRF server to described AF entity, further, the Session Resources that described PCRF server release is corresponding with described AF entity.
In the said method that the embodiment of the present invention provides, when PCRF server does not receive the message of the detection session status that AF entity sends in Preset Time, the Session Resources that the release of notice AF entity is corresponding with PCRF server, the Session Resources that release is corresponding with AF entity simultaneously, under ensureing abnormal conditions, the Session Resources of AF entity and PCRF server can discharge in time, improve the consistency of session status between AF entity and PCRF server, the mode notified with TCP chain rupture timer and AVP in prior art is compared, no matter be session testing process or resource dispose procedure, do not need additionally to increase message flow, realize simple, and avoid Session Resources to be tangled, system cannot provide service.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, also comprise: when described PCRF server receives described first message of described AF entity transmission in preset duration, described PCRF server replys the second message for responding described first message to described AF entity, and described PCRF server is determined with the session status of described AF entity normal.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, described PCRF monitoring server in preset duration, whether receive that AF entity sends for detect session status the first message before, also comprise: described PCRF server obtains the interval duration detecting session status; The session connection duration of described PCRF server statistics and described AF entity; Whether described PCRF monitoring server receives the first message for detecting session status that AF entity sends, be specially: equal the interval duration of described detection session status at the session connection duration of current statistic before, whether described PCRF monitoring server receives described first message.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, described PCRF server obtains the interval duration detecting session status, be specially: described PCRF server receives the message comprising the interval duration detecting session status that described AF entity sends, and obtains the interval duration detecting session status from this message.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, the session connection duration of described PCRF server statistics and described AF entity, be specially: when described PCRF server receive that described AF entity sends comprise the message of interval duration detecting session status time, the session connection duration of described PCRF server statistics and described AF entity.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, after the session connection duration of described PCRF server statistics and described AF entity, the method also comprises: described PCRF server sends the message being used to indicate the interval duration accepting described detection session status to described AF entity.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, described PCRF server obtains the interval duration detecting session status, is specially: described PCRF server using in advance and the described AF entity session status detect-message of arranging send the interval duration of duration as described detection session status.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, described PCRF monitoring server in preset duration, whether receive that AF entity sends for detect session status the first message before, also comprise: described PCRF server receives the Diameter AAR message that described AF entity sends, and described PCRF server preserves the value of AVP and AVP in this Diameter AAR message; Described PCRF server sends Diameter AAA message to described AF entity, described PCRF server preserves the value of AVP and AVP in this Diameter AAA message, described PCRF server is determined to have changed with the session of described AF entity, wherein, described session changes to: session establishment or session updates.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, described second message is the Diameter AAA message that described PCRF server is preserved.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, whether described PCRF monitoring server receives the first message for detecting session status that AF entity sends, comprise: the AVP determined in the message received in preset duration when described PCRF server is consistent with the AVP in the Diameter AAR message that described PCRF server is preserved, and described PCRF server is when determining that the value of the AVP in the message received in described preset duration is consistent with the value of the AVP in the Diameter AAR message that described PCRF server is preserved, described PCRF server determines that the message received in described preset duration is the first message for detecting session status, or when the message that described PCRF server receives in described preset duration is the Diameter AAR message only comprising essential AVP, described PCRF server determines that the message received in described preset duration is the first message for detecting session status.
In a kind of possible execution mode, in the said method that the embodiment of the present invention provides, also comprise: when described PCRF server receives the Diameter session termination request STR message of described AF entity transmission, discharge the Session Resources corresponding with described AF entity, and send Diameter session termination response STA message to described AF entity.
A kind of session status checkout gear that the embodiment of the present invention provides, comprising: detecting unit, for when determining to need to detect session status, sends the first message for detecting session status to strategy and charging rule functions PCRF server; Processing unit, be connected to described detecting unit, for when do not receive in the waiting time of presetting that described PCRF server replys for responding the second message of described first message time, the notification message in order to indicate described PCRF server to discharge the Session Resources corresponding with the application function AF entity at described device place is sent to described PCRF server, further, the Session Resources that release is corresponding with described PCRF server.
In the said apparatus that the embodiment of the present invention provides, when determining to need to detect session status, detect the session status between PCRF server, the reply of PCRF server is not received in Preset Time, the Session Resources that the release of notice PCRF server is corresponding with the application function AF entity at this device place, the Session Resources that release is corresponding with PCRF server simultaneously, under ensureing abnormal conditions, the application function AF entity at this device place and the Session Resources of PCRF server can discharge in time, improve the consistency of session status between the application function AF entity at this device place and PCRF server, the mode notified with TCP chain rupture timer and AVP in prior art is compared, no matter be session testing process or resource dispose procedure, do not need additionally to increase message flow, realize simple, and avoid Session Resources to be tangled, system cannot provide service.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described processing unit, also for: when preset waiting time in receive described PCRF server reply the second message time, determine with the session status of described PCRF server normal.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, also comprise: acquiring unit, be connected to described detecting unit, for obtaining the interval duration detecting session status; Statistic unit, is connected to described detecting unit, for adding up the session connection duration with described PCRF server; Described detecting unit is determined to need to detect session status, be specially: when determining that described session connection duration is less than the interval duration of described detection session status, and the difference of the interval duration of described session connection duration and described detection session status is when being less than predetermined threshold value, determine to need to detect session status.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described acquiring unit specifically for: when the application function AF entity at described device place and the next-hop network equipment session of described PCRF server refresh consult successfully time, the refresh duration that session refreshing is consulted is obtained, using the interval duration of this refresh duration as described detection session status from the session refreshing negotiate response message of described next-hop network device replied; Or obtain pre-configured session status detect-message and send duration, and described session status detect-message is sent the interval duration of duration as described detection session status.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described detecting unit also for: generate and comprise the message of the interval duration of described detection session status, and this message is sent to described PCRF server, to notify that described PCRF server detects the interval duration of session status; Described statistic unit specifically for: when receive described PCRF server send be used to indicate the message of the interval duration accepting described detection session status time, statistics and the session connection duration of described PCRF server.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described acquiring unit specifically for: using in advance and the session status detect-message of described PCRF server commitment send the interval duration of duration as described detection session status.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described processing unit also for: when the next-hop network equipment session of the application function AF entity at described device place and described PCRF server is consulted successfully, generate Diameter AAR message, and this Diameter AAR message is sent to described PCRF server, to notify that described PCRF server session changes, and the property value preserved in this Diameter AAR message is to the value of AVP and AVP; And when receiving the Diameter AAA message that described PCRF server sends, determine to have changed with described PCRF server session, wherein, described session changes to: session establishment or session updates.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described first message is the Diameter AAR message that described processing unit is preserved.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described first message is the Diameter AAR message only comprising essential AVP.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described processing unit also for: when receive described PCRF server send Diameter ASR message time, discharge the Session Resources corresponding with described PCRF server, and send Diameter ASA message to described PCRF server.
A kind of session status checkout gear that the embodiment of the present invention provides, comprising: monitoring means, for monitoring the first message for detecting session status whether receiving AF entity and send; Processing unit, be connected to described monitoring means, for do not receive in preset duration when described monitoring means described AF entity send described first message time, the notification message in order to indicate described AF entity to discharge the Session Resources corresponding with the strategy at described device place and charging rule functions PCRF server is sent to described AF entity, further, the Session Resources that release is corresponding with described AF entity.
In the said apparatus that the embodiment of the present invention provides, when not receiving the message of the detection session status that AF entity sends in Preset Time, the Session Resources that the release of notice AF entity is corresponding with the PCRF server at this device place, the Session Resources that release is corresponding with AF entity simultaneously, under ensureing abnormal conditions, the Session Resources of the PCRF server at AF entity and this device place can discharge in time, the consistency of session status between the PCRF server that improve AF entity and this device place, the mode notified with TCP chain rupture timer and AVP in prior art is compared, no matter be session testing process or resource dispose procedure, do not need additionally to increase message flow, realize simple, and avoid Session Resources to be tangled, system cannot provide service.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described processing unit also for: when described monitoring means receive in preset duration described AF entity send described first message time, replying the second message for responding described first message to described AF entity, determining with the session status of described AF entity normal.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, also comprise: acquiring unit, be connected to described processing unit, for obtaining the interval duration detecting session status; Statistic unit, is connected to described processing unit and described acquiring unit, for adding up the session connection duration with described AF entity; Described monitoring means, specifically for: equal the interval duration of described detection session status at the session connection duration of current statistic before, whether monitoring receives described first message.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described acquiring unit specifically for: what receive that described AF entity sends comprises the message of interval duration detecting session status, obtains the interval duration detecting session status from this message.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described statistic unit specifically for: when described acquiring unit receive that described AF entity sends comprise the message of interval duration detecting session status time, the session connection duration of statistics and described AF entity.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described processing unit also for: after the session connection duration of described statistic unit statistics and described AF entity, send the message being used to indicate the interval duration accepting described detection session status to described AF entity.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described acquiring unit specifically for: using in advance and the described AF entity session status detect-message of arranging send the interval duration of duration as described detection session status.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described processing unit also for: receive the Diameter AAR message that described AF entity sends, and preserve the value of AVP and AVP in this DiameterAAR message; And described processing unit sends Diameter AAA message to described AF entity, preserve the value of AVP and AVP in this Diameter AAA message, determine to have changed with the session of described AF entity, wherein, described session changes to: session establishment or session updates.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described second message is the Diameter AAA message that described processing unit is preserved.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described monitoring means specifically for: when the AVP in the message determining to receive in preset duration is consistent with the AVP in the Diameter AAR message that described processing unit is preserved, and when determining that the value of the AVP in the message received in described preset duration is consistent with the value of the AVP in the Diameter AAR message that described processing unit is preserved, described monitoring means determines that the message received in described preset duration is the first message for detecting session status; Or when the message determining to receive in described preset duration is the Diameter AAR message only comprising essential AVP, described monitoring means determines that the message received in described preset duration is the first message for detecting session status.
In a kind of possible execution mode, in the said apparatus that the embodiment of the present invention provides, described processing unit also for: when receive described AF entity send Diameter STR message time, discharge the Session Resources corresponding with described AF entity, and send Diameter STA message to described AF entity.
Accompanying drawing explanation
The schematic flow sheet of a kind of session status detection method in AF entity side that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the AF entity side detection session status releasing session resource that Fig. 2 provides for the embodiment of the present invention;
A kind of schematic flow sheet obtaining the interval duration detecting session status that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the interval duration of another acquisition detection session status that Fig. 4 provides for the embodiment of the present invention;
The another schematic flow sheet obtaining the interval duration detecting session status that Fig. 5 provides for the embodiment of the present invention;
The schematic flow sheet of session status is detected during a kind of session establishment that Fig. 6 provides for the embodiment of the present invention;
The schematic flow sheet of session status is detected during a kind of session updates that Fig. 7 provides for the embodiment of the present invention;
The schematic flow sheet of session status is detected during another session establishment that Fig. 8 provides for the embodiment of the present invention;
The schematic flow sheet of session status is detected during another session updates that Fig. 9 provides for the embodiment of the present invention;
The schematic flow sheet of a kind of session status detection method of PCRF server side that Figure 10 provides for the embodiment of the present invention;
The schematic flow sheet of the PCRF server side detection session status releasing session resource that Figure 11 provides for the embodiment of the present invention;
The structural representation of a kind of session status checkout gear in AF entity side that Figure 12 provides for the embodiment of the present invention;
The structural representation of a kind of session status checkout gear of PCRF server side that Figure 13 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing, the session status detection method provide the embodiment of the present invention and the embodiment of device are described in detail.
The session status that the session status detection method that the embodiment of the present invention provides and device are applicable between Rx interface relevant device detects, and in the embodiment of the present invention, Rx relevant device is described for AF entity and PCRF server.
In AF entity side, a kind of session status detection method that the embodiment of the present invention provides, as shown in Figure 1, comprising:
Step 102, when application function AF entity is determined to need to detect session status, sends the first message for detecting session status to strategy and charging rule functions PCRF server;
Step 104, when AF entity within the waiting time of presetting, do not receive that PCRF server replys for responding the second message of the first message time, the notification message in order to indicate PCRF server to discharge the Session Resources corresponding with AF entity is sent to PCRF server, further, the Session Resources that the release of AF entity is corresponding with PCRF server.
In the method that the embodiment of the present invention provides, when determining to need to detect session status, session status between AF entity detection and PCRF server, the reply of PCRF server is not received in Preset Time, the Session Resources that the release of notice PCRF server is corresponding with AF entity, the Session Resources that release is corresponding with PCRF server simultaneously, under ensureing abnormal conditions, the Session Resources of AF entity and PCRF server can discharge in time, improve the consistency of session status between AF entity and PCRF server, the mode notified with TCP chain rupture timer and AVP in prior art is compared, no matter be session testing process or resource dispose procedure, do not need additionally to increase message flow, realize simple, and avoid Session Resources to be tangled, system cannot provide service.
Wherein, Rx interface abnormal conditions, comprising: the conversation end message such as TCP link instability, STR or ASR to occur on situation, the TCP link such as packet loss, wrong bag that the overtime and Rx interface relevant device of transmission of messages breaks down, restart, main process equipment falls the situations such as machine.
It should be noted that, the session status detection method that the embodiment of the present invention provides is based on following principle:
(1) follow the agreement that Rx interface is relevant, agreement is supplemented;
(2) ensure that Rx interface relevant device Session Resources can discharge in time, completely;
(3) on the basis ensureing device resource release, user awareness is promoted;
(4) accomplish that method is general, particular/special requirement is not done to Rx interface relevant device.
As comparatively specific embodiment, as shown in Figure 2, detect the process of session status releasing session resource in AF entity 20 side, comprising:
Step 202, AF entity 20 detects session status timer expiry, also namely AF entity 20 is determined to need to detect session status, AF entity 20 sends Diameter AAR message to PCRF server 21 side, to detect the session status of PCRF server 21, AF entity 20 starts the timer that wait PCRF server 21 replys Diameter AAA message simultaneously.
Step 204, AF entity 20 waits for that PCRF server 21 replys Diameter AAA message time-out, then AF entity 20 is attempted sending Diameter STR message to PCRF server 21, notice PCRF server 21 releasing session resource, AF entity 20 waits for that PCRF server 21 replys Diameter STA message simultaneously, but it should be noted that, due to now may exception be there is, such as: equipment fault, restart, network failure, Peer chain chain rupture etc., therefore, no matter whether AF entity 20 receives the Diameter STA message that PCRF server 21 is replied, AF entity 20 all discharges self Session Resources.
Certainly, it should be noted that, in a kind of possible execution mode, in the method that the embodiment of the present invention provides, also comprise: when AF entity 20 receives the second message of PCRF server 21 reply within the waiting time of presetting, AF entity 20 is determined with the session status of PCRF server 21 normal.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, before AF entity determines to need to detect session status, also comprise: AF entity obtains the interval duration detecting session status; The session connection duration of AF entity statistics and PCRF server; AF entity is determined to need to detect session status, be specially: when AF entity determination session connection duration is less than the interval duration detecting session status, and session connection duration and the difference of interval duration that detects session status are when being less than predetermined threshold value, determine to need to detect session status.
During concrete enforcement, obtain the interval duration detecting session status, the session connection duration of AF entity statistics and PCRF server, in order to prevent AF entity and PCRF server time-out simultaneously, or to cause session status to notify abnormal due to Network Transmission Delays, then AF entity when the session connection duration of current statistic is less than the interval duration detecting session status, can send the first message detecting session status.Preferably, predetermined threshold value can be specified voluntarily or use default setting, such as: when the interval duration detecting session status is 30 minutes, predetermined threshold value can be set to 90 seconds.
Certainly, it should be noted that, AF entity to PCRF server send detect session status the first message after, start and wait for that PCRF server replys the timer of the second message, the duration of this timer can be that AF entity is when sending the first message, detect the difference of the interval duration of session status and the session connection duration of current statistic, a preset duration that also can set separately.
As comparatively specific embodiment, session status can be used to detect timer determine to need to detect session status, according to RFC4028 agreement about more than 90% session duration be no more than 30 minutes, the timing length therefore session status being detected timer is about decided to be 30 minutes.In order to prevent AF entity and PCRF server time-out simultaneously, or due to Network Transmission Delays, causing session status to notify abnormal, advising detecting first 90 seconds of timer expiry at session status, sending the first message detecting session status.But in another embodiment when the interval duration detecting session status is more than or equal to 90 seconds, when being less than 180 seconds, preferably, send when session status detection timer is more than half the first message detecting session status.
In the specific implementation, after session establishment or session updates, AF entity when send detect session status the first message to ensure the consistency of session status, also namely AF entity obtains the interval duration detecting session status, can adopt following three kinds of execution modes.
Execution mode one, when the next-hop network equipment session of AF entity and PCRF server refresh consult successfully time, AF entity obtains the refresh duration that session refreshing is consulted from the session refreshing negotiate response message of next-hop network device replied, and AF entity is using the interval duration of this refresh duration as detection session status.
As comparatively specific embodiment, session establishment or after upgrading, AF entity can utilize the method for session initiation protocol (Session Initiation Protocol, SIP) session refreshing to realize the object of the first message timed sending and protection of resources.Adopt the session refreshing duration of SIP session refreshing negotiation as the interval duration detecting session status between AF entity and PCRF server, use this interval duration as the timing length detecting session status timer, timer expiry then AF entity is determined to need to detect session status.
Such as: in IMS network, according to 3GPP TS 24.229 and the RFC4028 agreement processing procedure about session refreshing, after terminal or equipment session refreshing negotiation complete, AF entity, i.e. Proxy Call Session Control Function (Proxy Call Session Control Function, P-CSCF) entity can get session refreshing duration from the sip message finally consulted, the session refreshing duration obtained is preserved the interval duration as detecting session status by AF entity, and with this interval duration for timer duration starts this timer, this interval duration is carried to PCRF server by the AVP expanded in AAR message simultaneously.PCRF server is preserved after getting this interval duration, and with this interval duration for timer duration starts another timer.When PCRF server does not receive AAR message yet before timer expiry, the Session Resources corresponding with AF entity can be released; When AF entity does not receive the AAA response message of PCRF server reply, also the Session Resources corresponding with PCRF server can be discharged.By the notice of AF entity and PCRF server bi-directional session state, ensure that equipment that Rx interface is relevant can releasing session resource in time when occurring abnormal.
During concrete enforcement, as shown in Figure 3, AF entity 30 obtains the interval duration detecting session status from the session refreshing negotiate response message of the next-hop network device replied of PCRF server 31, and will detect the concrete steps of the interval duration notice PCRF server of session status, comprising:
Step 302, AF entity 30 receives SIP session refreshing and consults request.
Step 304, AF entity 30 forwards SIP session refreshing and consults the next-hop network equipment of request to PCRF server.
Step 306, AF entity 30 receives the SIP session refreshing negotiate response of next-hop network device replied, obtains the refresh duration of negotiation from SIP session refreshing negotiate response, and using the refresh duration of this negotiation as the interval duration detecting session status.
Step 308, SIP session refreshing negotiate response is forwarded to network side down hop by AF entity 30.
Step 310, session refreshing is consulted successfully, AF entity 30 by the interval duration of the detection session status of preservation by carrying the DiameterAAR message informing PCRF server 31 of expansion session status timer (Session-State-Timer) AVP.
Step 312, PCRF server 31 preserves the interval duration of the detection session status carried in Diameter AAR message, and restarts detection session status timer according to this interval duration, and PCRF server 31 sends Diameter AAA message to AF entity 30 simultaneously; AF entity 30 receives the Diameter AAA message that PCRF server 31 is replied, and using the interval duration of detection session status preserved before as the duration of timer, restarts and detects session status timer.
Execution mode two, AF entity obtain pre-configured session status detect-message and send duration, and session status detect-message is sent duration as the interval duration detecting session status.
As comparatively specific embodiment, AF entity and PCRF server are not made an appointment session status detect-message interval duration, but obtain pre-configured session status detect-message transmission duration by AF entity, and session status detect-message is sent duration as the interval duration detecting session status, again by Diameter AAR message, bring PCRF server when session establishment, concrete steps as shown in Figure 4, comprising:
Step 402, AF entity 40 receives Session Description Protocol (Session Description Protocol, SDP) negotiation request message.
Step 404, AF entity 40 forwards the next-hop network equipment of SDP negotiation request message to PCRF server 41.
Step 406, AF entity 40 receives the SDP negotiation response message that next-hop network equipment sends, and determines media negotiation success.
Step 408, AF entity 40 structure comprises the Diameter AAR message of business information, notice PCRF server 41 session establishment.AF entity 40 obtains pre-configured session status detect-message and sends duration, and session status detect-message is sent duration as the interval duration detecting session status, and in DiameterAAR message, construct the Session-State-Timer AVP of an expansion, the interval duration detecting session status is added in this AVP.
Step 410, PCRF server 41 receives Diameter AAR message, obtain the interval duration detecting session status in expansion Session-State-Timer AVP, and start timer using this interval duration as the duration of timer, PCRF server replys Diameter AAA message simultaneously; After AF entity 40 receives Diameter AAA message, the timer of start detection session status.
Step 412, AF entity 40 forwards SDP negotiation and acknowledges message to network side down hop, determines session establishment.
Step 414, AF entity 40 is after detection session status timer expiry, AF entity 40 is to PCRF server 41 briefing conference speech phase, triggering session state-detection message, namely AF entity 40 sends DiameterAAR message to PCRF server 41, and is carried the interval duration of up-to-date detection session status by Session-State-Timer AVP in Diameter AAR message.
Step 416, PCRF server 41 receives Diameter AAR message, obtain the interval duration detecting session status in expansion Session-State-Timer AVP, and starting timer using the interval duration of this up-to-date detection session status as timer duration, PCRF server replys DiameterAAA message simultaneously; AF entity receives Diameter AAA message, restarts detect session status timer using the interval duration of up-to-date detection session status as timer duration.
It should be noted that, in this embodiment of the invention, the interval duration detecting session status can change, also namely by changing at each interval duration carrying up-to-date detection session status in the first message of session status that detects the interval duration that next time detects session status.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, the method also comprises: AF solid generation comprises the message of the interval duration detecting session status, and this message is sent to PCRF server, to notify that PCRF server detects the interval duration of session status; AF entity statistics and the session connection duration of PCRF server, be specially: AF entity receives PCRF server when sending the message being used to indicate and accepting the interval duration detecting session status, the session connection duration of AF entity statistics and PCRF server.
Execution mode three, AF entity using in advance and the session status detect-message of PCRF server commitment send duration as the interval duration detecting session status.
As comparatively specific embodiment, AF entity and PCRF server make an appointment session status detect-message send duration, AF entity using in advance and the session status detect-message of PCRF server commitment send duration as the interval duration detecting session status, in system operation, timer duration is constant, concrete steps as shown in Figure 5, comprising:
Step 502, in session establishment process, AF entity 50 using in advance and the PCRF server 51 session status detect-message of arranging send duration as the interval duration detecting session status, and start timer using the interval duration of this detection session status as timer duration, PCRF server 51 using in advance and the AF entity 50 session status detect-message of arranging send duration as the interval duration detecting session status.
Step 504, AF entity 50 is after detection session status timer expiry, and triggering session state-detection message, AF entity 50 is to PCRF server 51 briefing conference speech phase, and namely AF entity 50 sends DiameterAAR message to PCRF server 51.
Step 506, PCRF server 51 receives Diameter AAR message, and the interval duration of the detection session status of acquisition is restarted timer as the timing length of timer, and replys Diameter AAA message; AF entity 50 restarts timer after receiving Diameter AAA message.
Because AF entity 50 and PCRF server 51 pre-determine and the duration appointed in this execution mode, therefore, the interval duration that AF entity 50 and PCRF server 51 detect session status is all fixing duration, certainly also by this duration of local configuration change.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, before AF entity determines to need to detect session status, also comprise: when the next-hop network equipment session of AF entity and PCRF server is consulted successfully, AF solid generation Diameter AAR message, and this Diameter AAR message is sent to PCRF server, to notify that PCRF server session changes, AF entity preserves property value in this Diameter AAR message to the value of AVP and AVP; When AF entity receives the Diameter AAA message of PCRF server transmission, AF entity is determined to have changed with PCRF server session, and wherein, session changes to: session establishment or session updates.
In embodiments of the present invention, after session establishment or session updates, AF entity is needed to ensure the consistency of session status by sending the first message detecting session status.
As one comparatively specific embodiment, the first message is the Diameter AAR message that AF entity is preserved.It should be noted that, should set up with conversation initial in this Diameter AAR message or session last update time the Diameter AAR message that sends carry identical AVP.
When execution mode one, conversation initial are set up, the Diameter AAR message of preserving when AF entity is by sending session establishment ensures the consistency of session status, and concrete steps as shown in Figure 6, comprising:
Step 602, AF entity 60 receives SDP negotiation request message.
Step 604, AF entity 60 forwards the next-hop network equipment of SDP negotiation request message to PCRF server 61.
Step 606, AF entity 60 receives the SDP negotiation response message of the next-hop network device replied of PCRF server 61, determines media negotiation success.
Step 608, AF entity 60 structure comprises the Diameter AAR message of business information, and notice PCRF server 61 session establishment, AF entity 60 preserves the value of AVP and AVP in current Diameter AAR message, for sending the first message detecting session status.
Step 610, PCRF server 61 receives Diameter AAR message, set up access side session, PCRF server 61 preserves the value of AVP and AVP in the Diameter AAR message received, reply Diameter AAA message to AF entity 60 simultaneously, PCRF server preserves Diameter AAA message, for second message of follow-up transmission in response to the first message.
Step 612, after AF entity 60 receives Diameter AAA message, forwards SDP negotiation response message to network side down hop, session establishment.
Step 614, after session establishment, AF entity 60 is determined to need to detect session status, and the Diameter AAR message of preserving when AF entity 60 sends session establishment is to PCRF server 61.
Step 616, after PCRF server 61 receives Diameter AAR message, the value of AVP and AVP in contrast Diameter AAR message, if all do not changed, confirm that business information does not change, as the first Message Processing detecting session status, and the Diameter AAA message of preserving when sending session establishment is to AF entity 60; AF entity receives Diameter AAA message, determines that session status is normal.
After execution mode two, session establishment, may there is repeatedly the process of session updates, therefore, after session updates, the first message detecting session status should use Diameter AAR message and the Diameter AAA message of the last change.Specifically, during session updates, AF entity ensures the consistency of session status by sending the last Diameter AAR message changed, concrete steps as shown in Figure 7, comprising:
Step 702, after session establishment, AF entity 70 receives SDP negotiation request message.
Step 704, AF entity 70 forwards the next-hop network equipment of SDP negotiation request message to PCRF server 71.
Step 706, AF entity 70 receives the SDP negotiation response message of the next-hop network device replied of PCRF server 71.
Step 708, AF entity 70 structure comprises the Diameter AAR message of business information, and the session of notice PCRF server 71 is changed, and AF entity 70 preserves the value of AVP and AVP in current Diameter AAR message, for sending the first message detecting session status.
Step 710, PCRF server 71 receives Diameter AAR message, upgrade business information, PCRF server 71 preserves the value of AVP and AVP in the Diameter AAR message received, reply Diameter AAA message to AF entity 70 simultaneously, PCRF server preserves Diameter AAA message, for second message of follow-up transmission in response to the first message.
Step 712, after AF entity 70 receives Diameter AAA message, forward SDP negotiation response message to network side down hop, session has been changed.
Step 714, after session is changed, AF entity 70 is determined to need to detect session status, and AF entity 70 sends the Diameter AAR message of preservation when session is changed to PCRF server 71.
Step 716, after PCRF server 71 receives Diameter AAR message, the value of AVP and AVP in contrast Diameter AAR message, if all do not changed, confirm that business information does not change, as the first Message Processing detecting session status, and the Diameter AAA message of preserving when sending session change is to AF entity 70; AF entity receives Diameter AAA message, and session status is normal.
It should be noted that, after PCRF server receives the Diameter AAR message of AF entity transmission, the Diameter AAR message of the Diameter AAR message received and preservation is contrasted, the value of AVP and AVP in contrast Diameter AAR message, if all do not changed, confirm that business information does not change, as the first Message Processing detecting session status, if there is change in the value of AVP and AVP in Diameter AAR message, then as the Message Processing that AF entity notice PCRF server session changes, preserve the up-to-date Diameter AAR message received, to contrast when again receiving Diameter AAR message.
As another comparatively specific embodiment, the first message is the Diameter AAR message only comprising essential AVP.
When execution mode one, conversation initial are set up, AF entity ensures the consistency of session status by sending the Diameter AAR message only comprising essential AVP, concrete steps as shown in Figure 8, comprising:
Step 802, after session establishment, triggering session state-detection, also namely AF entity 80 is determined to need to detect session status, then AF entity 80 sends Diameter AAR message to PCRF server 81, wherein, only comprises essential AVP in Diameter AAR message.
Step 804, after PCRF server 81 receives Diameter AAR message, judge that Diameter AAR message only comprises essential AVP, then PCRF server 81 is using this Diameter AAR message as the first Message Processing detecting session status, and the Diameter AAA message of preserving when sending session establishment is to AF entity 80; AF entity 80 receives Diameter AAA message, determines that session status is normal.
After execution mode two, session establishment, the process of session updates may be there is repeatedly, specifically, during session updates, AF entity ensures the consistency of session status by sending the Diameter AAR message only comprising essential AVP, concrete steps as shown in Figure 9, comprising:
Step 902, after session establishment also upgrades, triggering session state-detection, AF entity 90 is determined to need to detect session status, then AF entity 90 sends Diameter AAR message to PCRF server 91, wherein, only comprises essential AVP in Diameter AAR message.
Step 904, after PCRF server 91 receives Diameter AAR message, judge that Diameter AAR message only comprises essential AVP, then PCRF server 91 is using this Diameter AAR message as the first Message Processing detecting session status, sends the Diameter AAA message of preservation when session is changed to AF entity 90; AF entity 90 receives Diameter AAA message, determines that session status is normal.
It should be noted that, the value that in Diameter AAR message, essential AVP carries is followed protocol requirement and is filled in, and is specially:
<AA-Request>::=<Diameter Header:265,REQ,PXY>
<Session-Id>
{Origin-Host}
{Origin-Realm}
{Destination-Realm}
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, also comprise: when AF entity receives the Diameter ASR message of PCRF server transmission, the Session Resources that the release of AF entity is corresponding with PCRF server, and send Diameter ASA message to PCRF server.
In the specific implementation, AF entity receives the Diameter ASR message that PCRF server sends, the Session Resources that then release of AF entity is corresponding with PCRF server, and send Diameter ASA message to PCRF server, by AF entity and the two-way detection session status of PCRF server, improve the consistency of session status between AF entity and PCRF server.
At PCRF server side, a kind of session status detection method that the embodiment of the present invention provides, as shown in Figure 10, comprising:
Step 1002, whether PCRF monitoring server receives the first message for detecting session status that AF entity sends;
Step 1004, when PCRF server does not receive the first message of AF entity transmission in preset duration, PCRF server sends the notification message in order to indicate AF entity to discharge the Session Resources corresponding with PCRF server to AF entity, further, the Session Resources that the release of PCRF server is corresponding with AF entity.
In the method that the embodiment of the present invention provides, when PCRF server does not receive the message of the detection session status that AF entity sends in preset duration, the Session Resources that the release of notice AF entity is corresponding with PCRF server, the Session Resources that release is corresponding with AF entity simultaneously, under ensureing abnormal conditions, the Session Resources of AF entity and PCRF server can discharge in time, improve the consistency of session status between AF entity and PCRF server, the mode notified with TCP chain rupture timer and AVP in prior art is compared, no matter be session testing process or resource dispose procedure, do not need additionally to increase message flow, realize simple, and avoid Session Resources to be tangled, system cannot provide service.
As comparatively specific embodiment, as shown in figure 11, detect the process of session status releasing session resource at PCRF server side, comprising:
Step 112, after session establishment, the detection session status timer expiry of PCRF server 111, PCRF server 111 does not receive the first message for detecting session status that AF entity 110 sends, namely in preset duration, do not receive the Diameter AAR message for detecting session status, PCRF server 111 is attempted sending Diameter ASR message informing AF entity 110 and is discharged the Session Resources corresponding with PCRF server, and PCRF server 111 starts the timer waiting for Diameter ASA message.
Step 114, after AF entity 110 receives Diameter ASR message, discharges the Session Resources corresponding with PCRF and replys Diameter ASA message, and PCRF server 111 discharges the Session Resources corresponding with AF entity after receiving Diameter ASA message.But it should be noted that, due to now may exception be there is, such as: equipment fault, restart, network failure, Peer chain chain rupture etc., therefore, if PCRF server 111 waits for the timer expiry of Diameter ASA message, PCRF server 111 can direct releasing session resource.
Certainly, it should be noted that, when PCRF server 111 receives the first message of AF entity 110 transmission in preset duration, PCRF server replys the second message for responding the first message to AF entity, and PCRF server is determined with the session status of AF entity normal.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, PCRF monitoring server in preset duration, whether receive that AF entity sends for detect session status the first message before, also comprise: PCRF server obtains the interval duration detecting session status; The session connection duration of PCRF server statistics and AF entity; Whether PCRF monitoring server receives the first message for detecting session status that AF entity sends, be specially: equal to detect the interval duration of session status at the session connection duration of current statistic before, whether PCRF monitoring server receives the first message.
In the specific implementation, namely PCRF server to detect the timing length startup timer of interval duration as timer of session status, before timer expiry, also can monitor whether receive the first message in the interval duration detecting session status always.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, PCRF server obtains the interval duration detecting session status, be specially: PCRF server receives the message comprising the interval duration detecting session status that AF entity sends, and obtains the interval duration detecting session status from this message.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, the session connection duration of PCRF server statistics and AF entity, be specially: when PCRF server receive that AF entity sends comprise the message of interval duration detecting session status time, the session connection duration of PCRF server statistics and AF entity.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, after the session connection duration of PCRF server statistics and AF entity, the method also comprises: PCRF server sends the message being used to indicate and accepting the interval duration detecting session status to AF entity.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, PCRF server obtains and detects the interval duration of session status, is specially: PCRF server using in advance and the AF entity session status detect-message of arranging send duration as the interval duration detecting session status.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, PCRF monitoring server in preset duration, whether receive that AF entity sends for detect session status the first message before, also comprise: PCRF server receives the Diameter AAR message that AF entity sends, and PCRF server preserves the value of AVP and AVP in this Diameter AAR message; PCRF server sends Diameter AAA message to AF entity, PCRF server preserves the value of AVP and AVP in this Diameter AAA message, PCRF server is determined to have changed with the session of AF entity, and wherein, session changes to: session establishment or session updates.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, the second message is the Diameter AAA message that PCRF server is preserved.
Certainly, after it should be noted that session establishment, may exist and repeatedly upgrade, then the Diameter AAA message of preserving when the second message should be the last session updates.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, whether PCRF monitoring server receives the first message for detecting session status that AF entity sends, comprise: when PCRF server determines that the AVP in the Diameter AAR message of AVP and the PCRF server preservation in the message received in preset duration is consistent, and PCRF server is when determining that the value of the AVP in the message received in preset duration is consistent with the value of the AVP in the Diameter AAR message that PCRF server is preserved, PCRF server determines that the message received in preset duration is the first message for detecting session status, or when the message that PCRF server receives in preset duration is the Diameter AAR message only comprising essential AVP, PCRF server determines that the message received in preset duration is the first message for detecting session status.
In the specific implementation, PCRF server may receive the multiple messages that AF entity sends in the interval duration detecting session status, then whether PCRF monitoring server receives the first message for detecting session status that AF entity sends, the message to receiving then is needed to judge, specifically:
As a kind of comparatively concrete execution mode, when PCRF server determines that the AVP in the Diameter AAR message of AVP and the PCRF server preservation in the message received in preset duration is consistent, and PCRF server is when determining that the value of the AVP in the message received in preset duration is consistent with the value of the AVP in the Diameter AAR message that PCRF server is preserved, PCRF server determines that the message received in preset duration is the first message for detecting session status, otherwise PCRF server determines that the message received in preset duration is not the first message for detecting session status.
As the execution mode that another is comparatively concrete, when the message that PCRF server receives in preset duration is the Diameter AAR message only comprising essential AVP, PCRF server determines that the message received in preset duration is the first message for detecting session status, otherwise PCRF server determines that the message received in preset duration is not the first message for detecting session status.
In a kind of possible execution mode, in the method that the embodiment of the present invention provides, also comprise: when PCRF server receives the Diameter STR message of AF entity transmission, discharge the Session Resources corresponding with AF entity, and send Diameter STA message to AF entity.
In the specific implementation, PCRF server receives the Diameter STR message that AF entity sends, the Session Resources that then release of PCRF server is corresponding with AF entity, and send Diameter STA message to AF entity, by AF entity and the two-way detection session status of PCRF server, improve the consistency of AF entity and PCRF server session state.
A kind of session status checkout gear that the embodiment of the present invention provides, as shown in figure 12, comprising: detecting unit 1202, for when determining to need to detect session status, sending the first message for detecting session status to strategy and charging rule functions PCRF server; Processing unit 1204, be connected to detecting unit 1202, for when do not receive in the waiting time of presetting that PCRF server replys for responding the second message of the first message time, the notification message in order to indicate PCRF server to discharge the Session Resources corresponding with the application function AF entity at this device place is sent to PCRF server, further, the Session Resources that release is corresponding with PCRF server.
In the device that the embodiment of the present invention provides, when determining to need to detect session status, detect the session status between PCRF server, the reply of PCRF server is not received in Preset Time, the Session Resources that the release of notice PCRF server is corresponding with the application function AF entity at this device place, the Session Resources that release is corresponding with PCRF server simultaneously, under ensureing abnormal conditions, the application function AF entity at this device place and the Session Resources of PCRF server can discharge in time, improve the consistency of session status between the application function AF entity at this device place and PCRF server, the mode notified with TCP chain rupture timer and AVP in prior art is compared, no matter be session testing process or resource dispose procedure, do not need additionally to increase message flow, realize simple, and avoid Session Resources to be tangled, system cannot provide service.
Wherein, this device can be the part in application function AF entity, also can be application function AF entity.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, processing unit 1204, also for: when preset waiting time in receive PCRF server reply the second message time, determine with the session status of PCRF server normal.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, also comprise: acquiring unit 1206, be connected to detecting unit 1202, for obtaining the interval duration detecting session status; Statistic unit 1208, is connected to detecting unit 1202, for adding up the session connection duration with PCRF server; Detecting unit 1202 is determined to need to detect session status, be specially: when determining that session connection duration is less than the interval duration detecting session status, and session connection duration and the difference of interval duration that detects session status are when being less than predetermined threshold value, determine to need to detect session status.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, acquiring unit 1206 specifically for: when the application function AF entity at this device place and the next-hop network equipment session of PCRF server refresh consult successfully time, the refresh duration that session refreshing is consulted is obtained, using this refresh duration as the interval duration detecting session status from the session refreshing negotiate response message of next-hop network device replied; Or obtain pre-configured session status detect-message and send duration, and session status detect-message is sent duration as the interval duration detecting session status.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, detecting unit 1202 also for: generate the message of interval duration comprising and detect session status, and this message be sent to PCRF server, to notify that PCRF server detects the interval duration of session status; Statistic unit 1208 specifically for: when receiving PCRF server and sending the message of interval duration being used to indicate and accepting to detect session status, the session connection duration of statistics and PCRF server.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, acquiring unit 1206 specifically for: using in advance and the session status detect-message of PCRF server commitment send duration as the interval duration detecting session status.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, processing unit 1204 also for: when the application function AF entity at this device place and the next-hop network equipment session of PCRF server are consulted successfully, generate Diameter AAR message, and this Diameter AAR message is sent to PCRF server, to notify that PCRF server session changes, and the property value preserved in this Diameter AAR message is to the value of AVP and AVP; And when receiving the DiameterAAA message that PCRF server sends, determine to have changed with PCRF server session, wherein, session changes to: session establishment or session updates.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, the first message is the Diameter AAR message that processing unit 1204 is preserved.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, the first message is the Diameter AAR message only comprising essential AVP.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, processing unit 1204 also for: when receive PCRF server send Diameter ASR message time, discharge the Session Resources corresponding with PCRF server, and send Diameter ASA message to PCRF server.
In embodiments of the present invention, detecting unit 1202 and processing unit 1204 can use and comprise information and send and the single-chip microcomputer of receiving function or CPU processor etc., and acquiring unit 1206 can use signal processor, and statistic unit 1208 can use timer.
A kind of session status checkout gear that the embodiment of the present invention provides, as shown in figure 13, comprising: monitoring means 1302, for monitoring the first message for detecting session status whether receiving AF entity and send; Processing unit 1304, be connected to monitoring means 1302, for do not receive in preset duration when monitoring means 1302 AF entity send the first message time, the notification message in order to indicate AF entity to discharge the Session Resources corresponding with the strategy at this device place and charging rule functions PCRF server is sent to AF entity, further, the Session Resources that release is corresponding with AF entity.
In the device that the embodiment of the present invention provides, when not receiving the message of the detection session status that AF entity sends in Preset Time, the Session Resources that the release of notice AF entity is corresponding with the PCRF server at this device place, the Session Resources that release is corresponding with AF entity simultaneously, under ensureing abnormal conditions, the Session Resources of the PCRF server at AF entity and this device place can discharge in time, the consistency of session status between the PCRF server that improve AF entity and this device place, the mode notified with TCP chain rupture timer and AVP in prior art is compared, no matter be session testing process or resource dispose procedure, do not need additionally to increase message flow, realize simple, and avoid Session Resources to be tangled, system cannot provide service.
Wherein, this device can be strategy and the part in charging rule functions PCRF server, also can be strategy and charging rule functions PCRF server.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, processing unit 1304 also for: when monitoring means 1302 receive in preset duration AF entity send the first message time, replying the second message for responding the first message to AF entity, determining with the session status of AF entity normal.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, also comprise: acquiring unit 1306, be connected to processing unit 1304 and acquiring unit 1306, for obtaining the interval duration detecting session status; Statistic unit 1308, is connected to processing unit 1304, for adding up the session connection duration with AF entity; Monitoring means 1302, specifically for: equal the interval duration of detection session status at the session connection duration of current statistic before, whether monitoring receives the first message.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, acquiring unit 1306 specifically for: receive the message comprising the interval duration detecting session status that AF entity sends, from this message, obtain the interval duration detecting session status.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, statistic unit 1308 specifically for: when acquiring unit 1306 receive that AF entity sends comprise the message of interval duration detecting session status time, the session connection duration of statistics and AF entity.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, processing unit 1304 also for: statistic unit 1308 add up with the session connection duration of AF entity after, send the message being used to indicate and accepting the interval duration detecting session status to AF entity.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, acquiring unit 1306 specifically for: using in advance and the AF entity session status detect-message of arranging send duration as the interval duration detecting session status.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, processing unit 1304 also for: receive the Diameter AAR message that AF entity sends, and preserve the value of AVP and AVP in this Diameter AAR message; And processing unit 1304 sends Diameter AAA message to AF entity, preserve the value of AVP and AVP in this Diameter AAA message, determine to have changed with the session of AF entity, wherein, session changes to: session establishment or session updates.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, the second message is the Diameter AAA message that processing unit 1304 is preserved.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, monitoring means 1302 specifically for: when the AVP in the message determining to receive in preset duration is consistent with the AVP in the Diameter AAR message that processing unit 1304 is preserved, and when determining that the value of the AVP in the message received in preset duration is consistent with the value of the AVP in the Diameter AAR message that processing unit 1304 is preserved, monitoring means 1302 determines that the message received in preset duration is the first message for detecting session status; Or when the message determining to receive in preset duration is the Diameter AAR message only comprising essential AVP, monitoring means 1302 determines that the message received in preset duration is the first message for detecting session status.
In a kind of possible execution mode, in the device that the embodiment of the present invention provides, processing unit 1304 also for: when receive AF entity send Diameter STR message time, discharge the Session Resources corresponding with AF entity, and send Diameter STA message to AF entity.
In embodiments of the present invention, monitoring means 1302 and processing unit 1304 can use and comprise information and send and the single-chip microcomputer of receiving function or CPU processor etc., acquiring unit 1306 can use the receiver or receiver with signal handling capacity, and statistic unit 1308 can use timer.
Embodiments provide a kind of session status detection method and device, when determining to need to detect session status, detect the session status between AF entity and PCRF server, under ensureing abnormal conditions, the Session Resources of AF entity and PCRF server can discharge in time, improve the consistency of session status between AF entity and PCRF server, and avoid Session Resources to be tangled, system cannot provide service.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (42)

1. a session status detection method, is characterized in that, comprising:
When application function AF entity is determined to need to detect session status, send the first message for detecting session status to strategy and charging rule functions PCRF server;
When described AF entity within the waiting time of presetting, do not receive that described PCRF server replys for responding the second message of described first message time, the notification message in order to indicate described PCRF server to discharge the Session Resources corresponding with described AF entity is sent to described PCRF server, further, the Session Resources that described AF entity release is corresponding with described PCRF server.
2. method according to claim 1, is characterized in that, also comprises:
When described AF entity receives the second message of described PCRF server reply within the waiting time of presetting, described AF entity is determined with the session status of described PCRF server normal.
3. method according to claim 1, is characterized in that, before described AF entity determines to need to detect session status, also comprises:
Described AF entity obtains the interval duration detecting session status;
The session connection duration of described AF entity statistics and described PCRF server;
Described AF entity is determined to need to detect session status, is specially:
When described AF entity determines that described session connection duration is less than the interval duration of described detection session status, and when the difference of the interval duration of described session connection duration and described detection session status is less than predetermined threshold value, determine to need to detect session status.
4. method according to claim 3, is characterized in that, described AF entity obtains the interval duration detecting session status, is specially:
When the next-hop network equipment session of described AF entity and described PCRF server refresh consult successfully time, described AF entity obtains the refresh duration that session refreshing is consulted from the session refreshing negotiate response message of described next-hop network device replied, and described AF entity is using the interval duration of this refresh duration as described detection session status; Or
Described AF entity obtains pre-configured session status detect-message and sends duration, and described session status detect-message is sent the interval duration of duration as described detection session status.
5. method according to claim 4, is characterized in that, the method also comprises:
Described AF solid generation comprises the message of the interval duration of described detection session status, and this message is sent to described PCRF server, to notify that described PCRF server detects the interval duration of session status;
Described AF entity statistics and the session connection duration of described PCRF server, be specially:
Described AF entity receives described PCRF server and sends when being used to indicate the message of the interval duration accepting described detection session status, the session connection duration of described AF entity statistics and described PCRF server.
6. method according to claim 3, is characterized in that, described AF entity obtains the interval duration detecting session status, is specially:
Described AF entity using in advance and the session status detect-message of described PCRF server commitment send the interval duration of duration as described detection session status.
7. method according to claim 1, is characterized in that, before described AF entity determines to need to detect session status, also comprises:
When the next-hop network equipment session of described AF entity and described PCRF server is consulted successfully, described AF solid generation Diameter authentication authorization request AAR message, and this Diameter AAR message is sent to described PCRF server, to notify that described PCRF server session changes, described AF entity preserves property value in this Diameter AAR message to the value of AVP and AVP;
When described AF entity receives the Diameter Certificate Authority response AAA message of described PCRF server transmission, described AF entity is determined to have changed with described PCRF server session, and wherein, described session changes to: session establishment or session updates.
8. method according to claim 7, is characterized in that,
Described first message is the Diameter AAR message that described AF entity is preserved.
9. method according to claim 1, is characterized in that,
Described first message is the Diameter AAR message only comprising essential AVP.
10. the method according to any one of claim 1-9, is characterized in that, also comprises:
When the Diameter that described AF entity receives the transmission of described PCRF server interrupts session request ASR message, the Session Resources that described AF entity release is corresponding with described PCRF server, and send Diameter interruption conversational response ASA message to described PCRF server.
11. 1 kinds of session status detection methods, is characterized in that, comprising:
Whether PCRF monitoring server receives the first message for detecting session status that AF entity sends;
When described PCRF server does not receive described first message of described AF entity transmission in preset duration, described PCRF server sends the notification message in order to indicate described AF entity to discharge the Session Resources corresponding with described PCRF server to described AF entity, further, the Session Resources that described PCRF server release is corresponding with described AF entity.
12. methods according to claim 11, is characterized in that, also comprise:
When described PCRF server receives described first message of described AF entity transmission in preset duration, described PCRF server replys the second message for responding described first message to described AF entity, and described PCRF server is determined with the session status of described AF entity normal.
13. methods according to claim 11, is characterized in that, described PCRF monitoring server in preset duration, whether receive that AF entity sends for detect session status the first message before, also comprise:
Described PCRF server obtains the interval duration detecting session status;
The session connection duration of described PCRF server statistics and described AF entity;
Whether described PCRF monitoring server receives the first message for detecting session status that AF entity sends, and is specially:
Equal the interval duration of described detection session status at the session connection duration of current statistic before, whether described PCRF monitoring server receives described first message.
14. methods according to claim 13, is characterized in that, described PCRF server obtains the interval duration detecting session status, is specially:
Described PCRF server receives the message comprising the interval duration detecting session status that described AF entity sends, and obtains the interval duration detecting session status from this message.
15. methods according to claim 14, is characterized in that, the session connection duration of described PCRF server statistics and described AF entity, is specially:
When described PCRF server receive that described AF entity sends comprise the message of interval duration detecting session status time, the session connection duration of described PCRF server statistics and described AF entity.
16. methods according to claim 15, is characterized in that, after the session connection duration of described PCRF server statistics and described AF entity, the method also comprises:
Described PCRF server sends the message being used to indicate the interval duration accepting described detection session status to described AF entity.
17. methods according to claim 13, is characterized in that, described PCRF server obtains the interval duration detecting session status, is specially:
Described PCRF server using in advance and the described AF entity session status detect-message of arranging send the interval duration of duration as described detection session status.
18. methods according to claim 11, is characterized in that, described PCRF monitoring server in preset duration, whether receive that AF entity sends for detect session status the first message before, also comprise:
Described PCRF server receives the Diameter AAR message that described AF entity sends, and described PCRF server preserves the value of AVP and AVP in this Diameter AAR message;
Described PCRF server sends Diameter AAA message to described AF entity, described PCRF server preserves the value of AVP and AVP in this Diameter AAA message, described PCRF server is determined to have changed with the session of described AF entity, wherein, described session changes to: session establishment or session updates.
19. methods according to claim 18, is characterized in that, described second message is the Diameter AAA message that described PCRF server is preserved.
20. methods according to claim 18, is characterized in that, whether described PCRF monitoring server receives the first message for detecting session status that AF entity sends, and comprising:
The AVP determined in the message received in preset duration when described PCRF server is consistent with the AVP in the Diameter AAR message that described PCRF server is preserved, and described PCRF server is when determining that the value of the AVP in the message received in described preset duration is consistent with the value of the AVP in the Diameter AAR message that described PCRF server is preserved, described PCRF server determines that the message received in described preset duration is the first message for detecting session status; Or
When the message that described PCRF server receives in described preset duration is the Diameter AAR message only comprising essential AVP, described PCRF server determines that the message received in described preset duration is the first message for detecting session status.
21. methods according to any one of claim 11-20, is characterized in that, also comprise:
When described PCRF server receives the Diameter session termination request STR message of described AF entity transmission, discharge the Session Resources corresponding with described AF entity, and send Diameter STA session termination response message to described AF entity.
22. 1 kinds of session status checkout gears, is characterized in that, comprising:
Detecting unit, for when determining to need to detect session status, sends the first message for detecting session status to strategy and charging rule functions PCRF server;
Processing unit, be connected to described detecting unit, for when do not receive in the waiting time of presetting that described PCRF server replys for responding the second message of described first message time, the notification message in order to indicate described PCRF server to discharge the Session Resources corresponding with the application function AF entity at described device place is sent to described PCRF server, further, the Session Resources that release is corresponding with described PCRF server.
23. devices according to claim 22, is characterized in that, described processing unit, also for:
When receiving the second message that described PCRF server is replied in the waiting time of presetting, determine with the session status of described PCRF server normal.
24. devices according to claim 22, is characterized in that, also comprise:
Acquiring unit, is connected to described detecting unit, for obtaining the interval duration detecting session status;
Statistic unit, is connected to described detecting unit, for adding up the session connection duration with described PCRF server;
Described detecting unit is determined to need to detect session status, is specially:
When determining that described session connection duration is less than the interval duration of described detection session status, and when the difference of the interval duration of described session connection duration and described detection session status is less than predetermined threshold value, determine to need to detect session status.
25. devices according to claim 24, is characterized in that, described acquiring unit specifically for:
When the application function AF entity at described device place and the next-hop network equipment session of described PCRF server refresh consult successfully time, the refresh duration that session refreshing is consulted is obtained, using the interval duration of this refresh duration as described detection session status from the session refreshing negotiate response message of described next-hop network device replied; Or
Obtain pre-configured session status detect-message and send duration, and described session status detect-message is sent the interval duration of duration as described detection session status.
26. devices according to claim 25, is characterized in that, described detecting unit also for:
Generate the message comprising the interval duration of described detection session status, and this message is sent to described PCRF server, to notify that described PCRF server detects the interval duration of session status;
Described statistic unit specifically for:
When receiving the transmission of described PCRF server and being used to indicate the message of the interval duration accepting described detection session status, the session connection duration of statistics and described PCRF server.
27. devices according to claim 24, is characterized in that, described acquiring unit specifically for:
Using in advance and the session status detect-message of described PCRF server commitment send the interval duration of duration as described detection session status.
28. devices according to claim 22, is characterized in that, described processing unit also for:
When the next-hop network equipment session of the application function AF entity at described device place and described PCRF server is consulted successfully, generate Diameter AAR message, and this Diameter AAR message is sent to described PCRF server, to notify that described PCRF server session changes, and the property value preserved in this DiameterAAR message is to the value of AVP and AVP; And
When receiving the Diameter AAA message that described PCRF server sends, determine to have changed with described PCRF server session, wherein, described session changes to: session establishment or session updates.
29. devices according to claim 28, is characterized in that,
Described first message is the Diameter AAR message that described processing unit is preserved.
30. devices according to claim 22, is characterized in that,
Described first message is the Diameter AAR message only comprising essential AVP.
31. devices according to any one of claim 22-30, is characterized in that, described processing unit also for:
When receiving the Diameter ASR message that described PCRF server sends, discharge the Session Resources corresponding with described PCRF server, and send Diameter ASA message to described PCRF server.
32. 1 kinds of session status checkout gears, is characterized in that, comprising:
Monitoring means, for monitoring the first message for detecting session status whether receiving AF entity and send;
Processing unit, be connected to described monitoring means, for do not receive in preset duration when described monitoring means described AF entity send described first message time, the notification message in order to indicate described AF entity to discharge the Session Resources corresponding with the strategy at described device place and charging rule functions PCRF server is sent to described AF entity, further, the Session Resources that release is corresponding with described AF entity.
33. devices according to claim 32, is characterized in that, described processing unit also for:
When described monitoring means receives described first message of described AF entity transmission in preset duration, replying the second message for responding described first message to described AF entity, determining with the session status of described AF entity normal.
34. devices according to claim 32, is characterized in that, also comprise:
Acquiring unit, is connected to described processing unit, for obtaining the interval duration detecting session status;
Statistic unit, is connected to described processing unit and described acquiring unit, for adding up the session connection duration with described AF entity;
Described monitoring means, specifically for:
Equal the interval duration of described detection session status at the session connection duration of current statistic before, whether monitoring receives described first message.
35. devices according to claim 34, is characterized in that, described acquiring unit specifically for:
Receive the message comprising the interval duration detecting session status that described AF entity sends, from this message, obtain the interval duration detecting session status.
36. devices according to claim 35, is characterized in that, described statistic unit specifically for:
When described acquiring unit receive that described AF entity sends comprise the message of interval duration detecting session status time, the session connection duration of statistics and described AF entity.
37. devices according to claim 36, it is characterized in that, described processing unit also for: after the session connection duration of described statistic unit statistics and described AF entity, send the message being used to indicate the interval duration accepting described detection session status to described AF entity.
38. devices according to claim 34, is characterized in that, described acquiring unit specifically for:
Using in advance and the described AF entity session status detect-message of arranging send the interval duration of duration as described detection session status.
39. devices according to claim 32, is characterized in that, described processing unit also for:
Receive the Diameter AAR message that described AF entity sends, and preserve the value of AVP and AVP in this Diameter AAR message; And
Described processing unit sends Diameter AAA message to described AF entity, and preserve the value of AVP and AVP in this DiameterAAA message, determine to have changed with the session of described AF entity, wherein, described session changes to: session establishment or session updates.
40., according to device according to claim 39, is characterized in that, described second message is the Diameter AAA message that described processing unit is preserved.
41., according to device according to claim 39, is characterized in that, described monitoring means specifically for:
When the AVP in the message determining to receive in preset duration is consistent with the AVP in the Diameter AAR message that described processing unit is preserved, and when determining that the value of the AVP in the message received in described preset duration is consistent with the value of the AVP in the Diameter AAR message that described processing unit is preserved, described monitoring means determines that the message received in described preset duration is the first message for detecting session status; Or
When the message determining to receive in described preset duration is the Diameter AAR message only comprising essential AVP, described monitoring means determines that the message received in described preset duration is the first message for detecting session status.
42. devices according to any one of claim 32-41, is characterized in that, described processing unit also for:
When receiving the Diameter STR message that described AF entity sends, discharge the Session Resources corresponding with described AF entity, and send Diameter STA message to described AF entity.
CN201410590010.5A 2014-10-28 2014-10-28 Session state detection method and device Pending CN104468506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410590010.5A CN104468506A (en) 2014-10-28 2014-10-28 Session state detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410590010.5A CN104468506A (en) 2014-10-28 2014-10-28 Session state detection method and device

Publications (1)

Publication Number Publication Date
CN104468506A true CN104468506A (en) 2015-03-25

Family

ID=52913878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410590010.5A Pending CN104468506A (en) 2014-10-28 2014-10-28 Session state detection method and device

Country Status (1)

Country Link
CN (1) CN104468506A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106304413A (en) * 2015-05-26 2017-01-04 成都鼎桥通信技术有限公司 A kind of delet method of RX interface session
CN107092526A (en) * 2016-11-02 2017-08-25 北京小度信息科技有限公司 Task processing method and device
CN107800543A (en) * 2016-08-29 2018-03-13 中兴通讯股份有限公司 A kind of setting of media negotiation state, extracting method and device
CN108234406A (en) * 2016-12-15 2018-06-29 中兴通讯股份有限公司 A kind of methods, devices and systems of resource management
CN108289079A (en) * 2017-01-09 2018-07-17 大唐移动通信设备有限公司 A kind of method and device of session refreshing duration control
CN109040127A (en) * 2018-09-18 2018-12-18 中国人民解放军战略支援部队信息工程大学 The detection device and method of Diameter flood attack
CN110213356A (en) * 2019-05-21 2019-09-06 深圳壹账通智能科技有限公司 A kind of login process method and relevant device based on data processing
CN110768816A (en) * 2018-07-27 2020-02-07 成都鼎桥通信技术有限公司 Multimedia service exception protection method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756256A (en) * 2004-09-30 2006-04-05 华为技术有限公司 Method for processing fork service
CN101137104A (en) * 2006-08-28 2008-03-05 华为技术有限公司 Method and system for implementing resource release
EP2621201A1 (en) * 2010-10-20 2013-07-31 ZTE Corporation Method and system for supporting multiple time zones in ims and charging method and system
CN103685286A (en) * 2013-12-18 2014-03-26 大唐移动通信设备有限公司 Method and device for releasing session resources

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1756256A (en) * 2004-09-30 2006-04-05 华为技术有限公司 Method for processing fork service
CN101137104A (en) * 2006-08-28 2008-03-05 华为技术有限公司 Method and system for implementing resource release
EP2621201A1 (en) * 2010-10-20 2013-07-31 ZTE Corporation Method and system for supporting multiple time zones in ims and charging method and system
CN103685286A (en) * 2013-12-18 2014-03-26 大唐移动通信设备有限公司 Method and device for releasing session resources

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106304413B (en) * 2015-05-26 2019-10-22 成都鼎桥通信技术有限公司 A kind of delet method of RX interface session
CN106304413A (en) * 2015-05-26 2017-01-04 成都鼎桥通信技术有限公司 A kind of delet method of RX interface session
CN107800543A (en) * 2016-08-29 2018-03-13 中兴通讯股份有限公司 A kind of setting of media negotiation state, extracting method and device
CN107092526A (en) * 2016-11-02 2017-08-25 北京小度信息科技有限公司 Task processing method and device
CN108234406A (en) * 2016-12-15 2018-06-29 中兴通讯股份有限公司 A kind of methods, devices and systems of resource management
EP3557832A4 (en) * 2016-12-15 2020-07-15 ZTE Corporation Resource management method, device and system, and computer storage medium
CN108289079B (en) * 2017-01-09 2020-07-10 大唐移动通信设备有限公司 Method and device for controlling session refreshing time length
CN108289079A (en) * 2017-01-09 2018-07-17 大唐移动通信设备有限公司 A kind of method and device of session refreshing duration control
CN110768816A (en) * 2018-07-27 2020-02-07 成都鼎桥通信技术有限公司 Multimedia service exception protection method and device
CN110768816B (en) * 2018-07-27 2022-04-15 成都鼎桥通信技术有限公司 Multimedia service exception protection method and device
CN109040127A (en) * 2018-09-18 2018-12-18 中国人民解放军战略支援部队信息工程大学 The detection device and method of Diameter flood attack
CN109040127B (en) * 2018-09-18 2020-11-03 中国人民解放军战略支援部队信息工程大学 Detection device and method for Diameter flooding attack
CN110213356A (en) * 2019-05-21 2019-09-06 深圳壹账通智能科技有限公司 A kind of login process method and relevant device based on data processing
CN110213356B (en) * 2019-05-21 2021-11-12 深圳壹账通智能科技有限公司 Login processing method based on data processing and related equipment

Similar Documents

Publication Publication Date Title
CN104468506A (en) Session state detection method and device
JP4709217B2 (en) Method and apparatus for session control in a hybrid telecommunications network
US20120236707A1 (en) Method and Arrangement for Managing Radio Link Failure
US8284724B2 (en) Method of deciding to release communication resources
WO2016062008A1 (en) Disaster tolerance method, network element, server and storage medium
US8737202B2 (en) Automatic connection recovery
US10225762B2 (en) Methods, systems, and computer readable media for message flood suppression during access node-gateway (AN-GW) unavailability and after AN-GW restoration
US10292090B2 (en) Mobile station, mobile communication system, and network device
EP2421218A1 (en) Session transfer method, apparatus and system thereof
EP3736696A1 (en) Early gx/rx session failure detection and response
WO2022001785A1 (en) User plane state synchronization method and apparatus
US11496528B2 (en) P-CSCF discovery through NRF
CN103812762A (en) Method and system for sending instant messages
CN110121215B (en) Data connection establishment method and device of 5G terminal and 5G terminal
WO2016062021A1 (en) Method and device for service capacity detection
EP4127930A1 (en) Methods and apparatuses for enhanced 5gc restoration when a network function (nf) set is deployed in the network
US20220030656A1 (en) Dynamic pcrf/pcf selection
WO2022041923A1 (en) Network slice connection method, terminal, and computer-readable storage medium
WO2024061133A1 (en) Communication method, apparatus, ue, and readable storage medium
US11425626B2 (en) Status registration of packet routing nodes
CN103281801A (en) Resource releasing method and device
WO2015154580A1 (en) Node state detection method and device
WO2016206299A1 (en) Session keep-alive method and device
KR20090117668A (en) Method for policy and charging control handling errors in broadband wireless communication system, and apparatus for supporting the same
US20240031910A1 (en) Repository function address blocking

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20150325