CN105553923A - Method for obtaining user identifier and network side equipment - Google Patents
Method for obtaining user identifier and network side equipment Download PDFInfo
- Publication number
- CN105553923A CN105553923A CN201410613953.5A CN201410613953A CN105553923A CN 105553923 A CN105553923 A CN 105553923A CN 201410613953 A CN201410613953 A CN 201410613953A CN 105553923 A CN105553923 A CN 105553923A
- Authority
- CN
- China
- Prior art keywords
- user
- pcrf
- request
- request message
- message
- 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.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000004044 response Effects 0.000 claims abstract description 47
- 238000013475 authorization Methods 0.000 claims description 6
- 230000005540 biological transmission Effects 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 2
- 230000006870 function Effects 0.000 description 12
- 238000010276 construction Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 6
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 230000007547 defect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/40—Network security protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种获取用户标识的方法及网络侧设备,涉及AF(Application?Function,应用功能)的技术。本发明公开的方法,包括:策略和计费控制实体PCRF收到应用功能实体AF发送的请求消息时,解析请求消息;若PCRF从请求消息中解析得到AF请求获取用户标识的指示,则在构造请求消息的响应消息中,携带AF请求获取的用户标识;PCRF将所构造的响应消息反馈给AF。本发明还公开了一种网络侧设备。本申请技术方案利用现有接口传输用户标识,从而解决了部分场景下AF网元无法获取到用户标识造成无法基于用户标识进行业务控制的问题,且实现方式简单高效。
The invention discloses a method for acquiring user identification and network side equipment, and relates to AF (Application? Function, application function) technology. The method disclosed in the present invention includes: when the policy and charging control entity PCRF receives the request message sent by the application function entity AF, it parses the request message; The response message of the request message carries the user identifier requested by the AF; the PCRF feeds back the constructed response message to the AF. The invention also discloses a network side device. The technical solution of the present application utilizes the existing interface to transmit the user ID, thereby solving the problem that the AF network element cannot obtain the user ID in some scenarios, resulting in the inability to perform service control based on the user ID, and the implementation method is simple and efficient.
Description
技术领域technical field
本发明涉及AF(ApplicationFunction,应用功能)的技术,是一种PCC(PolicyandChargingControl,策略和计费控制)架构中在无法获取用户标识场景下AF获取用户标识的实现方案。The present invention relates to AF (Application Function, application function) technology, and is an implementation scheme for AF to obtain a user ID in a scenario where the user ID cannot be obtained in a PCC (Policy and Charging Control, policy and charging control) framework.
背景技术Background technique
在PCC架构网络中,如图1所示,存在几个主要的功能实体:PCRF(PolicyandChargingRuleFunction,策略和计费规则功能)、PCEF(PolicyandChargingEnforcementFunction,策略和计费执行功能)、BBERF(BearerBindingandEventReportingFunction,承载绑定和事件上报功能)、AF(ApplicationFunction,应用功能)、TDF(TrafficDetectionFunction,业务检测功能)、SPR(SubscriptionProfileRepository,用户签约数据库)、OFCS(Offlinechargingsystem,离线计费系统)、OCS(Onlinechargingsystem,在线计费系统)。In the PCC architecture network, as shown in Figure 1, there are several main functional entities: PCRF (PolicyandChargingRuleFunction, policy and charging rule function), PCEF (PolicyandChargingEnforcementFunction, policy and charging enforcement function), BBERF (BearerBindingandEventReportingFunction, bearer binding Fixed and event reporting function), AF (Application Function, application function), TDF (TrafficDetectionFunction, business detection function), SPR (SubscriptionProfileRepository, user subscription database), OFCS (Offline charging system, offline charging system), OCS (Online charging system, online charging system).
PCRF主要负责策略和计费规则的制定,通过Gx接口将制定的PCC策略和计费规则下发给PCEF,PCEF安装、执行PCC策略,并上报相关事件,与计费系统交互计费信息。PCRF通过Gxx接口将QoS(QualityofService,业务服务质量)规则下发给BBERF,BBERF不和计费系统交互计费信息,只负责承载绑定和相关事件的上报。PCRF通过Sd接口把需要监控的业务信息下发给TDF,TDF执行业务监控,并上报给PCRF。AF通过Rx接口向PCRF提供业务信息。SPR保存了用户签约的业务信息,PCRF可以通过Sp接口向SPR查询用户签约的业务信息。OCS通过Sy接口向PCRF报告与用户消费相关的策略计数器状态信息。PCEF通过Gy接口将在线计费信息发送给OCS进行在线计费的统计,通过Gz接口将离线计费信息发送给OFCS。TDF通过Gyn接口将基于业务的在线计费信息发送给OCS,通过Gzn接口将基于业务的离线计费信息发送给OFCS。The PCRF is mainly responsible for the formulation of policies and charging rules, and sends the formulated PCC policies and charging rules to the PCEF through the Gx interface. The PCEF installs and executes the PCC policies, reports related events, and exchanges charging information with the charging system. PCRF sends QoS (Quality of Service) rules to BBERF through the Gxx interface. BBERF does not exchange charging information with the charging system, but is only responsible for bearer binding and reporting of related events. The PCRF sends the service information to be monitored to the TDF through the Sd interface, and the TDF performs service monitoring and reports it to the PCRF. The AF provides service information to the PCRF through the Rx interface. The SPR stores the service information signed by the user, and the PCRF can query the SPR for the service information signed by the user through the Sp interface. The OCS reports policy counter status information related to user consumption to the PCRF through the Sy interface. The PCEF sends the online charging information to the OCS through the Gy interface for online charging statistics, and sends the offline charging information to the OFCS through the Gz interface. TDF sends service-based online charging information to OCS through the Gyn interface, and sends service-based offline charging information to OFCS through the Gzn interface.
PCEF和PCRF之间通过IP-CAN(IPConnectivityAccessNetwork,IP连接接入网)会话互相维持连接状态,AF和PCRF之间通过AF会话互相维持连接状态。PCEF通过CCR(Credit-Control-Request)消息向PCRF发送建立、更新、释放IP-CAN会话的指示;AF则通过AAR(Authentication-Authorization-Request,认证授权请求)消息向PCRF发送建立、更新AF会话的指示,通过STR(Session-Termination-Request,会话终止请求)向PCRF发送释放AF会话的指示。The PCEF and the PCRF maintain the connection state with each other through the IP-CAN (IP Connectivity Access Network, IP connection access network) session, and the AF and the PCRF maintain the connection state with each other through the AF session. PCEF sends instructions to PCRF to establish, update, and release IP-CAN sessions through CCR (Credit-Control-Request) messages; AF sends instructions to PCRF to establish and update AF sessions through AAR (Authentication-Authorization-Request) messages. An instruction to send an instruction to release the AF session to the PCRF through a STR (Session-Termination-Request, session termination request).
PCRF根据AF提供的业务相关信息、PCEF上报的承载相关信息以及SPR中用户签约的业务信息,制定动态PCC策略,并下发给PCEF,策略信息中包含QoS和计费的信息。Based on the service-related information provided by the AF, the bearer-related information reported by the PCEF, and the service information signed by users in the SPR, the PCRF formulates a dynamic PCC policy and sends it to the PCEF. The policy information includes QoS and charging information.
AF可以提供业务的动态策略和计费控制。AF可以是IMS(IPMultimediaSystem,IP多媒体子系统)网络中的P-CSCF(Proxy-CallSessionControlFunction,代理呼叫会话控制功能),也可以是一个第三方应用平台。在某些场景时,第三方应用平台作为AF网元,受限于网络部署而无法获取到用户标识,从而不能执行基于用户标识的业务控制,比如基于用户标识的计费目的。而PCRF和PCEF之间创建的IP-CAN会话,持有会话关联的用户标识,AF会话创建时将和IP-CAN会话进行绑定,会话绑定后,则能够获取AF会话关联的用户标识。但是PCRF如何通过Rx接口,发送关联的用户标识给AF,是亟待解决的问题。AF can provide dynamic policy and charging control for services. The AF may be a P-CSCF (Proxy-CallSessionControlFunction, proxy call session control function) in an IMS (IP Multimedia System, IP Multimedia Subsystem) network, or a third-party application platform. In some scenarios, the third-party application platform, as an AF network element, is limited by network deployment and cannot obtain user IDs, so it cannot perform user ID-based service control, such as user ID-based charging purposes. The IP-CAN session created between PCRF and PCEF holds the user ID associated with the session. When the AF session is created, it will be bound with the IP-CAN session. After the session is bound, the user ID associated with the AF session can be obtained. However, how the PCRF sends the associated user ID to the AF through the Rx interface is an urgent problem to be solved.
发明内容Contents of the invention
本发明所要解决的技术问题是,提供一种获取用户标识的方法及网络侧设备,以解决第三方应用平台作为AF时,AF网元无法获取到用户标识的问题和缺陷。The technical problem to be solved by the present invention is to provide a method for obtaining user IDs and network side equipment to solve the problem and defect that AF network elements cannot obtain user IDs when a third-party application platform is used as AF.
为了解决上述技术问题,本发明公开了一种获取用户标识的方法,包括以下操作:In order to solve the above technical problems, the present invention discloses a method for obtaining a user ID, which includes the following operations:
策略和计费控制实体PCRF收到应用功能实体AF发送的请求消息时,解析所述请求消息;When the policy and charging control entity PCRF receives the request message sent by the application function entity AF, it parses the request message;
若所述PCRF从所述请求消息中解析得到AF请求获取用户标识的指示,则在构造所述请求消息的响应消息中,携带AF请求获取的用户标识;If the PCRF parses from the request message to obtain an indication that the AF requests to obtain the user ID, then constructing the response message of the request message carries the user ID obtained by the AF request;
所述PCRF将所构造的响应消息反馈给所述AF。The PCRF feeds back the constructed response message to the AF.
可选地,上述方法中,所述请求消息至少包括认证授权请求AAR和会话终止请求STR消息。Optionally, in the above method, the request message includes at least Authentication Authorization Request AAR and Session Termination Request STR messages.
可选地,上述方法还包括:Optionally, the above method also includes:
当所述PCRF从所述请求消息中没有解析得到AF请求获取用户标识的指示时,所述PCRF则根据AF邻接局配置判断所述AF网元是否需要从PCRF获取用户标识;When the PCRF does not obtain an indication that the AF requests to obtain the user ID from the request message, the PCRF judges whether the AF network element needs to obtain the user ID from the PCRF according to the configuration of the AF adjacent office;
当AF网元需要从PCRF获取用户标识时,所述PCRF在构造所述请求消息的响应消息中,携带AF请求获取的用户标识。When the AF network element needs to obtain the user ID from the PCRF, the PCRF constructs the response message of the request message to carry the user ID requested by the AF.
可选地,上述方法中,所述PCRF从所述请求消息中解析得到AF请求获取用户标识的指示指:Optionally, in the above method, the PCRF parses from the request message to obtain an indication that the AF requests to obtain the user ID:
所述PCRF从所述请求消息中解析获取设定字段的值为设定值,判断所述AF请求从本PCRF中获取用户标识。The PCRF parses and obtains the value of the setting field from the request message, and judges that the AF requests to obtain the user identifier from the PCRF.
本发明还公开了一种网络侧设备,包括:The invention also discloses a network side device, including:
解析单元,在收到应用功能实体AF发送的请求消息时,解析所述请求消息;The parsing unit, when receiving the request message sent by the application function entity AF, parses the request message;
响应消息构造单元,在所述解析单元从所述请求消息中解析得到AF请求获取用户标识的指示时,在构造所述请求消息的响应消息中,携带AF请求获取的用户标识;A response message construction unit, when the parsing unit parses from the request message to obtain an indication that the AF requests to obtain the user ID, constructing the response message of the request message, carrying the user ID obtained by the AF request;
发送单元,将所述响应消息构造单元构造的响应消息反馈给所述AF。The sending unit feeds back the response message constructed by the response message construction unit to the AF.
可选地,上述设备中,其特征在于,所述请求消息至少包括认证授权请求AAR和会话终止请求STR消息。Optionally, in the above device, it is characterized in that the request message includes at least an Authentication Authorization Request AAR and a Session Termination Request STR message.
可选地,上述设备中,所述响应消息构造单元从所述请求消息中如果没有解析得到AF请求获取用户标识的指示,则根据AF邻接局配置判断所述AF网元是否需要从PCRF获取用户标识;Optionally, in the above-mentioned device, if the response message construction unit does not obtain an indication that the AF requests to obtain the user ID from the request message, it judges whether the AF network element needs to obtain the user ID from the PCRF according to the configuration of the AF adjacent office. logo;
当AF网元需要从PCRF获取用户标识时,在构造所述请求消息的响应消息中,携带AF请求获取的用户标识。When the AF network element needs to obtain the user ID from the PCRF, the response message for constructing the request message carries the user ID requested by the AF.
可选地,上述设备中,所述解析单元从所述请求消息中解析得到AF请求获取用户标识的指示指:Optionally, in the above device, the parsing unit parses the request message to obtain an indication that the AF requests to obtain the user ID:
所述解析单元从所述请求消息中解析获取设定字段的值为设定值,则判断所述AF请求从本设备中获取用户标识。The parsing unit parses and obtains the value of the setting field from the request message to be a set value, and then judges that the AF requests to obtain the user ID from the device.
可选地,上述设备中,所述网络侧设备为策略和计费控制PCRF设备。Optionally, in the above device, the network side device is a policy and charging control PCRF device.
本申请技术方案利用现有接口传输用户标识,从而解决了部分场景下AF网元无法获取到用户标识造成无法基于用户标识进行业务控制的问题,且实现方式简单高效。The technical solution of the present application utilizes the existing interface to transmit the user ID, thereby solving the problem that the AF network element cannot obtain the user ID in some scenarios, resulting in the inability to perform service control based on the user ID, and the implementation method is simple and efficient.
附图说明Description of drawings
图1是现有PCC系统架构示意图;FIG. 1 is a schematic diagram of an existing PCC system architecture;
图2是本发明提供的获取用户标识的流程示意图;Fig. 2 is a schematic flow chart of acquiring a user ID provided by the present invention;
图3是本发明提供的AF会话建立时获取用户标识的流程示意图;Fig. 3 is a schematic flow diagram of obtaining a user ID when an AF session is established according to the present invention;
图4是本发明提供的AF会话建立时获取用户标识的另一流程示意图;Fig. 4 is another schematic flow diagram of obtaining a user ID when an AF session is established according to the present invention;
图5是本发明提供的AF会话更新时获取用户标识的流程示意图;Fig. 5 is a schematic flow diagram of obtaining a user ID when an AF session is updated provided by the present invention;
图6是本发明提供的AF会话结束时获取用户标识的流程示意图。Fig. 6 is a schematic flow chart of obtaining a user ID when an AF session ends according to the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,下文将结合附图对本发明技术方案作进一步详细说明。需要说明的是,在不冲突的情况下,本申请的实施例和实施例中的特征可以任意相互组合。In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
实施例1Example 1
本实施例提供一种获取用户标识的方法,如图2所示,主要包括以下操作:This embodiment provides a method for obtaining a user ID, as shown in Figure 2, which mainly includes the following operations:
步骤201,PCRF收到AF发送的请求消息时,解析该请求消息;Step 201, when the PCRF receives the request message sent by the AF, it parses the request message;
步骤202,若PCRF从该请求消息中解析得到AF请求获取用户标识的指示,则在构造该请求消息的响应消息中,携带AF请求获取的用户标识;Step 202, if the PCRF obtains an indication that the AF requests to obtain the user ID from the request message, then construct the response message of the request message to carry the user ID obtained by the AF request;
步骤203,PCRF将所构造的响应消息反馈给AF。In step 203, the PCRF feeds back the constructed response message to the AF.
其中,本实施例所涉及的请求消息至少包括但不限于AAR和STR消息。Wherein, the request messages involved in this embodiment at least include but not limited to AAR and STR messages.
下面结合具体应用场景及附图对上述方法的具体实现作详细介绍:The following is a detailed introduction to the specific implementation of the above method in combination with specific application scenarios and accompanying drawings:
场景一scene one
图3所示为会话建立时获取用户标识的流程示意图。该过程包括如下操作:FIG. 3 is a schematic flow diagram of obtaining a user ID when a session is established. The process includes the following operations:
步骤301、PCEF向PCRF发送IP-CAN会话建立指示消息,其中携带用户标识,PCRF从SPR获取该用户的签约信息,并进行规则决策,发送会话建立响应消息给PCEF,PCRF和PCEF完成创建IP-CAN会话,并在PCRF上保存IP-CAN会话信息和用户信息。Step 301, PCEF sends an IP-CAN session establishment instruction message to PCRF, which carries the user identifier, and PCRF obtains the user's subscription information from SPR, makes a rule decision, and sends a session establishment response message to PCEF, and PCRF and PCEF complete the establishment of IP-CAN CAN session, and save IP-CAN session information and user information on PCRF.
步骤302、AF网元收到外部或者内部事件触发,需要创建新的AF会话。在创建AF会话时,AF网元检测到没有与该会话关联的用户标识。为了获取到用户标识,在构造请求消息时包含请求获取用户标识的AVP。In step 302, the AF network element needs to create a new AF session upon receiving an external or internal event trigger. When creating an AF session, the AF network element detects that there is no user ID associated with the session. In order to obtain the user ID, the AVP requesting to obtain the user ID is included when constructing the request message.
其中,本实施例中,在构造请求消息时采用新增AVP以携带AF请求获取用户标识的指示。即设定字段AVP的取值为设定值时,即认为请求消息中包含了AF请求获取用户标识的指示。Wherein, in this embodiment, when constructing the request message, a newly added AVP is used to carry an indication that the AF requests to obtain the user ID. That is, when the value of the setting field AVP is a set value, it is considered that the request message includes an indication that the AF requests to obtain the user ID.
步骤303、AF网元发送AAR请求消息给PCRF,请求建立AF会话,其中携带请求获取用户标识的AVP。In step 303, the AF network element sends an AAR request message to the PCRF, requesting to establish an AF session, which carries an AVP requesting to obtain a user ID.
步骤304、PCRF收到AF的建立会话请求消息后,解码AAR消息,并取出请求获取用户标识的AVP,然后执行后续流程。Step 304: After receiving the session establishment request message from the AF, the PCRF decodes the AAR message, and takes out the AVP requesting to obtain the user ID, and then executes subsequent procedures.
步骤305、PCRF根据AAR消息携带的会话信息和媒体信息,执行会话绑定和PCC规则授权。会话绑定后,PCRF即从AF会话绑定的IP-CAN会话中获取到关联的用户标识。In step 305, the PCRF performs session binding and PCC rule authorization according to the session information and media information carried in the AAR message. After the session is bound, the PCRF obtains the associated user ID from the IP-CAN session bound to the AF session.
步骤306、PCRF根据AAR请求消息携带的请求获取用户标识AVP,在构造会话建立响应消息时,包含用户标识。Step 306 , PCRF obtains the user identity AVP according to the request carried in the AAR request message, and includes the user identity when constructing the session establishment response message.
步骤307、PCRF发送会话建立响应消息给AF,其中携带用户标识。AF收到该响应消息后,解码并获取到用户标识。In step 307, the PCRF sends a session establishment response message to the AF, which carries the user identifier. After receiving the response message, the AF decodes and obtains the user identifier.
步骤308、PCRF根据AF会话信息和其他信息执行重决策,修改IP-CAN会话。Step 308, the PCRF performs re-decision according to the AF session information and other information, and modifies the IP-CAN session.
还有一些优选方案提出,PCRF如果没有从请求消息中解析得到AF请求获取用户标识的指示,则还可以根据AF邻接局配置判断AF网元是否需要从PCRF获取用户标识。仅当AF网元需要从PCRF获取用户标识时,PCRF在构造请求消息的响应消息中,才携带AF请求获取的用户标识。此优选方案的具体实现可参见下述场景二的描述。In some preferred solutions, if the PCRF does not obtain the indication that the AF requests to obtain the user ID from the request message, it can also judge whether the AF network element needs to obtain the user ID from the PCRF according to the configuration of the AF adjacent office. Only when the AF network element needs to obtain the user ID from the PCRF, the PCRF carries the user ID requested by the AF in the response message of the construction request message. For the specific implementation of this preferred solution, refer to the description of the second scenario below.
场景二scene two
图4为会话建立时获取用户标识的另一流程示意图。该过程包括如下操作:Fig. 4 is a schematic flow diagram of another process for obtaining a user ID when a session is established. The process includes the following operations:
步骤401、PCEF向PCRF发送IP-CAN会话建立指示消息,其中携带用户标识,PCRF从SPR获取该用户的签约信息,并进行规则决策,发送会话建立响应消息给PCEF,PCRF和PCEF完成创建IP-CAN会话,并在PCRF上保存IP-CAN会话信息和用户信息。Step 401, PCEF sends an IP-CAN session establishment indication message to PCRF, which carries the user identifier, and PCRF obtains the user's subscription information from SPR, makes a rule decision, and sends a session establishment response message to PCEF, and PCRF and PCEF complete the establishment of IP-CAN CAN session, and save IP-CAN session information and user information on PCRF.
步骤402、AF网元收到外部或者内部事件触发,需要创建新的AF会话。在构造请求消息时不包含请求获取用户标识的AVP(即不包含AF请求获取用户标识的指示)。In step 402, the AF network element needs to create a new AF session upon receiving an external or internal event trigger. When constructing the request message, the AVP requesting to obtain the user ID is not included (that is, the indication that the AF requests to obtain the user ID is not included).
步骤403、AF网元发送AAR请求消息给PCRF,请求建立AF会话。Step 403, the AF network element sends an AAR request message to the PCRF, requesting to establish an AF session.
步骤404、PCRF收到AF的建立会话请求消息后,解码AAR消息,没有解析出请求获取用户标识的AVP,然后执行后续流程。Step 404 , after receiving the session establishment request message from the AF, the PCRF decodes the AAR message, and finds out no AVP requesting to acquire the user ID, and then executes subsequent procedures.
步骤405、PCRF根据AAR消息携带的会话信息和媒体信息,执行会话绑定和PCC规则授权。会话绑定后,PCRF即从AF会话绑定的IP-CAN会话中获取到关联的用户标识。In step 405, the PCRF performs session binding and PCC rule authorization according to the session information and media information carried in the AAR message. After the session is bound, the PCRF obtains the associated user ID from the IP-CAN session bound to the AF session.
步骤406、PCRF读取AF邻接局配置,判断AF网元需要从PCRF获取用户标识。该步骤的前提是PCRF网元配置AF邻接局为需要从PCRF获取用户标识。Step 406, the PCRF reads the configuration of the AF adjacent office, and judges that the AF network element needs to obtain the user ID from the PCRF. The premise of this step is that the PCRF network element configures the AF adjacent office to need to obtain the user ID from the PCRF.
步骤407、根据配置,AF网元需要获取用户标识,因此在构造响应消息时,包含AF绑定会话的用户标识。Step 407, according to the configuration, the AF network element needs to obtain the user ID, so when constructing the response message, the user ID of the AF binding session is included.
步骤408、PCRF发送会话建立响应消息给AF,其中携带用户标识。AF收到该响应消息后,解码并获取到用户标识。In step 408, the PCRF sends a session establishment response message to the AF, which carries the user identifier. After receiving the response message, the AF decodes and obtains the user identifier.
步骤409、PCRF根据AF会话信息和其他信息执行重决策,修改IP-CAN会话。Step 409, the PCRF performs re-decision according to the AF session information and other information, and modifies the IP-CAN session.
场景三scene three
图5为会话修改时获取用户标识的流程示意图。该过程包括如下操作:Fig. 5 is a schematic flow chart of obtaining a user ID when a session is modified. The process includes the following operations:
步骤501、AF网元收到外部或者内部事件触发,需要修改存在的AF会话。在修改AF会话时,AF网元检测到没有与该会话关联的用户标识,并且需要获取用户标识用于业务控制。为了获取到用户标识,在构造请求消息时包含请求获取用户标识的AVP。Step 501, the AF network element receives an external or internal event trigger, and needs to modify an existing AF session. When modifying an AF session, the AF network element detects that there is no user ID associated with the session, and needs to obtain the user ID for service control. In order to obtain the user ID, the AVP requesting to obtain the user ID is included when constructing the request message.
步骤502、AF网元发送AAR请求消息给PCRF,请求修改AF会话,其中携带请求获取用户标识的AVP(即AF请求获取用户标识的指示)。In step 502, the AF network element sends an AAR request message to the PCRF, requesting to modify the AF session, which carries an AVP requesting to obtain the user ID (ie, an indication that the AF requests to obtain the user ID).
步骤503、PCRF收到AF的修改会话请求消息后,解码AAR消息,并取出请求获取用户标识的AVP,然后执行后续流程。Step 503: After receiving the session modification request message from the AF, the PCRF decodes the AAR message, and takes out the AVP requesting to obtain the user ID, and then executes the subsequent process.
步骤504、PCRF根据AAR消息携带的会话信息,从AF会话绑定的IP-CAN会话中获取到关联的用户标识,并更新保存的AF会话。Step 504 , the PCRF obtains the associated user identifier from the IP-CAN session bound to the AF session according to the session information carried in the AAR message, and updates the saved AF session.
步骤505、PCRF根据AAR请求消息携带的请求获取用户标识AVP,在构造会话修改响应消息时,包含用户标识。Step 505 , the PCRF obtains the user identity AVP according to the request carried in the AAR request message, and includes the user identity when constructing the session modification response message.
步骤506、PCRF发送会话修改响应消息给AF,其中携带用户标识。AF收到该响应消息后,解码并获取到用户标识。In step 506, the PCRF sends a session modification response message to the AF, which carries the user identifier. After receiving the response message, the AF decodes and obtains the user identifier.
步骤507、PCRF根据新的AF会话信息和其他信息执行重决策,修改IP-CAN会话。Step 507, the PCRF performs re-decision according to the new AF session information and other information, and modifies the IP-CAN session.
场景四scene four
图6所示为会话释放时获取用户标识的流程示意图。该过程包括如下操作:FIG. 6 is a schematic flow diagram of obtaining a user ID when a session is released. The process includes the following operations:
步骤601、AF网元收到外部或者内部事件触发,需要释放存在的AF会话。在释放AF会话时,AF网元检测到没有与该会话关联的用户标识,并且需要获取用户标识用于业务控制。为了获取到用户标识,在构造请求消息时包含请求获取用户标识的AVP(AF请求获取用户标识的指示)。In step 601, the AF network element needs to release the existing AF session upon receiving an external or internal event trigger. When releasing the AF session, the AF network element detects that there is no user ID associated with the session, and needs to acquire the user ID for service control. In order to obtain the user ID, an AVP requesting to obtain the user ID (an indication that the AF requests to obtain the user ID) is included when constructing the request message.
步骤602、AF网元发送STR请求消息给PCRF,请求释放AF会话,其中携带请求获取用户标识的AVP。In step 602, the AF network element sends a STR request message to the PCRF, requesting to release the AF session, which carries an AVP requesting to obtain the user ID.
步骤603、PCRF收到AF的释放会话请求消息后,解码STR消息,并取出请求获取用户标识的AVP,然后执行后续流程。Step 603: After receiving the session release request message from the AF, the PCRF decodes the STR message, and takes out the AVP requesting to obtain the user ID, and then executes subsequent procedures.
步骤604、PCRF根据请求消息携带的会话信息,从AF会话绑定的IP-CAN会话中获取到关联的用户标识,并删除保存的AF会话。Step 604: According to the session information carried in the request message, the PCRF obtains the associated user ID from the IP-CAN session bound to the AF session, and deletes the saved AF session.
步骤605、PCRF根据请求消息携带的请求获取用户标识AVP,在构造会话终止响应消息时,包含用户标识。Step 605, PCRF obtains the user identity AVP according to the request carried in the request message, and includes the user identity when constructing the session termination response message.
步骤606、PCRF发送会话终止响应消息给AF,其中携带用户标识。AF收到该响应消息后,解码并获取到用户标识。In step 606, the PCRF sends a session termination response message to the AF, which carries the user identifier. After receiving the response message, the AF decodes and obtains the user identifier.
步骤607、PCRF执行重决策,修改IP-CAN会话。Step 607, the PCRF executes a re-decision to modify the IP-CAN session.
具体地,本实施例可以对AAR消息进行扩展,在消息层增加一个AVP,用于AF请求获取用户标识,指示PCRF在AAA(Authentication-Authorization-Answer,认证授权响应)响应消息中携带用户标识及其类型,定义为,Subscription-Id-Request,类型为枚举,具体取值如下:Specifically, this embodiment can extend the AAR message, add an AVP at the message layer, and use it for the AF request to obtain the user ID, and instruct the PCRF to carry the user ID and Its type is defined as Subscription-Id-Request, and its type is an enumeration. The specific values are as follows:
DISABLE(0),该值用于指示不获取用户标识。为默认取值。DISABLE(0), the value used to indicate that the user ID is not obtained. is the default value.
ENABLE(1),该值用于指示获取用户标识(即为设定值)。ENABLE (1), the value is used to indicate to obtain the user ID (that is, the set value).
该AVP也可以不在消息中携带,表示不明确指示获取用户标识,由PCRF决定是否在响应消息中携带用户标识。The AVP may also not be carried in the message, indicating that it does not explicitly indicate to obtain the user ID, and the PCRF decides whether to carry the user ID in the response message.
AAR消息格式参见3GPPTS29.214。For the AAR message format, refer to 3GPPTS29.214.
<AA-Request>::=<DiameterHeader:265,REQ,PXY><AA-Request>::=<DiameterHeader:265,REQ,PXY>
<Session-Id><Session-Id>
……...
[Subscription-Id-Request][Subscription-Id-Request]
*[AVP]*[AVP]
也可以对AAA消息进行扩展,在消息层增加Subscription-Id,用于携带用户标识及类型,AAA消息格式参见3GPPTS29.214,Subscription-Id的定义参见RFC4006。It is also possible to extend the AAA message by adding Subscription-Id at the message layer to carry the user ID and type. For the format of the AAA message, refer to 3GPPTS29.214, and for the definition of Subscription-Id, refer to RFC4006.
<AA-Answer>::=<DiameterHeader:265,PXY><AA-Answer>::=<DiameterHeader:265,PXY>
<Session-Id><Session-Id>
……...
*[Subscription-Id]*[Subscription-Id]
*[AVP]*[AVP]
还可以对STR消息进行扩展,在消息层增加Subscription-Id-Request,用于AF请求获取用户标识,指示PCRF在STA(Session-Termination-Answer,会话终止响应)响应消息中携带用户标识及其类型,定义与本发明AAR消息中的Subscription-Id-Request一致。STR消息格式参见3GPPTS29.214。It is also possible to extend the STR message, add Subscription-Id-Request at the message layer, and use it for AF to request to obtain the user ID, and instruct PCRF to carry the user ID and its type in the STA (Session-Termination-Answer, session termination response) response message , the definition is consistent with the Subscription-Id-Request in the AAR message of the present invention. For the STR message format, refer to 3GPPTS29.214.
<ST-Request>::=<DiameterHeader:275,REQ,PXY><ST-Request>::=<DiameterHeader:275,REQ,PXY>
<Session-Id><Session-Id>
……...
[Subscription-Id-Request][Subscription-Id-Request]
*[AVP]*[AVP]
还可以对STA消息进行扩展,在消息层增加Subscription-Id,用于携带用户标识及类型,STA消息格式参见3GPPTS29.214,Subscription-Id的定义参见RFC4006。It is also possible to extend the STA message and add Subscription-Id at the message layer to carry the user identifier and type. For the format of the STA message, refer to 3GPPTS29.214, and for the definition of Subscription-Id, refer to RFC4006.
<ST-Answer>::=<DiameterHeader:275,PXY><ST-Answer>::=<DiameterHeader:275,PXY>
<Session-Id><Session-Id>
……...
*[Subscription-Id]*[Subscription-Id]
*[AVP]*[AVP]
实施例2Example 2
本实施例提供一种网络侧设备,可以是PCRF设备,其至少包括如下各单元。This embodiment provides a network side device, which may be a PCRF device, which at least includes the following units.
解析单元,在收到AF发送的请求消息时,解析该请求消息;The parsing unit parses the request message when receiving the request message sent by the AF;
具体地,解析单元从请求消息中解析得到AF请求获取用户标识的指示,可以是从请求消息中解析得到设定字段的值为设定值。Specifically, the parsing unit parses the request message to obtain the indication that the AF requests to obtain the user ID, and may parse the request message to obtain the value of the set field as a set value.
其中,本实施例所涉及的AF发送的请求消息至少包括但不限于AAR和STR消息。Wherein, the request message sent by the AF involved in this embodiment at least includes but not limited to AAR and STR messages.
响应消息构造单元,在解析单元从请求消息中解析得到AF请求获取用户标识的指示时,在构造请求消息的响应消息中,携带AF请求获取的用户标识;The response message construction unit, when the parsing unit parses from the request message to obtain the indication of the AF request to obtain the user ID, carries the user ID obtained by the AF request in the response message of the construction request message;
优选地,响应消息构造单元没有从请求消息中解析得到AF请求获取用户标识的信息时,还可以根据AF邻接局配置判断AF网元是否需要从PCRF获取用户标识;仅当AF网元需要从PCRF获取用户标识时,响应消息构造单元在构造所述请求消息的响应消息中,才携带AF请求获取的用户标识。Preferably, when the response message construction unit does not obtain the information that the AF requests to obtain the user identification from the request message, it can also judge whether the AF network element needs to obtain the user identification from the PCRF according to the configuration of the AF adjacent office; only when the AF network element needs to obtain the user identification from the PCRF When acquiring the user ID, the response message constructing unit only carries the user ID acquired by the AF request in the response message to construct the request message.
发送单元,将响应消息构造单元构造的响应消息反馈给AF。The sending unit feeds back the response message constructed by the response message construction unit to the AF.
要说明的是,由于本实施例提供的设备可以实现上述实施例1的方法,故其他详细操作可以参见实施例1的相应内容,在此不再赘述。It should be noted that since the device provided in this embodiment can implement the method in Embodiment 1 above, other detailed operations can refer to the corresponding content in Embodiment 1, which will not be repeated here.
从上述实施例可以看出,本申请技术方案,通过AF发送请求消息给PCRF,PCRF根据请求消息内容和/或本地配置,将用户标识通过相应消息发送给AF,从而解决现有技术中存在的部分场景下AF网元无法获取到用户标识的问题和缺陷,实现所述场景下AF可以正常执行基于用户标识的业务控制。It can be seen from the above embodiments that in the technical solution of the present application, the AF sends a request message to the PCRF, and the PCRF sends the user identification to the AF through a corresponding message according to the content of the request message and/or local configuration, thereby solving the problem existing in the prior art In some scenarios, the AF network element cannot obtain the problem and defect of the user ID, and the AF can normally perform the service control based on the user ID in the above-mentioned scenarios.
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. This application is not limited to any specific form of combination of hardware and software.
以上所述,仅为本发明的较佳实例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred examples of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (9)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410613953.5A CN105553923A (en) | 2014-11-04 | 2014-11-04 | Method for obtaining user identifier and network side equipment |
PCT/CN2015/075406 WO2016070556A1 (en) | 2014-11-04 | 2015-03-30 | Method for acquiring user identifier and network side device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410613953.5A CN105553923A (en) | 2014-11-04 | 2014-11-04 | Method for obtaining user identifier and network side equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105553923A true CN105553923A (en) | 2016-05-04 |
Family
ID=55832859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410613953.5A Withdrawn CN105553923A (en) | 2014-11-04 | 2014-11-04 | Method for obtaining user identifier and network side equipment |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105553923A (en) |
WO (1) | WO2016070556A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021168829A1 (en) * | 2020-02-28 | 2021-09-02 | 华为技术有限公司 | User identifier verification method and related device |
WO2022105486A1 (en) * | 2020-11-18 | 2022-05-27 | International Business Machines Corporation | Multi-factor fingerprint authenticator |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101039311A (en) * | 2006-03-16 | 2007-09-19 | 华为技术有限公司 | Identification web page service network system and its authentication method |
CN101068148A (en) * | 2007-04-19 | 2007-11-07 | 华为技术有限公司 | Method and device for policy and charging control |
CN101188504A (en) * | 2006-11-20 | 2008-05-28 | 华为技术有限公司 | System and processing method of a network convergence policy charging control framework |
CN101420338A (en) * | 2007-10-26 | 2009-04-29 | 华为技术有限公司 | Information enquiry method, apparatus and system in PCC architecture |
CN101540980A (en) * | 2009-04-24 | 2009-09-23 | 华为技术有限公司 | Business priority updating indicating method, business priority updating method and device thereof |
US20120020345A1 (en) * | 2009-04-20 | 2012-01-26 | Zte Corporation | Method for implementing limited policy and charging control and system thereof |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101459904B (en) * | 2008-06-17 | 2010-12-29 | 中兴通讯股份有限公司 | AAA server, P-GW, PCRF, obtaining method and system for customer equipment identification |
CN102045717B (en) * | 2009-10-26 | 2014-12-31 | 中国移动通信集团公司 | System, method and relevant equipment for acquiring user identifier in data service |
CN102695171B (en) * | 2012-05-18 | 2015-02-04 | 中国联合网络通信集团有限公司 | Subscriber identity obtaining method, system and equipment thereof |
-
2014
- 2014-11-04 CN CN201410613953.5A patent/CN105553923A/en not_active Withdrawn
-
2015
- 2015-03-30 WO PCT/CN2015/075406 patent/WO2016070556A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101039311A (en) * | 2006-03-16 | 2007-09-19 | 华为技术有限公司 | Identification web page service network system and its authentication method |
CN101188504A (en) * | 2006-11-20 | 2008-05-28 | 华为技术有限公司 | System and processing method of a network convergence policy charging control framework |
CN101068148A (en) * | 2007-04-19 | 2007-11-07 | 华为技术有限公司 | Method and device for policy and charging control |
CN101420338A (en) * | 2007-10-26 | 2009-04-29 | 华为技术有限公司 | Information enquiry method, apparatus and system in PCC architecture |
US20120020345A1 (en) * | 2009-04-20 | 2012-01-26 | Zte Corporation | Method for implementing limited policy and charging control and system thereof |
CN101540980A (en) * | 2009-04-24 | 2009-09-23 | 华为技术有限公司 | Business priority updating indicating method, business priority updating method and device thereof |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021168829A1 (en) * | 2020-02-28 | 2021-09-02 | 华为技术有限公司 | User identifier verification method and related device |
WO2022105486A1 (en) * | 2020-11-18 | 2022-05-27 | International Business Machines Corporation | Multi-factor fingerprint authenticator |
US11651060B2 (en) | 2020-11-18 | 2023-05-16 | International Business Machines Corporation | Multi-factor fingerprint authenticator |
GB2616376A (en) * | 2020-11-18 | 2023-09-06 | Ibm | Multi-factor fingerprint authenticator |
GB2616376B (en) * | 2020-11-18 | 2025-02-26 | Ibm | Multi-factor fingerprint authenticator |
Also Published As
Publication number | Publication date |
---|---|
WO2016070556A1 (en) | 2016-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8885568B2 (en) | Policy application method for machine type communication, and policy and charging enforcement function | |
JP5189108B2 (en) | Service processing method and service processing system, and policy control and billing rule function | |
CN101291233B (en) | Method and system realizing event detection | |
US8825874B2 (en) | Extending revalidation-time of diameter sessions | |
US9641697B2 (en) | Policy and charging control method, V-PCRF and V-OCS | |
US8949447B2 (en) | Optimized interface between two network elements operating under an authentication, authorization and accounting protocol | |
US20110320544A1 (en) | Diameter session audits | |
CN102131172B (en) | Method for processing business and system | |
CN107919969A (en) | Policy control method and device | |
EP3125591B1 (en) | Policy control and processing method and device | |
JP5727052B2 (en) | Temporary subscription record | |
CN102223240A (en) | Method for providing services, service agency device and policy and charging rules function device | |
US20130260715A1 (en) | Method for processing service connection in a communication network and device thereof | |
CN104581670A (en) | Application access control method and application function entity device | |
EP2807796B1 (en) | Session termination in a mobile packet core network | |
WO2012116600A1 (en) | Function negotiating method and system for policy and charging control function entity | |
CN101420361A (en) | Method, terminal, server and customer terminal for terminating session | |
CN101610240B (en) | Method and network device for associating service information with IP-CAN session information | |
CN105553923A (en) | Method for obtaining user identifier and network side equipment | |
US20180069714A1 (en) | Method and apparatus for managing subscription to a policy counter | |
US10205659B2 (en) | Information transmission using direct HPCRF communications | |
WO2017107563A1 (en) | Method and device for processing access region monitoring | |
CN103686654A (en) | PCC session association method, and PCEF unit and PA unit | |
EP2893729B1 (en) | Usage control for a subscriber group | |
CN103139798B (en) | A kind of ensure the method for end-to-end session service quality, PCRF and AF |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20160504 |