WO2013107402A1 - Method, device and system for releasing resource after network element restarts - Google Patents

Method, device and system for releasing resource after network element restarts Download PDF

Info

Publication number
WO2013107402A1
WO2013107402A1 PCT/CN2013/070752 CN2013070752W WO2013107402A1 WO 2013107402 A1 WO2013107402 A1 WO 2013107402A1 CN 2013070752 W CN2013070752 W CN 2013070752W WO 2013107402 A1 WO2013107402 A1 WO 2013107402A1
Authority
WO
WIPO (PCT)
Prior art keywords
session
identifier
network node
request
mapping table
Prior art date
Application number
PCT/CN2013/070752
Other languages
French (fr)
Chinese (zh)
Inventor
陆敬石
杨斌
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2013107402A1 publication Critical patent/WO2013107402A1/en

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

Abstract

The present invention belongs to the field of computer communication and mainly relates to a method, device and system for releasing resource after a network element restarts. The method comprises: a second network node receives an ability exchange request from a first network node and the ability exchange request carries a first original state identifier; a second original state identifier, which is corresponding to the first network node and stored in the second network node, is compared with the first original state identifier; if the identifiers are different, a session ending request is transmitted to a third network node and the session ending request carries the first network node identifier and a restart identifier. Therefore, the waste in network passages caused by abnormal restart of the first network node is reduced.

Description

一种针对网元重启后释放资源的方法、 装置和系统 本申请要求于 2012 年 01 月 21 日提交中国专利局、 申请号为 201210020513.X, 发明名称为 "一种针对网元重启后释放资源的方法、 装置和 系统" 的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  Method, device and system for releasing resources after restarting a network element The present application claims to be submitted to the Chinese Patent Office on January 21, 2012, and the application number is 201210020513.X. The invention name is "A kind of resource is released after the network element is restarted. The priority of the Chinese Patent Application, the entire disclosure of which is incorporated herein by reference. Technical field
本发明属于计算机通信领域,主要涉及一种针对网元重启后释放资源的方 法、 装置和系统。  The invention belongs to the field of computer communication, and mainly relates to a method, device and system for releasing resources after a network element is restarted.
背景技术 Background technique
Diameter协议包括基本协议、 网络接入服务 ( Net Access Server, NAS ) 协议、可扩展鉴别 (Extensions Authentication Protocol , EAP)协议、移动 IP (Moto Internet Protocol, MIP)协议、 密码消息语法 (Code Message syntax, CMS)协议 等。 Diameter协议支持移动 IP、 NAS请求和移动代理的认证、 授权和计费工 作, Diameter协议的实现和 RADIUS协议类似, 也是釆用属性值对( attribute value pair , AVP ) , 即 Attribute-Length- Value三元组形式来实现, 并且详细规 定了错误处理、 拥有 failover机制、 釆用 TCP协议、 支持分布式计费, 并克服 了 RADIUS协议的许多缺点, 是最适合未来移动通信系统的认证、 授权和计 费 (Authentication Authorization Accounting , AAA)协议。  The Diameter protocol includes a basic protocol, a Net Access Server (NAS) protocol, an Extensions Authentication Protocol (EAP) protocol, a Moto Internet Protocol (MIP) protocol, and a Code Message syntax. CMS) agreement, etc. The Diameter protocol supports the authentication, authorization, and accounting of mobile IP, NAS requests, and mobile agents. The implementation of the Diameter protocol is similar to the RADIUS protocol. It is also the attribute value pair (AVP), which is Attribute-Length-Value. It is implemented in the form of tuples, and specifies the error handling, possesses the failover mechanism, uses the TCP protocol, supports distributed charging, and overcomes many shortcomings of the RADIUS protocol. It is the most suitable for future authentication, authorization, and accounting of mobile communication systems. Authentication Authorization Accounting (AAA) protocol.
为处理用户的接入, Diameter客户端通过 Diameter基础协议和 Diameter 应用协议, 与 Diameter服务器进行一系列的信息交换, 而这样一个从发起到 中止的一系列信息交互, 在 Diameter协议里被称为一个用户会话(User Session )。  In order to handle the user's access, the Diameter client performs a series of information exchange with the Diameter server through the Diameter base protocol and the Diameter application protocol, and such a series of information interaction from initiation to suspension is called a Diameter protocol. User Session.
一个用户会话的建立, 一般是由 Diameter客户端发起, 中间可以途径若 干 Diameter代理、 重定向器或协议转换器, 一直延伸到 Diameter服务器。 用 户会话的结束, 由 Diameter客户端决定, 但服务器也可以先行发出中止用户 会话请求 (Abort Session Request, ASR ), 在客户端同意中止请求的情况下, 会 响应中止用户会话应答(Abort Session Answer, ASA ), 然后再发出用户会话 结束请求, 通知服务器结束用户会话; 否则用户会话仍得以保持。 在未得到服 务器请求的情况下,客户端也可以自行给服务器发出用户会话结束请求, 例如 在客户端自身异常, 或是用户接入异常等的情况下。 当出于安全、 可靠性考虑, 在 Diameter客户端和 Diameter服务端之间设 置了 Diameter代理后, 由于客户端和服务端不再直接可见, 因此客户端的异 常重启对于服务端来说只有 Diameter代理发觉后才能通知 Diameter服务器, 并且只能通过 Diameter代理所对应的会话逐条通知 Diameter 务器结束所述 会话并释放资源。 The establishment of a user session is generally initiated by the Diameter client, which can be extended to the Diameter server by means of 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 Session Request (ASR) first. If the client agrees to abort the request, it will respond to the abort user response (Abort Session Answer, ASA), then issue a user session end request, notifying the server to end the user session; otherwise the user session is still maintained. In the case that the server does not receive the request, the client can also issue a user session end request to the server, for example, if the client itself is abnormal, or the user access is abnormal. When the Diameter agent 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 client restarts abnormally. Only the Diameter agent detects the server. The Diameter server can be notified later, and the Diameter server can be notified one by one through the session corresponding to the Diameter agent to end the session and release the resources.
发明内容 Summary of the invention
本发明解决了在拥有 Diameter代理环境下, Diameter客户端的异常重启 后只能通过 Diameter代理所对应的会话逐条通知 Diameter服务器结束所述会 话并释放资源, 由此造成的网络通道的浪费。  The invention solves the problem that the Diameter client terminates the session and releases the resources one by one through the session corresponding to the Diameter agent, and the network channel is wasted.
本发明的一方面提供了一种针对网元重启后释放资源的方法,包括第二网 络节点接收来自第一网络节点的能力交换请求,所述能力交换请求携带有第一 原始状态标识;进一步比较第二网络节点存储的对应所述第一网络节点的第二 原始状态标识和所述第一原始状态标识;所述比较的结果不同则向第三网络节 点发送会话结束请求,所述会话结束请求携带了第一网络节点标识和重启标识, 使得第三网络节点能够根据所述重启标识确认第一网络节点重启,并进一步从 第三网络节点存储的会话映射表中查找与所述第一网络节点标识相关的会话 标识, 释放所述相关会话标识对应的会话资源。  An aspect of the present invention provides a method for releasing resources after a network element is restarted, including: a second network node receiving a capability exchange request from a first network node, the capability exchange request carrying a first original state identifier; further comparing And storing, by the second network node, a second original state identifier corresponding to the first network node and the first original state identifier; if the result of the comparing is different, sending a session end request to the third network node, the session end request Carrying the first network node identifier and the restart identifier, so that the third network node can confirm the first network node restart according to the restart identifier, and further search for the first network node from the session mapping table stored by the third network node. Identify the related session identifier, and release the session resource corresponding to the related session identifier.
本发明的另一方面提供了一种针对网元重启后释放资源的方法,包括接受 来自第二网络节点的会话结束请求 ,所述会话结束请求携带有第一网络节点标 识和重启标识, 进一步根据所述重启标识确认第一网络节点重启, 并从存储的 会话映射表中查找与所述第一网络节点标识相关会话标识,释放所述相关会话 标识对应的会话资源。  Another aspect of the present invention provides a method for releasing a resource after a network element is restarted, including accepting a session end request from a second network node, where the session end request carries a first network node identifier and a restart identifier, further The restart identifier confirms that the first network node is restarted, and searches for a session identifier associated with the first network node identifier from the stored session mapping table, and releases the session resource corresponding to the related session identifier.
本发明的另一方面提供了一种针对网元重启后释放资源的方法,包括第二 网络节点接收来自第一网络节点的能力交换请求,所述能力交换请求携带有第 一原始状态标识;进一步比较第二网络节点存储的对应所述第一网络节点的第 二原始状态标识和所述第一原始状态标识;所述比较的结果不同则从所述第二 网络节点存储的会话映射表中查找对应第三网络节点标识和第一网络节点标 识的相关会话标识,并向第三网络节点发送携带了所述相关会话标识和重启标 识的会话结束请求 ,使得第三网络节点能够根据重启标识确认第一网络节点重 启, 释放所述相关会话标识对应的会话资源。 Another aspect of the present invention provides a method for releasing resources after a network element is restarted, comprising: a second network node receiving a capability exchange request from a first network node, the capability exchange request carrying a first original state identifier; Comparing the second original state identifier corresponding to the first network node and the first original state identifier stored by the second network node; if the result of the comparison is different, searching from the session mapping table stored by the second network node Corresponding to the third network node identifier and the related session identifier of the first network node identifier, and sending the related session identifier and the restart label to the third network node The session end request is obtained, 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 related session identifier.
本发明的另一方面提供了一种针对网元重启后释放资源的代理装置,包括 第一接收器, 用于接收来自第一网络节点的能力交换请求, 所述能力交换请求 中携带有第一原始状态标识; 第一配置器, 用于比较自身存储的对应所述第一 网络节点的第二原始状态标识和所述第一原始状态标识,所述比较的结果不同 则生成携带有第一网络节点标识和重启标识的会话结束请求; 第一发送器, 用 于向第三网络节点发送所述会话结束请求 ,使得第三网络节点能够根据重启标 识确认第一网络节点重启,并进一步从所述会话映射表中查找与第一网络节点 标识相关的会话标识, 释放所述相关会话标识对应的会话资源。  Another aspect of the present invention provides a proxy device for releasing resources after a network element is restarted, including a first receiver, configured to receive a capability exchange request from a first network node, where the capability exchange request carries a first a first configurator, configured to compare a second original state identifier corresponding to the first network node and the first original state identifier that are stored by the first configurator, and the result of the comparison is different to generate a first network a node end identifier and a session end request for restarting the identifier; the first sender, 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 The session identifier is found in the session mapping table, and the session identifier corresponding to the related session identifier is released.
本发明的另一方面提供了一种针对网元重启后释放资源的服务器,包括第 一接收器, 用于接收来自第二网络节点的会话结束请求, 所述会话结束请求携 带有第一网络节点标识和重启标识; 第一处理器, 用于根据所述重启标识确认 第一网络节点重启,并从存储的会话映射表中查找与所述第一网络节点标识相 关会话标识, 释放所述相关会话标识对应的会话资源。  Another aspect of the present invention provides a server for releasing resources after a network element is restarted, including a first receiver, configured to receive a session end request from a second network node, where the session end request carries a first network node And identifying, by the first processor, the first network node restarting according to the restart identifier, and searching for a session identifier related to the first network node identifier from the stored session mapping table, releasing 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 is restarted, including a second receiver, where the application receives a capability exchange request from a first network node, where the capability exchange request carries a first original a second identifier, configured to compare the second original state identifier corresponding to the first network node and the first original state identifier that are stored by the first configurator, and the result of the comparison is different from the stored session mapping table. And searching for a session end identifier corresponding to the identifier of the third network node and the identifier of the first network node, and generating a session end request carrying the related session identifier and the restart identifier, where the second sender is configured to send the session to the third network node Ending the request, so that the third network node can confirm that the first network node restarts according to the restart identifier, and release the session resource corresponding to the related session identifier.
附图说明 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本发明的一种针对网元重启后释放资源的方法流程图;  2 is a flowchart of a method for releasing resources after a network element is restarted according to the present invention;
图 3本发明的一种针对网元重启后释放资源的方法的信令流程图; 图 4本发明的一种 Diameter SIP应用的通用体系结构图; 图 5本发明的一种针对网元重启后释放资源的方法的信令图流程; 图 6本发明的一种针对网元重启后释放资源的代理结构图; FIG. 3 is a signaling flowchart of a method for releasing resources after a network element is restarted according to the present invention; FIG. 4 is a general architecture diagram of a Diameter SIP application according to the present invention; FIG. 5 is a signaling diagram of a method for releasing resources after a network element is restarted according to the present invention; FIG. 6 is a proxy structure diagram 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 schematic diagram of an agent structure for releasing resources after a network element is restarted according to the present invention;
下述描述和附图详细阐述了本发明多个示范性实施例。这些实施例仅作为 示例, 本发明还能以其他不同方式实现。  The following description and the annexed drawings set forth in detail These examples are by way of example only and the invention can be implemented in other different ways.
具体实施方式 detailed description
本发明提供的一种针对网元重启后释放资源的方法实施例, 包括:  An embodiment of the method for releasing resources after a network element is restarted includes:
S 1001、 第二网络节点接收来自第一网络节点的能力交换请求。  S 1001. 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 等。其中第二网络节点特指第一网络节点与第二网络节点间的代理节点, 所述 代理节点的布置目的一般是对 ( Diameter Credit Control, 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 a GGSN and a CBP in a VoIP network architecture; for example, an IMS architecture P-CSCF and CCF or S-CSCF and MRFC. The second network node specifically refers to a proxy node between the first network node and the second network node, and the proxy node is generally arranged to shield the number of DCC servers from the DCC client of the Diameter Credit Control (DCC), or For security and reliability considerations, avoid direct connection between the DCC client and the DCC server.
第二网络节点除接收所述来自第一网络节点的能力交换请求外,还可以接 收来自第一网络节点的会话请求,并向第三网络节点转发携带有第一网络节点 标识和会话标识的会话请求,使得第三网络节点能够对应所述第一网络节点标 识添加所述会话标识到会话映射表, 所述会话映射表存储于第三网络节点中。  The second network node may receive the session request from the first network node in addition to the capability exchange 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 is such that the third network node can add the session identifier to the session mapping table corresponding to the first network node identifier, where the session mapping table is stored in the third network node.
所述会话请求包括了除能力交换请求外的如信用控制请求 CCR、 会话中 断请求( Abort Session Request, ASR )、连接中止请求( Disconnect Peer Request, DPR ) 、 终止会话请求 ( Session Termination Request, STR )等。  The session request includes a credit control request CCR, an Abort Session Request (ASR), a Disconnect Peer Request (DPR), and a Session Termination Request (STR) in addition to the capability exchange request. Wait.
S1002、 比较第二网络节点存储的对应所述第一网络节点的第二原始状态 标识和所述第一原始状态标识。  S1002: Compare a 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 an AVP parameter Origin-State-Id in the Diameter protocol, and the value is changed only when the first network node is restarted and is abnormally restarted, for example, the first network node is powered off, the system is crashed, and the like. In turn, the session between the network nodes is not ended normally through the STR message. When the first network node after the restart initiates the capability exchange request CER again, it will carry a new one. The Origin-State-Id, Origin-State-Id change process is a single-increment. The new Origin-State-Id median value is larger than the Origin-State-Id value carried in the capability exchange request CER or session request before the abnormal restart. .
S1003、 比较结果不同则向第三网络节点发送会话结束请求。  S1003. If the comparison result is different, the session end request is sent to the third network node.
所述会话结束请求携带了第一网络节点标识和重启标识,使得第三网络节 点能够根据所述重启标识确认第一网络节点重启,并进一步从存储的会话映射 表中查找与所述第一网络节点标识相关的会话标识,释放所述相关会话标识对 应的会话资源。  The session end request carries 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 first network from the stored session mapping table. The node identifier is related to the session identifier, and the session resource corresponding to the related session identifier is released.
所述与第一网络节点标识相关的会话标识可以是一个或者多个会话标识, 具体由异常重启前第一网络节点通过代理节点与第三网络节点建立的会话个 数决定。  The session identifier associated with the identifier of the first network node may be one or more session identifiers, which is determined by the number of sessions established by the first network node and the third network node by the first network 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 the session end request that does not carry the restart identifier, the session end request carries the session identifier to be ended, and after successfully releasing the session resource corresponding to the session identifier, the slave 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 the network nodes, but since the proxy node is used between the first network node and the third network node, the STR carries the identifier of the second network node. There is a session identifier corresponding to the end, and a session process usually contains multiple session identifiers. Therefore, the existing technology needs to send multiple STRs to end the session where the abnormal first network node fails 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 identifier of the first network node by using the session mapping table, where the session identifier is the first network node and the third network The session ID generated by the node. The first network node identifier and the restart identifier are further carried in the STR, so that the third network node can end the related session in the session mapping table corresponding to the first network node by using one STR message.
本发明提供的一种针对网元重启后释放资源的方法实施例, 包括:  An embodiment of the method for releasing resources after a network element is restarted includes:
S2001、 接收来自第一网络节点的能力交换请求。  S2001: Receive a capability exchange request from the first network node.
所述能力交换请求携带有第一原始状态标识。 第二网络节点除接收所述来自第一网络节点的能力交换请求外,还可以接 收来自第一网络节点的会话请求,向第三网络节点转发携带有会话标识的会话 请求;进一步第二网络节点对应第三网络节点标识和第一网络节点标识添加所 述会话标识到会话映射表, 所述会话映射表存储于第二网络节点中。 The capability exchange request carries a first original state identifier. The second network node may receive the session request from the first network node in addition to the capability exchange 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 And adding the session identifier to the session mapping table corresponding to the third network node identifier and the first network node identifier, where the session mapping table is stored in the second network node.
S2002、 比较自身存储的对应所述第一网络节点的第二原始状态标识和所 述第一原始状态标识。  S2002: Compare, by the self, the second original state identifier corresponding to the first network node and the first original state identifier.
所述第二原始状态标识为 Diameter协议中的 AVP参数 Origin- State-Id,其 值只在第一网络节点重启且为异常重启时改变,如第一网络节点因为断电、 系 统崩溃等原因, 进而没能正常通过 STR消息结束网络节点之间会话。 重启之 后的第一网络节点再次发起能力交换请求 CER时, 便会携带新的  The second original state identifier is an AVP parameter Origin-State-Id in the Diameter protocol, and the value is changed only when the first network node is restarted and is abnormally restarted, for example, the first network node is powered off, the system is crashed, and the like. In turn, the session between the network nodes is not ended normally through the STR message. When the first network node after the restart initiates the capability exchange request CER again, it will carry the new one.
Origin-State-Id, Origin-State-Id的变化过程是单增性质的,新的 Origin- State-Id 中值比异常重启之前能力交换请求 CER或会话请求中携带的 Origin-State-Id 值大。  The Origin-State-Id, Origin-State-Id change process is a single-increment. The new Origin-State-Id median value is larger than the Origin-State-Id value carried in the capability exchange request CER or session request before the abnormal restart. .
S2003、 比较的结果不同则从第二网络节点存储的会话映射表中查找对应 第三网络节点标识和第一网络节点标识的相关会话标识,并向第三网络节点发 送携带了所述相关会话标识和重启标识的会话结束请求。  S2003, the result of the comparison is different, the corresponding session identifier corresponding to the third network node identifier and the first network node identifier is searched from the session mapping table stored by the second network node, and the related session identifier is sent to the third network node. And the session end request to restart the identity.
使得第三网络节点能够根据重启标识确认第一网络节点重启,释放所述相 关会话标识对应的会话资源。  The third network node is enabled to confirm that the first network node restarts according to the restart identifier, and release the session resource corresponding to the related session identifier.
优选的生成一个 AVP参数,并将所述相关会话标识作为该 AVP参数的数 据内容, 在所述会话结束请求中携带上该 AVP参数和重启标识, 第三网络节 点在确认第一网络节点重启后, 进一步从该 AVP参数中提取数据内容即所述 相关会话标识, 并根据所述相关会话标识释放会话资源。  Preferably, an AVP parameter is generated, and the related 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 the third network node confirms that the first network node is restarted. And extracting the data content from the AVP parameter, that is, the related session identifier, and releasing the session resource according to the related session identifier.
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、接口、 技术之类的具体细节, 以便透切理解本发明。 然而, 本领域的技术人员应当清 楚, 在没有这些具体细节的其它实施例中也可以实现本发明。 在其它情况中, 省略对众所周知的装置、 电路和方法的详细说明, 以免不必要的细节妨碍本发 明的描述。  In the following description, for purposes of illustration and description, reference, However, it will be apparent to those skilled in the art that the present 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 invention.
本发明提供的一种针对网元重启后释放资源方法的实施例,其信令传递如 图 3所示, 在本实施例中第一网络节点即 Diameter客户端, 具体可以是网关 GPRS支持节点 (Gateway GPRS Support Node, GGSN ) , 第二网络节点即 Diameter代理, 具体可以是 Diameter信用控制代理( Diameter Credit Control proxy, DCCproxy ) , 第三网络节点即 Diameter服务器具体可以是融合计费接 入点 ( Convergence Billing Point, CBP ) , 会话请求消息具体表现为 Diameter 消息中的信用控制请求( Credit Control Request, CCR ) /信用控制应答( Credit Control Answer, CCA ) , 进一步还涉及能力交换请求 ( Capabilities Exchange Request, CER ) /能力交换应答( Capabilities Exchange Answer, CEA ) ; GGSN, DCCproxy、 CBP均属于 Diameter实体 , 具体实现过程如下: An embodiment of the present invention provides a method for releasing resources after a network element is restarted, and the signaling is as shown in FIG. 3. In this embodiment, the first network node, that is, the Diameter client, may be a gateway. The GPRS support node (GGSN), the second network node, that is, the Diameter proxy, may be a Diameter Credit Control Proxy (DCCproxy), and the third network node, that is, the Diameter server, may be a convergent charging connection. The Convergence Billing Point (CBP), the session request message is embodied as a Credit Control Request (CCR)/Credit Control Answer (CCA) in the Diameter message, and further relates to a capability exchange request (Capabilities). Exchange Request, CER) / Capabilities Exchange Answer (CEA); GGSN, DCCproxy, and 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, where the Diameter message is specifically a capability exchange request CER message, and the CER is mainly used for requesting message exchange local capability between Diameter entities, and carries the AVP parameter original The status indicator Origin-State-Id, the original status identifier is carried in each Diameter message during a stable operation, and remains unchanged. In this embodiment, the GGSN is sent as a Diameter client due to an abnormal situation, and then sent by the subsequent GGSN. The value of the Origin-State-Id carried in the Diameter message is larger than that before the restart. The value of the Origin-State-Id can be the time of the restart time or the single-variable variable of the non-volatile storage record. The single-increment variable of the non-volatile storage record, and set its current value to 5.
S302、 DCCproxy接收到 GGSN发送的 CER消息后, 进一步从自身存储 区查找与所述 CER消息中携带的原始宿主名 Origin-Host标识相同的对应 Origin-State-Id值, 具体为:  After receiving the CER message sent by the GGSN, the DCCproxy further searches for the corresponding Origin-State-Id value, which is the same as the original host name Origin-Host identifier carried in the CER message, in the storage area.
当存储区查找不到所述 Origin-Host标识时, 将所述 CER消息中的 AVP 参数 Origin-Host的数据内容 GGSN与 AVP参数 Origin- State-Id的数据内容 5 对应的进行存储;  When the storage area does not find the Origin-Host identifier, the data content GGSN of the AVP parameter Origin-Host in the CER message is stored 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-Id is the same, it returns a capability interaction response CEA message to the GGSN.
S303、 GGSN向 DCCproxy发送 Diameter消息, 所述 Diameter消息具体 为信用控制请求 CCR消息, 该消息中包含用户的认证、 计费、 授权等信息。 S304、 DCCproxy在转发 CCR消息给融合计费接入点 CBP时,在所述 CCR 消息中扩展增加自定义 AVP参数 HW— OriginHostName , 扩展后的 CCR完整 消息格式如下, 实际情况中可以是其中某几项 AVP参数的组合: S303: The GGSN sends a Diameter message to the DCCproxy, where the Diameter message is specifically a credit control request CCR message, where the message includes information such as authentication, charging, and authorization of the user. S304. When forwarding the CCR message to the convergent charging access point CBP, the DCCproxy adds a custom AVP parameter HW_EatestHostName in the CCR message, and the extended CCR complete message format is as follows. In actual situations, some of them may be Combination of item AVP parameters:
<Credit-Control-Request> ::= < Diameter Header: 272, REQ, PXY >  <Credit-Control-Request> ::= < Diameter Header: 272, REQ, PXY >
<Session-Id>  <Session-Id>
{Origin-Host}  {Origin-Host}
{Origin-Realm}  {Origin-Realm}
{Destination-Realm}  {Destination-Realm}
{Auth- Application-Id}  {Auth- Application-Id}
{ Service-Context-Id}  { Service-Context-Id}
{ CC-Request-Type }  { CC-Request-Type }
{CC-Request-Number}  {CC-Request-Number}
[Destination-Host]  [Destination-Host]
[Origin- State-Id]  [Origin- State-Id]
[Event-Timestamp]  [Event-Timestamp]
* [Subscription-Id]  * [Subscription-Id]
[Termination-Cause]  [Termination-Cause]
[Multiple-Services-Indicator]  [Multiple-Services-Indicator]
* [Multiple-Services-Credit Control]  * [Multiple-Services-Credit Control]
[ User-Equipment-Info ]  [ User-Equipment-Info ]
[Service-Information]  [Service-Information]
*[AVP]  *[AVP]
[HW— OriginHostName]  [HW— OriginHostName]
DCCproxy将 S303中接收到的 CCR所携带的 Origin-Host数据内容, 即 GGSN标识赋给 HW— OriginHostName , 并转发携带有所述  The DCCproxy assigns the Origin-Host data content carried by the CCR received in the S303, that is, the GGSN identifier to the HW_EatgencyHostName, and forwards the carried
HW— OriginHostName标识的信用控制请求 CCR消息, DCCproxy向 CBP转 发的 CCR消息中主要包含: HW—The credit control request CCR message identified by OriginHostName, and the CCR message forwarded by DCCproxy to CBP mainly includes:
Session-Id=Sessionl  Session-Id=Sessionl
Origin-Host=DCCl Origin-State-Id=3 Origin-Host=DCCl Origin-State-Id=3
HW_OriginHostName=GGSN  HW_OriginHostName=GGSN
这里 Origin-State-Id=3是 DCCproxy的一个原始状态标识, 其值的变换能 够反映出 DCCproxy发生了丟失数据和异常重启。  Here Origin-State-Id=3 is an original state identifier of DCCproxy, and its value can reflect the loss of data and abnormal restart of DCCproxy.
S305、 CBP接收信用控制请求 CCR消息, 获取所述 CCR消息中的 AVP 参数包括: 会话标识 Session-Id和原始宿主名标识 HW— OriginHostName , 并依 据 HW— OriginHostName和 Session-Id对应 Diameter客户端 GGSN添加会话标 识 Sessionl到会议映射表, 所述会议映射表保存于 CBP中, 其格式可选的如 下所示:  S305. The CBP receives the credit control request CCR message, and the AVP parameters in the CCR message are: the session identifier Session-Id and the original host name identifier HW—EathostHostName, and are added according to the HW— OriginHostName and the Session-Id corresponding to the Diameter client GGSN. The session identifier Session1 is in the conference mapping table, and the conference mapping table is saved in the CBP, and the format is as follows:
Figure imgf000011_0001
Figure imgf000011_0001
S306-S307 , CBP向 DCCproxy发送信用控制应答 CCA消息, 其中包含了 S306-S307, CBP sends a credit control response CCA message to the DCCproxy, which includes
CCR消息中携带的请求内容, 和指向 DCCproxy的 AVP参数 Destination-Host 和当前的会话参数 Session-Id。 The content of the request carried in the CCR message, and the AVP parameter Destination-Host pointing to the DCCproxy and the current session parameter Session-Id.
S308、进行 S301-S307间相同的业务交互, 进一步其发送的会话请求可以 不同, 具体的处理过程也可以对应会话请求而改变; 后续的 CBP接收到 Diameter消息, 如上述 CCR消息、 CER消息等, CBP都会根据 AVP参数 HW— OriginHostName携带内容, 如上述 GGSN寻找对应会话映射表, 并更新 会话映射表; 具体的更新操作包括增加会话标识、 删除会话标识等。  S308, performing the same service interaction between S301 and S307, and further, the session request sent by the session may be different, and the specific processing may also be changed according to the session request; the subsequent CBP receives the Diameter message, such as the CCR message and the CER message, The CBP will carry the content according to the AVP parameter HW_EssenceHostName. For example, the GGSN searches for the corresponding session mapping table and updates the session mapping table. The specific update operations include adding the session identifier, deleting the session identifier, and the like.
S309-S310 , GGSN因为异常而造成重启, 并且在与 DCCproxy断开前未 能发送会话终止请求 STR时, 当完成重启后与 DCCproxy重新建立连接, 并 发送 CER消息进行能力协商, 消息中包含必要参数:  S309-S310, the GGSN restarts due to an abnormality, and fails to send the session termination request STR before disconnecting from the DCCproxy, re-establishes a connection with the DCCproxy after completing the restart, and sends a CER message to perform capability negotiation, and the message includes necessary parameters. :
Origin-Host=GGSN  Origin-Host=GGSN
Origin-State-Id=6  Origin-State-Id=6
其中 Origin-State-Id值在 GGSN重启后由之前的 5递增为 6, CER消息携 带 AVP参数 Origin-Host和 Origin-State-Id—并传递, 指明完成重启操作的是 Diameter实体 GGSN。 5311、 DCCproxy接收到 GGSN的 CER消息, 通过比较自身存储的对应 GGSN的 Origin-State-Id值比接收到 CER中携带的 Origin- State-Id值小, 确认 GGSN因为异常重启, 则向 CBP发送 STR消息, 其中携带的关键 AVP参数 下: The value of the Origin-State-Id is incremented from the previous 5 to 6 after the GGSN is restarted. The CER message carries the AVP parameters Origin-Host and Origin-State-Id—and indicates that the Diameter entity GGSN is completed. 5311. The DCCproxy receives the CER message of the GGSN, and compares the value of the Origin-State-Id of the corresponding GGSN stored in the CER to the value of the Origin-State-Id carried in the CER, and confirms that the GGSN sends the STR to the CBP because of abnormal restart. Message, which carries the key AVP parameters:
Termination-Cause=CLIENT— REBOOT  Termination-Cause=CLIENT— REBOOT
HW_OriginHostName=GGSN  HW_OriginHostName=GGSN
消息中主要参数还包含:  The main parameters in the message also include:
Session-ld=0  Session-ld=0
Termination-Cause=CLIENT— REBOOT  Termination-Cause=CLIENT— REBOOT
HW_OriginHostName=GGSN  HW_OriginHostName=GGSN
其中 Session-ld=0表示任意会话, Termination-Cause=CLIENT— REBOOT 表示发送原因为客户端重启, 重启标识 CLIENT— REBOOT为自定义标识, 在 CBP端有对应所述 CLIENT— REBOOT标识的解析和操作实现。  Where Session-ld=0 indicates any session, Termination-Cause=CLIENT-REBOOT indicates that the reason is the client restart, the restart identifier CLIENT-REBOOT is a custom identifier, and the CLIP-REBOOT identifier is parsed and operated at the CBP end. achieve.
5312、 CBP接收到 STR消息后, 判断如果 AVP参数 Termination-Cause 标识的内容为重启标识 CLIENT— REBOOT , 则根据原始宿主名标识  5312. After receiving the STR message, the CBP determines that if the content of the AVP parameter Termination-Cause identifier is the restart identifier CLIENT_REBOOT, the original host name is identified.
HW_OriginHostName中的数据内容 GGSN查询对应会话映射表, 获取对应 GGSN的所有会话标识 Session-Id;  The data content in the HW_OriginHostName GGSN queries the corresponding session mapping table, and obtains all session identifiers Session-Id corresponding to the GGSN;
具体的会话映射表可以是如下表所展示的格式如果 Diameter客户端 GGSN与会话标识对应表中有如下数据, CBP则会释放 Sessionl、 Session6、 Session9会话标识对应的会话资源; 进一步删除会话映射表中对应所述会话标 识相关的信息; 实际会话映射表还可以通过 HW— OriginHostName作为区别分 组保存 Session-Id, 具体实现也不局限于此;  The specific session mapping table may be in the format shown in the following table. If the following data is included in the correspondence table between the Diameter client GGSN and the session identifier, the CBP will release the session resources corresponding to the Session1, Session6, and Session9 session identifiers; Corresponding to the information related to the session identifier; the actual session mapping table may also save the Session-Id by using the HW_ErichostName as a distinct packet, and the specific implementation is not limited thereto;
Diameter客户端 会话标识 HW— OriginHostName Session-Id  Diameter client Session ID HW— OriginHostName Session-Id
GGSN Sessionl GGSN Sessionl
GGSN Session6 GGSN Session6
GGSN2 Session4 GGSN Session9 GGSN2 Session4 GGSN Session9
5313、 CBP在释放完资源后,向 DCCproxy回复会话终止应答 STA消息, 其中携带了成功终止的会话标识或者终止会话过程中出错信息; After the resource is released, the CBP replies to the DCCproxy with a session termination response STA message, which carries the successfully terminated session identifier or the error message during the termination of the session;
5314、 DCCproxy根据接收到的 STA中携带的成功信息, 向 GGSN回复 能力交互应答 CEA消息。  5314. The DCCproxy replies to the GGSN with a capability interaction response CEA message according to the success information carried in the received STA.
上述实施例中步骤 S311和 S314的顺序为本发明的优选方案,有利于减少 服务器端的资源处理压力,可选的情况步骤 S311和 S314还能同步进行,在增 加服务端处理过程基础上可以提高 GGSN重启后与 DCCproxy能力交换请求 CER消息的处理速度。  The sequence of steps S311 and S314 in the foregoing embodiment is a preferred solution of the present invention, which is advantageous for reducing resource processing pressure on the server side. In an optional case, steps S311 and S314 can also be performed synchronously, and the GGSN can be improved on the basis of increasing the processing of the server. After the restart, the DCCproxy capability is exchanged to request the processing speed of the CER message.
本实施例通过在 DCCproxy转发的 Diameter消息中增设指示发起端的 AVP参数 HW OriginHostName和重启标识符 CLIENT— REBOOT;在所述服务 器对应 HW— OriginHostName增加了会话映射表的维护, 对应  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 the DCCproxy, and the session mapping table is added to the HW- OriginHostName corresponding to the server.
CLIENT— REBOOT进一步根据所述会话映射表实现了通过一条会话终止请求 CER消息完成 GGSN异常重启后对应会话资源在 CBP中的释放功能,提高了 网络传输效率。 CLIENT_REBOOT further implements a CER message through a session termination request according to the session mapping table. The release function of the corresponding session resource in the CBP after the abnormal restart of the GGSN improves the network transmission efficiency.
Diameter SIP应用的通用体系如图 4所示, Diameter客户端 A具体可以是 The general system of the Diameter SIP application is shown in Figure 4. The Diameter client A can be
IMS中的问询呼叫会话控制功能 ( Interrogating Call Session Control Function, I-CSCF ) , 而 Diameter客户端 B具体可以是 IMS中的服务呼叫会话控制功能 ( Serve Call Session Control Function, S-CSCF ) , Diameter服务器具体可以为 IMS中的归属用户服务器( Home Subscriber Server, HSS ) , 其中代理单元 A 和代理单元 B在该体系中为可选的。 The Interrogating Call Session Control Function (I-CSCF) in the IMS, and the Diameter Client B may specifically be a Serve Call Session Control Function (S-CSCF) in the IMS. The server may specifically be a Home Subscriber Server (HSS) in the IMS, where the proxy unit A and the proxy unit B are optional in the system.
本发明提供的一个实施例,如图 5所示为所述 Diameter SIP应用的通用体 系中的 A侧, 并且是用于计费的 Diameter信令交互图, 其中 Diameter客户机 A即第一网络节点具体为代理呼叫会话控制功能 ( Proxy Call Session Control Function, P-CSCF )单元, Diameter服务器即第三网络节点具体为收费积累功 能(Charging Accumulated Function, CCF )单元, 并且在拥有代理单元 proxy 即第二网络节点情形下, 以计费请求 (Accounting-Request, ACR ) 消息和计 费应答(Accounting- Answer, ACA ) 消息和 STR/STA作为传输的 Diameter 消息; 本实施例中以计费请求为例, 没有将计费之前的认证和授权过程进行完 整的阐述,但并不影响本实施例对于发明点的陈述, 本领域技术人员能够凭借 SIP Diameter协议完善整个计费信令过程, 具体实现流程为: An embodiment provided by the present invention is shown in FIG. 5 as the A side in the general system of the Diameter SIP application, and is a Diameter signaling interaction diagram for charging, where the Diameter client A is the first network node. Specifically, it is a Proxy Call Session Control Function (P-CSCF) unit, and the Diameter server, that is, the third network node is specifically a Charging Accumulated Function (CCF) unit, and has a proxy unit proxy, that is, a second In the case of a network node, an Accounting-Request (ACR) message and an Accounting Answer (ACA) message and an STR/STA are used as the Diameter message for transmission. In this embodiment, an accounting request is taken as an example. The authentication and authorization process before billing is not completed The entire description, but does not affect the statement of the embodiment point of the present invention, those skilled in the art can complete the entire billing signaling process by means of the SIP Diameter protocol, and the specific implementation process is:
5501、 P-CSCF向代理单元 proxy发送 Diameter消息, 所述 Diameter消息 为计费请求 ACR消息, 在 P-CSCF状态处于正常时, ACR消息中的原始状态 标识 Origin-State-Id值保持不变, 这里不妨釆用时间参数方式, 并设起始值为 20111128T152000Z; 一个完整的 ACR消息如下:  5501. The P-CSCF sends a Diameter message to the proxy unit proxy, where the Diameter message is an accounting request ACR message. When the P-CSCF state is normal, 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 starting value to 20111128T152000Z; a complete ACR message is as follows:
< Accounting-Request > ::= < Diameter Header: 271, REQ, PXY >  < Accounting-Request > ::= < Diameter Header: 271, REQ, PXY >
< Session-Id >  < Session-Id >
{ Origin-Host }  { Origin-Host }
{ Origin-Realm }  { Origin-Realm }
{ Destination-Realm }  { Destination-Realm }
{ Accounting-Record-Type }  { Accounting-Record-Type }
{ Accounting-Record-Number }  { Accounting-Record-Number }
[ Acct- Application-Id ]  [ Acct- Application-Id ]
[ Vendor- Specific- Application-Id ]  [ Vendor- Specific- Application-Id ]
[ User-Name ]  [ User-Name ]
[ Accounting- Sub- Session-Id ]  [ Accounting- Sub- Session-Id ]
[ Acct-Session-Id ]  [ Acct-Session-Id ]
[ Acct-Multi- Session-Id ]  [ Acct-Multi- Session-Id ]
[ Acct-Interim-Interval ]  [ Acct-Interim-Interval ]
[ Accounting-Realtime-Required ]  [ Accounting-Realtime-Required ]
[ Origin- State-Id ]  [ Origin- State-Id ]
[ Event-Timestamp ]  [ Event-Timestamp ]
* [ Proxy-Info ]  * [ Proxy-Info ]
* [ Route-Record ]  * [ Route-Record ]
* [ AVP ]  * [ AVP ]
5502、 代理单元 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的映射关系, 具体会议映 射表格式如下: The proxy unit proxy identifies the Diameter message as an ACR message, and generates an ACR message forwarded to the CCF, and uses the identifier of the identifier as the value of the AVP parameter Origin-Host in the forwarded ACR message to generate the proxy unit and the CCF. Session ID Session2 and as forwarding The value of the AVP parameter Session-Id in the ACR message, the session2 corresponding to the Diameter client P-CSCF and the Diameter server CCF are saved in the session mapping table in the proxy proxy to establish the Session2 and the Diameter client P-CSCF and the Diameter server CCF. Mapping relationship, the specific conference mapping table format is as follows:
Figure imgf000015_0001
Figure imgf000015_0001
S503、 代理单元 proxy向 CCF转发经生成的 ACR消息;  S503. The proxy unit proxy forwards the generated ACR message to the CCF.
5504、 收费积累功能实体 CCF接收来自 proxy的计费请求 ACR消息, 并 处理计费请求消息中的请求内容, 然后向 proxy返回计费应答 ACA消息  5504. 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 a charging response ACA message to the proxy.
5505、 代理单元 proxy向 P-CSCF转发计费应答 ACA消息;  S505. The proxy unit forwards the charging response ACA message to the P-CSCF.
5506、过程中可以包含上述步骤 S501-S505的处理流程,才艮据会话标识对 应 Diameter客户端标识和 Diameter服务器标识保存于所述会话映射表中, 其 中会话标识是代理单元生成并携带于转发给 CCF的 Diameter消息中;  The processing flow of the foregoing steps S501-S505 may be included in the process, and the Diameter client identifier and the Diameter server identifier are saved in the session mapping table according to the session identifier, where the session identifier is generated by the proxy unit and carried in the forwarding In the Diameter message of the CCF;
S507-508、 P-CSCF因为一些突发原因没有正常结束计费, 所述没有正常 结束例如: 没有发送 STR消息来结束会话; 则在重新启动 P-CSCF后在发送 的会议能力请求 CER中将 AVP参数 Origin-State-Id的值将变为当前时间, 不 妨设为 20111128T152530Z;  S507-508, P-CSCF does not end the charging normally due to some sudden reasons, the normal end does not end, for example: no STR message is sent to end the session; then in the conference capability request CER sent after restarting the P-CSCF The value of the AVP parameter Origin-State-Id will change to 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 data content of the received and saved Origin-State-Id for the same Origin-Host identifier according to the Origin-Host in the CER of the receiving capability exchange request, and receives the data of the Origin-State-Id. When the content value is larger, it is analyzed that the P-CSCF restarts due to the abnormal reason, and then sends a session termination request STR to the CCF, which carries the AVP parameter:
Termination-Cause=CLIENT— REBOOT  Termination-Cause=CLIENT— REBOOT
HW_OriginHostName=P-CSCF  HW_OriginHostName=P-CSCF
Terminat— Session= Terminat— Sessionl  Terminat — Session= Terminat — Sessionl
Termination-Cause=CLIENT— REBOOT表示发送原因为客户端重启, 重启 标识 CLIENT— REBOOT为自定义标识,在 CCF有对应标识符的解析和操作实 现; 当终止会话标识 Terminat— Session对应的数据内容包含有原始宿主名标识 和对应会话映射表时, 会话终止请求 STR中的 AVP参数原始宿主名标识 HW_OriginHostName就为可选项, 一个完整的 STR消息如下: Termination-Cause=CLIENT—REBOOT indicates that the reason for the transmission is the client restart, the restart identifier CLIENT-REBOOT is a custom identifier, and the corresponding identifier is parsed and operated in the CCF. When the data content corresponding to the terminating session identifier Terminat_session contains the original host name identifier and the corresponding session mapping table, the AVP parameter original host name identifier HW_OriginHostName in the session termination request STR is optional, and a complete STR message is as follows: :
<STR>:: = < Diameter Header: 275, REQ, PXY >  <STR>:: = < Diameter Header: 275, REQ, PXY >
< Session-Id >  < Session-Id >
{ Origin-Host }  { Origin-Host }
{ Origin-Realm }  { Origin-Realm }
{ Destination-Realm }  { Destination-Realm }
{ Auth- Application-Id }  { Auth- Application-Id }
{ Termination-Cause }  { Termination-Cause }
[ User-Name ]  [ User-Name ]
[ Destination-Host ]  [ Destination-Host ]
* [ Class ]  * [ Class ]
[ Origin- State-Id ]  [ Origin- State-Id ]
* [ Proxy-Info ]  * [ Proxy-Info ]
* [ Route-Record ]  * [ Route-Record ]
* [ AVP ]  * [ AVP ]
{ HW OriginHostName  { HW OriginHostName
{ Terminat— Session }  { Terminat— Session }
其中 Terminat— Session为本发明增设的 AVP参数,其格式满足标准的 AVP 结构如下:  The Terminat-Session is the AVP parameter added to the invention. The format of the AVP that meets the standard is as follows:
AVP代码  AVP code
AVP长度 供应商 ID (可选) 数据 AVP Length Vendor ID (optional) Data
其中数据内容为针对 Origin-State-Id均为 20111128T152000Z , 且  The data content is for the Origin-State-Id, which is 20111128T152000Z, and
Origin-Host都为 P-CSCF生成的会话映射表;数据内容可选的只需包含所述会 话映射表中的会话标识, 此时 HW— OriginHostName标识就是优选的; 5510、 CCF根据 Diameter消息的命令代码为 271识别为计费请求消息 ACR 后, 从 Termination-Cause的数据内容 CLIENT— REBOOT得知是 P-CSCF因为 异常重启需要放弃重启前的会话资源, 因此启动新增处理函数, 根据 ACR消 息中 Terminat— Session数据内容对应的会话标识 Session-Id或者 P-CSCF的会 话映射表, 释放对应会话标识的资源; The Origin-Host is a session mapping table generated by the P-CSCF; the data content optionally includes only the session identifier in the session mapping table, and the HW_EuropeHostName identifier is preferred at this time; 5510. After the CCF is identified as the charging request message ACR according to the command code of the Diameter message, the CCF is learned from the data content CLIENT_REBOOT of the Termination-Cause that the P-CSCF needs to abandon the session resource before the restart because of the abnormal restart, so the new session is started. The processing function is configured to release the resource corresponding to the session identifier according to the session identifier Session-Id corresponding to the content of the Terminate_Schedule in the ACR message or the session mapping table of the P-CSCF;
5511、 CCF发送会话结束应答 STA消息给代理单元 proxy, 其中携带了 成功终止的会话标识 Session-Id或者终止会话过程中出错信息;  5511. The CCF sends a session end response STA message to the proxy unit proxy, where the successfully terminated session identifier Session-Id or the error message during the termination of the session is carried;
5512、 代理单元 proxy删除会话映射表中对应所述会话标识的相关信息, 并发送会议能力应答 CEA给 P-CSCF。  5512. The proxy unit deletes the related information of the session identifier in the session mapping table, and sends a conference capability response CEA to the P-CSCF.
本实施例中, 通过维护 Diameter客户端标识、 Diameter代理转发给 In this embodiment, the Diameter client identifier and the Diameter proxy are forwarded to the Diameter client.
Diameter服务的会话标识和 Diameter服务器三者之间的会话映射表; 所述会 话标识由 Diameter代理生成, 并且 Diameter服务器和 Diameter客户端对于 Diameter来说都是直接交互节点是可见的,对于维护会话映射表能提供更高效 的处理, 在减少了 Diameter服务器处理复杂度基础上增加了 Diameter代理的 处理复杂度。 A session mapping table between the session identifier of the Diameter service and the Diameter server; the session identifier is generated by the Diameter agent, and the Diameter server and the Diameter client are visible to the Diameter for the direct interaction node, for the maintenance session mapping The table can provide more efficient processing, which increases the processing complexity of the Diameter agent based on reducing the processing complexity of the Diameter server.
本发明提供一种针对网元重启后释放资源的代理装置 600, 包括: 第一接收器 601 , 接收来自第一网络节点的能力交换请求, 所述能力交换 请求中携带有第一原始状态标识;  The present invention provides a proxy device 600 for releasing resources after a network element is restarted, including: a first receiver 601, which 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 and the first original state identifier that are stored by the user, and the result of the comparison is different to generate the identifier of the first network node and Restart the identified session end request;
第一发送器 603 , 用于向第三网络节点发送所述会话结束请求, 使得第三 网络节点能够根据重启标识确认第一网络节点重启,并进一步从所述会话映射 表中查找与第一网络节点标识相关的会话标识,释放所述相关会话标识对应的 会话资源。  The first transmitter 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 the first network from the session mapping table. The node identifier is related to the session identifier, and the session resource corresponding to the related session identifier is released.
所述代理装置 600进一步还包括:  The proxy device 600 further includes:
所述第一接收器 601 , 还用于接收来自第一网络节点的会话请求; 所述第一配置器 602 , 还用于生成携带有第一网络节点标识和会话标识的 会话请求; 所述第一发送器 603 , 还用于向第三网络节点转发所述携带有第一网络节 点标识和会话标识的会话请求,使得第三网络节点能够对应所述第一网络节点 标识添加所述会话标识到会话映射表 ,所述会话映射表存储于第三网络节点中。 The first receiver 601 is further configured to receive a session request from the first network node, where the first configurator 602 is further configured to generate a session request that carries the first network node identifier and the session identifier. The first transmitter 603 is further configured to forward, to the third network node, the session request that carries the first network node identifier and the session identifier, so that the third network node can add the identifier to the first network node identifier. The session is identified to a session mapping table, which is stored in the third network node.
本发明提供一种针对网元重启后释放资源的服务器 700, 包括:  The present invention provides a server 700 for releasing resources after a network element is restarted, including:
第一接收器 701 , 用于接收来自第二网络节点的会话结束请求, 所述会话 结束请求携带有第一网络节点标识和重启标识;  a first receiver 701, 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, according to the restart identifier, that the first network node is restarted, 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. Resources.
所述服务器 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 the 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 an apparatus 800 for releasing resources after a network element is restarted, including:
第二接收器 801 , 应用接收来自第一网络节点的能力交换请求, 所述能力 交换请求中携带有第一原始状态标识;  a 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 , 用于比较自身存储的对应所述第一网络节点的第二原始 状态标识和所述第一原始状态标识,所述比较的结果不同则从存储的会话映射 表中查找对应第三网络节点标识和第一网络节点标识的相关会话标识 ,生成携 带有所述相关会话标识和重启标识的会话结束请求;  a second configurator 802, configured to compare a second original state identifier corresponding to the first network node that is stored by itself and the first original state identifier, where the result of the comparison is different, and the corresponding correspondence is searched from the stored session mapping table. And determining, by the third network node identifier and the related session identifier of the first network node identifier, a session end request carrying the related session identifier and the restart identifier;
第二发送器 803 , 用于向第三网络节点发送所述会话结束请求, 使得第三 网络节点能够根据重启标识确认第一网络节点重启,释放所述相关会话标识对 应的会话资源。  The second transmitter 803 is configured to send the session end request to the third network node, so that the third network node can confirm that the first network node restarts according to the restart identifier, and release the session resource corresponding to the related session identifier.
所述装置 800进一步还包括:  The apparatus 800 further includes:
所述第二接收器 801 , 还用于接收来自第一网络节点的会话请求; 所述第二配置器 802 , 还用于对应第三网络节点标识和第一网络节点标识 添加所述会话标识到会话映射表, 所述会话映射表存储于第二网络节点中。 通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明, 可以通过硬件实现,也可以借助软件加必要的通用硬件平台的方式来实现。基 于这样的理解, 本发明的技术方案可以以软件产品的形式体现出来, 该软件产 品可以存储在一个非易失性存储介质(可以是 CD-ROM, U盘,移动硬盘等) 中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或 者网络设备等)执行本发明各个实施例所述的方法。 The second receiver 801 is further configured to receive a session request from the first network node, where the second configurator 802 is further configured to add the session identifier to the third network node identifier and the first network node identifier to a session mapping table, the session mapping table being stored in the second network node. Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by hardware, or by software plus necessary general hardware platform. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several The instructions are for causing a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention.
本领域技术人员可以理解附图只是一个优选实施例的示意图,附图中的模 块或流程并不一定是实施本发明所必须的。  A person skilled in the art can understand that the drawings are only a schematic diagram of a preferred embodiment, and the modules or processes in the drawings are not necessarily required to implement the invention.
本领域技术人员可以理解实施例中的装置中的模块可以按照实施例描述 进行分布于实施例的装置中,也可以进行相应变化位于不同于本实施例的一个 或多个装置中。上述实施例的模块可以合并为一个模块, 也可以进一步拆分成 多个子模块。  Those skilled in the art can understand that the modules in the apparatus in the embodiments may be distributed in the apparatus of the embodiment according to the description of the embodiments, or the corresponding changes may be located in one or more apparatuses different from the embodiment. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
综上所述, 以上仅为本发明的较佳实施例而已, 并非用于限定本发明的 保护范围。 凡在本发明的精神和原则之内, 所作的任何修改、 等同替换、 改进 等, 均应包含在本发明的保护范围之内。  In conclusion, the above is only a preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 Rights request
1、 一种针对网元重启后释放资源的方法, 其特征在于, 包括:  A method for releasing resources after a network element is restarted, which is characterized by:
第二网络节点接收来自第一网络节点的能力交换请求,所述能力交换请求 携带有第一原始状态标识;进一步比较第二网络节点存储的对应所述第一网络 节点的第二原始状态标识和所述第一原始状态标识;  Receiving, by the second network node, a capability exchange request from the first network node, where the capability exchange request carries a first original state identifier; and further comparing, by the second network node, a second original state identifier corresponding to the first network node The first original state identifier;
所述比较的结果不同则向第三网络节点发送会话结束请求,所述会话结束 请求携带了第一网络节点标识和重启标识 ,使得第三网络节点能够根据所述重 启标识确认第一网络节点重启,并进一步从第三网络节点存储的会话映射表中 查找与所述第一网络节点标识相关的会话标识,释放所述相关会话标识对应的 会话资源。  If the result of the comparison is different, a session end request is sent to the third network node, where the session end request carries the first network node identifier and the restart identifier, so that the third network node can confirm that the first network node is restarted according to the restart identifier. And searching for the session identifier associated with the first network node identifier from the session mapping table stored by the third network node, and releasing the session resource corresponding to the related session identifier.
2、 如权利要求 1所述的方法, 其特征在于, 所述方法进一步还包括: 接收来自第一网络节点的会话请求,并向第三网络节点转发携带有第一网 络节点标识和会话标识的会话请求,使得第三网络节点能够对应所述第一网络 节点标识添加所述会话标识到会话映射表。  2. The method of claim 1, wherein the method further comprises: receiving a session request from the first network node, and forwarding, to the third network node, the first network node identifier and the session identifier The session request enables the third network node to add the session identifier to the session mapping table corresponding to the first network node identifier.
3、如权利要求 2所述的方法,其特征在于,所述第一网络节点为网关 GPRS 支持节点, 所述会话请求为信用控制请求, 所述第三网络节点是融合计费接入 点, 所述方法具体包括:  The method according to claim 2, wherein the first network node is a gateway GPRS support node, the session request is a credit control request, and the third network node is a convergent charging access point. The method specifically includes:
接收来自网关 GPRS支持节点的信用控制请求,向融合计费接入点转发携 带有网关 GPRS支持节点标识和会话标识的信用控制请求,使得融合计费接入 点能够对应所述网关 GPRS支持节点标识添加所述会话标识到会话映射表,所 述会话映射表存储于融合计费接入点中。  Receiving a credit control request from the gateway GPRS support node, and forwarding, to the convergent charging access point, a credit control request carrying the gateway GPRS support node identifier and the session identifier, so that the convergent charging access point can correspond to the gateway GPRS support node identifier The session identifier is added to a session mapping table, and the session mapping table is stored in a convergent charging access point.
4、 如权利要求 1、 2或 3所述的方法, 其特征在于, 所述第一网络节点为 网关 GPRS支持节点, 所述第二网络节点是 Diameter信用控制代理, 所述第 三网络节点是融合计费接入点, 所述方法具体包括:  The method according to claim 1, 2 or 3, wherein the first network node is a gateway GPRS support node, the second network node is a Diameter credit control agent, and the third network node is Converging the charging access point, the method specifically includes:
Diameter信用控制代理接收来自网关 GPRS支持节点的能力交换请求,进 一步比较 Diameter信用控制代理存储的对应所述网关 GPRS支持节点的第二 原始状态标识和所述第一原始状态标识;  The Diameter credit control agent receives the capability exchange request from the gateway GPRS support node, and further compares the second original state identifier corresponding to the gateway GPRS support node and the first original state identifier stored by the Diameter Credit Control Agent;
所述比较的结果不同则向融合计费接入点发送会话结束请求,所述会话结 束请求携带了网关 GPRS支持节点标识和重启标识,使得融合计费接入点能够 根据重启标识判断网关 GPRS支持节点因异常重启,并进一步从所述会话映射 表中查找与网关 GPRS支持节点标识相关的会话标识,释放所述相关会话标识 对应的会话资源。 If the result of the comparison is different, a session end request is sent to the convergent charging access point, where the session end request carries the gateway GPRS support node identifier and the restart identifier, so that the convergent charging access point can And determining, according to the restart identifier, that the gateway GPRS support node is abnormally restarted, and further searching for the session identifier related to the gateway GPRS support node identifier from the session mapping table, and releasing the session resource corresponding to the related session identifier.
5、 一种针对网元重启后释放资源的方法, 其特征在于, 包括:  5. A method for releasing resources after a network element is restarted, and the method includes:
接受来自第二网络节点的会话结束请求,所述会话结束请求携带有第一网 络节点标识和重启标识, 进一步根据所述重启标识确认第一网络节点重启, 并 从存储的会话映射表中查找与所述第一网络节点标识相关会话标识 ,释放所述 相关会话标识对应的会话资源。  Receiving a session end request from the second network node, the session end request carrying the first network node identifier and the restart identifier, further confirming that the first network node restarts according to the restart identifier, and searching and searching from the stored session mapping table The first network node identifies the related session identifier, and releases the session resource corresponding to the related session identifier.
6、 如权利要求 5所述方法, 其特征在于, 所述方法进一步还包括: 接收来自第二网络节点的会话请求,所述会话请求携带有第一网络节点标 识和会话标识 ,则对应所述第一网络节点标识添加所述会话标识到会话映射表, 所述会话映射表存储于第三网络节点。  The method of claim 5, wherein the method further comprises: receiving a session request from the second network node, the session request carrying the first network node identifier and the session identifier, corresponding to the The first network node identifier adds the session identifier to a session mapping table, and the session mapping table is stored in a third network node.
7、 如权利要求 6所述方法, 其特征在于, 第一网络节点为网关 GPRS支 持节点, 会话请求为信用控制请求, 第三网络节点是融合计费接入点, 所述方 法具体包括:  The method of claim 6, wherein the first network node is a gateway GPRS support node, the session request is a credit control request, and the third network node is a convergent charging access point, and the method specifically includes:
融合计费接入点接收来自信用管理代理的信用控制请求 ,所述信用控制请 求携带有网关 GPRS支持节点标识和会话标识,则对应所述网关 GPRS支持节 点标识添加所述会话标识到会话映射表,所述会话映射表存储于融合计费接入 点。  The convergent charging access point receives a credit control request from a credit management agent, where the credit control request carries a gateway GPRS support node identifier and a session identifier, and the session identifier is added to the session mapping table corresponding to the gateway GPRS support node identifier The session mapping table is stored in the converged charging access point.
8、 如权利要求 5、 6或 7所述方法, 其特征在于, 第一网络节点为网关 8. The method of claim 5, 6 or 7, wherein the first network node is a gateway
GPRS支持节点, 第二网络节点是 Diameter信用控制代理, 第三网络节点是融 合计费接入点所述方法具体包括: The GPRS support node, the second network node is a Diameter credit control agent, and the third network node is a fusion charging access point. The method specifically includes:
融合计费接入点接收来自信用管理代理的会话结束请求,所述会话结束请 求中携带有网关 GPRS支持节点标识和重启标识,进一步根据所述重启标识判 断网关 GPRS支持节点重启, 并从存储的会话映射表中查找与所述网关 GPRS 支持节点标识相关会话标识, 释放所述相关会话标识对应的会话资源。  The converged charging access point receives a session end request from the credit management agent, where the session end request carries a gateway GPRS support node identifier and a restart identifier, and further determines, according to the restart identifier, that the gateway GPRS support node is restarted, and is stored from the The session mapping table is configured to search for a session identifier associated with the gateway GPRS support node identifier, and release the session resource corresponding to the related session identifier.
9、 一种针对网元重启后释放资源的方法, 其特征在于, 包括: 第二网络节点接收来自第一网络节点的能力交换请求,所述能力交换请求 携带有第一原始状态标识;进一步比较第二网络节点存储的对应所述第一网络 节点的第二原始状态标识和所述第一原始状态标识; 9. A method for releasing resources after a network element is restarted, and the method includes: Receiving, by the second network node, a capability exchange request from the first network node, where the capability exchange request carries a first original state identifier; and further comparing, by the second network node, a second original state identifier corresponding to the first network node The first original state identifier;
所述比较的结果不同则从所述第二网络节点存储的会话映射表中查找对 应第三网络节点标识和第一网络节点标识的相关会话标识,并向第三网络节点 发送携带了所述相关会话标识和重启标识的会话结束请求 ,使得第三网络节点 能够根据重启标识确认第一网络节点重启,释放所述相关会话标识对应的会话 资源。  If the result of the comparison is different, the related session identifier corresponding to the third network node identifier and the first network node identifier is searched from the session mapping table stored by the second network node, and the correlation is sent to the third network node. The session identifier and the session end request of the restart identifier enable the third network node to confirm that the first network node restarts according to the restart identifier, and release the session resource corresponding to the related session identifier.
10、 如权利要求 9所述的方法, 其特征在于, 所述方法还包括: 接收来自第一网络节点的会话请求,向第三网络节点转发携带有会话标识 的会话请求;进一步第二网络节点对应第三网络节点标识和第一网络节点标识 添加所述会话标识到会话映射表, 所述会话映射表存储于第二网络节点中。  10. The method according to claim 9, wherein the method further comprises: receiving a session request from the first network node, forwarding the session request carrying the session identifier to the third network node; and further the second network node And adding the session identifier to the session mapping table corresponding to the third network node identifier and the first network node identifier, where the session mapping table is stored in the second network node.
11、 一种针对网元重启后释放资源的代理装置, 其特征在于, 包括: 第一接收器, 用于接收来自第一网络节点的能力交换请求, 所述能力交换 请求中携带有第一原始状态标识;  A proxy device for releasing resources after a network element is restarted, comprising: a first receiver, configured to receive a capability exchange request from a first network node, where the capability exchange request carries a first original Status identifier
第一配置器,用于比较自身存储的对应所述第一网络节点的第二原始状态 标识和所述第一原始状态标识,所述比较的结果不同则生成携带有第一网络节 点标识和重启标识的会话结束请求;  a first configurator, configured to compare a second original state identifier corresponding to the first network node and the first original state identifier that are stored by the first configurator, and the result of the comparison is different to generate a first network node identifier and restart The identified session end request;
第一发送器, 用于向第三网络节点发送所述会话结束请求,使得第三网络 节点能够根据重启标识确认第一网络节点重启,并进一步从所述会话映射表中 查找与第一网络节点标识相关的会话标识,释放所述相关会话标识对应的会话 资源。  a first transmitter, 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 the first network node from the session mapping table. Identify the related session identifier, and release the session resource corresponding to the related session identifier.
12、 如权利要求 11所述装置, 其特征在于, 还包括:  12. The device of claim 11, further comprising:
所述第一接收器, 还用于接收来自第一网络节点的会话请求;  The first receiver is further configured to receive a session request from the first network node;
所述第一配置器,还用于生成携带有第一网络节点标识和会话标识的会话 请求;  The first configurator is further configured to generate a session request that carries the first network node identifier and the session identifier;
所述第一发送器,还用于向第三网络节点转发所述携带有第一网络节点标 识和会话标识的会话请求,使得第三网络节点能够对应所述第一网络节点标识 添加所述会话标识到会话映射表, 所述会话映射表存储于第三网络节点中。 The first transmitter is further configured to forward, to the third network node, the session request that carries the first network node identifier and the session identifier, so that the third network node can add the session to the first network node identifier. The session mapping table is identified, and the session mapping table is stored in the third network node.
13、 一种针对网元重启后释放资源的服务器, 其特征在于, 包括: 第一接收器, 用于接收来自第二网络节点的会话结束请求, 所述会话结束 请求携带有第一网络节点标识和重启标识; A server for releasing resources after a network element is restarted, comprising: a first receiver, configured to receive a session end request from a second network node, where the session end request carries a first network node identifier And restart the logo;
第一处理器, 用于根据所述重启标识确认第一网络节点重启, 并从存储的 会话映射表中查找与所述第一网络节点标识相关会话标识,释放所述相关会话 标识对应的会话资源。  a first processor, configured to confirm that the first network node is restarted 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 resource corresponding to the related session identifier .
14、 如权利要求 13所述服务器, 其特征在于, 还包括:  The server according to claim 13, further comprising:
所述第一接收器,还用于接收来自第二网络节点的会话请求, 所述会话请 求携带有第一网络节点标识和会话标识;  The first receiver is further configured to receive a session request from a second network node, where the session request carries a first network node identifier and a session identifier;
所述第一处理器,还用于对应所述第一网络节点标识添加所述会话标识到 会话映射表, 所述会话映射表存储于第三网络节点中。  The first processor is further configured to add the session identifier to the session mapping table corresponding to the first network node identifier, where the session mapping table is stored in the third network node.
15、 一种针对网元重启后释放资源的代理装置, 其特征在于, 包括: 第二接收器,应用接收来自第一网络节点的能力交换请求, 所述能力交换 请求中携带有第一原始状态标识;  A proxy device for releasing resources after a network element is restarted, comprising: a second receiver, the application receives a capability exchange request from a first network node, where the capability exchange request carries a first original state Identification
第二配置器,用于比较自身存储的对应所述第一网络节点的第二原始状态 标识和所述第一原始状态标识,所述比较的结果不同则从存储的会话映射表中 查找对应第三网络节点标识和第一网络节点标识的相关会话标识,生成携带有 所述相关会话标识和重启标识的会话结束请求;  a second configurator, configured to compare the second original state identifier corresponding to the first network node and the first original state identifier that are stored by the first configurator, and the result of the comparison is different from the stored session mapping table And determining, by the third network node identifier and the related session identifier of the first network node identifier, a session end request carrying the related session identifier and the restart identifier;
第二发送器, 用于向第三网络节点发送所述会话结束请求,使得第三网络 节点能够根据重启标识确认第一网络节点重启,释放所述相关会话标识对应的 会话资源。  And a second transmitter, configured to send the session end request to the third network node, so that the third network node can confirm that the first network node restarts according to the restart identifier, and release the session resource corresponding to the related session identifier.
16、 如权利要求 15所述的装置, 其特征在于, 包括:  The device according to claim 15, comprising:
所述第二接收器, 还用于接收来自第一网络节点的会话请求;  The second receiver is further configured to receive a session request from the first network node;
所述第二配置器,还用于对应第三网络节点标识和第一网络节点标识添加 所述会话标识到会话映射表, 所述会话映射表存储于第二网络节点中。  The second configurator is further configured to add the session identifier to the session mapping table corresponding to the third network node identifier and the first network node identifier, where the session mapping table is stored in the second network node.
PCT/CN2013/070752 2012-01-21 2013-01-21 Method, device and system for releasing resource after network element restarts WO2013107402A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210020513.X 2012-01-21
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 (1)

Publication Number Publication Date
WO2013107402A1 true WO2013107402A1 (en) 2013-07-25

Family

ID=46529230

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/070752 WO2013107402A1 (en) 2012-01-21 2013-01-21 Method, device and system for releasing resource after network element restarts

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8837320B2 (en) 2012-07-23 2014-09-16 Apple Inc. Methods and systems for anchored down-selection in a coordinated multipoint transmission cluster

Families Citing this family (5)

* 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
CN102821011A (en) * 2012-08-28 2012-12-12 北京星网锐捷网络技术有限公司 Opposite terminal state detection method, device and equipment
CN106330823A (en) * 2015-06-23 2017-01-11 中兴通讯股份有限公司 Session live-keeping method and device
CN107872326B (en) * 2016-09-26 2020-09-08 华为技术有限公司 Method, device and system for releasing session resources
CN111600832B (en) * 2019-07-25 2022-09-30 新华三技术有限公司 Message processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101543030A (en) * 2007-04-02 2009-09-23 日本电气株式会社 Ims network system and data restore method
CN101765217A (en) * 2009-12-15 2010-06-30 北京佳讯飞鸿电气股份有限公司 Method of detecting restart of sip terminal
WO2011098155A1 (en) * 2010-02-09 2011-08-18 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for use with ip connectivity access network
CN102612164A (en) * 2012-01-21 2012-07-25 华为技术有限公司 Method, device and system for releasing resource after network element restart
CN102802143A (en) * 2011-05-26 2012-11-28 华为软件技术有限公司 Service restoring method, relevant device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101543030A (en) * 2007-04-02 2009-09-23 日本电气株式会社 Ims network system and data restore method
CN101765217A (en) * 2009-12-15 2010-06-30 北京佳讯飞鸿电气股份有限公司 Method of detecting restart of sip terminal
WO2011098155A1 (en) * 2010-02-09 2011-08-18 Telefonaktiebolaget Lm Ericsson (Publ) Method and apparatus for use with ip connectivity access network
CN102802143A (en) * 2011-05-26 2012-11-28 华为软件技术有限公司 Service restoring method, relevant device and system
CN102612164A (en) * 2012-01-21 2012-07-25 华为技术有限公司 Method, device and system for releasing resource after network element restart

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8837320B2 (en) 2012-07-23 2014-09-16 Apple Inc. Methods and systems for anchored down-selection in a coordinated multipoint transmission cluster

Also Published As

Publication number Publication date
CN102612164B (en) 2016-06-29
CN102612164A (en) 2012-07-25

Similar Documents

Publication Publication Date Title
EP4024922A1 (en) Method for achieving service continuity and related devices
JP5847191B2 (en) Intermediate node for content sharing, content request terminal, and content sharing method thereof
WO2013107402A1 (en) Method, device and system for releasing resource after network element restarts
AU2007322150A1 (en) Secure Location Session Manager
WO2009046678A1 (en) Method and device for obtaining the capability of policy and charging enforcement function
EP1557066A2 (en) Session updating procedure for authentication, authorization and accounting
JP6368042B2 (en) CDF tracking for offline charging
WO2013097193A1 (en) Method, device and system for determining policy and charging enforcement function
EP2534889B1 (en) Method and apparatus for redirecting data traffic
WO2009094945A1 (en) Managing method for policy decision entity, managing net element and network system
WO2021063129A1 (en) Core network capability calling method and system
CN101160871A (en) Method for transferring chat messages by establishing chat room data transfer channel
WO2012152155A1 (en) Method and device for acquiring availability state of terminal
WO2011134327A1 (en) Method and system for determining policy and charging rules function
WO2007082446A1 (en) A method and system for offline charging
WO2011144083A2 (en) Policy control method and device
WO2009094953A1 (en) Delete bearer method, system and device
WO2009089776A1 (en) Method and apparatus for the policy and charging rule function information maintenance
WO2012167659A1 (en) Data communication method and device in constrained application protocol
WO2014040464A1 (en) Resource release method, message processing method, twag and terminal
WO2013071739A1 (en) Ipv4/ipv6 double-stack user billing method and device
WO2007124662A1 (en) A method,system,subscribing device,informing device for centrally controlling the subscription
CN101102191B (en) Method for identifying the style of secret key request service in general authentication framework
WO2012089032A1 (en) Data transmission method using multiple access methods, and access device
WO2011020419A1 (en) Implementation method, system and diameter routing agent (dra) for controlling load balance of policy and charging rules function (pcrf) entity

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13738298

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13738298

Country of ref document: EP

Kind code of ref document: A1