[go: up one dir, main page]

CN102612164B - A kind of restart for network element after discharge the methods, devices and systems of resource - Google Patents

A kind of restart for network element after discharge the methods, devices and systems of resource Download PDF

Info

Publication number
CN102612164B
CN102612164B CN201210020513.XA CN201210020513A CN102612164B CN 102612164 B CN102612164 B CN 102612164B CN 201210020513 A CN201210020513 A CN 201210020513A CN 102612164 B CN102612164 B CN 102612164B
Authority
CN
China
Prior art keywords
network node
session
mark
identification
request
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.)
Active
Application number
CN201210020513.XA
Other languages
Chinese (zh)
Other versions
CN102612164A (en
Inventor
吴小菁
杨斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Gaohang Intellectual Property Operation Co ltd
Taizhou Haitong Asset Management Co ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210020513.XA priority Critical patent/CN102612164B/en
Publication of CN102612164A publication Critical patent/CN102612164A/en
Priority to PCT/CN2013/070752 priority patent/WO2013107402A1/en
Application granted granted Critical
Publication of CN102612164B publication Critical patent/CN102612164B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/30Connection release
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明属于计算机通信领域,主要涉及一种针对网元重启后释放资源的方法、装置和系统。一种针对网元重启后释放资源的方法包括第二网络节点接收来自第一网络节点的能力交换请求,所述能力交换请求携带有第一原始状态标识;进一步比较第二网络节点存储的对应所述第一网络节点的第二原始状态标识和所述第一原始状态标识;所述比较的结果不同则向第三网络节点发送会话结束请求,所述会话结束请求携带了第一网络节点标识和重启标识。改善了因为第一网络节点异常重启而造成的网络通道的浪费。

The invention belongs to the field of computer communication, and mainly relates to a method, device and system for releasing resources after network elements are restarted. A method for releasing resources after a network element is restarted includes that the second network node receives a capability exchange request from the first network node, where the capability exchange request carries a first original state identifier; and further compares the corresponding The second original state identifier of the first network node and the first original state identifier; if the comparison result is different, a session end request is sent to the third network node, and the session end request carries the first network node identifier and Reboot logo. The waste of network channels caused by the abnormal restart of the first network node is improved.

Description

一种针对网元重启后释放资源的方法、装置和系统A method, device and system for releasing resources after network element restart

技术领域technical field

本发明属于计算机通信领域,主要涉及一种针对网元重启后释放资源的方法、装置和系统。The invention belongs to the field of computer communication, and mainly relates to a method, device and system for releasing resources after network elements are restarted.

背景技术Background technique

Diameter协议包括基本协议、网络接入服务(NetAccessServer,NAS)协议、可扩展鉴别(ExtensionsAuthenticationProtocol,EAP)协议、移动IP(MotoInternetProtocol,MIP)协议、密码消息语法(CodeMessagesyntax,CMS)协议等。Diameter协议支持移动IP、NAS请求和移动代理的认证、授权和计费工作,Diameter协议的实现和RADIUS协议类似,也是采用属性值对(attributevaluepair,AVP),即Attribute-Length-Value三元组形式来实现,并且详细规定了错误处理、拥有failover机制、采用TCP协议、支持分布式计费,并克服了RADIUS协议的许多缺点,是最适合未来移动通信系统的认证、授权和计费(AuthenticationAuthorizationAccounting,AAA)协议。Diameter protocol includes basic protocol, network access service (NetAccessServer, NAS) protocol, extensible authentication (ExtensionsAuthenticationProtocol, EAP) protocol, mobile IP (MotoInternetProtocol, MIP) protocol, password message syntax (CodeMessagesyntax, CMS) protocol, etc. The Diameter protocol supports mobile IP, NAS requests, and mobile agent authentication, authorization, and accounting work. The implementation of the Diameter protocol is similar to the RADIUS protocol, and it also uses attribute value pairs (attribute value pairs, AVP), that is, in the form of Attribute-Length-Value triples. It is implemented, and specifies error handling, has failover mechanism, adopts TCP protocol, supports distributed accounting, and overcomes many shortcomings of RADIUS protocol. It is the most suitable authentication, authorization and accounting (AuthenticationAuthorizationAccounting, AAA) agreement.

为处理用户的接入,Diameter客户端通过Diameter基础协议和Diameter应用协议,与Diameter服务器进行一系列的信息交换,而这样一个从发起到中止的一系列信息交互,在Diameter协议里被称为一个用户会话(UserSession)。In order to handle user access, the Diameter client performs a series of information exchanges with the Diameter server through the Diameter basic protocol and the Diameter application protocol, and such a series of information exchanges from initiation to termination is called a User session (UserSession).

一个用户会话的建立,一般是由Diameter客户端发起,中间可以途径若干Diameter代理、重定向器或协议转换器,一直延伸到Diameter服务器。用户会话的结束,由Diameter客户端决定,但服务器也可以先行发出中止用户会话请求(AbortSessionRequest,ASR),在客户端同意中止请求的情况下,会响应中止用户会话应答(AbortSessionAnswer,ASA),然后再发出用户会话结束请求,通知服务器结束用户会话;否则用户会话仍得以保持。在未得到服务器请求的情况下,客户端也可以自行给服务器发出用户会话结束请求,例如在客户端自身异常,或是用户接入异常等的情况下。The establishment of a user session is generally initiated by the Diameter client, which can be extended to the Diameter server through several Diameter agents, redirectors or protocol converters. The end of the user session is determined by the Diameter client, but the server can also issue an abort user session request (AbortSessionRequest, ASR) first, and if the client agrees to the abort request, it will respond to the abort user session response (AbortSessionAnswer, ASA), and then Then send a user session end request to notify the server to end the user session; otherwise, the user session is still maintained. In the absence of a request from the server, the client can also send a user session end request to the server by itself, for example, when the client itself is abnormal or the user access is abnormal.

当出于安全、可靠性考虑,在Diameter客户端和Diameter服务端之间设置了Diameter代理后,由于客户端和服务端不再直接可见,因此客户端的异常重启对于服务端来说只有Diameter代理发觉后才能通知Diameter服务器,并且只能通过Diameter代理所对应的会话逐条通知Diameter服务器结束所述会话并释放资源。When the Diameter proxy is set up between the Diameter client and the Diameter server for security and reliability reasons, since the client and the server are no longer directly visible, the abnormal restart of the client is only noticed by the Diameter proxy for the server. Only then can the Diameter server be notified, and the Diameter server can only be notified one by one through the session corresponding to the Diameter agent to end the session and release resources.

发明内容Contents of the invention

本发明解决了在拥有Diameter代理环境下,Diameter客户端的异常重启后只能通过Diameter代理所对应的会话逐条通知Diameter服务器结束所述会话并释放资源,由此造成的网络通道的浪费。The invention solves the waste of the network channel caused by the Diameter server which can only notify the Diameter server to end the session and release resources one by one through the sessions corresponding to the Diameter proxy after the abnormal restart of the Diameter client under the environment of the Diameter proxy.

本发明的一方面提供了一种针对网元重启后释放资源的方法,包括第二网络节点接收来自第一网络节点的能力交换请求,所述能力交换请求携带有第一原始状态标识;进一步比较第二网络节点存储的对应所述第一网络节点的第二原始状态标识和所述第一原始状态标识;所述比较的结果不同则向第三网络节点发送会话结束请求,所述会话结束请求携带了第一网络节点标识和重启标识,使得第三网络节点能够根据所述重启标识确认第一网络节点重启,并进一步从第三网络节点存储的会话映射表中查找与所述第一网络节点标识相关的会话标识,释放所述相关会话标识对应的会话资源。One aspect of the present invention provides a method for releasing resources after a network element is restarted, including that the second network node receives a capability exchange request from the first network node, and the capability exchange request carries a first original state identifier; further comparison The second original state identifier corresponding to the first network node stored by the second network node and the first original state identifier; if the comparison result is different, a session end request is sent to the third network node, and the session end request Carrying the first network node identifier and the restart identifier, so that the third network node can confirm the restart of the first network node according to the restart identifier, and further search for the connection with the first network node from the session mapping table stored by the third network node A related session ID is identified, and a session resource corresponding to the related session ID is released.

本发明的另一方面提供了一种针对网元重启后释放资源的方法,包括接受来自第二网络节点的会话结束请求,所述会话结束请求携带有第一网络节点标识和重启标识,进一步根据所述重启标识确认第一网络节点重启,并从存储的会话映射表中查找与所述第一网络节点标识相关会话标识,释放所述相关会话标识对应的会话资源。Another aspect of the present invention provides a method for releasing resources after a network element is restarted, including accepting a session end request from a second network node, the session end request carrying the first network node identifier and a restart identifier, further according to The restart identifier confirms that the first network node is restarted, and searches for a session identifier related to the first network node identifier from a stored session mapping table, and releases session resources corresponding to the related session identifier.

本发明的另一方面提供了一种针对网元重启后释放资源的方法,包括第二网络节点接收来自第一网络节点的能力交换请求,所述能力交换请求携带有第一原始状态标识;进一步比较第二网络节点存储的对应所述第一网络节点的第二原始状态标识和所述第一原始状态标识;所述比较的结果不同则从所述第二网络节点存储的会话映射表中查找对应第三网络节点标识和第一网络节点标识的相关会话标识,并向第三网络节点发送携带了所述相关会话标识和重启标识的会话结束请求,使得第三网络节点能够根据重启标识确认第一网络节点重启,释放所述相关会话标识对应的会话资源。Another aspect of the present invention provides a method for releasing resources after a network element restarts, including the second network node receiving a capability exchange request from the first network node, the capability exchange request carrying a first original state identifier; further Comparing the second original state identifier corresponding to the first network node stored by the second network node with the first original state identifier; if the comparison result is different, look up from the session mapping table stored by the second network node Corresponding to the relevant session identification of the third network node identification and the first network node identification, and sending a session end request carrying the relevant session identification and restart identification to the third network node, so that the third network node can confirm the first network node according to the restart identification. A network node is restarted, and the session resource corresponding to the related session identifier is released.

本发明的另一方面提供了一种针对网元重启后释放资源的代理装置,包括第一接收器,用于接收来自第一网络节点的能力交换请求,所述能力交换请求中携带有第一原始状态标识;第一配置器,用于比较自身存储的对应所述第一网络节点的第二原始状态标识和所述第一原始状态标识,所述比较的结果不同则生成携带有第一网络节点标识和重启标识的会话结束请求;第一发送器,用于向第三网络节点发送所述会话结束请求,使得第三网络节点能够根据重启标识确认第一网络节点重启,并进一步从所述会话映射表中查找与第一网络节点标识相关的会话标识,释放所述相关会话标识对应的会话资源。Another aspect of the present invention provides a proxy device for releasing resources after a network element restarts, including a first receiver, configured to receive a capability exchange request from a first network node, and the capability exchange request carries the first The original state identifier; the first configurator is used to compare the second original state identifier corresponding to the first network node and the first original state identifier stored by itself, and if the comparison results are different, the generated The session end request of the node ID and the restart ID; the first sender is configured to send the session end request to the third network node, so that the third network node can confirm the restart of the first network node according to the restart ID, and further obtain from the The session mapping table is searched for a session ID related to the first network node ID, and the session resource corresponding to the related session ID is released.

本发明的另一方面提供了一种针对网元重启后释放资源的服务器,包括第一接收器,用于接收来自第二网络节点的会话结束请求,所述会话结束请求携带有第一网络节点标识和重启标识;第一处理器,用于根据所述重启标识确认第一网络节点重启,并从存储的会话映射表中查找与所述第一网络节点标识相关会话标识,释放所述相关会话标识对应的会话资源。Another aspect of the present invention provides a server for releasing resources after a network element is restarted, including a first receiver for receiving a session end request from a second network node, the session end request carrying the first network node ID and restart ID; a first processor, configured to confirm the restart of the first network node according to the restart ID, and search for a session ID related to the ID of the first network node from a stored session mapping table, and release the related session Identifies the corresponding session resource.

本发明的另一方面提供了一种针对网元重启后释放资源的代理装置,包括第二接收器,应用接收来自第一网络节点的能力交换请求,所述能力交换请求中携带有第一原始状态标识;第二配置器,用于比较自身存储的对应所述第一网络节点的第二原始状态标识和所述第一原始状态标识,所述比较的结果不同则从存储的会话映射表中查找对应第三网络节点标识和第一网络节点标识的相关会话标识,生成携带有所述相关会话标识和重启标识的会话结束请求;第二发送器,用于向第三网络节点发送所述会话结束请求,使得第三网络节点能够根据重启标识确认第一网络节点重启,释放所述相关会话标识对应的会话资源。Another aspect of the present invention provides a proxy device for releasing resources after a network element restarts, including a second receiver, the application receives a capability exchange request from the first network node, and the capability exchange request carries the first primitive State identification; the second configurator is used to compare the second original state identification corresponding to the first network node stored by itself with the first original state identification, and if the comparison result is different, then the stored session mapping table Search for the relevant session identifier corresponding to the third network node identifier and the first network node identifier, and generate a session end request carrying the relevant session identifier and restart identifier; the second sender is configured to send the session identifier to the third network node Ending the request enables the third network node to confirm the restart of the first network node according to the restart identifier, and release the session resource corresponding to the relevant session identifier.

附图说明Description of drawings

图1本发明的一种针对网元重启后释放资源的方法流程图;FIG. 1 is a flowchart of a method for releasing resources after a network element is restarted according to the present invention;

图2本发明的一种针对网元重启后释放资源的方法流程图;FIG. 2 is a flow chart of a method for releasing resources after a network element is restarted according to the present invention;

图3本发明的一种针对网元重启后释放资源的方法的信令流程图;FIG. 3 is a signaling flowchart of a method for releasing resources after a network element is restarted according to the present invention;

图4本发明的一种DiameterSIP应用的通用体系结构图;A general architecture diagram of a DiameterSIP application of the present invention in Fig. 4;

图5本发明的一种针对网元重启后释放资源的方法的信令图流程;FIG. 5 is a signaling flow diagram of a method for releasing resources after a network element is restarted according to the present invention;

图6本发明的一种针对网元重启后释放资源的代理结构图;FIG. 6 is a structural diagram of an agent for releasing resources after a network element is restarted according to the present invention;

图7本发明的一种针对网元重启后释放资源的服务器结构图;FIG. 7 is a structural diagram of a server for releasing resources after a network element is restarted according to the present invention;

图8本发明的一种针对网元重启后释放资源的代理结构图;FIG. 8 is a structural diagram of an agent for releasing resources after a network element is restarted according to the present invention;

下述描述和附图详细阐述了本发明多个示范性实施例。这些实施例仅作为示例,本发明还能以其他不同方式实现。The following description and accompanying drawings set forth in detail several exemplary embodiments of the invention. These embodiments are only examples, and the present invention can also be implemented in other different ways.

具体实施方案specific implementation plan

本发明提供的一种针对网元重启后释放资源的方法实施例,包括:An embodiment of a method for releasing resources after a network element is restarted provided by the present invention includes:

S1001、第二网络节点接收来自第一网络节点的能力交换请求。S1001. The second network node receives a capability exchange request from the first network node.

所述能力交换请求携带有第一原始状态标识;其中第一网络节点和第三网络可以是支持Diameter协议的存在于各通信架构中网络节点,如VoIP网络架构中的GGSN和CBP;如IMS架构中的P-CSCF和CCF或者S-CSCF和MRFC等。其中第二网络节点特指第一网络节点与第二网络节点间的代理节点,所述代理节点的布置目的一般是对(DiameterCreditControl,DCC)DCC客户端屏蔽DCC服务端的数量,或者出于安全、可靠性考虑,避免DCC客户端与DCC服务端直接连接。The capability exchange request carries a first original state identifier; wherein the first network node and the third network may be network nodes that support the Diameter protocol and exist in each communication architecture, such as GGSN and CBP in the VoIP network architecture; such as the IMS architecture In P-CSCF and CCF or S-CSCF and MRFC etc. Wherein the second network node specifically refers to the proxy node between the first network node and the second network node, and the purpose of the arrangement of the proxy node is generally to shield the (DiameterCreditControl, DCC) DCC client from the number of DCC servers, or for security, In consideration of reliability, avoid direct connection between the DCC client and the DCC server.

第二网络节点除接收所述来自第一网络节点的能力交换请求外,还可以接收来自第一网络节点的会话请求,并向第三网络节点转发携带有第一网络节点标识和会话标识的会话请求,使得第三网络节点能够对应所述第一网络节点标识添加所述会话标识到会话映射表,所述会话映射表存储于第三网络节点中。In addition to receiving the capability exchange request from the first network node, the second network node may also receive the session request from the first network node, and forward the session carrying the first network node identifier and the session identifier to the third network node The request enables the third network node to add the session identifier to a session mapping table corresponding to the first network node identifier, and the session mapping table is stored in the third network node.

所述会话请求包括了除能力交换请求外的如信用控制请求CCR、会话中断请求(AbortSessionRequest,ASR)、连接中止请求(DisconnectPeerRequest,DPR)、终止会话请求(SessionTerminationRequest,STR)等。The session request includes credit control request CCR, session interruption request (AbortSessionRequest, ASR), connection termination request (DisconnectPeerRequest, DPR), session termination request (SessionTerminationRequest, STR) etc. in addition to the capability exchange request.

S1002、比较第二网络节点存储的对应所述第一网络节点的第二原始状态标识和所述第一原始状态标识。S1002. Compare the second original state identifier corresponding to the first network node and the first original state identifier stored by the second network node.

所述第二原始状态标识为Diameter协议中的AVP参数Origin-State-Id,其值只在第一网络节点重启且为异常重启时改变,如第一网络节点因为断电、系统崩溃等原因,进而没能正常通过STR消息结束网络节点之间会话。重启之后的第一网络节点再次发起能力交换请求CER时,便会携带新的Origin-State-Id,Origin-State-Id的变化过程是单增性质的,新的Origin-State-Id中值比异常重启之前能力交换请求CER或会话请求中携带的Origin-State-Id值大。The second original state identifier is the AVP parameter Origin-State-Id in the Diameter protocol, and its value is only changed when the first network node restarts and is abnormally restarted, such as the first network node due to power failure, system crash, etc., Furthermore, the session between network nodes cannot be terminated normally through the STR message. After restarting, when the first network node initiates a capability exchange request CER again, it will carry a new Origin-State-Id. The change process of Origin-State-Id is single-increasing. The Origin-State-Id value carried in the capability exchange request CER or session request before the abnormal restart is large.

S1003、比较结果不同则向第三网络节点发送会话结束请求。S1003. Send a session end request to the third network node if the comparison result is different.

所述会话结束请求携带了第一网络节点标识和重启标识,使得第三网络节点能够根据所述重启标识确认第一网络节点重启,并进一步从存储的会话映射表中查找与所述第一网络节点标识相关的会话标识,释放所述相关会话标识对应的会话资源。The session end request carries the identifier of the first network node and the restart identifier, so that the third network node can confirm the restart of the first network node according to the restart identifier, and further search for a connection with the first network node from the stored session mapping table. The node identifies a related session ID, and releases the session resource corresponding to the related session ID.

所述与第一网络节点标识相关的会话标识可以是一个或者多个会话标识,具体由异常重启前第一网络节点通过代理节点与第三网络节点建立的会话个数决定。The session ID related to the first network node ID may be one or more session IDs, specifically determined by the number of sessions established between the first network node and the third network node through the proxy node before the abnormal restart.

其中成功释放了会话标识对应的会话资源,则从会话映射表中删除对应的会话标识。第三网络节点在接收到未携带重启标识的会话结束请求时,所述会话结束请求携带了所要结束的会话标识,则在成功释放了所述会话标识对应的会话资源后,从会话映射表中删除对应的会话标识。If the session resource corresponding to the session identifier is successfully released, the corresponding session identifier is deleted from the session mapping table. When the third network node receives a session end request that does not carry a restart identifier, and the session end request carries the session identifier to be ended, after the session resource corresponding to the session identifier is successfully released, the session mapping table Delete the corresponding session ID.

现有技术中会话结束请求STR也是用来结束网络节点之间的会话,但由于第一网络节点和第三网络节点之间使用了代理节点,此时STR携带的是第二网络节点的标识,并有对应所要结束的一个会话标识,而一个会话过程通常包含了多个会话标识,因此现有的技术需要发送多次STR才能结束完异常第一网络节点因异常重启而没能及时结束的会话。In the prior art, the session end request STR is also used to end the session between network nodes, but since a proxy node is used between the first network node and the third network node, the STR carries the identifier of the second network node at this time, And there is a session identifier corresponding to the end, and a session process usually includes multiple session identifiers, so the existing technology needs to send multiple STRs to end the session that the abnormal first network node failed to end in time due to abnormal restart .

本发明通过会话映射表保存了第二网络节点与第三网络节点间的会话标识以及第一网络节点标识之间的映射关系,所述会话标识为第一网络节点经由代理节点后与第三网络节点产生的会话标识。进一步在STR中携带第一网络节点标识和重启标识,使得第三网络节点通过一次STR消息就能结束会话映射表中对应第一网络节点的相关会话。The present invention saves the mapping relationship between the session identifier between the second network node and the third network node and the first network node identifier through the session mapping table. The session ID generated by the node. Further, the first network node identifier and the restart identifier are carried in the STR, so that the third network node can end the related session corresponding to the first network node in the session mapping table through one STR message.

本发明提供的一种针对网元重启后释放资源的方法实施例,包括:An embodiment of a method for releasing resources after a network element is restarted provided by the present invention includes:

S2001、接收来自第一网络节点的能力交换请求。S2001. Receive a capability exchange request from a first network node.

所述能力交换请求携带有第一原始状态标识。The capability exchange request carries a first original state identifier.

第二网络节点除接收所述来自第一网络节点的能力交换请求外,还可以接收来自第一网络节点的会话请求,向第三网络节点转发携带有会话标识的会话请求;进一步第二网络节点对应第三网络节点标识和第一网络节点标识添加所述会话标识到会话映射表,所述会话映射表存储于第二网络节点中。In addition to receiving the capability exchange request from the first network node, the second network node may also receive a session request from the first network node, and forward the session request carrying the session identifier to the third network node; further, the second network node Adding the session identifier to a session mapping table corresponding to the third network node identifier and the first network node identifier, and the session mapping table is stored in the second network node.

S2002、比较自身存储的对应所述第一网络节点的第二原始状态标识和所述第一原始状态标识。S2002. Compare the second original state identifier corresponding to the first network node stored by itself with the first original state identifier.

所述第二原始状态标识为Diameter协议中的AVP参数Origin-State-Id,其值只在第一网络节点重启且为异常重启时改变,如第一网络节点因为断电、系统崩溃等原因,进而没能正常通过STR消息结束网络节点之间会话。重启之后的第一网络节点再次发起能力交换请求CER时,便会携带新的Origin-State-Id,Origin-State-Id的变化过程是单增性质的,新的Origin-State-Id中值比异常重启之前能力交换请求CER或会话请求中携带的Origin-State-Id值大。The second original state identifier is the AVP parameter Origin-State-Id in the Diameter protocol, and its value is only changed when the first network node restarts and is abnormally restarted, such as the first network node due to power failure, system crash, etc., Furthermore, the session between network nodes cannot be terminated normally through the STR message. After restarting, when the first network node initiates a capability exchange request CER again, it will carry a new Origin-State-Id. The change process of Origin-State-Id is single-increasing. The Origin-State-Id value carried in the capability exchange request CER or session request before the abnormal restart is large.

S2003、比较的结果不同则从第二网络节点存储的会话映射表中查找对应第三网络节点标识和第一网络节点标识的相关会话标识,并向第三网络节点发送携带了所述相关会话标识和重启标识的会话结束请求。S2003, if the comparison results are different, search the session mapping table stored by the second network node for the relevant session identification corresponding to the third network node identification and the first network node identification, and send the related session identification to the third network node and a session end request identified by a restart.

使得第三网络节点能够根据重启标识确认第一网络节点重启,释放所述相关会话标识对应的会话资源。The third network node is enabled to confirm the restart of the first network node according to the restart identifier, and release the session resource corresponding to the relevant session identifier.

优选的生成一个AVP参数,并将所述相关会话标识作为该AVP参数的数据内容,在所述会话结束请求中携带上该AVP参数和重启标识,第三网络节点在确认第一网络节点重启后,进一步从该AVP参数中提取数据内容即所述相关会话标识,并根据所述相关会话标识释放会话资源。An AVP parameter is preferably generated, and the relevant session identifier is used as the data content of the AVP parameter, and the AVP parameter and the restart identifier are carried in the session end request, and after the third network node confirms that the first network node is restarted , further extracting data content from the AVP parameter, that is, the related session ID, and releasing session resources according to the related session ID.

以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、技术之类的具体细节,以便透切理解本发明。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的装置、电路和方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for purposes of illustration rather than limitation, specific details such as specific system architectures, interfaces, and techniques are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the invention may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

本发明提供的一种针对网元重启后释放资源方法的实施例,其信令传递如图3所示,在本实施例中第一网络节点即Diameter客户端,具体可以是网关GPRS支持节点(GatewayGPRSSupportNode,GGSN),第二网络节点即Diameter代理,具体可以是Diameter信用控制代理(DiameterCreditControlproxy,DCCproxy),第三网络节点即Diameter服务器具体可以是融合计费接入点(ConvergenceBillingPoint,CBP),会话请求消息具体表现为Diameter消息中的信用控制请求(CreditControlRequest,CCR)/信用控制应答(CreditControlAnswer,CCA),进一步还涉及能力交换请求(CapabilitiesExchangeRequest,CER)/能力交换应答(CapabilitiesExchangeAnswer,CEA);GGSN、DCCproxy、CBP均属于Diameter实体,具体实现过程如下:The present invention provides an embodiment of a method for releasing resources after a network element is restarted. Its signaling transmission is shown in FIG. GatewayGPRSSupportNode, GGSN), the second network node is the Diameter proxy, specifically Diameter credit control proxy (DiameterCreditControlproxy, DCCproxy), the third network node is the Diameter server, specifically the Convergence Billing Point (CBP), the session request The message is specifically expressed as a credit control request (CreditControlRequest, CCR)/credit control answer (CreditControlAnswer, CCA) in the Diameter message, and further involves a capability exchange request (CapabilitiesExchangeRequest, CER)/capabilitiesExchangeAnswer (CapabilitiesExchangeAnswer, CEA); GGSN, DCCproxy , CBP are all Diameter entities, the specific implementation process is as follows:

S301、网关GPRS支持节点GGSN发送Diameter消息给信息管理代理DDCproxy,所述Diameter消息具体为能力交换请求CER消息,所述CER主要用于Diameter实体之间请求消息交换本地能力,并且携带有AVP参数原始状态标识Origin-State-Id,所述原始状态标识在一个稳定运行期间携带于各Diameter消息之中,并保持不变;本实施例中GGSN作为Diameter客户端因为异常情况重启时,后续GGSN发送的Diameter消息中携带的Origin-State-Id值相比重启之前会增大,具体Origin-State-Id值可以是重启时刻的时间也可以是不易失性的存储记录的单增变量,这里不妨采用不易失性的存储记录的单增变量,并设当前其值为5。S301. The gateway GPRS support node GGSN sends a Diameter message to the information management agent DDCproxy. The Diameter message is specifically a capability exchange request CER message. The CER is mainly used for requesting message exchange between Diameter entities to exchange local capabilities, and carries the original AVP parameter State identifier Origin-State-Id, the original state identifier is carried in each Diameter message during a stable operation, and remains unchanged; in this embodiment, when the GGSN is restarted as a Diameter client due to an abnormal situation, the subsequent GGSN sends The Origin-State-Id value carried in the Diameter message will increase compared to before the restart. The specific Origin-State-Id value can be the time at the restart time or a single-increment variable for non-volatile storage records. Here, you may wish to use the non-volatile The single-increment variable of the volatile storage record, and set its current value to 5.

S302、DCCproxy接收到GGSN发送的CER消息后,进一步从自身存储区查找与所述CER消息中携带的原始宿主名Origin-Host标识相同的对应Origin-State-Id值,具体为:S302. After DCCproxy receives the CER message sent by the GGSN, it further searches its own storage area for the corresponding Origin-State-Id value identical to the original host name Origin-Host identifier carried in the CER message, specifically:

当存储区查找不到所述Origin-Host标识时,将所述CER消息中的AVP参数Origin-Host的数据内容GGSN与AVP参数Origin-State-Id的数据内容5对应的进行存储;When the storage area does not find the Origin-Host identifier, store the data content GGSN of the AVP parameter Origin-Host in the CER message corresponding to the data content 5 of the AVP parameter Origin-State-Id;

当存储区查找到所述对应Origin-State-Id相同时,则向GGSN回复能力交互应答CEA消息。When the storage area finds that the corresponding Origin-State-Ids are the same, a Capability Interaction Answer CEA message is returned to the GGSN.

S303、GGSN向DCCproxy发送Diameter消息,所述Diameter消息具体为信用控制请求CCR消息,该消息中包含用户的认证、计费、授权等信息。S303. The GGSN sends a Diameter message to the DCCproxy. The Diameter message is specifically a credit control request CCR message, and the message includes user authentication, charging, authorization and other information.

S304、DCCproxy在转发CCR消息给融合计费接入点CBP时,在所述CCR消息中扩展增加自定义AVP参数HW_OriginHostName,扩展后的CCR完整消息格式如下,实际情况中可以是其中某几项AVP参数的组合:S304. When DCCproxy forwards the CCR message to the converged charging access point CBP, it expands and adds a custom AVP parameter HW_OriginHostName in the CCR message. The format of the extended CCR complete message is as follows, and in actual situations, it may be some of the AVPs Combination of parameters:

DCCproxy将S303中接收到的CCR所携带的Origin-Host数据内容,即GGSN标识赋给HW_OriginHostName,并转发携带有所述HW_OriginHostName标识的信用控制请求CCR消息,DCCproxy向CBP转发的CCR消息中主要包含:DCCproxy assigns the Origin-Host data content carried by the CCR received in S303, that is, the GGSN identifier to HW_OriginHostName, and forwards the credit control request CCR message carrying the HW_OriginHostName identifier. The CCR message forwarded by DCCproxy to the CBP mainly includes:

Session-Id=Session1Session-Id=Session1

Origin-Host=DCC1Origin-Host=DCC1

Origin-State-Id=3Origin-State-Id=3

HW_OriginHostName=GGSNHW_OriginHostName=GGSN

这里Origin-State-Id=3是DCCproxy的一个原始状态标识,其值的变换能够反映出DCCproxy发生了丢失数据和异常重启。Here, Origin-State-Id=3 is an original state identifier of DCCproxy, and the change of its value can reflect data loss and abnormal restart of DCCproxy.

S305、CBP接收信用控制请求CCR消息,获取所述CCR消息中的AVP参数包括:会话标识Session-Id和原始宿主名标识HW_OriginHostName,并依据HW_OriginHostName和Session-Id对应Diameter客户端GGSN添加会话标识Sessionl到会议映射表,所述会议映射表保存于CBP中,其格式可选的如下所示:S305, CBP receives the credit control request CCR message, obtains the AVP parameters in the CCR message including: the session identifier Session-Id and the original host name identifier HW_OriginHostName, and adds the session identifier Session1 to the Diameter client GGSN corresponding to HW_OriginHostName and Session-Id Conference mapping table, the conference mapping table is stored in the CBP, and its format is optional as follows:

S306-S307、CBP向DCCproxy发送信用控制应答CCA消息,其中包含了CCR消息中携带的请求内容,和指向DCCproxy的AVP参数Destination-Host和当前的会话参数Session-Id。S306-S307. The CBP sends a credit control response CCA message to the DCCproxy, which includes the request content carried in the CCR message, and the AVP parameter Destination-Host and the current session parameter Session-Id pointing to the DCCproxy.

S308、进行S301-S307间相同的业务交互,进一步其发送的会话请求可以不同,具体的处理过程也可以对应会话请求而改变;后续的CBP接收到Diameter消息,如上述CCR消息、CER消息等,CBP都会根据AVP参数HW_OriginHostName携带内容,如上述GGSN寻找对应会话映射表,并更新会话映射表;具体的更新操作包括增加会话标识、删除会话标识等。S308, carry out the same business interaction between S301-S307, further the session request sent by it can be different, and the specific processing process can also be changed corresponding to the session request; the subsequent CBP receives a Diameter message, such as the above-mentioned CCR message, CER message, etc., The CBP will carry the content according to the AVP parameter HW_OriginHostName. For example, the above-mentioned GGSN searches for the corresponding session mapping table and updates the session mapping table; the specific update operation includes adding a session ID, deleting a session ID, etc.

S309-S310、GGSN因为异常而造成重启,并且在与DCCproxy断开前未能发送会话终止请求STR时,当完成重启后与DCCproxy重新建立连接,并发送CER消息进行能力协商,消息中包含必要参数:S309-S310, when the GGSN restarts due to an abnormality, and fails to send a session termination request STR before disconnecting from DCCproxy, re-establish a connection with DCCproxy after restarting, and send a CER message for capability negotiation, the message contains necessary parameters :

Origin-Host=GGSNOrigin-Host=GGSN

Origin-State-Id=6Origin-State-Id=6

其中Origin-State-Id值在GGSN重启后由之前的5递增为6,CER消息携带AVP参数Origin-Host和Origin-State-Id一并传递,指明完成重启操作的是Diameter实体GGSN。The Origin-State-Id value is incremented from 5 to 6 after the GGSN restarts, and the CER message carries the AVP parameters Origin-Host and Origin-State-Id together, indicating that it is the Diameter entity GGSN that completes the restart operation.

S311、DCCproxy接收到GGSN的CER消息,通过比较自身存储的对应GGSN的Origin-State-Id值比接收到CER中携带的Origin-State-Id值小,确认GGSN因为异常重启,则向CBP发送STR消息,其中携带的关键AVP参数如下:S311, DCCproxy receives the CER message of the GGSN, compares the Origin-State-Id value of the corresponding GGSN stored by itself with the Origin-State-Id value carried in the received CER, confirms that the GGSN restarts due to an abnormality, and then sends a STR to the CBP message, the key AVP parameters carried in it are as follows:

Termination-Cause=CLIENT_REBOOTTermination-Cause=CLIENT_REBOOT

HW_OriginHostName=GGSNHW_OriginHostName=GGSN

消息中主要参数还包含:The main parameters in the message also include:

Session-Id=0Session-Id=0

Termination-Cause=CLIENT_REBOOTTermination-Cause=CLIENT_REBOOT

HW_OriginHostName=GGSNHW_OriginHostName=GGSN

其中Session-Id=0表示任意会话,Termination-Cause=CLIENT_REBOOT表示发送原因为客户端重启,重启标识CLIENT_REBOOT为自定义标识,在CBP端有对应所述CLIENT_REBOOT标识的解析和操作实现。Wherein, Session-Id=0 means any session, Termination-Cause=CLIENT_REBOOT means that the sending reason is client restart, and the restart identifier CLIENT_REBOOT is a custom identifier, and there is an analysis and operation implementation corresponding to the CLIENT_REBOOT identifier on the CBP side.

S312、CBP接收到STR消息后,判断如果AVP参数Termination-Cause标识的内容为重启标识CLIENT_REBOOT,则根据原始宿主名标识HW_OriginHostName中的数据内容GGSN查询对应会话映射表,获取对应GGSN的所有会话标识Session-Id;S312, after the CBP receives the STR message, it judges that if the content of the AVP parameter Termination-Cause identifier is the restart identifier CLIENT_REBOOT, then query the corresponding session mapping table according to the data content in the original host name identifier HW_OriginHostName GGSN, and obtain all the session identifiers Session corresponding to the GGSN -Id;

具体的会话映射表可以是如下表所展示的格式如果Diameter客户端GGSN与会话标识对应表中有如下数据,CBP则会释放Sessionl、Session6、Session9会话标识对应的会话资源;进一步删除会话映射表中对应所述会话标识相关的信息;实际会话映射表还可以通过HW_OriginHostName作为区别分组保存Session-Id,具体实现也不局限于此;The specific session mapping table can be in the format shown in the following table. If there is the following data in the Diameter client GGSN and session ID correspondence table, CBP will release the session resources corresponding to the Session1, Session6, and Session9 session IDs; further delete the session mapping table Corresponding to the information related to the session identifier; the actual session mapping table can also use HW_OriginHostName as a distinguishing group to save the Session-Id, and the specific implementation is not limited to this;

S313、CBP在释放完资源后,向DCCproxy回复会话终止应答STA消息,其中携带了成功终止的会话标识或者终止会话过程中出错信息;S313. After releasing the resources, the CBP replies to the DCCproxy with a session termination response STA message, which carries a successfully terminated session identifier or error information during the process of terminating the session;

S314、DCCproxy根据接收到的STA中携带的成功信息,向GGSN回复能力交互应答CEA消息。S314. The DCCproxy returns a Capability Interactive Answer CEA message to the GGSN according to the success information carried in the received STA.

上述实施例中步骤S311和S314的顺序为本发明的优选方案,有利于减少服务器端的资源处理压力,可选的情况步骤S311和S314还能同步进行,在增加服务端处理过程基础上可以提高GGSN重启后与DCCproxy能力交换请求CER消息的处理速度。The order of steps S311 and S314 in the above embodiment is the preferred solution of the present invention, which is beneficial to reduce the resource processing pressure on the server side. Optionally, steps S311 and S314 can also be performed synchronously, and the GGSN can be improved on the basis of increasing the server-side processing process. The processing speed of requesting CER message with DCCproxy capability exchange after restart.

本实施例通过在DCCproxy转发的Diameter消息中增设指示发起端的AVP参数HW_OriginHostName和重启标识符CLIENT_REBOOT;在所述服务器对应HW_OriginHostName增加了会话映射表的维护,对应CLIENT_REBOOT进一步根据所述会话映射表实现了通过一条会话终止请求CER消息完成GGSN异常重启后对应会话资源在CBP中的释放功能,提高了网络传输效率。In this embodiment, the AVP parameter HW_OriginHostName and the restart identifier CLIENT_REBOOT indicating the initiator are added in the Diameter message forwarded by DCCproxy; the maintenance of the session mapping table is added to the corresponding HW_OriginHostName of the server, and the corresponding CLIENT_REBOOT is further implemented according to the session mapping table. A session termination request CER message completes the release function of the corresponding session resources in the CBP after the abnormal restart of the GGSN, which improves the network transmission efficiency.

DiameterSIP应用的通用体系如图4所示,Diameter客户端A具体可以是IMS中的问询呼叫会话控制功能(InterrogatingCallSessionControlFunction,I-CSCF),而Diameter客户端B具体可以是IMS中的服务呼叫会话控制功能(ServeCallSessionControlFunction,S-CSCF),Diameter服务器具体可以为IMS中的归属用户服务器(HomeSubscriberServer,HSS),其中代理单元A和代理单元B在该体系中为可选的。The general system of DiameterSIP application is shown in Figure 4. Specifically, Diameter client A may be the interrogating call session control function (Interrogating Call Session Control Function, I-CSCF) in IMS, and Diameter client B may be specifically the serving call session control function in IMS. Function (ServeCallSessionControlFunction, S-CSCF), the Diameter server may specifically be a home subscriber server (HomeSubscriberServer, HSS) in the IMS, where the proxy unit A and the proxy unit B are optional in this system.

本发明提供的一个实施例,如图5所示为所述DiameterSIP应用的通用体系中的A侧,并且是用于计费的Diameter信令交互图,其中Diameter客户机A即第一网络节点具体为代理呼叫会话控制功能(ProxyCallSessionControlFunction,P-CSCF)单元,Diameter服务器即第三网络节点具体为收费积累功能(ChargingAccumulatedFunction,CCF)单元,并且在拥有代理单元proxy即第二网络节点情形下,以计费请求(Accounting-Request,ACR)消息和计费应答(Accounting-Answer,ACA)消息和STR/STA作为传输的Diameter消息;本实施例中以计费请求为例,没有将计费之前的认证和授权过程进行完整的阐述,但并不影响本实施例对于发明点的陈述,本领域技术人员能够凭借SIPDiameter协议完善整个计费信令过程,具体实现流程为:An embodiment provided by the present invention, as shown in Figure 5, is the A side in the general system of the DiameterSIP application, and is a Diameter signaling interaction diagram for charging, where the Diameter client A is the first network node. It is a proxy call session control function (ProxyCallSessionControlFunction, P-CSCF) unit, and the Diameter server, that is, the third network node is specifically a charge accumulation function (ChargingAccumulatedFunction, CCF) unit, and in the case of having a proxy unit proxy, that is, the second network node, the Charge Request (Accounting-Request, ACR) message and Accounting-Answer (Accounting-Answer, ACA) message and STR/STA are used as the Diameter message of transmission; In this embodiment, taking Accounting Request as an example, the authentication before accounting is not and the authorization process are fully described, but it does not affect the statement of the invention in this embodiment. Those skilled in the art can improve the entire charging signaling process by virtue of the SIPDiameter protocol. The specific implementation process is as follows:

S501、P-CSCF向代理单元proxy发送Diameter消息,所述Diameter消息为计费请求ACR消息,在P-CSCF状态处于正常时,ACR消息中的原始状态标识Origin-State-Id值保持不变,这里不妨采用时间参数方式,并设起始值为20111128T152000Z;一个完整的ACR消息如下:S501. The P-CSCF sends a Diameter message to the proxy unit proxy. The Diameter message is an charging request ACR message. When the P-CSCF is in a normal state, the original state identifier Origin-State-Id value in the ACR message remains unchanged. Here you may wish to use the time parameter method, and set the initial value to 20111128T152000Z; a complete ACR message is as follows:

S502、代理单元proxy识别所述Diameter消息为ACR消息,则生成转发给CCF的ACR消息,用自身的标识proxy作为转发的ACR消息中AVP参数Origin-Host的值,生成所述代理单元与CCF的会话标识Session2并作为转发的ACR消息中AVP参数Session-Id的值,session2对应Diameter客户端P-CSCF和Diameter服务器CCF保存到代理proxy中的会话映射表中,以建立Session2与Diameter客户端P-CSCF和Diameter服务器CCF的映射关系,具体会议映射表格式如下:S502, the proxy unit proxy recognizes that the Diameter message is an ACR message, then generates an ACR message forwarded to the CCF, uses its own identity proxy as the value of the AVP parameter Origin-Host in the forwarded ACR message, and generates a communication between the proxy unit and the CCF The session identifier Session2 is used as the value of the AVP parameter Session-Id in the forwarded ACR message. Session2 corresponds to the Diameter client P-CSCF and the Diameter server CCF and saves it in the session mapping table in the proxy proxy to establish Session2 and the Diameter client P-CSCF. The mapping relationship between CSCF and Diameter server CCF, the specific conference mapping table format is as follows:

S503、代理单元proxy向CCF转发经生成的ACR消息;S503. The proxy unit proxy forwards the generated ACR message to the CCF;

S504、收费积累功能实体CCF接收来自proxy的计费请求ACR消息,并处理计费请求消息中的请求内容,然后向proxy返回计费应答ACA消息S504, the charging accumulation function entity CCF receives the charging request ACR message from the proxy, and processes the request content in the charging request message, and then returns the charging response ACA message to the proxy

S505、代理单元proxy向P-CSCF转发计费应答ACA消息;S505. The proxy unit proxy forwards the accounting response ACA message to the P-CSCF;

S506、过程中可以包含上述步骤S501-S505的处理流程,根据会话标识对应Diameter客户端标识和Diameter服务器标识保存于所述会话映射表中,其中会话标识是代理单元生成并携带于转发给CCF的Diameter消息中;S506, the process may include the processing flow of the above steps S501-S505, and store the Diameter client ID and Diameter server ID corresponding to the session ID in the session mapping table, wherein the session ID is generated by the proxy unit and carried in the forwarded to CCF In the Diameter message;

S507-508、P-CSCF因为一些突发原因没有正常结束计费,所述没有正常结束例如:没有发送STR消息来结束会话;则在重新启动P-CSCF后在发送的会议能力请求CER中将AVP参数Origin-State-Id的值将变为当前时间,不妨设为20111128T152530Z;S507-508, P-CSCF did not end the charging normally due to some unexpected reasons, such as: no STR message was sent to end the session; after restarting the P-CSCF, the conference capability request CER sent will be The value of the AVP parameter Origin-State-Id will become the current time, which may be set to 20111128T152530Z;

S509、代理proxy根据接收能力交换请求CER中的Origin-Host,针对同一Origin-Host标识比较接收到的和已保存有的Origin-State-Id的数据内容,在接收到Origin-State-Id的数据内容值更大时,分析出P-CSCF因为异常原因重启,则向CCF发送会话终止请求STR,其中携带了AVP参数:S509, the proxy proxy exchanges the Origin-Host in the request CER according to the receiving capability, compares the received and stored Origin-State-Id data content for the same Origin-Host identifier, and receives the Origin-State-Id data When the content value is larger, it is analyzed that the P-CSCF restarts due to an abnormal reason, and then sends a session termination request STR to the CCF, which carries the AVP parameter:

Termination-Cause=CLIENT_REBOOTTermination-Cause=CLIENT_REBOOT

HW_OriginHostName=P-CSCFHW_OriginHostName=P-CSCF

Terminat_Session=Terminat_Session1Terminat_Session = Terminat_Session1

Termination-Cause=CLIENT_REBOOT表示发送原因为客户端重启,重启标识CLIENT_REBOOT为自定义标识,在CCF有对应标识符的解析和操作实现;当终止会话标识Terminat_Session对应的数据内容包含有原始宿主名标识和对应会话映射表时,会话终止请求STR中的AVP参数原始宿主名标识HW_OriginHostName就为可选项,一个完整的STR消息如下:Termination-Cause=CLIENT_REBOOT indicates that the reason for sending is client restart, and the restart identifier CLIENT_REBOOT is a custom identifier, which has the parsing and operation implementation of the corresponding identifier in CCF; when the session is terminated, the data content corresponding to the Terminat_Session contains the original host name identifier and the corresponding In the session mapping table, the original host name identifier HW_OriginHostName of the AVP parameter in the session termination request STR is optional. A complete STR message is as follows:

其中Terminat_Session为本发明增设的AVP参数,其格式满足标准的AVP结构如下:Wherein Terminat_Session is the AVP parameter that the present invention adds, and its format meets the AVP structure of standard as follows:

其中数据内容为针对Origin-State-Id均为20111128T152000Z,且Origin-Host都为P-CSCF生成的会话映射表;数据内容可选的只需包含所述会话映射表中的会话标识,此时HW_OriginHostName标识就是优选的;The data content is the session mapping table generated for both the Origin-State-Id 20111128T152000Z, and the Origin-Host is P-CSCF; the data content is optional and only needs to include the session ID in the session mapping table. At this time, HW_OriginHostName Logo is preferred;

S510、CCF根据Diameter消息的命令代码为271识别为计费请求消息ACR后,从Termination-Cause的数据内容CLIENT_REBOOT得知是P-CSCF因为异常重启需要放弃重启前的会话资源,因此启动新增处理函数,根据ACR消息中Terminat_Session数据内容对应的会话标识Session-Id或者P-CSCF的会话映射表,释放对应会话标识的资源;S510. After the CCF recognizes the ACR as an accounting request message according to the command code of the Diameter message being 271, it learns from the data content CLIENT_REBOOT of the Termination-Cause that the P-CSCF needs to give up the session resources before the restart due to an abnormal restart, so it starts the new processing Function, according to the session identification Session-Id corresponding to the Terminat_Session data content in the ACR message or the session mapping table of the P-CSCF, release the resources corresponding to the session identification;

S511、CCF发送会话结束应答STA消息给代理单元proxy,其中携带了成功终止的会话标识Session-Id或者终止会话过程中出错信息;S511. The CCF sends a session end response STA message to the proxy unit proxy, which carries a successfully terminated session identifier Session-Id or error information during the process of terminating the session;

S512、代理单元proxy删除会话映射表中对应所述会话标识的相关信息,并发送会议能力应答CEA给P-CSCF。S512. The proxy unit proxy deletes the relevant information corresponding to the session identifier in the session mapping table, and sends a conference capability response CEA to the P-CSCF.

本实施例中,通过维护Diameter客户端标识、Diameter代理转发给Diameter服务的会话标识和Diameter服务器三者之间的会话映射表;所述会话标识由Diameter代理生成,并且Diameter服务器和Diameter客户端对于Diameter来说都是直接交互节点是可见的,对于维护会话映射表能提供更高效的处理,在减少了Diameter服务器处理复杂度基础上增加了Diameter代理的处理复杂度。In this embodiment, by maintaining the session mapping table between the Diameter client ID, the session ID forwarded by the Diameter agent to the Diameter service, and the Diameter server; the session ID is generated by the Diameter agent, and the Diameter server and the Diameter client For Diameter, all direct interaction nodes are visible, which can provide more efficient processing for maintaining the session mapping table, and increase the processing complexity of the Diameter agent on the basis of reducing the processing complexity of the Diameter server.

本发明提供一种针对网元重启后释放资源的代理装置600,包括:The present invention provides a proxy device 600 for releasing resources after a network element is restarted, including:

第一接收器601,接收来自第一网络节点的能力交换请求,所述能力交换请求中携带有第一原始状态标识;The first receiver 601 receives a capability exchange request from a first network node, where the capability exchange request carries a first original state identifier;

第一配置器602,用于比较自身存储的对应所述第一网络节点的第二原始状态标识和所述第一原始状态标识,所述比较的结果不同则生成携带有第一网络节点标识和重启标识的会话结束请求;The first configurator 602 is configured to compare the second original state identifier corresponding to the first network node stored by itself with the first original state identifier, and if the comparison results are different, generate A session end request identified by restart;

第一发送器603,用于向第三网络节点发送所述会话结束请求,使得第三网络节点能够根据重启标识确认第一网络节点重启,并进一步从所述会话映射表中查找与第一网络节点标识相关的会话标识,释放所述相关会话标识对应的会话资源。The first sender 603 is configured to send the session end request to the third network node, so that the third network node can confirm the restart of the first network node according to the restart identifier, and further search for a connection with the first network node from the session mapping table. The node identifies a related session ID, and releases the session resource corresponding to the related session ID.

所述代理装置600进一步还包括:The agent device 600 further includes:

所述第一接收器601,还用于接收来自第一网络节点的会话请求;The first receiver 601 is further configured to receive a session request from a first network node;

所述第一配置器602,还用于生成携带有第一网络节点标识和会话标识的会话请求;The first configurator 602 is further configured to generate a session request carrying a first network node identifier and a session identifier;

所述第一发送器603,还用于向第三网络节点转发所述携带有第一网络节点标识和会话标识的会话请求,使得第三网络节点能够对应所述第一网络节点标识添加所述会话标识到会话映射表,所述会话映射表存储于第三网络节点中。The first sender 603 is further configured to forward the session request carrying the first network node identifier and the session identifier to a third network node, so that the third network node can add the A session identifier to a session mapping table, and the session mapping table is stored in the third network node.

本发明提供一种针对网元重启后释放资源的服务器700,包括:The present invention provides a server 700 for releasing resources after network elements are restarted, including:

第一接收器701,用于接收来自第二网络节点的会话结束请求,所述会话结束请求携带有第一网络节点标识和重启标识;The first receiver 701 is configured to receive a session end request from a second network node, where the session end request carries a first network node identifier and a restart identifier;

第一处理器702,用于根据所述重启标识确认第一网络节点重启,并从存储的会话映射表中查找与所述第一网络节点标识相关会话标识,释放所述相关会话标识对应的会话资源。The first processor 702 is configured to confirm the restart of the first network node according to the restart identifier, and search for a session identifier related to the first network node identifier from the stored session mapping table, and release the session corresponding to the related session identifier resource.

所述服务器700进一步还包括:The server 700 further includes:

第一接收器701,还用于接收来自第二网络节点的会话请求,所述会话请求携带有第一网络节点标识和会话标识;The first receiver 701 is further configured to receive a session request from the second network node, where the session request carries the first network node identifier and the session identifier;

第一处理器702,还用于对应所述第一网络节点标识添加所述会话标识到会话映射表,所述会话映射表存储于第三网络节点中。The first processor 702 is further configured to add the session identifier to a session mapping table corresponding to the first network node identifier, where the session mapping table is stored in the third network node.

本发明提供一种针对网元重启后释放资源的装置800,包括:The present invention provides a device 800 for releasing resources after a network element is restarted, including:

第二接收器801,应用接收来自第一网络节点的能力交换请求,所述能力交换请求中携带有第一原始状态标识;The second receiver 801, the application receives a capability exchange request from the first network node, where the capability exchange request carries a first original state identifier;

第二配置器802,用于比较自身存储的对应所述第一网络节点的第二原始状态标识和所述第一原始状态标识,所述比较的结果不同则从存储的会话映射表中查找对应第三网络节点标识和第一网络节点标识的相关会话标识,生成携带有所述相关会话标识和重启标识的会话结束请求;The second configurator 802 is configured to compare the second original state identifier corresponding to the first network node stored by itself with the first original state identifier, and if the result of the comparison is different, search the corresponding session mapping table from the stored session mapping table. The third network node identifier and the related session identifier of the first network node identifier, generating a session end request carrying the related session identifier and the restart identifier;

第二发送器803,用于向第三网络节点发送所述会话结束请求,使得第三网络节点能够根据重启标识确认第一网络节点重启,释放所述相关会话标识对应的会话资源。The second sender 803 is configured to send the session end request to the third network node, so that the third network node can confirm the restart of the first network node according to the restart identifier, and release the session resource corresponding to the relevant session identifier.

所述装置800进一步还包括:The device 800 further includes:

所述第二接收器801,还用于接收来自第一网络节点的会话请求;The second receiver 801 is further configured to receive a session request from the first network node;

所述第二配置器802,还用于对应第三网络节点标识和第一网络节点标识添加所述会话标识到会话映射表,所述会话映射表存储于第二网络节点中。The second configurator 802 is further configured to add the session identifier to a session mapping table corresponding to the third network node identifier and the first network node identifier, and the session mapping table is stored in the second network node.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明,可以通过硬件实现,也可以借助软件加必要的通用硬件平台的方式来实现。基于这样的理解,本发明的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the above description of the implementation manners, those skilled in the art can clearly understand that the present invention can be implemented by hardware, or by means of software plus a necessary general-purpose hardware platform. Based on this understanding, the technical solution of the present invention can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be CD-ROM, U disk, mobile hard disk, etc.), including several The instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods described in various embodiments of the present invention.

本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模块或流程并不一定是实施本发明所必须的。Those skilled in the art can understand that the drawing is only a schematic diagram of a preferred embodiment, and the modules or processes in the drawing are not necessarily necessary for implementing the present invention.

本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个或多个装置中。上述实施例的模块可以合并为一个模块,也可以进一步拆分成多个子模块。Those skilled in the art can understand that the modules in the device in the embodiment can be distributed in the device in the embodiment according to the description in the embodiment, or can be located in one or more devices different from the embodiment according to corresponding changes. The modules in the above embodiments can be combined into one module, and can also be further divided into multiple sub-modules.

综上所述,以上仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。To sum up, the above are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (16)

1. one kind restart for network element after discharge the method for resource, it is characterised in that including:
The capabilities exchange that second network node receives from first network node is asked, and the request of described capabilities exchange carries the first initial condition mark;Compare the second initial condition mark of the correspondence described first network node of the second network node storage and described first initial condition mark further;
Different then generation of described result of the comparison carries first network node identification and restarts the conversation end request of mark, the request of described conversation end is sent to the 3rd network node, make the 3rd network node can restart identity validation first network node restart according to described, and from the session mapping table of the 3rd network node storage, find the session identification relevant to described first network node identification further, discharge the Session Resources that described associated session mark is corresponding, wherein said restart be designated user-defined identification, the parsing and the operation that have corresponding identifier in described 3rd network node realize.
2. the method for claim 1, it is characterised in that described method further comprises:
Receive the conversation request from first network node, and the conversation request of first network node identification and session identification is carried to the 3rd target node so that the 3rd network node can add described session identification to session mapping table by corresponding described first network node identification.
3. method as claimed in claim 2, it is characterised in that described first network node is Gateway GPRS Support Node, and described conversation request is credit control request, and described 3rd network node is convergent billing access point, and described method specifically includes:
Receive the credit control request from Gateway GPRS Support Node, the credit control request carrying Gateway GPRS Support Node mark and session identification is forwarded to convergent billing access point, making convergent billing access point corresponding described Gateway GPRS Support Node mark can add described session identification to session mapping table, described session mapping table is stored in convergent billing access point.
4. the method as described in claim 1,2 or 3, it is characterized in that, described first network node is Gateway GPRS Support Node, and described second network node is Diameter diameter credit control agency, described 3rd network node is convergent billing access point, and described method specifically includes:
The capabilities exchange that Diameter diameter credit control agency receives from Gateway GPRS Support Node is asked, and compares the second initial condition mark of the described Gateway GPRS Support Node of correspondence of Diameter diameter credit control agency's storage and described first initial condition mark further;
Described result of the comparison difference then sends conversation end request to convergent billing access point, the request of described conversation end carries Gateway GPRS Support Node mark and restarts mark, make convergent billing access point can judge that Gateway GPRS Support Node is because of abnormal restarting according to restarting mark, and from described session mapping table, search the session identification relevant to Gateway GPRS Support Node mark further, discharge the Session Resources that described associated session mark is corresponding.
5. one kind restart for network element after discharge the method for resource, it is characterised in that including:
3rd network node accepts to ask from the conversation end of the second network node, the request of described conversation end carries first network node identification and restarts mark, restart identity validation first network node described in basis further to restart, and find and described first network node identification associated session mark from the session mapping table of storage, discharge the Session Resources that described associated session mark is corresponding, wherein said restart be designated user-defined identification, described 3rd network node have corresponding identifier parsing and operation realize.
6. method as claimed in claim 5, it is characterised in that described method further comprises:
Receive the conversation request from the second network node, described conversation request carries first network node identification and session identification, then corresponding described first network node identification adds described session identification to session mapping table, and described session mapping table is stored in the 3rd network node.
7. method as claimed in claim 6, it is characterised in that first network node is Gateway GPRS Support Node, and conversation request is credit control request, and the 3rd network node is convergent billing access point, and described method specifically includes:
Convergent billing access point receives the credit control request from diameter credit control agency, described credit control request carries Gateway GPRS Support Node mark and session identification, then corresponding described Gateway GPRS Support Node mark adds described session identification to session mapping table, and described session mapping table is stored in convergent billing access point.
8. method as described in claim 5,6 or 7, it is characterised in that first network node is Gateway GPRS Support Node, the second network node is Diameter diameter credit control agency, and the 3rd network node is that method described in convergent billing access point specifically includes:
Convergent billing access point receives the conversation end request from diameter credit control agency, the request of described conversation end carries Gateway GPRS Support Node mark and restarts mark, restart mark further described in basis and judge that Gateway GPRS Support Node is restarted, and search and described Gateway GPRS Support Node mark associated session mark from the session mapping table of storage, discharge the Session Resources that described associated session mark is corresponding.
9. one kind restart for network element after discharge the method for resource, it is characterised in that including:
The capabilities exchange that second network node receives from first network node is asked, and the request of described capabilities exchange carries the first initial condition mark;Compare the second initial condition mark of the correspondence described first network node of the second network node storage and described first initial condition mark further;
Described result of the comparison is different then to be found the associated session of corresponding 3rd network node mark and first network node identification from the session mapping table of described second network node storage and identifies, and carry, to the 3rd network node transmission, the conversation end request that described associated session identifies and restarts mark, 3rd network node can be restarted according to restarting identity validation first network node, discharge the Session Resources that described associated session mark is corresponding, wherein said restart be designated user-defined identification, the parsing and the operation that have corresponding identifier in described 3rd network node realize.
10. method as claimed in claim 9, it is characterised in that described method also includes:
Receive the conversation request from first network node, carry the conversation request of session identification to the 3rd target node;The corresponding 3rd network node mark of further second network node and first network node identification add described session identification to session mapping table, and described session mapping table is stored in the second network node.
11. one kind restart for network element after discharge the agent apparatus of resource, it is characterised in that including:
First receptor, asks for the capabilities exchange received from first network node, carries the first initial condition mark in the request of described capabilities exchange;
First distributor, for comparing the second initial condition mark of the correspondence described first network node of self storage and described first initial condition mark, different then generation of described result of the comparison carries first network node identification and restarts the conversation end request of mark;
First transmitter, for sending the request of described conversation end to the 3rd network node, 3rd network node can be restarted according to restarting identity validation first network node, and from described session mapping table, find the session identification relevant to first network node identification further, discharge the Session Resources that described associated session mark is corresponding, wherein said restart be designated user-defined identification, have in described 3rd network node corresponding identifier parsing and operation realize.
12. device as claimed in claim 11, it is characterised in that also include:
Described first receptor, is additionally operable to receive the conversation request from first network node;
Described first distributor, is additionally operable to generate the conversation request carrying first network node identification and session identification;
Described first transmitter, it is additionally operable to the conversation request carrying first network node identification and session identification described in the 3rd target node, making the 3rd network node can add described session identification to session mapping table by corresponding described first network node identification, described session mapping table is stored in the 3rd network node.
13. one kind restart for network element after discharge the server of resource, it is characterised in that including:
First receptor, asks for the conversation end received from the second network node, and the request of described conversation end carries first network node identification and restarts mark;
First processor, described in basis, restart identity validation first network node restart, and find and described first network node identification associated session mark from the session mapping table of storage, discharge the Session Resources that described associated session mark is corresponding, wherein said restart be designated user-defined identification, have in described server corresponding identifier parsing and operation realize.
14. server as claimed in claim 13, it is characterised in that also include:
Described first receptor, is additionally operable to receive the conversation request from the second network node, and described conversation request carries first network node identification and session identification;
Described first processor, is additionally operable to corresponding described first network node identification and adds described session identification to session mapping table, and described session mapping table is stored in the 3rd network node.
15. one kind restart for network element after discharge the agent apparatus of resource, it is characterised in that including:
Second receptor, asks for the capabilities exchange received from first network node, carries the first initial condition mark in the request of described capabilities exchange;
Second distributor, for comparing the second initial condition mark of the correspondence described first network node of self storage and described first initial condition mark, the described result of the comparison different associated session then finding corresponding 3rd network node mark and first network node identification from the session mapping table of storage identify, generates and carries described associated session and identify and restart the conversation end of mark and ask;
Second transmitter, for sending the request of described conversation end to the 3rd network node, 3rd network node can be restarted according to restarting identity validation first network node, discharge the Session Resources that described associated session mark is corresponding, wherein said restart be designated user-defined identification, have in described 3rd network node corresponding identifier parsing and operation realize.
16. device as claimed in claim 15, it is characterised in that including:
Described second receptor, is additionally operable to receive the conversation request from first network node;
Described second distributor, is additionally operable to corresponding 3rd network node mark and first network node identification adds described session identification to session mapping table, and described session mapping table is stored in the second network node.
CN201210020513.XA 2012-01-21 2012-01-21 A kind of restart for network element after discharge the methods, devices and systems of resource Active CN102612164B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210020513.XA CN102612164B (en) 2012-01-21 2012-01-21 A kind of restart for network element after discharge the methods, devices and systems of resource
PCT/CN2013/070752 WO2013107402A1 (en) 2012-01-21 2013-01-21 Method, device and system for releasing resource after network element restarts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210020513.XA CN102612164B (en) 2012-01-21 2012-01-21 A kind of restart for network element after discharge the methods, devices and systems of resource

Publications (2)

Publication Number Publication Date
CN102612164A CN102612164A (en) 2012-07-25
CN102612164B true CN102612164B (en) 2016-06-29

Family

ID=46529230

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210020513.XA Active CN102612164B (en) 2012-01-21 2012-01-21 A kind of restart for network element after discharge the methods, devices and systems of resource

Country Status (2)

Country Link
CN (1) CN102612164B (en)
WO (1) WO2013107402A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102612164B (en) * 2012-01-21 2016-06-29 华为技术有限公司 A kind of restart for network element after discharge the methods, devices and systems of resource
CN104604150B (en) 2012-07-23 2018-01-30 苹果公司 Method and system for anchored down selection in a coordinated multipoint transmission cluster
CN102821011A (en) * 2012-08-28 2012-12-12 北京星网锐捷网络技术有限公司 Opposite terminal state detection method, device and equipment
CN106330823A (en) * 2015-06-23 2017-01-11 中兴通讯股份有限公司 A session keep-alive method and device
CN107872326B (en) * 2016-09-26 2020-09-08 华为技术有限公司 A method, device and system for releasing session resources
CN111600832B (en) * 2019-07-25 2022-09-30 新华三技术有限公司 Message processing method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765217A (en) * 2009-12-15 2010-06-30 北京佳讯飞鸿电气股份有限公司 Method of detecting restart of sip terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101543030B (en) * 2007-04-02 2012-11-14 日本电气株式会社 Ims network system and data restore method
WO2011098155A1 (en) * 2010-02-09 2011-08-18 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for use with ip connectivity access network
CN102802143B (en) * 2011-05-26 2015-05-27 华为软件技术有限公司 Service restoring method, relevant device and system
CN102612164B (en) * 2012-01-21 2016-06-29 华为技术有限公司 A kind of restart for network element after discharge the methods, devices and systems of resource

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101765217A (en) * 2009-12-15 2010-06-30 北京佳讯飞鸿电气股份有限公司 Method of detecting restart of sip terminal

Also Published As

Publication number Publication date
CN102612164A (en) 2012-07-25
WO2013107402A1 (en) 2013-07-25

Similar Documents

Publication Publication Date Title
CN102612164B (en) A kind of restart for network element after discharge the methods, devices and systems of resource
CN103441862B (en) A method, related device and system for realizing terminal called service recovery
CN103457967B (en) Service node switching method and system
WO2014169804A1 (en) Registration method and system for common service entity
CN108184233A (en) A kind of number carrying method and system
JP6368042B2 (en) CDF tracking for offline charging
CN102244845A (en) Method for accessing storage server of IM (Instant Message) service system and IM (Instant Message) service system
CN111404865A (en) IMS system encrypted call method, network equipment, terminal and system
CN103841080A (en) Called number completion method, device and system
CN100421399C (en) A distributed group communication management system and method for creating a group
CN107078916B (en) Processing to reduce partial CDR in offline charging system
CN103249023B (en) A kind of business platform obtains the method for subscriber phone number, system and business platform
WO2015172629A1 (en) Message transmission method, apparatus and system
CN104660728B (en) NAT penetrating methods based on intelligent home control system
CN101997846A (en) Session handling method and device as well as communication system
CN110365630A (en) Information processing method and device, communication network element and storage medium
JP6807952B2 (en) Methods and devices for determining the communication network that provides communication services to terminal communication devices
WO2017203328A1 (en) Method for providing position information related to legal interception in an ims network
KR100621203B1 (en) Wireless data service control method and system for prepaid and limit subscriber
CN109039663B (en) An associated charging method, charging device and system
CN101662477A (en) Method for searching user data and device thereof
CN103220659A (en) Method, device and equipment for updating session record information in signaling routing agent
CN105491566A (en) Twin machine detection method and system, and policy and charging rules function (PCRF) device
CN100450018C (en) A Method of Improving Communication Reliability Between Diameter Nodes
WO2011054270A1 (en) Method for realizing location zone update and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201203

Address after: Building 2, No. 3, Fuqian Road, Hailing District, Taizhou City, Jiangsu Province

Patentee after: Taizhou Haitong Asset Management Co.,Ltd.

Address before: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Effective date of registration: 20201203

Address after: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.