CN103312683A - TDF (Traffic Detection Function) processing method and PCRF (Policy and Charging Rules Function) - Google Patents
TDF (Traffic Detection Function) processing method and PCRF (Policy and Charging Rules Function) Download PDFInfo
- Publication number
- CN103312683A CN103312683A CN2012100713813A CN201210071381A CN103312683A CN 103312683 A CN103312683 A CN 103312683A CN 2012100713813 A CN2012100713813 A CN 2012100713813A CN 201210071381 A CN201210071381 A CN 201210071381A CN 103312683 A CN103312683 A CN 103312683A
- Authority
- CN
- China
- Prior art keywords
- tdf
- address
- session
- pcrf
- session establishment
- 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.)
- Granted
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 26
- 238000003672 processing method Methods 0.000 title claims abstract description 10
- 238000000034 method Methods 0.000 claims abstract description 39
- 230000004048 modification Effects 0.000 claims description 19
- 238000012986 modification Methods 0.000 claims description 19
- 230000008569 process Effects 0.000 abstract description 22
- 230000011664 signaling Effects 0.000 abstract description 12
- 230000003993 interaction Effects 0.000 abstract description 11
- 238000012790 confirmation Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 230000003370 grooming effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Images
Landscapes
- Mobile Radio Communication Systems (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种TDF会话的处理方法及PCRF,该方法包括:PCRF接收来自TDF的TDF会话建立消息,其中,TDF会话建立消息携带用户设备UE的第一地址;PCRF判断第一地址对应的IP-CAN会话是否存在一个已建立的第二地址的TDF会话;如果存在,则PCRF向TDF返回第一地址的TDF会话建立拒绝消息。通过运用本发明,解决了相关技术中一个IP-CAN会话同时存在两个TDF会话,且针对同一个IP-CAN会话的业务检测需要通过不同的TDF会话上报的问题,进而节约了系统资源的同时还减少了交互过程中的信令开销,提高了系统的资源利用率。
The present invention discloses a TDF session processing method and PCRF. The method includes: PCRF receives a TDF session establishment message from TDF, wherein the TDF session establishment message carries a first address of user equipment UE; PCRF judges that the first address corresponds to Whether there is an established TDF session of the second address in the IP-CAN session; if yes, the PCRF returns a TDF session establishment rejection message of the first address to the TDF. By using the present invention, it solves the problem in the related art that there are two TDF sessions in one IP-CAN session at the same time, and the service detection for the same IP-CAN session needs to be reported through different TDF sessions, thereby saving system resources and at the same time The signaling overhead in the interaction process is also reduced, and the resource utilization rate of the system is improved.
Description
技术领域 technical field
本发明涉及通信领域,具体而言,涉及一种业务检测功能(Traffic Detection Function,简称为TDF)会话的处理方法及策略控制和计费规则功能实体(Policy and Charging RulesFunction,简称为PCRF)。The present invention relates to the communication field, in particular, to a processing method for a Traffic Detection Function (Traffic Detection Function, referred to as TDF) session and a Policy Control and Charging Rules Function entity (Policy and Charging Rules Function, referred to as PCRF).
背景技术 Background technique
自第三代合作伙伴计划阶段7(3GPP Release7)标准体系建立以来,策略和计费功能由策略和计费控制(Policy and Charging Control,简称为PCC)框架来实现。PCC架构是一个能够应用于多种接入技术的功能框架,例如,PCC架构可以应用于通用移动通信系统(UniversalMobile Telecommunications System,简称为UMTS)的陆上无线接入网(UMTS Terrestrial RadioAccess Network,简称为UTRAN)、全球移动通信系统(Global system for MobileCommunication,简称为GSM)/GSM数据增强演进(Enhanced Data Rate for GSM Evolution,简称为EDGE)无线接入网、互通无线局域网(Interworking WLAN,简称为I-WLAN)以及演进的分组系统(Evolved Packet System,简称为EPS)等。Since the establishment of the 3rd Generation Partnership Project Phase 7 (3GPP Release7) standard system, the policy and charging functions are implemented by the policy and charging control (Policy and Charging Control, referred to as PCC) framework. The PCC architecture is a functional framework that can be applied to multiple access technologies. For example, the PCC architecture can be applied to the UMTS Terrestrial Radio Access Network (UMTS Terrestrial RadioAccess Network, referred to as UMTS) of the Universal Mobile Telecommunications System (UMTS for short). UTRAN), Global system for Mobile Communication (GSM for short)/GSM Data Enhanced Evolution (Enhanced Data Rate for GSM Evolution, EDGE for short) wireless access network, Interworking WLAN (Interworking WLAN for short, I -WLAN) and the evolved packet system (Evolved Packet System, referred to as EPS).
PCC主要实现了策略控制和计费两大功能。图1为现有Rel-11的PCC组成架构的示意图,以下对图1所示的PCC架构中的各个逻辑功能实体及其接口功能进行描述。如图1所示:The PCC mainly implements two functions of policy control and charging. FIG. 1 is a schematic diagram of an existing Rel-11 PCC architecture. The following describes each logical functional entity and its interface function in the PCC architecture shown in FIG. 1 . As shown in Figure 1:
应用功能(AF),用于提供业务应用的接入点,这些业务应用所使用的网络资源需要进行动态的策略控制。在业务面进行参数协商时,AF将相关业务信息传递给PCRF。如果这些业务信息与PCRF的策略相一致,则PCRF接受该协商;否则,PCRF拒绝该协商,并在反馈时给出PCRF可接受的业务参数。随后,AF可将这些参数返回给用户设备(User Equipment,简称为UE)。其中,AF和PCRF之间的接口是Rx接口。The application function (AF) is used to provide an access point for service applications, and the network resources used by these service applications require dynamic policy control. When negotiating parameters on the service plane, the AF transmits relevant service information to the PCRF. If the service information is consistent with the PCRF policy, the PCRF accepts the negotiation; otherwise, the PCRF rejects the negotiation, and gives the service parameters acceptable to the PCRF in feedback. Subsequently, the AF may return these parameters to the user equipment (User Equipment, UE for short). Wherein, the interface between the AF and the PCRF is the Rx interface.
PCRF是PCC的核心,用于负责策略决策和计费规则的制定。PCRF提供基于业务数据流的网络控制规则,这些网络控制包括业务数据流的检测、门控(Gating Control)、服务质量(Quality of Service,简称为QoS)控制以及基于数据流的计费等。PCRF将其制定的策略和计费规则发送给策略和计费执行功能实体(Policy and Control Enforcement Function,简称为PCEF)执行;同时,PCRF还需要保证这些规则和用户的签约信息一致。其中,PCRF制定策略和计费规则的依据包括:从AF获得的与业务相关的信息、从用户签约数据库(SubscriptionProfile Repository,简称为SPR)获得的与策略控制和计费相关的用户策略计费控制签约信息、以及通过Gx接口从PCEF获得的与承载相关网络的信息。The PCRF is the core of the PCC and is responsible for making policy decisions and charging rules. PCRF provides network control rules based on service data flow. These network controls include service data flow detection, gating control (Gating Control), Quality of Service (QoS for short) control, and data flow-based charging. The PCRF sends the policy and charging rules formulated by it to the Policy and Control Enforcement Function (PCEF for short) for execution; at the same time, the PCRF also needs to ensure that these rules are consistent with the user's subscription information. Among them, the basis for the PCRF to formulate policies and charging rules includes: information related to services obtained from the AF, and user policy and charging control related to policy control and charging obtained from the Subscription Profile Repository (SPR) Subscription information, and bearer-related network information obtained from the PCEF through the Gx interface.
PCEF通常位于网关(Gate-Way,简称为GW)内,在承载面执行PCRF所制定的策略和计费规则。PCEF按照PCRF发送的规则中的业务数据流过滤器对业务数据流进行检测,进而对这些业务数据流执行PCRF所制定的策略和计费规则;在承载建立时,PCEF按照PCRF发送的规则进行资源分配,并根据AF提供的信息进行门控控制;同时,PCEF根据PCRF订阅的事件触发上报承载网络上发生的事件;根据PCRF发送的计费规则,PCEF执行相应的业务数据流计费操作,计费可以是在线计费,也可以是离线计费。如果是在线计费,则PCEF需要和在线计费系统(Online Charging System,简称为OCS)一起进行信用管理;在离线计费时,PCEF和离线计费系统(Offline Charging System,简称为OFCS)之间交换相关的计费信息。其中,PCEF与PCRF之间的接口是Gx接口,PCEF与OCS之间的接口是Gy接口,PCEF与OFCS之间的接口是Gz接口。PCEF也可以具有TDF。PCEF可以根据本地配置或是PCRF下发的包含应用检测控制策略的PCC规则进行应用检测并进行策略执行(如门控、重定向和带宽限制)。PCEF一般都位于网络的网关上,如EPS的分组数据网络网关(PDN-GW)、通用无线分组业务(General Packet Radio Service,简称为GPRS)中的GPRS网关支持节点(GatewayGPRS Support Node,简称为GGSN)以及I-WLAN中的分组数据网关(Packet Data Gateway,简称为PDG)等。The PCEF is usually located in a gateway (Gate-Way, GW for short), and executes policies and charging rules formulated by the PCRF on the bearer plane. PCEF detects the service data flow according to the service data flow filter in the rules sent by PCRF, and then executes the policies and charging rules formulated by PCRF for these service data flows; when the bearer is established, PCEF performs resource According to the information provided by the AF, the PCEF triggers and reports the events that occur on the bearer network according to the events subscribed by the PCRF; according to the charging rules sent by the PCRF, the PCEF performs the corresponding service data flow charging operations, and calculates The fee can be charged online or offline. If it is online charging, PCEF needs to perform credit management together with the Online Charging System (OCS for short); exchange related billing information. Wherein, the interface between the PCEF and the PCRF is a Gx interface, the interface between the PCEF and the OCS is a Gy interface, and the interface between the PCEF and the OFCS is a Gz interface. PCEF can also have TDF. The PCEF can perform application detection and policy enforcement (such as gating, redirection, and bandwidth limitation) according to local configurations or PCC rules containing application detection control policies delivered by the PCRF. PCEF is generally located on the gateway of the network, such as the Packet Data Network Gateway (PDN-GW) of EPS, and the GPRS Gateway Support Node (GatewayGPRS Support Node, GGSN for short) in General Packet Radio Service (GPRS for short). ) and the Packet Data Gateway (PDG for short) in the I-WLAN.
当然,TDF也可以独立部署,在其独立部署的情况下,TDF与PCRF通过Sd接口连接,TDF可以根据预先配置的或PCRF下发的应用检测控制(Application Detection and Control,简称为ADC)规则进行应用检测和策略执行。Of course, TDF can also be deployed independently. In the case of independent deployment, TDF and PCRF are connected through the Sd interface, and TDF can be implemented according to pre-configured or PCRF-delivered Application Detection and Control (ADC) rules. Application detection and policy enforcement.
承载绑定和事件报告功能实体(Bearer Binding and Event Reporting Function,简称为BBERF)通常位于接入网网关(Access Network Gateway)内。比如:当用户设备通过E-UTRAN接入EPS、服务网关S-GW与P-GW之间采用代理移动互联网协议版本6(Proxy Mobile InternetProtocol version 6,简称为PMIPv6)时,S-GW中就存在BBERF。当用户设备通过可信任非3GPP接入网接入时,可信任非3GPP接入网关中也存在BBERF。The Bearer Binding and Event Reporting Function (BBERF for short) is usually located in the Access Network Gateway. For example: when the user equipment accesses the EPS through E-UTRAN, and the service gateway S-GW and P-GW adopt the proxy mobile Internet protocol version 6 (Proxy Mobile Internet Protocol version 6, referred to as PMIPv6), the S-GW exists BBERF. When the user equipment accesses through the trusted non-3GPP access network, the BBERF also exists in the trusted non-3GPP access gateway.
SPR存储有与策略控制和计费相关的用户策略计费控制签约信息,其中,SPR和PCRF之间的接口是Sp接口。OCS和PCEF共同完成在线计费方式下用户信用的控制和管理;OFCS与PCEF共同完成离线计费方式下的计费操作。The SPR stores user policy and charging control subscription information related to policy control and charging, wherein the interface between the SPR and the PCRF is the Sp interface. OCS and PCEF jointly complete the control and management of user credit in the online charging mode; OFCS and PCEF jointly complete the charging operation in the offline charging mode.
图2为现有IP-CAN会话过程中,TDF与PCRF建立TDF会话的流程示意图,其中,TDF为非请求上报模式。如图2所示,包括步骤S201至步骤S214:Fig. 2 is a schematic flow chart of establishing a TDF session between the TDF and the PCRF during the existing IP-CAN session, wherein the TDF is in a non-request reporting mode. As shown in Figure 2, including step S201 to step S214:
步骤S201,在UE请求建立IP-CAN会话的过程中,PCEF位于的网关接收到IP-CAN会话建立请求消息,其中,在该IP-CAN会话建立请求消息中携带有用户标识和请求接入的PDN网络的PDN标识。Step S201, in the process of the UE requesting to establish an IP-CAN session, the gateway where the PCEF is located receives an IP-CAN session establishment request message, wherein the IP-CAN session establishment request message carries the user identification and the requested access information PDN identifier of the PDN network.
步骤S202,PCEF向PCRF发送IP-CAN会话建立指示消息,其中,该IP-CAN会话建立指示消息中携带用户标识、PDN标识以及为UE分配的IPv6地址前缀。In step S202, the PCEF sends an IP-CAN session establishment indication message to the PCRF, wherein the IP-CAN session establishment indication message carries a user identifier, a PDN identifier, and an IPv6 address prefix assigned to the UE.
步骤S203,PCRF根据用户标识判断出还没有该用户的签约信息后,向SPR发送签约文档请求,并在该签约文档请求中携带用户标识和PDN标识。Step S203, after the PCRF determines that there is no subscription information of the user according to the user ID, it sends a subscription document request to the SPR, and carries the user ID and the PDN ID in the subscription document request.
步骤S204,SPR根据用户标识和PDN标识返回对应的用户签约信息(通过签约文档应答返回)。In step S204, the SPR returns corresponding user subscription information according to the user identifier and PDN identifier (returned through a subscription document response).
步骤S205,PCRF根据返回的用户签约信息、网络策略、UE的接入信息等制定策略决策。其中,可以包括制定PCC规则和事件触发器。In step S205, the PCRF formulates policy decisions based on the returned user subscription information, network policies, and UE access information. Among them, formulating PCC rules and event triggers may be included.
步骤S206,PCRF向PCEF发送IP-CAN会话建立确认消息,其中,该IP-CAN会话建立确认消息中携带PCC规则和事件触发器。In step S206, the PCRF sends an IP-CAN session establishment confirmation message to the PCEF, wherein the IP-CAN session establishment confirmation message carries PCC rules and event triggers.
步骤S207,PCEF安装策略,PCEF位于的网关向UE返回IP-CAN会话建立应答,其中,该IP-CAN会话建立应答中携带有IPv6地址前缀。Step S207, the PCEF installs the policy, and the gateway where the PCEF is located returns an IP-CAN session establishment response to the UE, wherein the IP-CAN session establishment response carries an IPv6 address prefix.
步骤S208,若网络支持双栈,PCEF位于的网关或外部的其他网元根据UE的请求又分配了一个IPv4地址。Step S208, if the network supports dual stack, the gateway where the PCEF is located or other external network elements allocate another IPv4 address according to the UE's request.
步骤S209,PCEF向PCRF发送IP-CAN会话修改指示,其中,携带IPv4地址,以通知PCRF该IP-CAN会话又有了一个IPv4地址。In step S209, the PCEF sends an IP-CAN session modification instruction to the PCRF, which carries an IPv4 address, to inform the PCRF that the IP-CAN session has another IPv4 address.
步骤S210,PCRF向PCEF返回IP-CAN会话修改指示的确认消息。In step S210, the PCRF returns an acknowledgment message indicating IP-CAN session modification to the PCEF.
经过图2所示的流程,UE可以根据IPv6地址前缀构造IPv6地址,并且采用IPv6、IPv4地址进行业务访问。Through the process shown in Figure 2, the UE can construct an IPv6 address according to the IPv6 address prefix, and use the IPv6 and IPv4 addresses for service access.
步骤S211,TDF根据预配置的ADC规则对流经它的数据流进行检测。当TDF检测到上述IPv4地址(该地址是在步骤S208中分配的)的一个应用需要上报时,则TDF向PCRF发送TDF会话建立消息(由于该IPv4对应的TDF会话还没有建立),在该TDF会话建立消息中携带该IPv4地址,以及检测到的应用标识。若检测到的应用的流描述信息是可推导的,则TDF还在建立消息中携带流描述信息。PCRF根据从PCEF获得的IPv4地址和从TDF获得的IPv4地址,将TDF会话与IP-CAN会话进行关联。PCRF可根据TDF上报的应用信息更新该IP-CAN会话的相关策略。In step S211, the TDF detects the data flow passing through it according to the pre-configured ADC rules. When TDF detects that an application of the above-mentioned IPv4 address (this address is allocated in step S208) needs to be reported, then TDF sends a TDF session establishment message to PCRF (because the TDF session corresponding to this IPv4 has not yet been established), in this TDF The session establishment message carries the IPv4 address and the detected application identifier. If the detected flow description information of the application is derivable, the TDF also carries the flow description information in the establishment message. The PCRF associates the TDF session with the IP-CAN session according to the IPv4 address obtained from the PCEF and the IPv4 address obtained from the TDF. The PCRF can update the related policies of the IP-CAN session according to the application information reported by the TDF.
步骤S212,PCRF返回TDF会话建立消息的确认消息;Step S212, the PCRF returns an acknowledgment message of the TDF session establishment message;
步骤S213,在TDF收到步骤212消息之前,TDF检测到上述地址(该IPv6地址是步骤S207中UE根据IPv6地址前缀构造的)的一个应用需要上报,则TDF向PCRF发送TDF会话建立消息(由于该IPv6对应的TDF会话还没有建立),在该TDF会话建立消息中携带该IPv6地址,以及检测到的应用标识。若检测到的应用的流描述信息是可推导的,则TDF还在建立消息中携带流描述信息。PCRF根据从PCEF获得的IPv6地址前缀和从TDF获得的IPv6地址,将TDF会话与IP-CAN会话进行关联。PCRF可根据TDF上报的应用信息更新该IP-CAN会话的相关策略。Step S213, before the TDF receives the step 212 message, the TDF detects that an application of the above address (the IPv6 address is constructed by the UE according to the IPv6 address prefix in the step S207) needs to be reported, and then the TDF sends a TDF session establishment message to the PCRF (because The TDF session corresponding to the IPv6 has not yet been established), the IPv6 address and the detected application identifier are carried in the TDF session establishment message. If the detected flow description information of the application is derivable, the TDF also carries the flow description information in the establishment message. The PCRF associates the TDF session with the IP-CAN session according to the IPv6 address prefix obtained from the PCEF and the IPv6 address obtained from the TDF. The PCRF can update the related policies of the IP-CAN session according to the application information reported by the TDF.
步骤S214,PCRF返回TDF会话建立消息的确认消息。In step S214, the PCRF returns an acknowledgment message of the TDF session establishment message.
上述步骤执行的场景不同,则TDF位置不同。对于家乡路由漫游场景,TDF位于归属地,TDF与H-PCRF建立TDF会话;对于本地疏导漫游场景,TDF位于拜访地,TDF与V-PCRF建立TDF会话。The scenarios where the above steps are executed are different, and the TDF positions are different. For the home route roaming scenario, the TDF is located at the home location, and the TDF establishes a TDF session with the H-PCRF; for the local grooming roaming scenario, the TDF is located at the visited location, and the TDF establishes a TDF session with the V-PCRF.
上述流程会导致一个结果,即一个IP-CAN会话同时存在两个TDF会话,并且针对同一个IP-CAN会话的业务检测需要通过不同的TDF会话上报,即浪费了系统的资源,也增加了交互过程中的信令开销。The above process will lead to a result that there are two TDF sessions in one IP-CAN session at the same time, and the service detection for the same IP-CAN session needs to be reported through different TDF sessions, which wastes system resources and increases interaction. signaling overhead in the process.
此外,对于网络支持IPv6 prefix delegation(即网络支持分配短前缀),UE根据该IPv6 prefix构造两个或两个以上的IPv6地址进行业务访问时,由于TDF无法判断这些IPv6地址是否属于同一个IP-CAN会话,因此也会存在一个IP-CAN会话同时存在两个或两个以上TDF会话的情况。从而导致针对同一个IP-CAN会话的业务检测需要通过不同的TDF会话上报,即浪费了系统的资源,也增加了交互过程中的信令开销。In addition, if the network supports IPv6 prefix delegation (that is, the network supports the allocation of short prefixes), when the UE constructs two or more IPv6 addresses based on the IPv6 prefix for service access, TDF cannot determine whether these IPv6 addresses belong to the same IP- CAN session, so there will be two or more TDF sessions in one IP-CAN session at the same time. As a result, service detection for the same IP-CAN session needs to be reported through different TDF sessions, which wastes system resources and increases signaling overhead in the interaction process.
若网络同时支持双栈和IPv6 prefix delegation,则可能会出现一个IPv4的TDF会话和多个IPv6 TDF会话关联到一个IP-CAN会话的情况。If the network supports dual-stack and IPv6 prefix delegation at the same time, it may occur that one IPv4 TDF session and multiple IPv6 TDF sessions are associated with one IP-CAN session.
发明内容 Contents of the invention
本发明提供了一种TDF会话的处理方法及PCRF,以至少解决相关技术中一个IP-CAN会话同时存在两个TDF会话,浪费了系统的资源,且针对同一个IP-CAN会话的业务检测需要通过不同的TDF会话上报,增加了交互过程中的信令开销的问题。The present invention provides a TDF session processing method and PCRF to at least solve the problem that there are two TDF sessions in one IP-CAN session in the related art at the same time, which wastes system resources and is aimed at the business detection needs of the same IP-CAN session. Reporting through different TDF sessions increases the problem of signaling overhead in the interaction process.
根据本发明的一个方面,提供了一种TDF会话的处理方法,包括:PCRF接收来自TDF的TDF会话建立消息,其中,所述TDF会话建立消息携带用户设备UE的第一地址;所述PCRF判断所述第一地址对应的IP-CAN会话是否存在一个已建立的第二地址的TDF会话;如果存在,则所述PCRF向所述TDF返回第一地址的TDF会话建立拒绝消息。According to one aspect of the present invention, a method for processing a TDF session is provided, including: PCRF receives a TDF session establishment message from a TDF, wherein the TDF session establishment message carries a first address of a user equipment UE; the PCRF judges Whether there is an established TDF session of the second address in the IP-CAN session corresponding to the first address; if yes, the PCRF returns a TDF session establishment rejection message of the first address to the TDF.
优选地,所述第一地址为IPv4地址,所述第二地址为IPv6地址;或所述第一地址为IPv6地址,所述第二地址为IPv4地址;或所述第一个地址和第二地址均为IPv6地址。Preferably, the first address is an IPv4 address, and the second address is an IPv6 address; or the first address is an IPv6 address, and the second address is an IPv4 address; or the first address and the second The addresses are all IPv6 addresses.
优选地,在PCRF接收来自TDF的TDF会话建立消息之前,还包括:所述TDF根据预置的应用检测控制ADC规则对流经的数据流进行检测;当检测到所述第一地址对应的应用需要上报时,则所述TDF向所述PCRF发送所述TDF会话建立消息,其中,所述TDF会话建立消息中携带检测到的与所述第一地址对应的应用信息。Preferably, before the PCRF receives the TDF session establishment message from the TDF, it further includes: the TDF detects the passing data flow according to the preset application detection control ADC rule; when it detects that the application corresponding to the first address needs When reporting, the TDF sends the TDF session establishment message to the PCRF, wherein the TDF session establishment message carries the detected application information corresponding to the first address.
优选地,若所述检测到的与第一地址对应的应用的流描述信息是可推导的,则所述TDF会话建立消息中还携带流描述信息。Preferably, if the detected flow description information of the application corresponding to the first address is derivable, the TDF session establishment message also carries flow description information.
优选地,PCRF接收来自TDF的TDF会话建立消息之后,还包括:所述PCRF根据已从PCEF获得的第一地址和所述TDF会话建立消息携带的第一地址,将所述TDF会话建立消息与所述IP-CAN会话关联;或者所述PCRF根据从PCEF获得的第一地址对应的地址前缀和所述TDF会话建立消息携带的第一地址,将所述TDF会话建立消息与所述IP-CAN会话关联。Preferably, after the PCRF receives the TDF session establishment message from the TDF, it further includes: the PCRF combines the TDF session establishment message with the first address obtained from the PCEF and the first address carried in the TDF session establishment message The IP-CAN session is associated; or the PCRF associates the TDF session establishment message with the IP-CAN according to the address prefix corresponding to the first address obtained from the PCEF and the first address carried in the TDF session establishment message session association.
优选地,所述第一地址的TDF会话建立拒绝消息中携带拒绝的原因值,其中,所述原因值为所述IP-CAN会话的TDF会话已经建立。Preferably, the TDF session establishment rejection message of the first address carries a reason value for the rejection, wherein the reason value is that the TDF session of the IP-CAN session has been established.
优选地,在所述PCRF向所述TDF返回第一地址的TDF会话建立拒绝消息之后,还包括:所述TDF通过所述第二地址的TDF会话向所述PCRF发送TDF会话修改消息,其中,所述TDF会话修改消息携带第一地址和/或第一地址对应的应用信息。Preferably, after the PCRF returns the TDF session establishment rejection message of the first address to the TDF, the TDF further includes: the TDF sends a TDF session modification message to the PCRF through the TDF session of the second address, wherein, The TDF session modification message carries the first address and/or application information corresponding to the first address.
优选地,所述TDF通过所述第二地址的TDF会话上报与第一地址和/或第二地址相关的应用信息。Preferably, the TDF reports the application information related to the first address and/or the second address through the TDF session of the second address.
根据本发明的另一方面,提供了一种PCRF,包括:接收模块,用于接收来自业务检测功能TDF的TDF会话建立消息,其中,所述TDF会话建立消息携带用户设备UE的第一地址;判断模块,用于判断所述第一地址对应的IP-CAN会话是否存在一个已建立的第二地址的TDF会话;第一返回模块,用于在所述第一地址对应的IP-CAN会话存在一个已建立的第二地址的TDF会话的情况下,向所述TDF返回第一地址的TDF会话建立拒绝消息。According to another aspect of the present invention, a PCRF is provided, including: a receiving module, configured to receive a TDF session establishment message from a traffic detection function TDF, wherein the TDF session establishment message carries a first address of a user equipment UE; The judging module is used to judge whether there is an established TDF session of the second address in the IP-CAN session corresponding to the first address; the first return module is used to exist in the IP-CAN session corresponding to the first address In the case of an established TDF session with the second address, return a TDF session establishment rejection message with the first address to the TDF.
优选地,所述PCRF的所述第一地址为IPv4地址,所述第二地址为IPv6地址;或所述第一地址为IPv6地址,所述第二地址为IPv4地址;或所述第一个地址和第二地址均为IPv6地址。Preferably, the first address of the PCRF is an IPv4 address, and the second address is an IPv6 address; or the first address is an IPv6 address, and the second address is an IPv4 address; or the first Both the address and the second address are IPv6 addresses.
优选地,所述PCRF还包括:关联模块,用于根据从策略和计费执行功能实体PCEF获得的第一地址和从所述TDF会话建立消息中携带的第一地址,将所述TDF会话建立消息与所述IP-CAN会话关联;或者用于根据从PCEF获得的第一地址对应的地址前缀和所述TDF会话建立消息携带的第一地址,将所述TDF会话建立消息与所述IP-CAN会话关联。Preferably, the PCRF further includes: an associating module, configured to establish the TDF session according to the first address obtained from the policy and charging enforcement function entity PCEF and the first address carried in the TDF session establishment message The message is associated with the IP-CAN session; or used to associate the TDF session establishment message with the IP-CAN session according to the address prefix corresponding to the first address obtained from the PCEF and the first address carried in the TDF session establishment message. CAN session association.
优选地,所述TDF会话拒绝消息中携带拒绝的原因值,其中,所述原因值为所述IP-CAN会话的TDF会话已经建立。Preferably, the TDF session rejection message carries a reason value for rejection, wherein the reason value is that the TDF session of the IP-CAN session has been established.
通过本发明,采用了如下方法:PCRF接收来自TDF的TDF会话建立消息,其中,TDF会话建立消息携带用户设备UE的第一地址;PCRF判断第一地址对应的IP-CAN会话是否存在一个已建立的第二地址的TDF会话;如果存在,则PCRF向TDF返回第一地址的TDF会话拒绝消息,其中,第一地址为IPv4地址,第二地址为IPv6地址;或第一地址为IPv6地址,第二地址为IPv4地址;或者或所述第一个地址和第二地址均为IPv6地址,上述方法即在建立一个新的TDF会话流程前,先检测当前申请地址对应的IP-CAN会话内是否已经建立了一个TDF会话,如果已经建立了一个TDF会话,则拒绝当前请求,不再建立新的TDF会话。通过运用上述方法,解决了相关技术中一个IP-CAN会话同时存在两个TDF会话,浪费了系统的资源,且针对同一个IP-CAN会话的业务检测需要通过不同的TDF会话上报,增加了交互过程中的信令开销的问题,进而实现了只建立一个TDF会话的场景,并且对同一个IP-CAN会话的业务检测可以通过已建立的一个TDF会话进行上报,节约了系统资源的同时还减少了交互过程中的信令开销,提高了系统的资源利用率。Through the present invention, the following method is adopted: the PCRF receives the TDF session establishment message from the TDF, wherein the TDF session establishment message carries the first address of the user equipment UE; the PCRF judges whether there is an established IP-CAN session corresponding to the first address The TDF session of the second address; if it exists, PCRF returns the TDF session rejection message of the first address to TDF, wherein, the first address is an IPv4 address, and the second address is an IPv6 address; or the first address is an IPv6 address, and the second address is an IPv6 address. The second address is an IPv4 address; or the first address and the second address are both IPv6 addresses. The above method is to detect whether the IP-CAN session corresponding to the current application address has already A TDF session has been established. If a TDF session has already been established, the current request will be rejected and no new TDF session will be established. By using the above method, it is solved that there are two TDF sessions in one IP-CAN session in the related art at the same time, which wastes system resources, and the service detection for the same IP-CAN session needs to be reported through different TDF sessions, which increases the interaction The problem of signaling overhead in the process realizes the scenario where only one TDF session is established, and the service detection of the same IP-CAN session can be reported through an established TDF session, which saves system resources and reduces The signaling overhead in the interaction process is reduced, and the resource utilization rate of the system is improved.
附图说明 Description of drawings
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:
图1是根据相关技术的Rel-11的PCC组成架构的示意图;FIG. 1 is a schematic diagram of the PCC composition architecture of Rel-11 according to the related art;
图2是根据相关技术的IP-CAN会话下TDF与PCRF建立TDF会话的流程图;Fig. 2 is a flow chart of establishing a TDF session between TDF and PCRF according to the IP-CAN session of the related art;
图3是根据本发明实施例的TDF会话的处理方法的流程图;3 is a flowchart of a method for processing a TDF session according to an embodiment of the present invention;
图4是根据本发明优选实施例一的TDF会话的处理方法的流程图;FIG. 4 is a flow chart of a TDF session processing method according to preferred embodiment 1 of the present invention;
图5是根据本发明优选实施例二的TDF会话的处理方法的流程图;FIG. 5 is a flowchart of a TDF session processing method according to the second preferred embodiment of the present invention;
图6是根据本发明优选实施例三的TDF会话的处理方法的流程图;FIG. 6 is a flow chart of a TDF session processing method according to a third preferred embodiment of the present invention;
图7是根据本发明实施例的PCRF的结构框图一;以及FIG. 7 is a structural block diagram one of PCRF according to an embodiment of the present invention; and
图8是根据本发明实施例的PCRF的结构框图二。FIG. 8 is a second structural block diagram of PCRF according to an embodiment of the present invention.
具体实施方式 Detailed ways
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
基于相关技术中一个IP-CAN会话同时存在两个TDF会话,浪费了系统的资源,且针对同一个IP-CAN会话的业务检测需要通过不同的TDF会话上报,也增加了交互过程中的信令开销的问题,本发明提供了一种TDF会话的处理方法,该方法的流程如图3所示,包括步骤S302至步骤S306:Based on the related technology, one IP-CAN session has two TDF sessions at the same time, which wastes system resources, and the service detection for the same IP-CAN session needs to be reported through different TDF sessions, which also increases the signaling in the interaction process The problem of overhead, the present invention provides a kind of processing method of TDF conversation, the process flow of this method is shown in Figure 3, comprises step S302 to step S306:
步骤S302,PCRF接收来自TDF的TDF会话建立消息,其中,TDF会话建立消息携带用户设备UE的第一地址;Step S302, the PCRF receives a TDF session establishment message from the TDF, wherein the TDF session establishment message carries the first address of the user equipment UE;
步骤S304,PCRF判断第一地址对应的IP-CAN会话是否存在一个已建立的第二地址的TDF会话;Step S304, the PCRF judges whether there is an established TDF session of the second address in the IP-CAN session corresponding to the first address;
步骤S306,如果存在,则PCRF向TDF返回第一地址的TDF会话建立拒绝消息。Step S306, if yes, the PCRF returns a TDF session establishment rejection message of the first address to the TDF.
通过运用本实施例,即在建立一个新的TDF会话流程前,先检测当前申请地址对应的IP-CAN会话内是否已经建立了一个TDF会话,如果已经建立了一个TDF会话,则拒绝当前请求,不再建立新的TDF会话,解决了相关技术中一个IP-CAN会话同时存在两个TDF会话,浪费了系统的资源,且针对同一个IP-CAN会话的业务检测需要通过不同的TDF会话上报,增加了交互过程中的信令开销的问题,进而实现了只建立一个TDF会话的场景,并且对同一个IP-CAN会话的业务检测可以通过已建立的一个TDF会话进行上报,节约了系统资源的同时还减少了交互过程中的信令开销,提高了系统的资源利用率。By using this embodiment, before establishing a new TDF session process, first detect whether a TDF session has been established in the IP-CAN session corresponding to the current application address, if a TDF session has been established, then reject the current request, A new TDF session is no longer established, which solves the problem that there are two TDF sessions in one IP-CAN session at the same time in the related technology, which wastes system resources, and the service detection for the same IP-CAN session needs to be reported through different TDF sessions. The problem of signaling overhead in the interaction process is increased, and then only one TDF session is established, and the service detection of the same IP-CAN session can be reported through an established TDF session, saving system resources. At the same time, the signaling overhead in the interaction process is reduced, and the resource utilization rate of the system is improved.
在本实施的执行过程中,因为第一地址与第二地址可以为相同的地址,也可以为相同的地址,即第一地址为IPv4地址,第二地址为IPv6地址;或第一地址为IPv6地址,第二地址为IPv4地址;或者或第一个地址和第二地址均为IPv6地址。针对不同的情况,可以分为以下三种情况:In the execution process of this implementation, because the first address and the second address can be the same address or the same address, that is, the first address is an IPv4 address and the second address is an IPv6 address; or the first address is an IPv6 address address, the second address is an IPv4 address; or both the first address and the second address are IPv6 addresses. According to different situations, it can be divided into the following three situations:
第一种:PCRF收到携带用户设备IPv4地址的TDF会话建立消息,若PCRF判断该IPv4地址对应的IP-CAN会话具有一个IPv6地址相关的TDF会话,则PCRF向TDF返回建立拒绝消息。The first type: PCRF receives the TDF session establishment message carrying the IPv4 address of the user equipment. If the PCRF judges that the IP-CAN session corresponding to the IPv4 address has a TDF session related to the IPv6 address, the PCRF returns a establishment rejection message to the TDF.
第二种:PCRF收到携带用户设备IPv6地址的TDF会话建立消息,若PCRF判断该IPv6地址对应的IP-CAN会话具有一个IPv4地址相关的TDF会话,则PCRF向TDF返回建立拒绝消息。The second type: PCRF receives the TDF session establishment message carrying the IPv6 address of the user equipment. If the PCRF judges that the IP-CAN session corresponding to the IPv6 address has a TDF session related to the IPv4 address, the PCRF returns a establishment rejection message to the TDF.
第三种:PCRF收到携带用户设备IPv6地址的TDF会话建立消息,若PCRF判断该IPv6地址对应的IP-CAN会话还具有一个IPv6地址相关的TDF会话,则PCRF向TDF返回建立拒绝消息。The third type: PCRF receives the TDF session establishment message carrying the IPv6 address of the user equipment. If the PCRF judges that the IP-CAN session corresponding to the IPv6 address also has a TDF session related to the IPv6 address, the PCRF returns a establishment rejection message to the TDF.
虽然地址的种类相同或不同,但本发明实施例的思想是一致的,即在一个地址请求建立一个TDF会话前,在该地址所在的IP-CAN会话中进行检测,判断该IP-CAN会话中是否还存在其他地址对应的TDF会话,如果存在,则拒绝当前地址建立新的TDF会话的请求,并利用已建立的TDF会话进行应用信息的上报。Although the types of addresses are the same or different, the ideas of the embodiments of the present invention are consistent, that is, before an address requests to establish a TDF session, it is detected in the IP-CAN session where the address is located, and it is judged that in the IP-CAN session Whether there are TDF sessions corresponding to other addresses, and if so, reject the request of the current address to establish a new TDF session, and use the established TDF session to report application information.
在PCRF接收来自TDF的TDF会话建立消息之前,TDF根据预置的ADC规则对流经的数据流进行检测;当检测到第一地址对应的应用需要上报时,则TDF向PCRF发送TDF会话建立消息,其中,TDF会话建立消息中携带检测到的与第一地址对应的应用信息。若检测到的与第一地址对应的应用的流描述信息是可推导的,则TDF会话建立消息中还携带流描述信息。Before the PCRF receives the TDF session establishment message from the TDF, the TDF detects the passing data flow according to the preset ADC rules; when it detects that the application corresponding to the first address needs to be reported, the TDF sends the TDF session establishment message to the PCRF, Wherein, the TDF session establishment message carries the detected application information corresponding to the first address. If the detected flow description information of the application corresponding to the first address is derivable, the TDF session establishment message also carries the flow description information.
在具体实施的过程中,如果TDF检测到IPv4地址对应的应用需要上报时,则TDF像PCRF发送TDF会话建立消息。在TDF会话建立消息中,可以携带与IPv4地址需要上报的应用信息,例如该应用信息的应用标识。如果IPv4地址对应的应用的流描述信息是可推导的(即定向的,不经常变化的,有推导方向的),则TDF会话建立消息中还携带流描述信息,用于对该数据流进行描述。当TDF检测到IPv6地址对应的应用需要上报时,其执行的流程与IPv4地址相似,此处不再赘述。In a specific implementation process, if the TDF detects that the application corresponding to the IPv4 address needs to be reported, the TDF sends a TDF session establishment message to the PCRF. In the TDF session establishment message, the application information that needs to be reported with the IPv4 address may be carried, for example, the application identifier of the application information. If the flow description information of the application corresponding to the IPv4 address is derivable (that is, directional, infrequently changing, and derivable), the TDF session establishment message also carries flow description information for describing the data flow . When the TDF detects that the application corresponding to the IPv6 address needs to be reported, its execution process is similar to that of the IPv4 address, and will not be repeated here.
在步骤S302执行之后,PCRF根据已从PCEF获得的第一地址和从TDF获得的第一地址建立第一地址的TDF会话与IP-CAN会话的关联,并根据TDF上报的应用信息更新IP-CAN会话的相关策略。例如,从PCEF和TDF处获得的都是IPv4地址,则将PCEF处得到的IPv4地址、IPv4地址对应的TDF会话与一个IP-CAN会话进行关联。在IPv4地址对应的TDF会话与一个IP-CAN会话关联成功后,根据TDF上报的应用信息更新该IP-CAN会话的相关策略,提供了一种更新机制,提升了系统的性能。After the execution of step S302, the PCRF establishes the association between the TDF session of the first address and the IP-CAN session according to the first address obtained from the PCEF and the first address obtained from the TDF, and updates the IP-CAN according to the application information reported by the TDF Session-related policies. For example, if the IPv4 addresses are both obtained from the PCEF and the TDF, the IPv4 address obtained from the PCEF and the TDF session corresponding to the IPv4 address are associated with an IP-CAN session. After the TDF session corresponding to the IPv4 address is successfully associated with an IP-CAN session, the relevant policy of the IP-CAN session is updated according to the application information reported by the TDF, which provides an update mechanism and improves the performance of the system.
在步骤S306的执行过程中,第一地址的TDF会话拒绝消息中可以携带拒绝的原因值及已建立的第二地址的TDF会话的会话标识。在步骤S306执行之后,还可以进一步进行如下的优化处理:TDF通过已建立的第二地址的TDF会话向PCRF发送TDF会话修改消息,其中,TDF会话修改消息携带第一地址和第一地址对应的应用信息。作为应答,PCRF向TDF返回TDF会话修改确认消息。During the execution of step S306, the TDF session rejection message of the first address may carry the reason value of rejection and the established session identifier of the TDF session of the second address. After the execution of step S306, the following optimization processing can be further performed: TDF sends a TDF session modification message to PCRF through the established TDF session of the second address, wherein the TDF session modification message carries the first address and the first address corresponding to application information. As a response, the PCRF returns a TDF session modification confirmation message to the TDF.
通过上述认证,则TDF可以通过已建立的第二地址的TDF会话上报第一地址相关的应用信息和第二地址相关的应用信息,或者其中的任意一种。通过上述实施例,可以达到节约资源,降低信令开销的效果。Through the above authentication, the TDF can report the application information related to the first address and the application information related to the second address, or any one of them, through the established TDF session of the second address. Through the foregoing embodiments, the effect of saving resources and reducing signaling overhead can be achieved.
下面结合优选实施例对本发明实施例进行进一步说明。The embodiments of the present invention will be further described below in combination with preferred embodiments.
优选实施例一Preferred embodiment one
如图4所示,TDF设置为独立部署。对于家乡路由漫游场景,图4中的PCRF即为H-PCRF;对于本地疏导漫游场景,图4中的PCRF即为V-PCRF。在本优选实施例中,PCRF先收到IPv4地址相关的TDF会话建立消息,该TDF会话的处理方法包括步骤S402至步骤S414:As shown in Figure 4, TDF is set to be deployed independently. For the home route roaming scenario, the PCRF in Figure 4 is the H-PCRF; for the local breakout roaming scenario, the PCRF in Figure 4 is the V-PCRF. In this preferred embodiment, the PCRF first receives the IPv4 address-related TDF session establishment message, and the processing method of the TDF session includes steps S402 to S414:
步骤S402,UE建立IP-CAN会话,获得IPv4和IPv6地址。该步骤的具体执行过程可以是图2中的步骤S201-步骤S210。UE可以根据获得的IPv4地址和IPv6地址进行业务(应用)的访问。In step S402, the UE establishes an IP-CAN session and obtains IPv4 and IPv6 addresses. The specific execution process of this step may be step S201-step S210 in FIG. 2 . The UE can access services (applications) according to the obtained IPv4 address and IPv6 address.
步骤S404,TDF根据预配置的ADC规则对流经它的数据流进行检测。当TDF检测到上述IPv4地址的一个应用需要上报,则TDF向PCRF发送TDF会话建立消息(由于该IPv4对应的TDF会话还没有建立),在该TDF会话建立消息中携带该IPv4地址,以及检测到的应用信息,例如应用标识。若检测到的应用的流描述信息是可推导的,则TDF还在建立消息中携带流描述信息。PCRF根据从PCEF获得的IPv4地址和从TDF获得的IPv4地址,将TDF会话与IP-CAN会话进行关联。PCRF可根据TDF上报的应用信息更新该IP-CAN会话的相关策略。In step S404, the TDF detects the data flow passing through it according to the pre-configured ADC rules. When TDF detects that an application of the above-mentioned IPv4 address needs to be reported, TDF sends a TDF session establishment message to PCRF (because the TDF session corresponding to the IPv4 has not been established), carries the IPv4 address in the TDF session establishment message, and detects application information, such as the application ID. If the detected flow description information of the application is derivable, the TDF also carries the flow description information in the establishment message. The PCRF associates the TDF session with the IP-CAN session according to the IPv4 address obtained from the PCEF and the IPv4 address obtained from the TDF. The PCRF can update the related policies of the IP-CAN session according to the application information reported by the TDF.
步骤S406,PCRF返回TDF会话建立的确认消息,并在确认消息中返回该IP-CAN会话的IPv6前缀。In step S406, the PCRF returns an acknowledgment message for establishing the TDF session, and returns the IPv6 prefix of the IP-CAN session in the acknowledgment message.
此处将步骤S404和步骤S406建立的TDF会话表示为TDF session1。Here, the TDF session established in step S404 and step S406 is represented as TDF session1.
步骤S408,TDF在发送步骤S404消息同时或之后,在收到步骤S406消息之前,TDF检测到上述IPv6地址的一个应用需要上报,则TDF向PCRF发送TDF会话建立消息(由于该IPv6对应的TDF会话还没有建立),在该TDF会话建立消息中携带该IPv6地址,以及检测到的应用信息,例如应用标识。若检测到的应用的流描述信息是可推导的,则TDF还在建立消息中携带流描述信息。PCRF根据从PCEF获得的IPv6地址前缀和从TDF获得的IPv6地址(TDF会话建立消息中携带的IPv6地址),将TDF会话与IP-CAN会话进行关联(即将TDF会话建立消息与IP-CAN会话进行关联)。Step S408, TDF sends the step S404 message simultaneously or after, before receiving the step S406 message, TDF detects that an application of the above-mentioned IPv6 address needs to report, then TDF sends a TDF session establishment message to PCRF (because the TDF session corresponding to this IPv6 not yet established), the IPv6 address and the detected application information, such as the application identifier, are carried in the TDF session establishment message. If the detected flow description information of the application is derivable, the TDF also carries the flow description information in the establishment message. The PCRF associates the TDF session with the IP-CAN session according to the IPv6 address prefix obtained from the PCEF and the IPv6 address obtained from the TDF (the IPv6 address carried in the TDF session establishment message) (that is, the TDF session establishment message is associated with the IP-CAN session association).
步骤S410,PCRF判断该IP-CAN会话相关的一个TDF会话已经建立(与IPv4地址相关)。因此PCRF拒绝TDF会话建立,并且确认消息中携带原因值,通知TDF该IP-CAN会话相关的一个TDF会话已经建立,同时还可以携带TDF session1的会话标识。In step S410, the PCRF judges that a TDF session related to the IP-CAN session has been established (related to the IPv4 address). Therefore, the PCRF rejects the establishment of the TDF session, and carries the cause value in the confirmation message, notifying the TDF that a TDF session related to the IP-CAN session has been established, and can also carry the session identifier of TDF session1.
步骤S412,可选地,TDF通过TDF session1向PCRF发送TDF会话修改消息,在消息中携带IPv6地址和/或步骤S408中上报的应用信息。Step S412, optionally, the TDF sends a TDF session modification message to the PCRF through the TDF session1, and the message carries the IPv6 address and/or the application information reported in the step S408.
步骤S414,PCRF向TDF返回TDF会话修改消息的确认消息。In step S414, the PCRF returns an acknowledgment message of the TDF session modification message to the TDF.
在步骤S414执行完成后,TDF通过TDF session1上报IPv4地址和IPv6地址相关的应用信息。After step S414 is executed, TDF reports application information related to IPv4 address and IPv6 address through TDF session1.
优选实施例二Preferred embodiment two
图5中的TDF设置为独立部署。在不同场景下,PCRF存在一定区别。对于家乡路由漫游场景,图5中的PCRF即为H-PCRF;对于本地疏导漫游场景,图5中的PCRF即为V-PCRF。在本优选实施例中,PCRF先收到IPv6地址相关的TDF会话建立消息,该方法包括步骤S502至步骤S514:The TDF in Figure 5 is set up for standalone deployment. There are certain differences in PCRF in different scenarios. For the home route roaming scenario, the PCRF in Figure 5 is the H-PCRF; for the local breakout roaming scenario, the PCRF in Figure 5 is the V-PCRF. In this preferred embodiment, the PCRF first receives the IPv6 address-related TDF session establishment message, and the method includes steps S502 to S514:
步骤S502,UE建立IP-CAN会话,获得IPv4和IPv6地址。该步骤的具体执行过程可以是图2中的步骤S201-步骤S210。UE可以根据获得的IPv4地址和IPv6地址进行业务(应用)的访问。In step S502, the UE establishes an IP-CAN session and obtains IPv4 and IPv6 addresses. The specific execution process of this step may be step S201-step S210 in FIG. 2 . The UE can access services (applications) according to the obtained IPv4 address and IPv6 address.
步骤S504,TDF根据预配置的ADC规则对流经它的数据流进行检测。当TDF检测到上述IPv6地址的一个应用需要上报,则TDF向PCRF发送TDF会话建立消息(由于该IPv6对应的TDF会话还没有建立),在该TDF会话建立消息中携带该IPv6地址,以及检测到的应用信息,例如应用标识。若检测到的应用的流描述信息是可推导的,则TDF还在建立消息中携带流描述信息。PCRF根据从PCEF获得的IPv6前缀和从TDF获得的IPv6地址,将TDF会话与IP-CAN会话进行关联。PCRF可根据TDF上报的应用信息更新该IP-CAN会话的相关策略。In step S504, the TDF detects the data flow passing through it according to the pre-configured ADC rules. When TDF detects that an application of the above-mentioned IPv6 address needs to be reported, TDF sends a TDF session establishment message to PCRF (because the TDF session corresponding to the IPv6 has not yet been established), carries the IPv6 address in the TDF session establishment message, and detects application information, such as the application ID. If the detected flow description information of the application is derivable, the TDF also carries the flow description information in the establishment message. The PCRF associates the TDF session with the IP-CAN session according to the IPv6 prefix obtained from the PCEF and the IPv6 address obtained from the TDF. The PCRF can update the related policies of the IP-CAN session according to the application information reported by the TDF.
步骤S506,PCRF返回TDF会话建立的确认消息,并在确认消息中返回该IP-CAN会话的IPv6前缀和IPv4地址;Step S506, PCRF returns the confirmation message that the TDF session is set up, and returns the IPv6 prefix and the IPv4 address of this IP-CAN session in the confirmation message;
此处将步骤S504和步骤S506建立的TDF会话表示为TDF session1。Here, the TDF session established in step S504 and step S506 is represented as TDF session1.
步骤S508,TDF在发送步骤S504消息同时或之后,在收到步骤S506消息之前,TDF检测到上述IPv4地址的一个应用需要上报,则TDF向PCRF发送TDF会话建立消息(由于该IPv4对应的TDF会话还没有建立),在该TDF会话建立消息中携带该IPv4地址,以及检测到的应用信息,如应用标识。若检测到的应用的流描述信息是可推导的,则TDF还在建立消息中携带流描述信息。PCRF根据从PCEF获得的IPv4地址和从TDF获得的IPv4地址(TDF会话建立消息中携带的IPv4地址),将TDF会话与IP-CAN会话进行关联(即将TDF会话建立消息与IP-CAN会话进行关联)。Step S508, TDF sends the step S504 message simultaneously or after, before receiving the step S506 message, TDF detects that an application of the above-mentioned IPv4 address needs to be reported, then TDF sends a TDF session establishment message to PCRF (because the TDF session corresponding to this IPv4 not yet established), the IPv4 address and the detected application information, such as the application identifier, are carried in the TDF session establishment message. If the detected flow description information of the application is derivable, the TDF also carries the flow description information in the establishment message. The PCRF associates the TDF session with the IP-CAN session according to the IPv4 address obtained from the PCEF and the IPv4 address obtained from the TDF (the IPv4 address carried in the TDF session establishment message) (that is, the TDF session establishment message is associated with the IP-CAN session ).
步骤S510,PCRF判断该IP-CAN会话相关的一个TDF会话已经建立(与IPv6地址相关)。因此PCRF拒绝TDF会话建立,并且确认消息中携带原因值,通知TDF该IP-CAN会话相关的一个TDF会话已经建立,同时还可以携带TDF session1的会话标识。In step S510, the PCRF judges that a TDF session related to the IP-CAN session has been established (related to the IPv6 address). Therefore, the PCRF rejects the establishment of the TDF session, and carries the cause value in the confirmation message, notifying the TDF that a TDF session related to the IP-CAN session has been established, and can also carry the session identifier of TDF session1.
步骤S512,可选地,TDF通过TDF session1向PCRF发送TDF会话修改消息,在消息中携带IPv4地址和/或步骤S508中上报的应用信息。Step S512, optionally, the TDF sends a TDF session modification message to the PCRF through the TDF session1, and the message carries the IPv4 address and/or the application information reported in the step S508.
步骤S514,PCRF向TDF返回TDF会话修改消息的确认消息。In step S514, the PCRF returns an acknowledgment message of the TDF session modification message to the TDF.
在步骤S514执行完成后,TDF通过TDF session1上报IPv4地址和IPv6地址相关的应用信息。After step S514 is executed, TDF reports application information related to IPv4 address and IPv6 address through TDF session1.
优选实施例三Preferred Embodiment Three
图6中的TDF设置为独立部署。在不同场景下,PCRF存在一定区别。对于家乡路由漫游场景,图6中的PCRF即为H-PCRF;对于本地疏导漫游场景,图6中的PCRF即为V-PCRF。在本优选实施例中,PCRF先收到IPv6地址相关的TDF会话建立消息,该方法包括步骤S602至步骤S614:The TDF in Figure 6 is set up for standalone deployment. There are certain differences in PCRF in different scenarios. For the home route roaming scenario, the PCRF in Figure 6 is the H-PCRF; for the local breakout roaming scenario, the PCRF in Figure 6 is the V-PCRF. In this preferred embodiment, the PCRF first receives the IPv6 address-related TDF session establishment message, and the method includes steps S602 to S614:
步骤S602,UE建立IP-CAN会话,获得IPv4和IPv6地址。该步骤的具体执行过程可以是图2中的步骤S201-步骤S210。UE可以根据获得IPv6短前缀(前缀长度小于64位),构造多个IPv6地址进行业务(应用)的访问(本实施例中以构造两个IPv6地址为例进行说明,分别表示为IPv6地址1和IPv6地址2)。In step S602, the UE establishes an IP-CAN session and obtains IPv4 and IPv6 addresses. The specific execution process of this step may be step S201-step S210 in FIG. 2 . The UE can construct multiple IPv6 addresses to access services (applications) based on the obtained IPv6 short prefix (the prefix length is less than 64 bits) (in this embodiment, the construction of two IPv6 addresses is used as an example for illustration, which are respectively represented as IPv6 address 1 and IPv6 address 2).
步骤S604,TDF根据预配置的ADC规则对流经它的数据流进行检测。当TDF检测到IPv6地址1的一个应用需要上报,则TDF向PCRF发送TDF会话建立消息(由于该IPv6对应的TDF会话还没有建立),在该TDF会话建立消息中携带该IPv6地址1,以及检测到的应用信息,例如应用标识。若检测到的应用的流描述信息是可推导的,则TDF还在建立消息中携带流描述信息。PCRF根据从PCEF获得的IPv6前缀和从TDF获得的IPv6地址1,将TDF会话与IP-CAN会话进行关联。PCRF可根据TDF上报的应用信息更新该IP-CAN会话的相关策略。In step S604, the TDF detects the data flow passing through it according to the pre-configured ADC rules. When TDF detects that an application of IPv6 address 1 needs to be reported, TDF sends a TDF session establishment message to PCRF (because the TDF session corresponding to the IPv6 has not been established), carries the IPv6 address 1 in the TDF session establishment message, and detects received application information, such as the application ID. If the detected flow description information of the application is derivable, the TDF also carries the flow description information in the establishment message. The PCRF associates the TDF session with the IP-CAN session according to the IPv6 prefix obtained from the PCEF and the IPv6 address 1 obtained from the TDF. The PCRF can update the related policies of the IP-CAN session according to the application information reported by the TDF.
步骤S606,PCRF返回TDF会话建立的确认消息,并在确认消息中返回该IP-CAN会话的IPv6前缀;Step S606, PCRF returns the confirmation message that the TDF session is set up, and returns the IPv6 prefix of the IP-CAN session in the confirmation message;
此处将步骤S604和步骤S606建立的TDF会话表示为TDF session1。Here, the TDF session established in step S604 and step S606 is represented as TDF session1.
步骤S608,TDF在发送步骤S604消息同时或之后,在收到步骤S606消息之前,TDF检测到IPv6地址2的一个应用需要上报,则TDF向PCRF发送TDF会话建立消息(由于该IPv6地址2对应的TDF会话还没有建立),在该TDF会话建立消息中携带该IPv6地址2,以及检测到的应用信息,如应用标识。若检测到的应用的流描述信息是可推导的,则TDF还在建立消息中携带流描述信息。PCRF根据从PCEF获得的IPv6地址前缀和从TDF获得的IPv6地址2(TDF会话建立消息中携带的IPv6地址2),将TDF会话与IP-CAN会话进行关联(即将TDF会话建立消息与IP-CAN会话进行关联)。Step S608, TDF sends step S604 message simultaneously or after, before receiving step S606 message, TDF detects that an application of IPv6 address 2 needs to report, and then TDF sends TDF session establishment message to PCRF (because this IPv6 address 2 corresponds The TDF session has not been established), the IPv6 address 2 and the detected application information, such as the application identifier, are carried in the TDF session establishment message. If the detected flow description information of the application is derivable, the TDF also carries the flow description information in the establishment message. The PCRF associates the TDF session with the IP-CAN session according to the IPv6 address prefix obtained from the PCEF and the IPv6 address 2 obtained from the TDF (the IPv6 address 2 carried in the TDF session establishment message) (that is, the TDF session establishment message is associated with the IP-CAN sessions are associated).
步骤S610,PCRF判断该IP-CAN会话相关的一个TDF会话已经建立(与IPv6地址1相关)。因此PCRF拒绝TDF会话建立,并且确认消息中携带原因值,通知TDF该IP-CAN会话相关的一个TDF会话已经建立,同时还可以携带TDF session1的会话标识。In step S610, the PCRF judges that a TDF session related to the IP-CAN session has been established (related to IPv6 address 1). Therefore, the PCRF rejects the establishment of the TDF session, and carries the cause value in the confirmation message, notifying the TDF that a TDF session related to the IP-CAN session has been established, and can also carry the session identifier of TDF session1.
步骤S612,可选地,TDF通过TDF session1向PCRF发送TDF会话修改消息,在消息中携带IPv6地址2和/或步骤S608中上报的应用信息。Step S612, optionally, the TDF sends a TDF session modification message to the PCRF through the TDF session1, and the message carries the IPv6 address 2 and/or the application information reported in step S608.
步骤S614,PCRF向TDF返回TDF会话修改消息的确认消息。In step S614, the PCRF returns an acknowledgment message of the TDF session modification message to the TDF.
在步骤S614执行完成后,TDF通过TDF session1上报IPv6地址1和IPv6地址2相关的应用信息。After step S614 is executed, TDF reports application information related to IPv6 address 1 and IPv6 address 2 through TDF session1.
对于同时支持双栈和IPv6 prefix delegation的场景,实现方案也是类似。For scenarios that support dual-stack and IPv6 prefix delegation at the same time, the implementation scheme is similar.
根据本发明的另一方面,本发明实施例还提供了一种PCRF,如图7所示,该PCRF包括:接收模块10,用于接收来自业务检测功能TDF的TDF会话建立消息,其中,TDF会话建立消息携带用户设备UE的第一地址;判断模块20,与接收模块10耦合,用于判断第一地址对应的IP-CAN会话是否存在一个已建立的第二地址的TDF会话;返回模块30,与判断模块20耦合,用于在第一地址对应的IP-CAN会话存在一个已建立的第二地址的TDF会话的情况下,向TDF返回第一地址的TDF会话建立拒绝消息,其中,PCRF的第一地址为IPv4地址,第二地址为IPv6地址;或第一地址为IPv6地址,第二地址为IPv4地址;或者或第一个地址和第二地址均为IPv6地址。According to another aspect of the present invention, the embodiment of the present invention also provides a PCRF. As shown in FIG. 7, the PCRF includes: a receiving
为了进一步优化PCRF,还可以包括图8所示的关联模块40,与接收模块10耦合,用于根据已从PCEF获得的第一地址和从TDF会话建立消息中携带的第一地址,将TDF会话建立消息与IP-CAN会话关联;还用于根据从PCEF获得的第一地址对应的地址前缀和TDF会话建立消息携带的第一地址,将TDF会话建立消息与IP-CAN会话关联。In order to further optimize the PCRF, an associating
根据本发明的另一方面,本发明实施例还提供了一种TDF,用于与PCRF进行交互,在PCRF的接收模块10接收TDF会话建立消息之前,TDF根据预置的应用检测控制ADC规则对流经的数据流进行检测;当检测到第一地址对应的应用需要上报时,则TDF向PCRF发送TDF会话建立消息,其中,TDF会话建立消息中携带检测到的与第一地址对应的应用信息。其中,若检测到的与第一地址对应的应用的流描述信息是可推导的,则TDF会话建立消息中还携带流描述信息。According to another aspect of the present invention, the embodiment of the present invention also provides a TDF, which is used for interacting with the PCRF. Before the receiving
在PCRF的返回模块30返回第一地址的TDF会话拒绝消息之后,TDF通过已建立的第二地址的TDF会话向PCRF发送TDF会话修改消息,其中,TDF会话修改消息携带第一地址和第一地址对应的应用信息。After the
从以上的描述中,可以看出,本发明实现了如下技术效果:From the above description, it can be seen that the present invention achieves the following technical effects:
通过运用本发明上述实施例,解决了相关技术中一个IP-CAN会话同时存在两个TDF会话,浪费了系统的资源,且针对同一个IP-CAN会话的业务检测需要通过不同的TDF会话上报,增加了交互过程中的信令开销的问题,进而实现了只建立一个TDF会话的场景,并且对同一个IP-CAN会话的业务检测可以通过已建立的一个TDF会话进行上报,节约了系统资源的同时还减少了交互过程中的信令开销,提高了系统的资源利用率。By using the above embodiments of the present invention, it is solved that there are two TDF sessions in one IP-CAN session in the related art at the same time, which wastes system resources, and the service detection for the same IP-CAN session needs to be reported through different TDF sessions. The problem of signaling overhead in the interaction process is increased, and then only one TDF session is established, and the service detection of the same IP-CAN session can be reported through an established TDF session, saving system resources. At the same time, the signaling overhead in the interaction process is reduced, and the resource utilization rate of the system is improved.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases, in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210071381.3A CN103312683B (en) | 2012-03-16 | 2012-03-16 | The processing method and PCRF of TDF session |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210071381.3A CN103312683B (en) | 2012-03-16 | 2012-03-16 | The processing method and PCRF of TDF session |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103312683A true CN103312683A (en) | 2013-09-18 |
CN103312683B CN103312683B (en) | 2018-12-21 |
Family
ID=49137469
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210071381.3A Expired - Fee Related CN103312683B (en) | 2012-03-16 | 2012-03-16 | The processing method and PCRF of TDF session |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103312683B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104955085A (en) * | 2014-03-24 | 2015-09-30 | 中兴通讯股份有限公司 | Method for application detection control under roaming scene and V-PCRF |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101552788A (en) * | 2008-04-04 | 2009-10-07 | 佳能株式会社 | A session management system and a control method thereof |
WO2010020637A1 (en) * | 2008-08-18 | 2010-02-25 | Telefonaktiebolaget L M Ericsson (Publ) | Handling of aggregate maximum bit rate by policy and charge control |
CN102131172A (en) * | 2010-01-18 | 2011-07-20 | 中兴通讯股份有限公司 | Traffic processing method and system |
-
2012
- 2012-03-16 CN CN201210071381.3A patent/CN103312683B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101552788A (en) * | 2008-04-04 | 2009-10-07 | 佳能株式会社 | A session management system and a control method thereof |
WO2010020637A1 (en) * | 2008-08-18 | 2010-02-25 | Telefonaktiebolaget L M Ericsson (Publ) | Handling of aggregate maximum bit rate by policy and charge control |
CN102131172A (en) * | 2010-01-18 | 2011-07-20 | 中兴通讯股份有限公司 | Traffic processing method and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104955085A (en) * | 2014-03-24 | 2015-09-30 | 中兴通讯股份有限公司 | Method for application detection control under roaming scene and V-PCRF |
Also Published As
Publication number | Publication date |
---|---|
CN103312683B (en) | 2018-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2339781B1 (en) | Method and system for realizing the policy and charging control in the multiple packet data networks (pdn) scene | |
US8874715B2 (en) | Charging method, system and reporting method for terminal accessing through multiple access networks | |
EP2466932A1 (en) | Charging system and method | |
CN102215469B (en) | Policy and charging control (PCC) method and system based on network load | |
US8661145B2 (en) | Method and system for transmitting a bearer control mode in roaming scenarios | |
EP2424160A1 (en) | Method for implementing limited policy and charging control and system thereof | |
EP3110197B1 (en) | Method for application detection and control in roaming scenario and v-pcrf | |
US9565052B2 (en) | Method and system for realizing application detection and control in IP-CAN session supporting dual stack | |
EP2521385A1 (en) | Policy and charging control method, gateway and mobile terminal thereof | |
CN101355806B (en) | Network session release method, device and system | |
CN103313431B (en) | The processing method and PCRF of TDF sessions | |
CN102111740B (en) | Multi-access supported policy charging controlling method and system | |
CN102711086B (en) | Sponsored Data Connection Processing Method and Policy and Charging Rules Functional Entity | |
CN103227981B (en) | A kind of recognition methods of application detection control function pattern and system | |
CN102791042A (en) | Method and system for establishing S9 subsession and policy and charging rules function (PCRF) | |
CN103312683A (en) | TDF (Traffic Detection Function) processing method and PCRF (Policy and Charging Rules Function) | |
CN101378522B (en) | Method, system and entity for distributing policy | |
CN103945359A (en) | Service data processing method, device and system | |
WO2012041148A1 (en) | Method and system for monitoring volume usage |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20181221 |
|
CF01 | Termination of patent right due to non-payment of annual fee |