CN101541100B - Method and device for deleting strategy session - Google Patents
Method and device for deleting strategy session Download PDFInfo
- Publication number
- CN101541100B CN101541100B CN200810086214XA CN200810086214A CN101541100B CN 101541100 B CN101541100 B CN 101541100B CN 200810086214X A CN200810086214X A CN 200810086214XA CN 200810086214 A CN200810086214 A CN 200810086214A CN 101541100 B CN101541100 B CN 101541100B
- Authority
- CN
- China
- Prior art keywords
- policy
- session
- policy session
- connection
- pcrf
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Computer And Data Communications (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明实施例公开了一种策略会话删除方法和装置。所述方法包括以下步骤:判断策略执行实体间的策略会话连接是否终结;当所述策略会话连接终结时,向Diameter域路由代理DRA发送删除所述策略会话连接对应的策略会话信息的指令;接收所述DRA删除所述策略会话信息的响应。通过应用本发明,使DRA可以及时删除无用的策略会话信息和连接关系信息,避免无效的冗余信息对正常策略连接的不利影响,改善通信服务质量。
The embodiment of the invention discloses a policy session deletion method and device. The method includes the following steps: judging whether the policy session connection between policy enforcement entities is terminated; when the policy session connection is terminated, sending an instruction to delete the policy session information corresponding to the policy session connection to the Diameter domain routing agent DRA; receiving The DRA deletes the response of the policy session information. By applying the present invention, the DRA can delete useless policy session information and connection relation information in time, avoid the adverse effect of invalid redundant information on normal policy connections, and improve communication service quality.
Description
技术领域 technical field
本发明涉及通信技术领域,特别是涉及一种策略会话删除方法和装置。 The invention relates to the technical field of communications, in particular to a method and device for deleting a policy session. the
背景技术 Background technique
下一代通信网的承载已经全面开始换用IP。从通信网的发展来看,经历了从传统电路交换网络到控制承载分离的IP包交换网络再到全IP的多媒体网络这样一个演进过程。再向全IP网络演进过程中,需要考虑端到端QoS问题,以提供令客户满意的业务(特别是实时类业务)。因为IP网络可以提供更多种类的业务(如多媒体呼叫,文件下载,网页浏览等),所以需要网络能够检测不同的业务流并统计流量,时长等计费信息以上报给计费中心。为了解决上述QoS和基于流计费等相关问题,当前通信网络中定义了策略和计费控制架构,例如在3GPP定义的策略和计费控制PCC架构,以及在WIMAX中定义的动态QoS子系统架构,通过该架构可以使得网络检测到不同的业务流,并针对业务流实现QoS控制,计费统计等需求。策略和计费控制架构主要包括策略制定功能实体和策略执行实体。例如当前3GPP网络架构增强中,如图1所示,引入了多个新功能实体(P-GW/Non 3GPP GW/S-GW/ePDG等)参与到网络的PCC策略过程,这就要求多个功能实体需要与PCRF(策略与计费控制功能实体)建立PCC策略会话。其中,PCRF用于根据运营策略、服务应用信息等动态生成一个用户业务流的QoS与计费规则;客户端(P-GW/Non3GPP GW/S-GW/ePDG)是执行策略控制规则的功能实体;用户终端需要访问运营商提供的网络服务(例如IMS)来发起一个业务连接。 The bearer of the next-generation communication network has already begun to switch to IP. From the perspective of the development of the communication network, it has experienced such an evolution process from the traditional circuit switching network to the IP packet switching network with separated control and bearer, and then to the all-IP multimedia network. In the process of evolving to an all-IP network, end-to-end QoS issues need to be considered in order to provide services (especially real-time services) that satisfy customers. Because the IP network can provide more types of services (such as multimedia calls, file downloads, web browsing, etc.), the network needs to be able to detect different service flows and count the flow, duration and other billing information to the billing center. In order to solve the above-mentioned QoS and flow-based charging and other related issues, policy and charging control architectures are defined in current communication networks, such as the policy and charging control PCC architecture defined in 3GPP, and the dynamic QoS subsystem architecture defined in WIMAX , through this architecture, the network can detect different service flows, and realize QoS control, billing statistics and other requirements for the service flows. The policy and charging control architecture mainly includes policy formulation functional entities and policy enforcement entities. For example, in the enhancement of the current 3GPP network architecture, as shown in Figure 1, multiple new functional entities (P-GW/Non 3GPP GW/S-GW/ePDG, etc.) are introduced to participate in the PCC policy process of the network, which requires multiple The functional entity needs to establish a PCC policy session with the PCRF (Policy and Charging Control Functional Entity). Among them, PCRF is used to dynamically generate QoS and charging rules for a user service flow according to operating policies, service application information, etc.; the client (P-GW/Non3GPP GW/S-GW/ePDG) is a functional entity that executes policy control rules ; The user terminal needs to access the network service (such as IMS) provided by the operator to initiate a service connection. the
在策略控制网络中,可以部署多个策略与计费控制功能实体PCRF,用户终端连接到一个策略控制网络时,可以从中选择一个PCRF,在选定以后,在到该策略控制网络的策略连接断开前,都会使用此PCRF作为此策略连接的策略控制服务器。由于在网络中有多个策略控制规则的执行功能实体需要为 同一个策略连接访问PCRF,所以策略控制网络引进了策略制定服务器管理实体DRA,管理用户到策略控制网络的策略连接与为该策略连接服务的PCRF的对应关系,当任何一个网关发送的策略控制请求消息中没有携带目的PCRF信息时,该策略控制请求消息都需要经过DRA,由DRA根据预先保存的策略连接与为该策略连接服务的PCRF的对应关系获取目的PCRF,将策略控制请求消息发送到目的PCRF,从而保证不同网关为同一个策略连接请求分配服务器时,能使用同一个PCRF作为策略制定实体。 In the policy control network, multiple policy and charging control functional entity PCRFs can be deployed. When a user terminal is connected to a policy control network, a PCRF can be selected from among them. After selection, the policy connection to the policy control network is disconnected. Before opening, this PCRF will be used as the policy control server for this policy connection. Since there are multiple executive functional entities of policy control rules in the network, they need to be The same policy connection accesses PCRF, so the policy control network introduces the policy formulation server management entity DRA to manage the correspondence between the user's policy connection to the policy control network and the PCRF serving the policy connection. When any policy control request sent by any gateway When the message does not carry the target PCRF information, the policy control request message needs to pass through the DRA, and the DRA obtains the target PCRF according to the corresponding relationship between the pre-saved policy connection and the PCRF serving the policy connection, and sends the policy control request message to the target PCRF, so as to ensure that different gateways can use the same PCRF as a policy formulation entity when they request to allocate servers for the same policy connection. the
在执行策略控制规则的功能实体与策略制定实体初次建立连接时,需要DRA选择某个可用的策略与计费控制功能实体并向执行策略控制规则的功能实体返回所选择的策略制定实体的信息,同时记录策略连接与该策略制定实体的对应关系。根据记录,生成一份策略连接与该策略制定实体的对应关系表,其中策略连接里包含用户标识,PDN标识,IP地址(IP地址包含HoA,CoA)等消息。 When the functional entity executing policy control rules establishes a connection with the policy formulation entity for the first time, DRA needs to select an available policy and charging control functional entity and return the information of the selected policy formulation entity to the functional entity executing policy control rules, At the same time, it records the corresponding relationship between the policy connection and the policy formulation entity. According to the record, generate a corresponding relationship table between the policy connection and the policy formulation entity, wherein the policy connection includes user identification, PDN identification, IP address (the IP address includes HoA, CoA) and other information. the
在执行策略控制规则的功能实体与策略制定实体之间的策略连接建立成功后,可以获取为该策略连接提供服务的PCRF的IP地址,此后的信息交互中就可以通过PCRF的IP地址路由到对应服务策略连接的PCRF,比如该执行策略控制规则的功能实体再向策略制定实体发送的策略控制请求消息中就携带目的PCRF信息。同样,当策略连接释放时,指示策略连接释放的策略控制请求消息中也携带目的PCRF信息,所以也不经过DRA。基于上述原因,在该用户到策略控制网络的策略连接已释放后,DRA上还保存着该策略连接与为该策略连接服务的PCRF的对应关系。 After the policy connection between the functional entity executing the policy control rules and the policy formulation entity is successfully established, the IP address of the PCRF that provides services for the policy connection can be obtained, and the subsequent information exchange can be routed to the corresponding The PCRF of the service policy connection, for example, the policy control request message sent by the functional entity implementing policy control rules to the policy formulation entity carries the target PCRF information. Similarly, when the policy connection is released, the policy control request message indicating the release of the policy connection also carries the destination PCRF information, so it does not go through the DRA. Based on the above reasons, after the policy connection from the user to the policy control network is released, the DRA still stores the corresponding relationship between the policy connection and the PCRF serving the policy connection. the
为了保证在一个Diameter区域里面存在多个PCRF的情况下,策略连接涉及的策略执行实体能够关联到服务策略连接的PCRF,引入了策略制定服务器管理实体DRA,如图2。同时在同一个Diameter域里面只存在一个DRA来处理实现PCRF的发现和选择过程。在图2中,终端通过每个客户端连接到DRA的连接作为分支构成了该终端发起的策略会话连接。 In order to ensure that in the case of multiple PCRFs in a Diameter area, the policy enforcement entity involved in the policy connection can be associated with the PCRF serving the policy connection, the policy formulation server management entity DRA is introduced, as shown in Figure 2. At the same time, there is only one DRA in the same Diameter domain to handle the process of discovering and selecting the PCRF. In FIG. 2 , the terminal connects to the DRA through each client as a branch to constitute the policy session connection initiated by the terminal. the
策略执行实体通过DRA管理机制来与策略连接服务的PCRF建立连接,但当前网络协议中没有制定DRA删除预先保存的PCC策略会话信息与策略连接服务的PCRF之间的对应关系的流程。 The policy enforcement entity establishes a connection with the PCRF of the policy connection service through the DRA management mechanism, but there is no process in the current network protocol for the DRA to delete the correspondence between the pre-saved PCC policy session information and the PCRF of the policy connection service.
发明内容 Contents of the invention
本发明实施例要解决的问题是提供一种策略会话删除方法,建立DRA删除预先保存的策略会话信息与策略连接服务的PCRF之间的对应关系的流程,从而使DRA及时删除无用的策略会话信息和连接关系信息,避免无效的冗余信息对正常策略连接的不利影响,改善数据传输质量。 The problem to be solved by the embodiments of the present invention is to provide a policy session deletion method, and establish a process for the DRA to delete the corresponding relationship between the pre-saved policy session information and the PCRF of the policy connection service, so that the DRA can delete useless policy session information in time and connection relationship information, avoiding the adverse effect of invalid redundant information on normal policy connections, and improving the quality of data transmission. the
为达到上述目的,本发明实施例一方面提出一种策略会话删除方法,包括以下步骤: In order to achieve the above object, an embodiment of the present invention proposes a method for deleting a policy session on the one hand, including the following steps:
判断策略执行实体间的策略会话连接是否终结; Determine whether the policy session connection between policy enforcement entities is terminated;
当所述策略会话完全释放时,向Diameter域路由代理DRA发送删除所述策略会话连接对应的策略会话信息的指令; When the policy session is fully released, send an instruction to delete the policy session information corresponding to the policy session connection to the Diameter domain routing agent DRA;
当所述策略会话没有完全释放时,可选的通知所述DRA删除/更新预先保存的策略连接与该服务该策略连接的对应关系列表中的部分内容; When the policy session is not completely released, optionally notify the DRA to delete/update part of the content in the corresponding relationship list between the pre-saved policy connection and the policy connection of the service;
接收所述DRA删除所述策略会话信息的响应。 receiving a response from the DRA to delete the policy session information. the
另一方面,本发明实施例还提供了一种策略会话删除方法,包括以下步骤: On the other hand, the embodiment of the present invention also provides a policy session deletion method, comprising the following steps:
接收PCRF发送的包含序号的策略会话连接管理消息; Receive the policy session connection management message containing the serial number sent by PCRF;
当所述序号发生异变时,判定所述策略会话连接管理消息对应的PCRF发生重启; When the sequence number changes, it is determined that the PCRF corresponding to the policy session connection management message is restarted;
删除与所述PCRF重启前对应的策略会话信息。 Delete policy session information corresponding to before the PCRF is restarted. the
另一方面,本发明实施例还提供了一种PCRF,包括: On the other hand, the embodiment of the present invention also provides a PCRF, including:
会话状态判断模块,用于判断策略执行实体间的策略会话连接是否终结; A session state judging module is used to judge whether the policy session connection between policy enforcement entities is terminated;
删除指令发送模块,用于当所述会话状态判断模块判断所述策略会话完全释放时,向DRA发送删除所述策略会话连接对应的策略会话信息的指令;当所述策略会话没有完全释放时,可选的通知所述DRA删除/更新预先保存的策略连接与该服务该策略连接的对应关系列表中的部分内容; A deletion instruction sending module, configured to send an instruction to the DRA to delete policy session information corresponding to the policy session connection when the session state judging module judges that the policy session is completely released; when the policy session is not completely released, Optionally notify the DRA to delete/update part of the content in the list of correspondence between the pre-saved policy connection and the policy connection of the service;
响应信息接收模块,用于接收所述DRA删除所述策略会话信息的响应。 A response information receiving module, configured to receive a response from the DRA for deleting the policy session information. the
另一方面,本发明实施例还提供了一种DRA,包括: On the other hand, the embodiment of the present invention also provides a kind of DRA, including:
删除指令接收模块,用于接收删除策略会话连接对应的策略会话信息的指令,或删除分支对应的策略会话信息的指令; A delete instruction receiving module is used to receive an instruction to delete policy session information corresponding to a policy session connection, or to delete an instruction to delete policy session information corresponding to a branch;
会话信息匹配模块,用于将所述删除指令接收模块所接收的指令中或者删除分支对应策略信息的指令与DRA中的策略会话信息进行关联,确定所述指令所对应的策略会话信息; The session information matching module is used to associate the instruction received by the deletion instruction receiving module or the instruction corresponding to the policy information of the deletion branch with the policy session information in the DRA, and determine the policy session information corresponding to the instruction;
会话信息删除模块,用于根据所述会话信息匹配模块的匹配结果,删除所述策略会话连接对应的策略会话信息,当策略会话连完全释放时,删除所述策略会话连接对应的策略会话信息的指令;当所述策略会话没有完全释放时,可选的删除/更新预先保存的策略连接与该服务该策略连接的对应关系列表中的部分内容; A session information deletion module, configured to delete the policy session information corresponding to the policy session connection according to the matching result of the session information matching module, and delete the policy session information corresponding to the policy session connection when the policy session connection is completely released Instruction; when the policy session is not completely released, optionally delete/update part of the content in the corresponding relationship list between the pre-saved policy connection and the policy connection of the service;
删除响应发送模块,用于发送确认消息。 The deletion response sending module is used to send a confirmation message. the
另一方面,本发明实施例还提供了一种DRA,包括: On the other hand, the embodiment of the present invention also provides a kind of DRA, including:
定时器模块,用于检测当前存储的策略会话连接的持续时长,和设置当前存储的策略会话连接的生命周期; The timer module is used to detect the duration of the currently stored policy session connection, and set the life cycle of the currently stored policy session connection;
会话状态查询模块,用于当所述定时器模块检测到当前存储的策略会话连接的持续时长超过所述定时器模块设置的生命周期后,向PCRF发送查询所述当前存储的策略会话连接状态的指令; A session state query module, configured to send a message to PCRF to inquire about the currently stored policy session connection state when the timer module detects that the duration of the currently stored policy session connection exceeds the life cycle set by the timer module instruction;
会话策略更新模块,用于根据所述PCRF反馈所述策略会话连接的状态,删除或更新所述当前存储的策略会话连接的策略会话信息。 A session policy updating module, configured to delete or update the currently stored policy session information of the policy session connection according to the state of the policy session connection fed back by the PCRF. the
另一方面,本发明实施例还提供了一种DRA,包括: On the other hand, the embodiment of the present invention also provides a kind of DRA, including:
管理消息接收模块,用于接收PCRF发送的包含序号的会话连接管理消息; The management message receiving module is used to receive the session connection management message containing the sequence number sent by the PCRF;
会话状态判断模块,用于当所述管理消息接收模块接收的会话连接管理消息中的序号发生异变时,判定所述策略会话连接管理消息对应的PCRF发生重启; The session state judging module is used to determine that the PCRF corresponding to the policy session connection management message is restarted when the sequence number in the session connection management message received by the management message receiving module changes;
策略会话删除模块,用于当会话状态判断模块判定所述PCRF发生重启时,删除与所述PCRF重启前对应的策略会话信息; The policy session deletion module is used to delete the policy session information corresponding to the PCRF before the restart when the session state judging module determines that the PCRF is restarted;
删除结果反馈模块,用于发送确认消息。 Delete the result feedback module, which is used to send confirmation messages. the
本发明实施例的技术方案具有以下优点,因为采用了通过检测策略会话连接情况找出无用的策略会话信息并进行删除的方法,从而,使DRA可以及时删除无用的策略会话信息和连接关系信息,达到了避免无效的冗余信息对正常策略连接的不利影响,改善通信传输质量的效果。 The technical solution of the embodiment of the present invention has the following advantages, because the method of finding out useless policy session information and deleting it by detecting the connection situation of the policy session is adopted, so that the DRA can delete useless policy session information and connection relationship information in time, The effect of avoiding the adverse effect of invalid redundant information on the normal policy connection and improving the quality of communication transmission is achieved. the
附图说明 Description of drawings
图1为现有技术中3GPP网络架构增强架构的结构示意图; Fig. 1 is a schematic structural diagram of a 3GPP network architecture enhancement architecture in the prior art;
图2为现有技术中多个PCRF和一个DRA组成的一个Diameter区域的结构示意图; Fig. 2 is a schematic structural diagram of a Diameter region composed of multiple PCRFs and a DRA in the prior art;
图3为本发明实施例一,一种策略会话连接完全终结的情况下的PCRF主动发起的策略会话删除方法流程示意图
FIG. 3 is a schematic flow diagram of a method for deleting a policy session initiated by PCRF when the policy session connection is completely terminated according to
图4为本发明实施例一,一种策略会话连接未完全终结的情况下的PCRF主动发起的策略会话删除方法流程示意图;
Fig. 4 is a schematic flow diagram of a policy session deletion method initiated by PCRF under the condition that the policy session connection is not completely terminated according to
图5为本发明实施例二,一种非漫游状态下的PCRF主动发起的策略会话删除方法流程示意图; Fig. 5 is the second embodiment of the present invention, a schematic flow diagram of a policy session deletion method actively initiated by PCRF in a non-roaming state;
图6为本发明实施例三,一种漫游状态下的PCRF主动发起的策略会话删除方法流程示意图;
FIG. 6 is a schematic flow diagram of a policy session deletion method actively initiated by PCRF in a roaming state according to
图7为本发明实施例四,一种Non-3GPP中非漫游状态下的PCRF主动发起的策略会话删除方法流程示意图;
FIG. 7 is a schematic flow diagram of a policy session deletion method initiated by PCRF in a non-roaming state in Non-3GPP according to
图8为本发明实施例五,一种PCRF的结构示意图; Fig. 8 is the fifth embodiment of the present invention, a schematic structural diagram of a PCRF;
图9为本发明实施例六,一种DRA的结构示意图; FIG. 9 is a schematic structural diagram of a DRA according to Embodiment 6 of the present invention;
图10为本发明实施例七,一种DRA根据生命周期自动检测进行策略会话删除的方法流程示意图;
Fig. 10 is a schematic flow diagram of a method for deleting a policy session by DRA according to the life cycle automatic detection according to
图11为本发明实施例八,一种DRA的结构示意图; Fig. 11 is the eighth embodiment of the present invention, a schematic structural diagram of a DRA;
图12为本发明实施例九,一种DRA根据序号异变检测进行策略会话删除的方法流程示意图;
FIG. 12 is a schematic flow diagram of a method for deleting a policy session by DRA according to sequence number variation detection according to
图13为本发明实施例十,一种DRA的结构示意图; Fig. 13 is a tenth embodiment of the present invention, a schematic structural diagram of a DRA;
图14为本发明实施例十一,一种在WIMAX网络内进行策略会话删除的 方法流程示意图。 Figure 14 is an eleventh embodiment of the present invention, a policy session deletion method in a WIMAX network Schematic diagram of the method flow. the
具体实施方式 Detailed ways
由于在当前网络协议中没有制定DRA删除预先保存的策略会话信息以及为该策略会话连接服务的PCRF之间的对应关系的流程。DRA根据用户每次发起的业务,缓存了用户相关业务的策略会话信息。当前DRA没有信息删除流程,可能导致服务用户业务一段时间后,DRA可能缓存大量用户的策略会话消息,具体导致的问题如下: In the current network protocol, there is no procedure for the DRA to delete the corresponding relationship between the pre-saved policy session information and the PCRF serving the policy session connection. The DRA caches policy session information of user-related services according to each service initiated by the user. Currently, DRA does not have an information deletion process, which may cause DRA to cache policy session messages of a large number of users after serving user business for a period of time. The specific problems are as follows:
1、DRA缓存的用户的策略会话信息超过DRA内存规定值,直接导致用户的无法接受到通信服务网络的策略与计费信息,从而无法与通信网络建立通信服务。 1. The policy session information of the user cached by the DRA exceeds the specified value of the DRA memory, which directly causes the user to be unable to receive the policy and billing information of the communication service network, thereby failing to establish communication services with the communication network. the
2、DRA可能由于缓存的冗语信息,对执行策略控制规则的功能实体对PCRF分配请求发生错误关联,导致用户接受到错误的通信服务网络的策略和计费信息,导致与通信网络间的通信服务无法正常建立。 2. Due to the redundant language information in the cache, the DRA may incorrectly associate the functional entity that executes the policy control rules with the PCRF allocation request, causing the user to receive the wrong policy and charging information of the communication service network, resulting in communication with the communication network The service could not be established normally. the
3、DRA无法意识它所管理域内PCRF的工作状态的更新,从而不能有效地对域内PCRF实施管理,域内PCRF无法满足的根据用户通信业务量达到动态负载均衡需求。 3. The DRA cannot be aware of the update of the working status of the PCRF in the domain it manages, so it cannot effectively manage the PCRF in the domain, and the PCRF in the domain cannot meet the dynamic load balancing requirements according to the user communication traffic. the
因此,本发明实施例提供一种策略会话删除方法,用以建立DRA删除预先保存的策略会话信息与策略连接服务的PCRF之间的对应关系的流程,从而使DRA及时删除无用的策略会话信息和连接关系信息,避免无效的冗余信息对正常策略连接的不利影响,改善通信服务质量。 Therefore, an embodiment of the present invention provides a method for deleting a policy session, which is used to establish a process for the DRA to delete the correspondence between the pre-saved policy session information and the PCRF of the policy connection service, so that the DRA deletes useless policy session information and Connect relational information, avoid the adverse effect of invalid redundant information on normal strategic connections, and improve communication service quality. the
下面结合附图和实施例,对本发明的具体实施方式作进一步详细描述: Below in conjunction with accompanying drawing and embodiment, the specific embodiment of the present invention is described in further detail:
本发明实施例一,提供了一种PCRF主动发起的策略会话删除方法,为方便说明,分别采用会话连接完全终结和会话连接分支终结两种情况进行说明:
需要指出的是,一个会话连接中可能包含多个分支,如图2所示,在具体实践过程中,可以出现一个会话连接的一个或多个分支中断,而同时 仍有一个或多个分支保持连接的情况,导致会话连接未完全终结;只有当一个会话连接的所有分支全部中断时,该会话连接才完全中断。 It should be pointed out that a session connection may contain multiple branches, as shown in Figure 2, in the actual practice process, one or more branches of a session connection may be interrupted, and at the same time A session connection is not fully terminated when one or more legs are still connected; a session connection is only completely broken when all legs of a session connection are broken. the
如图3所示,为策略会话连接完全终结的情况下PCRF主动发起的策略会话删除方法的流程示意图,包括以下步骤: As shown in Figure 3, it is a schematic flow diagram of the policy session deletion method initiated by the PCRF when the policy session connection is completely terminated, including the following steps:
步骤S301、判断策略执行实体间的策略会话连接是否终结。 Step S301, judging whether the policy session connection between the policy enforcement entities is terminated. the
客户端A处于漫游状态,与拜访域的V-PCRF和家乡域中的H-PCRF均建立了策略连接,并通过V-DRA和H-DRA保存了相应的会话信息和连接策略信息,经判断,现在客户端A与V-PCRF和H-PCRF之间的策略控制会话完全终结。 Client A is in the roaming state, has established policy connections with both the V-PCRF in the visited domain and the H-PCRF in the home domain, and saved the corresponding session information and connection policy information through V-DRA and H-DRA. , now the policy control sessions between client A and V-PCRF and H-PCRF are completely terminated. the
步骤S302、V-PCRF向V-DRA发送删除策略会话连接对应的会话策略的指令。 Step S302, the V-PCRF sends an instruction to the V-DRA to delete the session policy corresponding to the policy session connection. the
客户端A对应的V-PCRF根据所在域的策略信息判断用户策略会话完全释放,所以,直接发送管理消息通知V-DRA删除预先保存的策略连接与服务该策略连接的PCRF的对应关系,即删除客户端A和V-PCRF之间的对应关系。 The V-PCRF corresponding to client A judges that the user policy session is completely released according to the policy information of the domain where it is located, so it directly sends a management message to notify V-DRA to delete the corresponding relationship between the pre-saved policy connection and the PCRF serving the policy connection, that is, delete Correspondence between client A and V-PCRF. the
步骤S303、V-PCRF接收V-DRA删除该会话策略的响应。 Step S303, V-PCRF receives a response from V-DRA to delete the session policy. the
V-DRA删除预先保存的策略连接与服务该策略连接的PCRF的对应关系。并确返回确认消息Ack给V-PCRF。 The V-DRA deletes the correspondence between the pre-saved policy connection and the PCRF serving the policy connection. And confirm to return the confirmation message Ack to V-PCRF. the
步骤S304、H-PCRF向H-DRA发送删除策略会话连接对应的会话策略的指令; Step S304, H-PCRF sends to H-DRA an instruction to delete the session policy corresponding to the policy session connection;
客户端A对应的家乡域中服务策略连接的H-PCRF根据所在域的策略信息判断用户策略会话完全释放,所以,H-PCRF发送管理消息通知H-DRA删除预先保存的策略连接与服务该策略连接的PCRF的对应关系,即删除客户端A和H-PCRF之间的对应关系。 The H-PCRF of the service policy connection in the home domain corresponding to client A judges that the user policy session is completely released according to the policy information of the domain, so the H-PCRF sends a management message to notify H-DRA to delete the pre-saved policy connection and service the policy The corresponding relationship between the connected PCRFs is to delete the corresponding relationship between the client A and the H-PCRF. the
步骤S305、H-PCRF接收H-DRA删除该会话策略的响应。 Step S305, the H-PCRF receives a response from the H-DRA to delete the session policy. the
H-DRA删除预先保存的策略连接与服务该策略连接的PCRF的对应关系,并确返回确认消息Ack给H-PCRF。 The H-DRA deletes the correspondence between the pre-saved policy connection and the PCRF serving the policy connection, and returns an acknowledgment message Ack to the H-PCRF. the
需要指出的是,上述步骤S302-S303和S304-S305之间没有先后关系,即 V-PCRF和H-PCRF是同时进行相应DRA的会话策略删除工作的,顺序的变化并不影响本发明实施例的保护范围。 It should be pointed out that there is no sequence relationship between the above steps S302-S303 and S304-S305, namely The V-PCRF and the H-PCRF perform the session policy deletion work of the corresponding DRA at the same time, and the change of the order does not affect the protection scope of the embodiment of the present invention. the
如图4所示,为会话连接未完全终结的情况下PCRF主动发起的策略会话删除方法的流程示意图,包括以下步骤: As shown in Figure 4, it is a schematic flow diagram of the policy session deletion method initiated by PCRF when the session connection is not completely terminated, including the following steps:
步骤S401、判断策略执行实体间的策略会话连接是否终结。 Step S401, judging whether the policy session connection between the policy enforcement entities is terminated. the
客户端A处于漫游状态,与拜访域的V-PCRF和家乡域中的H-PCRF均建立了策略连接,并通过V-DRA和H-DRA保存了相应的会话信息和连接策略信息,经判断,现在客户端A与拜访域中服务策略连接的V-PCRF之间的策略控制会话终结,而与家乡域中的H-PCRF之间的策略控制会话没有终结,即客户端A与V-PCRF之间的会话连接分支终结,而与H-PCRF之间的会话连接分支没有终结,据此判断,客户端A的策略会话连接没有完全终结。 Client A is in the roaming state, has established policy connections with both the V-PCRF in the visited domain and the H-PCRF in the home domain, and saved the corresponding session information and connection policy information through V-DRA and H-DRA. , now the policy control session between client A and the V-PCRF connected to the service policy in the visited domain is terminated, but the policy control session with the H-PCRF in the home domain is not terminated, that is, client A and V-PCRF The session connection branch with the H-PCRF is terminated, but the session connection branch with the H-PCRF is not terminated. Based on this, it is judged that the policy session connection of client A is not completely terminated. the
步骤S402、V-PCRF向V-DRA发送删除与该分支对应的策略会话信息的指令; Step S402, V-PCRF sends to V-DRA an instruction to delete the policy session information corresponding to the branch;
客户端A对应的V-PCRF和家乡域中服务策略连接的H-PCRF根据所在域的策略信息判断用户策略会话没有完全释放,所以,V-PCRF发送管理消息通知V-DRA不改变预先保存的策略连接与服务该策略连接的PCRF的对应关系,但是选择性删除部分策略会话信息,比如,删除客户端A与V-PCRF之间的策略控制会话相关信息。 The V-PCRF corresponding to client A and the H-PCRF connected to the service policy in the home domain judge that the user policy session has not been completely released according to the policy information of the domain, so the V-PCRF sends a management message to inform the V-DRA not to change the pre-saved The corresponding relationship between the policy connection and the PCRF that serves the policy connection, but selectively deletes part of the policy session information, for example, deletes the policy control session related information between the client A and the V-PCRF. the
步骤S403、V-PCRF接收该V-DRA删除该分支对应的策略会话信息的响应。 Step S403, V-PCRF receives the response of the V-DRA to delete the policy session information corresponding to the branch. the
V-DRA根据V-PCRF发送的管理消息中携带的指示,删除、更新或保留预先保存的策略连接与服务该策略连接的V-PCRF的对应关系,并且返回确认消息Ack给V-PCRF。 According to the instruction carried in the management message sent by V-PCRF, V-DRA deletes, updates or retains the correspondence between the pre-saved policy connection and the V-PCRF serving the policy connection, and returns an acknowledgment message Ack to V-PCRF. the
步骤S404、H-PCRF向H-DRA发送处理策略会话信息的指令; Step S404, H-PCRF sends an instruction for processing policy session information to H-DRA;
客户端A对应的V-PCRF和家乡域中服务策略连接的H-PCRF根据所在域的策略信息判断用户策略会话没有完全释放,所以,H-PCRF发送管理消息通知H-DRA不改变预先保存的策略连接与服务该策略连接的PCRF的对应关系,并且,由于客户端A与H-PCRF之间的策略控制会话没有终结,所以, 无需删除客户端A与H-PCRF之间的策略控制会话相关信息,但如果需要,可对其中发生变化的,如与V-PCRF有关的会话信息进行更新。 The V-PCRF corresponding to client A and the H-PCRF connected to the service policy in the home domain judge that the user policy session has not been completely released according to the policy information of the domain, so the H-PCRF sends a management message to notify H-DRA not to change the pre-saved The corresponding relationship between the policy connection and the PCRF serving the policy connection, and since the policy control session between client A and H-PCRF is not terminated, so, It is not necessary to delete the policy control session-related information between client A and the H-PCRF, but if necessary, the session information related to the V-PCRF may be updated if changed. the
步骤S405、H-PCRF接收H-DRA处理策略会话信息的响应。 Step S405, the H-PCRF receives the response of the H-DRA processing policy session information. the
H-DRA根据H-PCRF发送的管理消息中携带的指示,更新或保留预先保存的策略连接与服务该策略连接的H-PCRF的对应关系,并且返回确认消息Ack给H-PCRF。 According to the indication carried in the management message sent by the H-PCRF, the H-DRA updates or retains the correspondence between the pre-saved policy connection and the H-PCRF serving the policy connection, and returns an acknowledgment message Ack to the H-PCRF. the
需要指出的是,上述步骤S402-S403和S404-S405之间没有先后关系,即V-PCRF和H-PCRF是同时进行相应DRA的策略会话策略删除或更新工作的,顺序的变化并不影响本发明实施例的保护范围。 It should be pointed out that there is no sequential relationship between the above steps S402-S403 and S404-S405, that is, the V-PCRF and H-PCRF simultaneously delete or update the policy session policy of the corresponding DRA, and the change of the order does not affect this The protection scope of the invention embodiment. the
结合具体的事实场景,本发明实施例一所提供的PCRF主动发起的会话删除方法可以通过以下两个实施例进行具体说明:
Combined with specific factual scenarios, the method for session deletion initiated by PCRF provided by
如图5所示,为本发明实施例二,一种非漫游状态下的PCRF主动发起的会话删除方法,包括以下步骤:
As shown in Figure 5, it is
在非漫游状态3GPP中,S-GW与P-GW之间用GTP协议连接。GTP协议上的交互信息包括服务于策略连接的用户标识,PDN标识,以及IP地址。 In the 3GPP non-roaming state, the S-GW and the P-GW are connected using the GTP protocol. The exchange information on the GTP protocol includes the user ID serving the policy connection, the PDN ID, and the IP address. the
步骤S501、终结策略连接。 Step S501, terminating the policy connection. the
S-GW与域中策略连接对应的P-GW通过S5接口完成策略连接终结。 The S-GW and the P-GW corresponding to the policy connection in the domain complete the policy connection termination through the S5 interface. the
步骤S502、与PCRF之间的策略会话连接终结。 Step S502, the policy session connection with the PCRF is terminated. the
P-GW与域中服务该策略连接的PCRF之间通过S7接口完成策略控制会话终结。 The policy control session is terminated through the S7 interface between the P-GW and the PCRF serving the policy connection in the domain. the
步骤S503、判断PCRF与终端之间的策略会话连接是否完全终结。 Step S503, judging whether the policy session connection between the PCRF and the terminal is completely terminated. the
PCRF根据所在域的策略信息判断用户PCC策略会话是否完全释放。 The PCRF judges whether the user PCC policy session is completely released according to the policy information of the domain where it is located. the
如果PCC策略会话完全释放,通知DRA删除预先保存的策略连接与服务该策略连接的PCRF的对应关系。 If the PCC policy session is completely released, the DRA is notified to delete the correspondence between the pre-saved policy connection and the PCRF serving the policy connection. the
如果PCC策略会话没有完全释放(还存在其他策略会话分支),例如,在图2中所示,终端发起的三个分支中有两个已经终结,而有一个仍被保持,则认为该终端发起的PCC策略会话没有完全释放。DRA则不删除原先保存的 策略连接与服务该策略连接的PCRF的对应关系,但是PCRF可选的通知DRA删除/更新预先保存的策略连接与服务该策略连接的PCRF的对应关系列表中的部分内容。 If the PCC policy session is not completely released (there are other policy session branches), for example, as shown in Figure 2, two of the three branches initiated by the terminal have been terminated, and one is still maintained, then it is considered that the terminal initiated The PCC policy session is not fully released. DRA does not delete the previously saved The corresponding relationship between the policy connection and the PCRF serving the policy connection, but the PCRF may optionally notify the DRA to delete/update part of the contents in the pre-saved correspondence list between the policy connection and the PCRF serving the policy connection. the
步骤S504、PCRF向DRA发送管理消息。 Step S504, the PCRF sends a management message to the DRA. the
PCRF向DRA发送PCRF管理消息,该消息中携带用户标识,PDN标识和IP地址信息。该消息指示DRA删除全部或者删除/更新部分预先保存的策略连接与PCRF的对应关系列表中的内容。PCRF也可以选择不同的消息来指示DRA的删除或者删除/更新的动作。 The PCRF sends a PCRF management message to the DRA, and the message carries user identification, PDN identification and IP address information. The message instructs the DRA to delete all or to delete/update part of the content in the pre-saved list of correspondences between policy connections and PCRFs. The PCRF may also select different messages to indicate the deletion or deletion/update action of the DRA. the
步骤S505、PCRF接收DRA的操作反馈。 Step S505, the PCRF receives the operation feedback of the DRA. the
DRA根据PCRF发送的管理消息中携带的指示删除/更新预先保存的策略连接与服务该策略连接的PCRF的对应关系。并且返回确认消息给PCRF。 The DRA deletes/updates the corresponding relationship between the pre-saved policy connection and the PCRF serving the policy connection according to the indication carried in the management message sent by the PCRF. And return an acknowledgment message to the PCRF. the
如图6所示,为本发明实施例三,一种漫游状态下的PCRF主动发起的会话删除方法,包括以下步骤:
As shown in Figure 6, it is
在漫游状态3GPP中,S-GW与P-GW之间用PMIP协议连接。而且S-GW位于拜访域,P-GW位于家乡域。PMIP协议上的交互信息包括服务于策略连接的用户标识,PDN标识,以及IP地址。 In the 3GPP roaming state, the PMIP protocol is used to connect the S-GW and the P-GW. Moreover, the S-GW is located in the visited domain, and the P-GW is located in the home domain. The exchange information on the PMIP protocol includes the user ID serving the policy connection, the PDN ID, and the IP address. the
步骤S601、S-GW与拜访域中服务该策略连接的V-PCRF通过S7c接口完成策略控制会话终结。 In step S601, the S-GW and the V-PCRF serving the policy connection in the V domain complete the policy control session termination through the S7c interface. the
步骤S602、拜访域的V-PCRF与在家乡域中服务该策略连接的对应的H-PCRF完成策略控制会话终结。 In step S602, the V-PCRF in the visited domain and the corresponding H-PCRF serving the policy connection in the home domain complete the policy control session termination. the
步骤S603、对应的V-PCRF和家乡域中服务策略连接的H-PCRF根据所在域的策略信息判断用户策略会话没有完全释放。通知V-DRA(H-DRA)不改变预先保存的策略连接与服务该策略连接的PCRF的对应关系。但是可以指示DRA删除策略连接与服务该策略连接的PCRF的对应关系列表中的部分内容,比如CoA等信息。 Step S603 , the corresponding V-PCRF and the H-PCRF of the service policy connection in the home domain judge that the user policy session has not been completely released according to the policy information of the domain. The V-DRA (H-DRA) is notified not to change the correspondence between the pre-saved policy connection and the PCRF serving the policy connection. However, the DRA may be instructed to delete part of the content in the list of correspondence between the policy connection and the PCRF serving the policy connection, such as CoA and other information. the
步骤S604、V-PCRF(H-PCRF)向V-DRA(H-DRA)发送PCRF管理消息,该消息中携带用户标识,PDN标识,IP地址(HoA,CoA)信息。 Step S604, V-PCRF (H-PCRF) sends a PCRF management message to V-DRA (H-DRA), and the message carries user ID, PDN ID, and IP address (HoA, CoA) information. the
步骤S605、V-DRA(H-DRA)根据PCRF发送的管理消息中携带的指示更新/保留预先保存的策略连接与服务该策略连接的PCRF的对应关系。并且返回确认消息给V-PCRF(H-PCRF)。 Step S605 , the V-DRA (H-DRA) updates/retains the corresponding relationship between the pre-saved policy connection and the PCRF serving the policy connection according to the instruction carried in the management message sent by the PCRF. And return an acknowledgment message to the V-PCRF (H-PCRF). the
步骤S606、P-GW与家乡域中服务该策略连接的H-PCRF通过S7接口完成策略控制会话终结。 In step S606, the P-GW and the H-PCRF serving the policy connection in the home domain complete the policy control session termination through the S7 interface. the
步骤S607、H-PCRF判断用户策略会话完全释放。 Step S607, the H-PCRF judges that the user policy session is completely released. the
步骤S608、H-PCRF向H-DRA发送PCRF管理消息,该消息中携带指示策略会话释放成功的信息。该消息中携带用户标识,PDN标识,IP地址(HoA,CoA)信息.。 In step S608, the H-PCRF sends a PCRF management message to the H-DRA, and the message carries information indicating that the policy session is released successfully. The message carries user identifier, PDN identifier, IP address (HoA, CoA) information. the
步骤S609、H-DRA根据H-PCRF发送的管理消息中携带的指示删除预先保存的策略连接与服务该策略连接的PCRF的对应关系。并且返回确认消息给H-PCRF。 Step S609 , the H-DRA deletes the correspondence between the pre-saved policy connection and the PCRF serving the policy connection according to the instruction carried in the management message sent by the H-PCRF. And return an acknowledgment message to the H-PCRF. the
步骤S610、H-PCRF与服务该策略连接的拜访域的V-PCRF通过S9接口完成策略控制会话终结。 In step S610, the H-PCRF and the V-PCRF serving the policy connection's V-domain complete the policy control session termination through the S9 interface. the
步骤S611、V-PCRF判断用户策略会话完全释放。 Step S611, the V-PCRF judges that the user policy session is completely released. the
步骤S612、V-PCRF向V-DRA发送PCRF管理消息,该消息中携带指示策略会话释放成功的信息。该消息中携带用户标识,PDN标识,IP地址(HoA,CoA)信息。 Step S612, the V-PCRF sends a PCRF management message to the V-DRA, and the message carries information indicating that the policy session is released successfully. The message carries user identifier, PDN identifier, and IP address (HoA, CoA) information. the
步骤S613、V-DRA根据V-PCRF发送的管理消息中携带的指示删除预先保存的策略连接与服务该策略连接的PCRF的对应关系。并且返回确认消息给V-PCRF。 Step S613 , the V-DRA deletes the correspondence between the pre-saved policy connection and the PCRF serving the policy connection according to the instruction carried in the management message sent by the V-PCRF. And return a confirmation message to the V-PCRF. the
以上的本发明实施例二和本发明实施例三均是以在3GPP下的实施例进行说明,但需要进一步指出的是,本发明实施例的保护范围并不仅限于3GPP,在其他网络协议下本发明实施例同样可以实现,据此,在其他网络协议下,根据本发明实施例所提供的技术思想所实现的技术方案也应属于本发明的保护范围。 The above second embodiment of the present invention and the third embodiment of the present invention are both described in the embodiment under 3GPP, but it needs to be further pointed out that the scope of protection of the embodiment of the present invention is not limited to 3GPP, and the present invention under other network protocols The embodiments of the invention can also be implemented. Accordingly, under other network protocols, the technical solutions implemented according to the technical ideas provided by the embodiments of the invention should also fall within the protection scope of the invention. the
如图7所示,为本发明实施例四,一种Non-3GPP中非漫游状态下的PCRF 主动发起的会话删除方法,包括以下步骤: As shown in Figure 7, it is the fourth embodiment of the present invention, a PCRF in the non-roaming state in Non-3GPP The method for actively initiating session deletion includes the following steps:
在非漫游状态Non-3GPP中,同在家乡域的Access-GW与P-GW之间用CMIP协议连接。CMIP协议上的交互信息包括服务于策略连接的用户标识,PDN标识,以及IP地址。 In the Non-3GPP non-roaming state, the Access-GW and the P-GW in the home domain are connected using the CMIP protocol. The exchange information on the CMIP protocol includes the user ID serving the policy connection, the PDN ID, and the IP address. the
步骤S701、P-GW与域中策略连接对应的PCRF通过S7接口完成策略控制会话终结。 In step S701, the P-GW and the PCRF corresponding to the policy connection in the domain complete the policy control session termination through the S7 interface. the
步骤S702、PCRF根据所在域的策略信息判断用户策略会话部分释放。 In step S702, the PCRF judges that the user policy session part is released according to the policy information of the domain where it is located. the
步骤S703、PCRF向DRA发送PCRF管理消息,该消息中携带指示策略会话部分释放。并且在消息中携带用户标识,PDN标识,IP地址(HoA,CoA)信息。 Step S703 , the PCRF sends a PCRF management message to the DRA, and the message carries an indication policy session part release. And the information of user identification, PDN identification and IP address (HoA, CoA) is carried in the message. the
步骤S704、DRA根据PCRF发送的管理消息中携带的指示删除预先保存的策略连接与服务该策略连接的PCRF的对应关系,并且返回确认消息给PCRF。 Step S704, the DRA deletes the correspondence between the pre-saved policy connection and the PCRF serving the policy connection according to the instruction carried in the management message sent by the PCRF, and returns a confirmation message to the PCRF. the
由于是策略会话部分释放,所以,只删除与已释放的策略会话相对应的PCRF对应关系,而未释放的策略会话相对应的PCRF对应关系仍被保留。 Since the policy session is partially released, only the PCRF correspondence corresponding to the released policy session is deleted, while the PCRF correspondence corresponding to the unreleased policy session is still retained. the
需要指出的是,如果步骤S702中判断用户策略会话完全释放,则步骤S704中需要删除该策略会话对应的全部会话信息和会话策略。 It should be pointed out that if it is determined in step S702 that the user policy session is completely released, all session information and session policies corresponding to the policy session need to be deleted in step S704. the
步骤S705、Access-GW与域中服务该策略连接的PCRF通过S7a接口完成策略控制会话终结。 Step S705 , the Access-GW and the PCRF serving the policy connection in the domain complete the policy control session termination through the S7a interface. the
步骤S706、对应的PCRF根据所在域的策略信息判断用户策略会话没有完全释放。通知DRA不改变预先保存的策略连接与服务该策略连接的PCRF的对应关系。但是可以选择性删除部分策略会话信息,比如与策略控制会话相关信息。 Step S706, the corresponding PCRF judges that the user policy session is not completely released according to the policy information of the domain where it is located. The DRA is notified not to change the correspondence between the pre-saved policy connection and the PCRF serving the policy connection. However, some policy session information may be selectively deleted, such as information related to policy control sessions. the
步骤S707、PCRF向DRA发送PCRF管理消息,该消息中携带用户标识,PDN标识,IP地址(HoA,CoA)信息。 In step S707, the PCRF sends a PCRF management message to the DRA, and the message carries user identification, PDN identification, and IP address (HoA, CoA) information. the
步骤S708、DRA根据PCRF发送的管理消息中携带的指示,删除、更新或保留预先保存的策略连接与服务该策略连接的PCRF的对应关系。并且返回确认消息给PCRF。 Step S708 , the DRA deletes, updates or retains the correspondence between the pre-saved policy connection and the PCRF serving the policy connection according to the indication carried in the management message sent by the PCRF. And return an acknowledgment message to the PCRF. the
由于是策略会话部分释放,所以,只删除与已释放的策略会话相对应的PCRF对应关系,而未释放的策略会话相对应的PCRF对应关系仍被保留。 Since the policy session is partially released, only the PCRF correspondences corresponding to the released policy sessions are deleted, while the PCRF correspondences corresponding to the unreleased policy sessions are still retained. the
需要指出的是,如果步骤S706中判断用户策略会话完全释放,则步骤S708中需要删除该策略会话对应的全部会话信息和会话策略。 It should be pointed out that, if it is determined in step S706 that the user policy session is completely released, all session information and session policies corresponding to the policy session need to be deleted in step S708. the
对于上述的本发明实施例一至四,通过本发明实施例五还提供了一种PCRF,用于实现上述的会话删除方法,如图8所示,包括:
For the above-mentioned
会话状态判断模块1,用于判断策略执行实体间的策略会话连接是否终结,或判断策略执行实体间的策略会话连接的分支是否终结;
The session
删除指令发送模块2,用于当会话状态判断模块1判断策略会话连接终结时,向DRA发送删除策略会话连接对应的策略会话信息的指令,或当会话状态判断模块判断策略执行实体间的策略会话连接中的分支终结时,向DRA发送删除与分支对应的会话信息的指令;
Deletion
响应信息接收模块3,用于接收DRA删除策略会话信息或分支对应的会话信息的响应。
The response
其中,删除指令发送模块2还包括:
Wherein, the deletion
标识信息添加子模块21,用于在删除策略会话连接对应的策略会话信息的指令,或删除分支对应的策略会话信息的指令中添加用户标识、PDN标识和IP地址信息。 The identification information adding sub-module 21 is configured to add user identification, PDN identification and IP address information to the instruction of deleting the policy session information corresponding to the policy session connection or the instruction of deleting the policy session information corresponding to the branch. the
如图9所示,为本发明实施例六,一种DRA的结构示意图,包括: As shown in Figure 9, it is a sixth embodiment of the present invention, a schematic structural diagram of a DRA, including:
删除指令接收模块1,用于接收删除策略会话连接对应的策略会话信息的指令,或删除分支对应的策略会话信息的指令;
Delete
会话信息匹配模块2,用于将删除指令接收模块1所接收的指令中的用户标识、PDN标识和IP地址信息与DRA中的策略会话信息中的用户标识、PDN标识和IP地址信息进行关联,确定指令所对应的策略会话信息;
The session
会话信息删除模块3,用于根据会话信息匹配模块2的匹配结果,删除策略会话连接对应的策略会话信息,或删除分支对应的策略会话信息;
The session
删除结果反馈模块4,用于反馈删除策略会话信息的结果。
The delete
其中,会话信息匹配模块2还包括:
Wherein, the session
标识信息识别子模块21,用于识别删除指令接收模块1所接收的指令中的用户标识、PDN标识和IP地址信息。
The identification
如图10所示,为本发明实施例七,一种DRA根据生命周期自动检测进行会话删除的方法,包括以下步骤: As shown in Figure 10, it is the seventh embodiment of the present invention, a method for DRA to automatically detect a session according to the life cycle, including the following steps:
步骤S1001、按时间顺序生成会话连接的索引信息。 Step S1001, generating session connection index information in chronological order. the
根据会话连接的建立顺序生成索引信息。 Generate index information according to the order in which session connections are established. the
步骤S1002、根据索引信息,向PCRF发送查询会话连接的状态的指令。 Step S1002 , according to the index information, send an instruction to the PCRF to query the state of the session connection. the
按照时间排序的索引信息依次通知在列表里面对应的PCRF,查询当前检索信息对应的会话是否释放成功。 The index information sorted by time notifies the corresponding PCRF in the list in turn to query whether the session corresponding to the current search information is released successfully. the
DRA根据配置的定时器,定期自动查询存储的策略会话消息的时长。并且通知超过定时器规定时长的策略会话消息对应的PCRF去查询该策略会话连接是否释放成功。PCRF查询信息包括用户标识,PDN标识,以及IP地址。 According to the configured timer, the DRA periodically and automatically queries the duration of the stored policy session messages. And notify the PCRF corresponding to the policy session message exceeding the specified duration of the timer to query whether the policy session connection is released successfully. The PCRF query information includes user identification, PDN identification, and IP address. the
步骤S1003、接收PCRF反馈的策略会话连接状态反馈。 Step S1003, receiving policy session connection state feedback fed back by the PCRF. the
对应的PCRF在回复消息中通知DRA所查询的策略会话连接是否已经释放。 The corresponding PCRF notifies the DRA in the reply message whether the queried policy session connection has been released. the
步骤S1004、当PCRF反馈会话连接的状态为已终结时,删除当前会话连接的会话策略。 Step S1004, when the PCRF feeds back that the state of the session connection is terminated, delete the session policy of the current session connection. the
对应的PCRF在回复消息中通知DRA所查询的策略连接会话是否已经释放,DRA根据PCRF发送的应答消息中携带的指示删除、更新或保留预先保存的策略连接与服务该策略连接的PCRF的对应关系。如果没有接收到步骤S1003的PCRF的应答消息,则重复步骤S1002。如果多次重复步骤S1002(比如7次),PCRF一直没有回复应答。则DRA默认为PCRF出现故障,自动删除在列表中保存的该PCRF服务的策略连接信息。 The corresponding PCRF notifies the DRA in the reply message whether the policy connection session queried has been released, and the DRA deletes, updates or retains the corresponding relationship between the pre-saved policy connection and the PCRF serving the policy connection according to the indication carried in the response message sent by the PCRF . If no response message from the PCRF in step S1003 is received, step S1002 is repeated. If step S1002 is repeated many times (for example, 7 times), the PCRF has not responded. Then the DRA assumes that the PCRF fails by default, and automatically deletes the policy connection information of the PCRF service saved in the list. ``
为实现上述本发明实施例七,通过本发明实施例八,提供了一种DRA, 如图11所示,包括: In order to realize the seventh embodiment of the present invention, a DRA is provided through the eighth embodiment of the present invention, As shown in Figure 11, including:
定时器模块1,用于检测当前存储的策略会话连接的持续时长,和设置当前存储的策略会话连接的生命周期;
会话状态查询模块2,用于当定时器模块1检测到当前存储的策略会话连接的持续时长超过定时器模块1设置的生命周期后,向PCRF发送查询当前存储的策略会话连接状态的指令;
Session
会话策略更新模块3,用于根据PCRF反馈的策略会话连接的状态,删除或更新当前存储的策略会话连接的策略会话信息。
The session
其中,定时器模块1,具体包括:
Among them, the
持续时长检测子模块11,用于检测当前存储的策略会话连接的持续时长;
The
生命周期设置子模块12,用于设置当前存储的策略会话连接的生命周期。
The life
如图12所示,为本发明实施例九,一种DRA根据序号异变检测进行会话删除的方法,在PCRF向DRA发送管理请求消息时进行序号检测,如果DRA检测到PCRF上报的管理消息的序列号发生异常改变(PCRF重启动),则DRA自动删除预先保存的策略连接与之对应关系,具体包括以下步骤:
As shown in FIG. 12 , it is
步骤S1201、PCRF向DRA发送管理消息。该消息中包含通知DRA用户策略会话是否完全释放。 Step S1201, the PCRF sends a management message to the DRA. This message includes notifying the DRA user whether the policy session is completely released. the
步骤S1202、DRA检测到PCRF发送的管理消息中携带的序列号发生异常改变,删除会话信息。 Step S1202, the DRA detects that the sequence number carried in the management message sent by the PCRF has changed abnormally, and deletes the session information. the
DRA检测PCRF上报的管理消息。如果检测到PCRF上报管理消息的序列号发生异常改变。则判定策略会话连接管理消息对应的PCRF发生重启,并进一步判定该PCRF之前的策略会话信息完全终结,DRA自动删除预先保存的策略连接与之对应关系。 The DRA detects the management message reported by the PCRF. If it is detected that the serial number of the management message reported by the PCRF changes abnormally. Then it is determined that the PCRF corresponding to the policy session connection management message is restarted, and it is further determined that the policy session information before the PCRF is completely terminated, and the DRA automatically deletes the pre-saved policy connection corresponding to it. the
步骤S1203、返回管理完成的应答消息给PCRF。 Step S1203, returning a management completion response message to the PCRF. the
为实现上述本发明实施例九,通过本发明实施例十,提供了一种DRA,如图13所示,包括: In order to realize the above-mentioned ninth embodiment of the present invention, through the tenth embodiment of the present invention, a DRA is provided, as shown in FIG. 13 , including:
管理消息接收模块1,用于接收PCRF发送的包含序号的会话连接管理消息;
Management
会话状态判断模块2,用于当管理消息接收模块1接收的会话连接管理消息中的序号发生异变时,判定策略会话连接管理消息对应的PCRF发生重启;
The session
策略会话删除模块3,用于当会话状态判断模块2判定PCRF发生重启时,删除与PCRF重启前对应的策略会话信息;
Policy
删除结果反馈模块4,用于反馈删除策略会话信息的结果。
The delete
其中,管理消息接收模块1,还包括:
Wherein, the management
序号识别子模块11,用于识别PCRF发送的会话连接管理消息中包含的序号是否发生异变。
The sequence
需要进一步指出的是,在其他网络协议下,应用本发明实施例的方法所产生的关于会话删除的技术方案也应属于本发明的保护范围。如本发明实施例十一所述,提供了一种在WIMAX网络内进行会话删除的方法,在本实施例中,由DRA管理A-PCEF和C-PCEF与PDF/PCRF对应关系,如图14所示,包括以下步骤:
It should be further pointed out that under other network protocols, the technical solution about session deletion generated by applying the method of the embodiment of the present invention should also belong to the protection scope of the present invention. As described in
步骤S1401、A-PCEF与策略连接对应的PDF/PCRF通过R3-PCC接口完成ASN策略连接终结。 In step S1401, the A-PCEF and the PDF/PCRF corresponding to the policy connection complete the termination of the ASN policy connection through the R3-PCC interface. the
步骤S1402、C-PCEF与服务该策略连接的PDF/PCRF之间通过R3-PCC完成CSN策略连接终结。 In step S1402, the CSN policy connection is terminated through the R3-PCC between the C-PCEF and the PDF/PCRF serving the policy connection. the
步骤S1403、PDF/PCRF根据所在域的策略信息判断用户动态QoS策略会话是否完全释放。如果用户动态QoS策略会话完全释放,通知DRA删除预先保存的策略连接与服务该策略连接的PCRF的对应关系。如果用户动态QoS策略会话没有完全释放(还存在其他策略会话分支),DRA则不删除预先保存的策略连接与服务该策略连接的PCRF的对应关系,但是PCRF可选的通知DRA删除/更新保存的预先策略连接与服务该策略连接的PCRF的对应关系列表中的部分内容。 Step S1403, PDF/PCRF judges whether the user's dynamic QoS policy session is completely released according to the policy information of the domain where it is located. If the user's dynamic QoS policy session is completely released, the DRA is notified to delete the correspondence between the pre-saved policy connection and the PCRF serving the policy connection. If the user's dynamic QoS policy session is not completely released (there are other policy session branches), DRA will not delete the correspondence between the pre-saved policy connection and the PCRF serving the policy connection, but PCRF can optionally notify DRA to delete/update the saved Part of the content in the list of correspondence between the pre-policy connection and the PCRF serving the policy connection. the
步骤S1404、PCRF向DRA发送PCRF管理消息,该消息中携带用户标 识,PDN标识和IP地址等信息。该消息指示DRA删除全部或者删除/更新部分预先保存的策略连接与PCRF的对应关系列表中的内容。PCRF也可以选择不同的消息来指示DRA的删除或者删除/更新的动作。 Step S1404, PCRF sends PCRF management message to DRA, carries user identification in this message identification, PDN identification and IP address and other information. The message instructs the DRA to delete all or to delete/update part of the content in the pre-saved list of correspondences between policy connections and PCRFs. The PCRF may also select different messages to indicate the deletion or deletion/update action of the DRA. the
步骤S1405、DRA根据PCRF发送的管理消息中携带的指示删除/更新预先保存的策略连接与服务该策略连接的PCRF的对应关系,并且返回确认消息给PCRF。 Step S1405, the DRA deletes/updates the correspondence between the pre-saved policy connection and the PCRF serving the policy connection according to the instruction carried in the management message sent by the PCRF, and returns a confirmation message to the PCRF. the
对于本发明上述实施例一至十一中所述的管理消息可以是单独设置的一种消息,也可以是本发明实施例一中所述的删除策略会话连接对应的会话策略的指令,或删除与策略会话连接分支对应的策略会话信息的指令。 The management message described in the first to eleventh embodiments of the present invention may be a message set separately, or it may be an instruction to delete the session policy corresponding to the policy session connection described in the first embodiment of the present invention, or to delete the session policy associated with the session connection. The command of the policy session information corresponding to the policy session connection branch. the
本发明实施例的技术方案具有以下优点,因为采用了通过检测策略会话连接情况找出无用的策略会话信息并进行删除的方法,从而,使DRA可以及时删除无用的策略会话信息和连接关系信息,达到了避免无效的冗余信息对正常策略连接的不利影响,改善通信服务质量的效果。 The technical solution of the embodiment of the present invention has the following advantages, because the method of finding out useless policy session information and deleting it by detecting the connection situation of the policy session is adopted, so that the DRA can delete useless policy session information and connection relationship information in time, The effect of avoiding the adverse effect of invalid redundant information on the normal policy connection and improving the communication service quality is achieved. the
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台终端设备(可以是手机,个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。 Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is a better implementation Way. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A terminal device (which may be a mobile phone, a personal computer, a server, or a network device, etc.) executes the methods described in various embodiments of the present invention. the
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视本发明的保护范围。 The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention. the
Claims (20)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200810086214XA CN101541100B (en) | 2008-03-17 | 2008-03-17 | Method and device for deleting strategy session |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200810086214XA CN101541100B (en) | 2008-03-17 | 2008-03-17 | Method and device for deleting strategy session |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101541100A CN101541100A (en) | 2009-09-23 |
| CN101541100B true CN101541100B (en) | 2012-07-04 |
Family
ID=41123998
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200810086214XA Expired - Fee Related CN101541100B (en) | 2008-03-17 | 2008-03-17 | Method and device for deleting strategy session |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101541100B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3525502A4 (en) * | 2016-11-08 | 2019-10-30 | Huawei Technologies Co., Ltd. | METHOD, DEVICE AND SYSTEM FOR INTEGRATED CONTROL DEVICE SELECTION |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102694841A (en) * | 2011-03-21 | 2012-09-26 | 中兴通讯股份有限公司 | Method and system for deleting binding information in Diameter routing agent |
| CN102802143B (en) * | 2011-05-26 | 2015-05-27 | 华为软件技术有限公司 | Service restoring method, relevant device and system |
| CN106302638B (en) * | 2016-07-27 | 2020-02-14 | 华为技术有限公司 | Data management method, forwarding equipment and system |
| CN106506669B (en) * | 2016-11-21 | 2019-12-13 | 中国移动通信集团江苏有限公司 | Method, device and system for processing session information |
| CN110944361B (en) * | 2018-09-21 | 2022-02-11 | 华为技术有限公司 | Method and network element for load balancing |
| CN112491941A (en) * | 2019-09-12 | 2021-03-12 | 华为技术有限公司 | A data management method, related product and communication system |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1468480A (en) * | 2000-08-18 | 2004-01-14 | ����ɭ�绰�ɷ�����˾ | System and method of monitoring and reporting accounting data based on volume |
| CN1802817A (en) * | 2003-07-03 | 2006-07-12 | 艾利森电话股份有限公司 | Method and network for WLAN session control |
| CN101217383A (en) * | 2008-01-04 | 2008-07-09 | 中兴通讯股份有限公司 | A deletion method of functional association relation of strategy and charging rules |
-
2008
- 2008-03-17 CN CN200810086214XA patent/CN101541100B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1468480A (en) * | 2000-08-18 | 2004-01-14 | ����ɭ�绰�ɷ�����˾ | System and method of monitoring and reporting accounting data based on volume |
| CN1802817A (en) * | 2003-07-03 | 2006-07-12 | 艾利森电话股份有限公司 | Method and network for WLAN session control |
| CN101217383A (en) * | 2008-01-04 | 2008-07-09 | 中兴通讯股份有限公司 | A deletion method of functional association relation of strategy and charging rules |
Non-Patent Citations (2)
| Title |
|---|
| 3GPP TSG SSA.Policy and charging control architecture(Release 8).《3GPP TS 23.203 V8.0.0》.2007, * |
| ZTE.CR for information storage in DRA.《3GPP TSG-SA WG2 Meeting #62 S2-080925》.2008, * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP3525502A4 (en) * | 2016-11-08 | 2019-10-30 | Huawei Technologies Co., Ltd. | METHOD, DEVICE AND SYSTEM FOR INTEGRATED CONTROL DEVICE SELECTION |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101541100A (en) | 2009-09-23 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8885568B2 (en) | Policy application method for machine type communication, and policy and charging enforcement function | |
| CN100579302C (en) | A method for selecting a policy and charging rule function server in a non-roaming scenario | |
| EP2146458B1 (en) | Method,system and entity of realizing event detection | |
| CN101677437B (en) | Method and system for implementing strategy and charge control under scene of multi-grouping data network | |
| US9013979B2 (en) | High-available policy and charging-control in geographical redundancy PCRF configurations | |
| CN103975625B (en) | A management method of forwarding plane tunnel resources under the decoupling architecture of control and forwarding | |
| CN101646149B (en) | Method for deleting session messages in DRA | |
| CN102075894B (en) | Selection method and system for policy and charging rules function entity | |
| US8527634B2 (en) | Method and apparatus for creating IP-CAN session | |
| CN101541100B (en) | Method and device for deleting strategy session | |
| US8811342B2 (en) | Method and system for deleting redundant information of home policy and charging rules function | |
| CN101646193B (en) | Method, device, system and client for processing state information | |
| US20120297076A1 (en) | Method, apparatus and system for selecting policy and charging rules function entity | |
| CN101459951B (en) | Method and system for policy control of bearer binding and event reporting functions | |
| CN102238507B (en) | Determine the method and system of "Policy and Charging Rules Function | |
| US20110320544A1 (en) | Diameter session audits | |
| CN101227391A (en) | Selection method of policy and charging rule functional entities in non-roaming scenarios | |
| CN101588326B (en) | Method, devcie and system for associating gateway controlled conversation with Gx conversation | |
| CN101384076B (en) | Processing method, switching method for policy and charging control, system and device | |
| CN105163345A (en) | Area reporting method and system | |
| CN101483848B (en) | Method, apparatus and system for switching network under roaming state | |
| CN101998513B (en) | Method and system for controlling policy and charging rules function (PCRF) load balance and redirect diameter routing agent (DRA) | |
| CN105009673B (en) | Business Continuity Judgment Method and Equipment | |
| WO2009089776A1 (en) | Method and apparatus for the policy and charging rule function information maintenance | |
| CN101420361A (en) | Method, terminal, server and customer terminal for terminating session |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| C17 | Cessation of patent right | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120704 Termination date: 20130317 |