[go: up one dir, main page]

CN1852289A - Method and system for restraining user mark beingness - Google Patents

Method and system for restraining user mark beingness Download PDF

Info

Publication number
CN1852289A
CN1852289A CN 200510089023 CN200510089023A CN1852289A CN 1852289 A CN1852289 A CN 1852289A CN 200510089023 CN200510089023 CN 200510089023 CN 200510089023 A CN200510089023 A CN 200510089023A CN 1852289 A CN1852289 A CN 1852289A
Authority
CN
China
Prior art keywords
user
impi
message
impu
sar 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.)
Granted
Application number
CN 200510089023
Other languages
Chinese (zh)
Other versions
CN100499657C (en
Inventor
马春燕
于彬
王金城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005100890235A priority Critical patent/CN100499657C/en
Publication of CN1852289A publication Critical patent/CN1852289A/en
Application granted granted Critical
Publication of CN100499657C publication Critical patent/CN100499657C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

本发明公开了一种HSS对用户标识存在性进行约束的方法及系统,其中方法包括以下步骤:预先在HSS上设置用于保存操作类型与用户标识数目对应关系的用户标识存在性约束表;接收到S-CSCF发送来的SAR消息后,HSS判断所述SAR消息中的用户标识数目是否与所述用户标识存在性约束表中对应于所述SAR消息中操作类型的用户标识数目相符,如果是则根据SAR消息中的操作类型进行相应操作,并向S-CSCF返回SAA消息;否则向S-CSCF返回表示错误的SAA消息。本发明在HSS端对SAR消息中的用户标识进行了约束,使得HSS能够正确完成相应的操作,从而弥补了现有3GPP有关协议中的缺点。

Figure 200510089023

The invention discloses a method and system for HSS to restrict the existence of user identifications, wherein the method includes the following steps: setting in advance on the HSS a user identification existence constraint table for storing the corresponding relationship between the operation type and the number of user identifications; receiving After receiving the SAR message sent by the S-CSCF, the HSS judges whether the number of user IDs in the SAR message matches the number of user IDs corresponding to the operation type in the SAR message in the user ID existence constraint table, and if so Then perform corresponding operations according to the operation type in the SAR message, and return an SAA message to the S-CSCF; otherwise, return an SAA message indicating an error to the S-CSCF. The invention restricts the user identification in the SAR message at the HSS end, so that the HSS can correctly complete the corresponding operation, thereby making up for the shortcomings in the existing 3GPP related protocols.

Figure 200510089023

Description

一种对用户标识存在性进行约束的方法及系统A method and system for constraining the existence of user identification

技术领域technical field

本发明涉及基于IP的多媒体子系统(IMS),特别是一种归属签约用户服务器(HSS)对用户标识存在性进行约束的方法及系统。The invention relates to an IP-based multimedia subsystem (IMS), in particular to a method and a system for a home subscriber server (HSS) to restrict the existence of user identification.

背景技术Background technique

在IMS域中,在一条签约数据(IMS Subscription)中含有私有用户标识(IMS Private User Identity,IMPI)、公有用户标识(IMS Public User Identity,IMPU)和移动台国际综合业务数字网(ISDN)号码(MSISDN)。图1为IMS域中用户标识的关系示意图。图1中的IMS Subscription中,存在两个IMPI:IMPI-1和IMPI-2,而IMPI-1与IMPU-1和IMPU-2关联、IMPI-2与IMPU-2和IMPU-3关联,在HSS中IMPU-1与业务数据(Service Profile)-1关联、IMPU-2和IMPU-3与Service Profile-2关联。需要说明的是,在HSS保存的记录中,用户的注册状态和一对IMPI-IMPU关联,即HSS中保存有IMPI与IMPU的关联关系以及与各IMPI-IMPU对应的用户注册状态,而HSS中的签约数据仅和IMPU关联。In the IMS domain, a piece of subscription data (IMS Subscription) contains a private user identity (IMS Private User Identity, IMPI), a public user identity (IMS Public User Identity, IMPU) and a mobile station International Integrated Services Digital Network (ISDN) number (MSISDN). FIG. 1 is a schematic diagram of the relationship between user identifiers in the IMS domain. In the IMS Subscription in Figure 1, there are two IMPIs: IMPI-1 and IMPI-2, and IMPI-1 is associated with IMPU-1 and IMPU-2, and IMPI-2 is associated with IMPU-2 and IMPU-3. In HSS IMPU-1 is associated with Service Profile-1, and IMPU-2 and IMPU-3 are associated with Service Profile-2. It should be noted that in the records saved by the HSS, the user's registration status is associated with a pair of IMPI-IMPU, that is, the HSS stores the association relationship between IMPI and IMPU and the user registration status corresponding to each IMPI-IMPU, while the HSS The subscription data of is only associated with the IMPU.

在IMS用户注册过程中,服务呼叫会话控制功能实体(S-CSCF)通过呼叫会话控制功能实体(CSCF)与HSS之间的接口(Cx接口)向HSS发送的用户注册/注销请求消息(SAR),该SAR消息中带有参数操作类型(ServerAssignmentType)以及用户标识IMPI、IMPU。在参数ServerAssignmentType的取值不同时,对IMPI和IMPU的存在性和数目的约束也不同。ServerAssignmentType的取值和各种取值所对应的含义如表1所示。HSS根据SAR消息中ServerAssignmentType的不同取值,进行相应操作并向S-CSCF返回SAA消息,所返回的SAA消息中需要携带IMPI。During the IMS user registration process, the user registration/deregistration request message (SAR) sent by the serving call session control function entity (S-CSCF) to the HSS through the interface (Cx interface) between the call session control function entity (CSCF) and the HSS , the SAR message carries a parameter operation type (ServerAssignmentType) and user identifiers IMPI and IMPU. When the value of the parameter ServerAssignmentType is different, the constraints on the existence and number of IMPI and IMPU are also different. The values of ServerAssignmentType and the corresponding meanings of various values are shown in Table 1. The HSS performs corresponding operations according to different values of ServerAssignmentType in the SAR message and returns an SAA message to the S-CSCF. The returned SAA message needs to carry the IMPI.

HSS根据ServerAssignmentType进行的相应操作如下:The corresponding operations performed by HSS according to ServerAssignmentType are as follows:

当ServerAssignmentType为NO_ASSIGNMENT时,HSS通过SAA消息向S-CSCF返回所要读取的数据,不改变该用户的注册状态。     ServerAssignmentType取值     含义     NO_ASSIGNMENT     取数据     REGISTRATION     注册     RE_REGISTRATION     重注册     UNREGISTERED_USER     用户做被叫注册     TIMEOUT_DEREGISTRATION     超时注销     USER_DEREGISTRATION     用户注销     TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME     超时注销并保存服务器地址     USER_DEREGISTRATION_STORE_SERVER_NAME     用户注销并保存服务器地址     ADMINISTRATIVE_DEREGISTRATION     控制台注销     AUTHENTICATION_FAILURE     鉴权失败     AUTHENTICATION_TIMEOUT     鉴权超时     DEREGISTRATION_TOO_MUCH_DATA     数据过多注销 When the ServerAssignmentType is NO_ASSIGNMENT, the HSS returns the data to be read to the S-CSCF through the SAA message, without changing the registration status of the user. ServerAssignmentType value meaning NO_ASSIGNMENT fetch data REGISTRATION register RE_REGISTRATION re-register UNREGISTERED_USER User does called registration TIMEOUT_DEREGISTRATION timeout logout USER_DEREGISTRATION user logout TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME Timeout logout and save server address USER_DEREGISTRATION_STORE_SERVER_NAME User logs out and saves server address ADMINISTRATIVE_DEREGISTRATION console logout AUTHENTICATION_FAILURE Authentication failed AUTHENTICATION_TIMEOUT Authentication timeout DEREGISTRATION_TOO_MUCH_DATA Too much data logout

表1  ServerAssignmentType的取值Table 1 Values of ServerAssignmentType

当ServerAssignmentType为REGISTRATION时,HSS将用户注册状态改为注册(Registered),并向S-CSCF返回SAA消息;When the ServerAssignmentType is REGISTRATION, the HSS changes the user registration status to Registered, and returns the SAA message to the S-CSCF;

当ServerAssignmentType为RE_REGISTRATION时,HSS将用户注册状态改为注册(Registered),并向S-CSCF返回SAA消息;When the ServerAssignmentType is RE_REGISTRATION, the HSS changes the user registration status to Registered, and returns the SAA message to the S-CSCF;

当ServerAssignmentType为UNREGISTERED_USER时,HSS将用户注册状态改为未注册(Unregistered),通过SAA消息向S-CSCF返回所请求读取的业务数据;When the ServerAssignmentType is UNREGISTERED_USER, the HSS changes the user registration status to unregistered (Unregistered), and returns the requested service data to the S-CSCF through the SAA message;

当ServerAssignmentType为TIMEOUT_DEREGISTRATION、USER_DEREGISTRATION或ADMINISTRATIVE_DEREGISTRATION时,HSS将用户状态改为注销(Not Registered),并向S-CSCF返回SAA消息;When ServerAssignmentType is TIMEOUT_DEREGISTRATION, USER_DEREGISTRATION or ADMINISTRATIVE_DEREGISTRATION, HSS changes the user status to logout (Not Registered), and returns SAA message to S-CSCF;

当ServerAssignmentType为TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME、USER_DEREGISTRATION_STORE_SERVER_NAME时,HSS将用户状态改为未注册(Unregistered),保存服务器地址(Server Name),并向S-CSCF返回SAA消息;When ServerAssignmentType is TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME, USER_DEREGISTRATION_STORE_SERVER_NAME, HSS changes the user status to unregistered (Unregistered), saves the server address (Server Name), and returns SAA message to S-CSCF;

当rverAssignmentType为AUTHENTICATION_FAILURE或AUTHENTICATION_TIMEOUT时,HSS将清除用户的鉴权等待标志(Pending Flag),将用户状态改为注销(Not Registered),并向S-CSCF返回SAA消息;When rverAssignmentType is AUTHENTICATION_FAILURE or AUTHENTICATION_TIMEOUT, HSS will clear the user's authentication pending flag (Pending Flag), change the user status to logout (Not Registered), and return SAA message to S-CSCF;

当ServerAssignmentType为DEREGISTRATION_TOO_MUCH_DATA时,HSS将用户状态改为注销(Not Registered),并向S-CSCF返回SAA消息。When the ServerAssignmentType is DEREGISTRATION_TOO_MUCH_DATA, the HSS changes the user status to Not Registered, and returns the SAA message to the S-CSCF.

现有的第三代合作组织(3GPP)TS29.228v6.5.0协议大致描述了在ServerAssignmentType不同取值时,SAR消息应该带有的IMPI和IMPU的数目。The existing 3rd Generation Partnership Project (3GPP) TS29.228v6.5.0 protocol roughly describes the number of IMPI and IMPU that the SAR message should carry when the ServerAssignmentType takes different values.

3GPP TS29.228v6.5.0协议规定:在ServerAssignmentType参数为TIMEOUT_DEREGISTRATION、USER_DEREGISTRATION或ADMINISTRATIVE_DEREGISTRATION时,SAR消息中可含有多个IMPU,其余情况下SAR消息能且只能含有一个IMPU。在注销的某些情况下,SAR消息中不包含IMPI时,必须包含IMPU。当S-CSCF能够得到IMPI时,应该在SAR消息中带有IMPI,协议特别指出在ServerAssignmentType等于UNREGISTERED_USER时,SAR消息中可以不包含IMPI。在ServerAssignmentType为TIMEOUT_DEREGISTRATION、USER_DEREGISTRATION或ADMINISTRATIVE_DEREGISTRATION的情况下,当SAR消息中不包含IMPU时,必须包含IMPI。The 3GPP TS29.228v6.5.0 protocol stipulates that when the ServerAssignmentType parameter is TIMEOUT_DEREGISTRATION, USER_DEREGISTRATION or ADMINISTRATIVE_DEREGISTRATION, the SAR message can contain multiple IMPUs, and in other cases the SAR message can only contain one IMPU. In some cases of deregistration, the IMPU must be included when the IMPI is not included in the SAR message. When the S-CSCF can obtain the IMPI, it shall include the IMPI in the SAR message. The protocol specifically points out that when the ServerAssignmentType is equal to UNREGISTERED_USER, the SAR message may not include the IMPI. When the ServerAssignmentType is TIMEOUT_DEREGISTRATION, USER_DEREGISTRATION or ADMINISTRATIVE_DEREGISTRATION, the IMPI must be included when the IMPU is not included in the SAR message.

上述方案中,没有清晰地描述SAR消息中对IMPI、IMPU的存在性的约束。当SAR消息中的参数ServerAssignmentType取值为REGISTRATION或RE REGISTRATION、UNREGISTERED USER、NO_ASSIGNMENT、AUTHENTICATION_FAILURE、AUTHENTICATION_TIMEOUT时,上述方案规定了对IMPU存在性的约束,即能且只能含有一个IMPU,却没有明确对IMPI存在性的约束,只是说明如果S-CSCF能够获得IMPI,就必须在SAR消息中带有IMPI,且在ServerAssignmentType取值为UNREGISTERED_USER时SAR消息可以不包含IMPI。当SAR消息中的参数ServerAssignmentType取值为TIMEOUT_DEREGISTRATION或USER_DEREGISTRATION、DEREGI-STRATION_TOO_MUCH_DATA、ADMINISTRATIVE_DEREGISTRATION时,上述方案规定,如果SAR消息不包含IMPU,则必须包含IMPI。但对IMPU是否必须存在及存在几个没有明确规定。对ServerAssignmentType取值为TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME或USER_DEREGISTRATION_STORE_SERVER_NAME的情况,上述方案没有做出任何关于IMPI以及IMPU的约束。In the above solutions, the constraints on the existence of IMPI and IMPU in the SAR message are not clearly described. When the value of the parameter ServerAssignmentType in the SAR message is REGISTRATION or RE REGISTRATION, UNREGISTERED USER, NO_ASSIGNMENT, AUTHENTICATION_FAILURE, AUTHENTICATION_TIMEOUT, the above scheme stipulates the constraint on the existence of IMPU, that is, it can contain only one IMPU, but does not specify the IMPU The existence constraint only means that if the S-CSCF can obtain the IMPI, it must carry the IMPI in the SAR message, and the SAR message may not contain the IMPI when the value of ServerAssignmentType is UNREGISTERED_USER. When the value of the parameter ServerAssignmentType in the SAR message is TIMEOUT_DEREGISTRATION or USER_DEREGISTRATION, DEREGI-STRATION_TOO_MUCH_DATA, or ADMINISTRATIVE_DEREGISTRATION, the above scheme stipulates that if the SAR message does not contain IMPU, it must contain IMPI. However, there is no clear regulation on whether the IMPU must exist and how many exist. For the case where ServerAssignmentType is TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME or USER_DEREGISTRATION_STORE_SERVER_NAME, the above solution does not impose any constraints on IMPI and IMPU.

由于没有对SAR消息中IMPI和IMPU的存在性进行约束,从而给HSS处理SAR消息带来了困难。如果HSS不能获得正确数目的用户标识,将无法进一步进行S-CSCF通过SAR消息请求的用户状态更新等操作。Because there is no restriction on the existence of IMPI and IMPU in the SAR message, it brings difficulties for the HSS to process the SAR message. If the HSS cannot obtain the correct number of user IDs, it will not be able to perform further operations such as user status update requested by the S-CSCF through the SAR message.

发明内容Contents of the invention

有鉴于此,本发明提出了一种HSS对用户标识存在性进行约束的方法及系统,用以保证HSS能够获得正确数目的用户标识,进行后续处理。In view of this, the present invention proposes a method and system for the HSS to restrict the existence of user IDs, so as to ensure that the HSS can obtain the correct number of user IDs for subsequent processing.

根据上述目的,本发明提供了一种HSS对用户标识存在性进行约束的方法,该方法预先在HSS上设置用于保存操作类型与用户标识数目对应关系的用户标识存在性约束表,该方法还进一步包括:According to the above purpose, the present invention provides a method for the HSS to restrict the existence of user IDs. In this method, a user ID existence constraint table for storing the corresponding relationship between the operation type and the number of user IDs is set on the HSS in advance. The method also Further includes:

A.接收到S-CSCF发送来的SAR消息后,HSS判断所述SAR消息中的用户标识数目是否与所述用户标识存在性约束表中对应于所述SAR消息中操作类型的用户标识数目相符,如果是则执行步骤B,否则执行步骤C;A. After receiving the SAR message sent by the S-CSCF, the HSS judges whether the number of user IDs in the SAR message matches the number of user IDs corresponding to the operation type in the SAR message in the user ID existence constraint table , if yes, go to step B, otherwise go to step C;

B.HSS根据SAR消息中的操作类型进行相应操作,并向S-CSCF返回SAA消息,结束本流程;B. The HSS performs corresponding operations according to the operation type in the SAR message, and returns the SAA message to the S-CSCF to end this process;

C.HSS向S-CSCF返回表示错误的SAA消息。C. The HSS returns an error SAA message to the S-CSCF.

当SAR消息中的用户标识包括多于一个私有用户标识IMPI时,所述步骤C为:HSS向S-CSCF返回表示参数过多的SAA消息。When the user identification in the SAR message includes more than one private user identification IMPI, the step C is: the HSS returns an SAA message indicating too many parameters to the S-CSCF.

当SAR消息中的用户标识不包括IMPI和公有用户标识IMPU时,所述步骤C为:HSS向S-CSCF返回表示用户标识缺失的SAA消息。When the user ID in the SAR message does not include the IMPI and the public user ID IMPU, the step C is: the HSS returns an SAA message indicating that the user ID is missing to the S-CSCF.

步骤B之前进一步包括:在SAR消息中的用户标识包括多个IMPU时,HSS根据预先保存的IMPI与IMPU的关联关系判断所述多个IMPU是否与同一个IMPI关联,如果是则执行步骤B,否则向S-CSCF返回表示用户标识不匹配的SAA消息。Before step B, it further includes: when the user identifier in the SAR message includes multiple IMPUs, the HSS judges whether the multiple IMPUs are associated with the same IMPU according to the pre-saved association relationship between IMPIs and IMPUs, and if so, execute step B, Otherwise, return the SAA message indicating that the user IDs do not match to the S-CSCF.

步骤B进一步包括以下步骤:当所述SAR消息中的用户标识包括IMPI时,HSS将所述IMPI打包进所述向S-CSCF返回的SAA消息中;当所述SAR消息中的用户标识不包括IMPI时,HSS根据SAR消息中的IMPU以及预先保存的IMPI与IMPU的关联关系检索出与所述IMPU关联的IMPI,并将所述IMPI中的任意一个打包进所述向S-CSCF返回的SAA消息中。Step B further includes the following steps: when the user identifier in the SAR message includes IMPI, the HSS packs the IMPI into the SAA message returned to the S-CSCF; when the user identifier in the SAR message does not include When IMPI, the HSS retrieves the IMPI associated with the IMPU according to the IMPU in the SAR message and the pre-saved relationship between the IMPU and the IMPU, and packs any one of the IMPIs into the SAA returned to the S-CSCF in the news.

所述用户标识存在性约束表中保存的操作类型与用户标识数据对应关系为:取数据NO_ASSIGNMENT、注册REGISTRATION、重注册RE_REGISTRATION、鉴权失败AUTHENTICATION_FAILURE、鉴权超时AUTHENTICATION_TIMEOUT分别与一个IMPU和一个IMPI对应;用户做被叫注册UNREGISTERED_USER与一个IMPU和IMPI缺失、或一个IMPU和一个IMPI对应;超时注销TIMEOUT_DEREGISTRATION、用户注销USER_DEREGISTRATION、超时注销并保存服务器地址TIMEOUTDEREGISTRATION_STORE_SERVER_NAME、用户注销并保存服务器地址USER_DEREGISTRATION_STORE_SERVER_NAME、控制台注销ADMINISTRATIVE_DEREGISTRATION、数据过多注销DEREGISTRATION_TOO_MUCH_DATA分别与一个IMPU和一个IMPI、或多个IMPU和一个IMPI,或IMPU缺失和一个IMPI对应。The corresponding relationship between the operation type stored in the user identification existence constraint table and the user identification data is: fetching data NO_ASSIGNMENT, registering REGISTRATION, re-registering RE_REGISTRATION, authentication failure AUTHENTICATION_FAILURE, and authentication overtime AUTHENTICATION_TIMEOUT are respectively corresponding to an IMPU and an IMPI; When the user registers as called, UNREGISTERED_USER corresponds to the absence of an IMPU and IMPI, or an IMPU corresponds to an IMPI; timeout logout TIMEOUT_DEREGISTRATION, user logout USER_DEREGISTRATION, timeout logout and save server address TIMEOUTDEREGISTERED_STORE_SERVER_NAME, user logout and save server address USER_DEREGISTRATION_STORE_SERVER_NAME, console logout ADMINISTRATI Too much data cancellation DEREGISTRATION_TOO_MUCH_DATA corresponds to one IMPU and one IMPI, or multiple IMPUs and one IMPI, or missing IMPU and one IMPI.

本发明还提供了一种可用于HSS对用户标识存在性进行约束的系统,该系统包括接口单元、约束表单元、存在性检查单元、SAR消息处理单元,其中,接口单元,分别与存在性检查单元和SAR消息处理单元相连接,用于接收S-CSCF发送来的SAR消息并将所述SAR消息转发给存在性检查单元,以及发送存在性检查单元和SAR消息处理单元向S-CSCF返回SAA消息;约束表单元,与存在性检查单元相连接,用于保存预先设置的操作类型与用户标识数目对应关系的用户标识存在性约束表,以及向存在性检查单元提供所述用户标识存在性约束表;存在性检查单元,用于判断所述SAR消息中的用户标识数目是否与所述约束表单元提供的用户标识存在性约束表中对应于所述SAR消息中操作类型的用户标识数目相符,并在是的情况下将所述SAR消息转发给SAR消息处理单元,否则通过接口单元向S-CSCF返回表示错误的SAA消息;SAR消息处理单元,用于根据从存在性检查单元转发过来的SAR消息中的操作类型进行相应操作,并通过接口单元向S-CSCF返回SAA消息。The present invention also provides a system that can be used for HSS to restrict the existence of user identifiers. The system includes an interface unit, a constraint table unit, an existence checking unit, and a SAR message processing unit. The unit is connected with the SAR message processing unit for receiving the SAR message sent by the S-CSCF and forwarding the SAR message to the existence checking unit, and sending the existence checking unit and the SAR message processing unit to return the SAA to the S-CSCF Message: Constraint table unit, connected with the existence check unit, used to save the user identification existence constraint table of the corresponding relationship between the preset operation type and the number of user identifications, and provide the existence check unit with the user identification existence constraint Table; an existence checking unit, used to judge whether the number of user identifications in the SAR message matches the number of user identifications corresponding to the operation type in the SAR message in the user identification existence constraint table provided by the constraint table unit, And in the case of yes, the SAR message is forwarded to the SAR message processing unit, otherwise an SAA message indicating an error is returned to the S-CSCF through the interface unit; the SAR message processing unit is used to forward the SAR message from the existence checking unit The operation type in the message performs the corresponding operation, and returns the SAA message to the S-CSCF through the interface unit.

该系统进一步包括与SAR消息处理单元连接的记录单元,用于预先保存IMPI与IMPU的关联关系,并向SAR处理单元提供所述关联关系;所述SAR消息处理单元进一步包括IMPI插入模块,用于在所述SAR消息处理单元向S-CSCF返回的SAA消息中插入IMPI,当所述SAR消息中的用户标识包括IMPI时,IMPI插入模块将所述IMPI打包进所述SAA消息中;当所述SAR消息中的用户标识不包括IMPI时,IMPI插入模块根据SAR消息中的IMPU以及所述记录单元提供的IMPI与IMPU的关联关系检索出与所述IMPU关联的IMPI,并将所述IMPI中的任意一个打包进所述SAA消息中。The system further includes a recording unit connected to the SAR message processing unit, used to pre-save the association relationship between IMPI and IMPU, and provide the association relationship to the SAR processing unit; the SAR message processing unit further includes an IMPI insertion module for Insert IMPI into the SAA message returned by the SAR message processing unit to the S-CSCF, when the user identifier in the SAR message includes IMPI, the IMPI insertion module packs the IMPI into the SAA message; when the When the user identifier in the SAR message does not include IMPI, the IMPI inserting module retrieves the IMPI associated with the IMPU according to the IMPU in the SAR message and the association relationship between the IMPI and the IMPU provided by the recording unit, and inserts the IMPI in the IMPI Either one is packaged into the SAA message.

该系统进一步包括记录单元和匹配性检查单元,其中,记录单元与匹配性检查单元相连接,用于预先保存IMPI与IMPU的关联关系,并向匹配性检查单元提供所述关联关系;匹配性检查单元,连接于存在性检查单元和SAR消息处理单元之间,并且还与接口单元、记录单元相连接,用于在所述存在性检查单元转发给SAR消息处理单元的SAR消息中的用户标识包括多个IMPU时,根据所述记录单元提供的IMPI与IMPU的关联关系,判断所述SAR消息中的IMPU是否与同一个IMPI关联,如果是则将所述SAR消息转发给SAR消息处理单元,否则通过接口单元向S-CSCF返回表示用户标识不匹配的SAA消息。The system further includes a recording unit and a matching checking unit, wherein the recording unit is connected to the matching checking unit for pre-saving the association relationship between the IMPI and the IMPU, and providing the matching relationship to the matching checking unit; the matching checking The unit is connected between the existence checking unit and the SAR message processing unit, and is also connected with the interface unit and the recording unit, and is used for the user identification in the SAR message that the existence checking unit forwards to the SAR message processing unit includes When there are multiple IMPUs, judge whether the IMPU in the SAR message is associated with the same IMPU according to the association relationship between the IMPI and the IMPU provided by the recording unit, if so, forward the SAR message to the SAR message processing unit, otherwise The interface unit returns to the S-CSCF an SAA message indicating that the user IDs do not match.

从上述方案中可以看出,由于本发明预先设置了用于保存操作类型与用户标识数目对应关系的用户标识存在性约束表,在接收到SAR消息后,判断所述SAR消息中的用户标识数目是否与所述用户标识存在性约束表中对应于所述SAR消息中操作类型的用户标识数目相符,如果相符则进行SAR消息请求的相应操作,否则向S-CSCF返回表示错误的SAA消息。本发明在HSS端对SAR消息中的用户标识进行了约束,使得HSS能够根据正确的SAR消息完成相应的操作。本发明弥补了现有3GPP有关协议中的缺点,并且具有实施方便的优点。As can be seen from the above scheme, since the present invention pre-sets the user identification existence constraint table for storing the corresponding relationship between the operation type and the number of user identifications, after receiving the SAR message, judge the number of user identifications in the SAR message Whether it is consistent with the number of user identifications corresponding to the operation type in the SAR message in the user identification existence constraint table, if they match, perform the corresponding operation requested by the SAR message, otherwise return an SAA message indicating an error to the S-CSCF. The invention restricts the user identification in the SAR message at the HSS end, so that the HSS can complete corresponding operations according to the correct SAR message. The invention makes up for the shortcomings in the existing 3GPP related protocols, and has the advantage of convenient implementation.

附图说明Description of drawings

图1为IMS域中用户标识的关系示意图;FIG. 1 is a schematic diagram of the relationship between user identifiers in the IMS domain;

图2为根据本发明的方法的流程示意图;Fig. 2 is a schematic flow sheet of the method according to the present invention;

图3为根据本发明的系统的结构示意图。Fig. 3 is a schematic structural diagram of the system according to the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,以下举实施例对本发明进一步详细说明。In order to make the purpose, technical solution and advantages of the present invention clearer, the following examples are given to further describe the present invention in detail.

本发明预先在HSS上设置了用于保存操作类型与用户标识数目对应关系的用户标识存在性约束表,在接收到S-CSCF发送来的SAR消息后,HSS判断所述SAR消息中的用户标识数目是否与所述用户标识存在性约束表中对应于所述SAR消息中操作类型的用户标识数目相符,如果是则根据SAR消息中的操作类型进行相应操作,并向S-CSCF返回SAA消息;否则向S-CSCF返回表示错误的SAA消息。The present invention pre-sets on the HSS a user identification existence constraint table for storing the corresponding relationship between the operation type and the number of user identifications, and after receiving the SAR message sent by the S-CSCF, the HSS judges the user identification in the SAR message Whether the number matches the number of user identifications corresponding to the operation type in the SAR message in the user identification existence constraint table, if yes, perform corresponding operations according to the operation type in the SAR message, and return the SAA message to the S-CSCF; Otherwise, an SAA message indicating an error is returned to the S-CSCF.

参照图2,本实施例的流程包括以下步骤:Referring to Fig. 2, the flow process of this embodiment includes the following steps:

步骤201,预先在HSS设置用户标识存在性约束表,该用户标识存在性约束表中保存了ServerAssignmentType与用户标识IMPI、IMPU数目的对应关系,所述对应关系明确了SAR消息中应该携带IMPI和IMPU的原则。该原则如下:Step 201, pre-setting the user identification existence constraint table in the HSS, the user identification existence constraint table saves the corresponding relationship between ServerAssignmentType and user identification IMPI, IMPU number, and the corresponding relationship specifies that IMPI and IMPU should be carried in the SAR message the rules. The principle is as follows:

1、用户注册或重注册时,即ServerAssignmentType为REGISTRATION或RE_REGISTRATION时,IMPI和IMPU必须完备且关联。也就是说,此时SAR消息中必须同时携带IMPI和IMPU,并且两者关联。1. When a user registers or re-registers, that is, when the ServerAssignmentType is REGISTRATION or RE_REGISTRATION, the IMPI and IMPU must be complete and associated. That is to say, at this time, the SAR message must carry both the IMPI and the IMPU, and the two must be associated.

2、用户注销时,即ServerAssignmentType为USER_DEREGISTRATION、USER_DEREGISTRATION_STORE_SERVER_NAME、TIMEOUT_DEREGISTRATION、TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME、ADMINISTRATIVE_DEREGISTRATION或DEREGISTRATION_TOO_MUCH_DATA时,SAR消息可以单独携带IMPI,用以注销所有和该IMPI关联的IMPU;SAR消息也可以同时携带IMPI和与其关联的一个或多个IMPU,用以注销该SAR消息中的IMPU;但是,SAR消息不可以单独携带IMPU。2、用户注销时,即ServerAssignmentType为USER_DEREGISTRATION、USER_DEREGISTRATION_STORE_SERVER_NAME、TIMEOUT_DEREGISTRATION、TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME、ADMINISTRATIVE_DEREGISTRATION或DEREGISTRATION_TOO_MUCH_DATA时,SAR消息可以单独携带IMPI,用以注销所有和该IMPI关联的IMPU;SAR消息也可以同时携带IMPI和与其关联One or more IMPUs in the SAR message are used to deregister the IMPUs in the SAR message; however, the SAR message cannot carry the IMPUs alone.

3、用户鉴权失败注销时,即ServerAssignmentType为AUTHENTICATION_FAILURE或AUTHENTICATION_TIMEOUT时,SAR消息中的IMPI和IMPU必须完备且关联,即SAR消息中的用户标识必须包括IMPI和IMPU,而且两者必须是关联的。3. When the user authentication fails to log out, that is, when the ServerAssignmentType is AUTHENTICATION_FAILURE or AUTHENTICATION_TIMEOUT, the IMPI and IMPU in the SAR message must be complete and associated, that is, the user ID in the SAR message must include IMPI and IMPU, and the two must be associated.

4、用户做被叫注册时,即ServerAssignmentType为UNREGISTERED_USER时,SAR消息可以单独携带IMPU,此时HSS任选一个和此IMPU关联的IMPI进行处理,置IMPI-IMPU的状态为未注册(Unregistered),并在SAA消息中下发选中的IMPI;SAR消息也可以同时携带IMPI和IMPU,所述IMPI和IMPU必须关联。4. When the user registers as a called party, that is, when the ServerAssignmentType is UNREGISTERED_USER, the SAR message can carry an IMPU alone. At this time, the HSS selects an IMPI associated with this IMPU for processing, and sets the status of the IMPI-IMPU as Unregistered. And send the selected IMPI in the SAA message; the SAR message can also carry the IMPI and IMPU at the same time, and the IMPI and IMPU must be associated.

5、用户已经注册读取相关业务数据时,即ServerAssignmentType为NO_ASSIGNMENT时,SAR消息中的IMPI和IMPU必须完备且关联,即SAR消息中的用户标识必须包括IMPI和IMPU,而且两者必须是关联的。5. When the user has registered to read relevant business data, that is, when the ServerAssignmentType is NO_ASSIGNMENT, the IMPI and IMPU in the SAR message must be complete and associated, that is, the user ID in the SAR message must include IMPI and IMPU, and the two must be associated .

6、在任何情况下,如果SAR消息中携带有IMPI,那么该SAR消息只可以携带一个IMPI。换言之,SAR消息中的用户标识只能不包含IMPI,或者包含一个IMPI。6. In any case, if the SAR message carries an IMPI, the SAR message can only carry one IMPI. In other words, the user identifier in the SAR message can only contain no IMPI, or contain one IMPI.

根据上述原则,设置了如表2所示的用户标识存在性约束表,该表中保存了ServerAssignmentType不同取值时,ServerAssignmentType与IMPI、IMPU数目的对应关系。例如当ServerAssignmentType取值为REGISTRATION时,与其对应的是一个IMPI以及一个IMPU。According to the above principles, the user identification existence constraint table shown in Table 2 is set, which stores the corresponding relationship between ServerAssignmentType and the number of IMPI and IMPU when ServerAssignmentType takes different values. For example, when the value of ServerAssignmentType is REGISTRATION, it corresponds to an IMPI and an IMPU.

当然也可以根据其他类似的原则设置其他对应关系的用户标识存在性约束表,这是本领域技术人员可以理解和实现的。Of course, user identification existence constraint tables of other corresponding relationships can also be set according to other similar principles, which can be understood and realized by those skilled in the art.

Figure A20051008902300131
Figure A20051008902300131

表2  SAR消息中用户标识存在性约束表Table 2 User ID Existence Constraint Table in SAR Message

根据表2内容可见,用户标识存在性约束表中保存的操作类型与用户标识数据对应关系为:取数据NO_ASSIGNMENT、注册REGISTRATION、重注册RE_REGISTRATION、鉴权失败AUTHENTICATION_FAILURE、鉴权超时AUTHENTICATION_TIMEOUT分别与一个IMPU和一个IMPI对应;用户做被叫注册UNREGISTERED_USER与一个IMPU和IMPI缺失、或一个IMPU和一个IMPI对应;超时注销TIMEOUT_DEREGISTRATION、用户注销USER_DEREGISTRATION、超时注销并保存服务器地址TIMEOUTDEREGISTRATION_STORE_SERVER_NAME、用户注销并保存服务器地址USER_DEREGISTRATION_STORE_SERVER_NAME、控制台注销ADMINISTRATIVE_DEREGISTRATION、数据过多注销DEREGISTRATION_TOO_MUCH_DATA分别与一个IMPU和一个IMPI、或多个IMPU和一个IMPI,或IMPU缺失和一个IMPI对应。According to the content in Table 2, the corresponding relationship between the operation type stored in the user identification existence constraint table and the user identification data is as follows: data fetch NO_ASSIGNMENT, registration REGISTRATION, re-registration RE_REGISTRATION, authentication failure AUTHENTICATION_FAILURE, authentication timeout AUTHENTICATION_TIMEOUT and an IMPU and Corresponding to one IMPI; the user is called to register UNREGISTERED_USER and an IMPU and IMPI are missing, or an IMPU and an IMPI correspond; timeout logout TIMEOUT_DEREGISTRATION, user logout USER_DEREGISTRATION, timeout logout and save server address TIMEOUTDEREGISTERATION_STORE_SERVER_NAME, user logout and save server address USER_DEREGISTRATION_STORE_SERVER_NAME, control Deregistration of ADMINISTRATIVE_DEREGISTRATION and deregistration of too much data DEREGISTRATION_TOO_MUCH_DATA correspond to one IMPU and one IMPI, or multiple IMPUs and one IMPI, or missing IMPUs and one IMPI.

步骤202,HSS在接收到S-CSCF发送来的SAR消息后,根据SAR消息中的ServerAssignmentType取值在用户标识存在性约束表中查到对应的用户标识数目,判断SAR消息中的用户标识IMPI和IMPU的数目是否与所查到的用户标识数目相符,如果是,则执行步骤203,否则执行步骤204。Step 202: After receiving the SAR message sent by the S-CSCF, the HSS finds the corresponding number of user identifications in the user identification existence constraint table according to the value of ServerAssignmentType in the SAR message, and judges the user identification IMPI and Whether the number of IMPUs matches the found number of user identifications, if yes, go to step 203, otherwise go to step 204.

步骤203,HSS根据SAR消息中ServerAssignmentType进行相应的操作,并向S-CSCF返回SAA消息。该步骤中HSS根据ServerAssignmentType进行操作的过程与现有技术中HSS正确处理SAR消息请求操作的过程是一样的,这里不再赘述。In step 203, the HSS performs corresponding operations according to the ServerAssignmentType in the SAR message, and returns the SAA message to the S-CSCF. The process in which the HSS operates according to the ServerAssignmentType in this step is the same as the process in which the HSS correctly processes the SAR message request operation in the prior art, and will not be repeated here.

在SAA消息中需要携带IMPI,当所述SAR消息中携带IMPI时,HSS将所述IMPI打包进所述向S-CSCF返回的SAA消息中;当所述SAR消息中没有携带IMPI时,HSS根据SAR消息中的IMPU在记录中检索出关联的IMPI,如果只有一个IMPI,则将该IMPI打包进SAA消息,如果有多个IMPI,则任选一个打包进SAA消息。所述记录,即现有技术中所述的HSS中保存有IMPI与IMPU的关联关系以及与各IMPI-IMPU对应的用户注册状态的记录。The SAA message needs to carry the IMPI. When the SAR message carries the IMPI, the HSS packs the IMPI into the SAA message returned to the S-CSCF; when the SAR message does not carry the IMPI, the HSS according to The IMPU in the SAR message retrieves the associated IMPI from the record. If there is only one IMPI, the IMPI is packaged into the SAA message. If there are multiple IMPIs, one is selected and packaged into the SAA message. The records, that is, the records of the association relationship between IMPI and IMPU and the user registration status corresponding to each IMPI-IMPU are stored in the HSS described in the prior art.

进一步,在执行SAR消息请求的操作之前,如果SAR消息中的用户标识包含多个IMPU,HSS还可以根据上述记录中的IMPI与IMPU的关联关系,判断SAR消息中的IMPU是否与同一个IMPI关联,如果是则执行SAR消息请求的操作,否则返回携带错误码DIAMETER_ERRORIDENTITIES_DONT_MATCH的SAA消息,该错误码表示用户标识不匹配。Further, before performing the operation requested by the SAR message, if the user identifier in the SAR message contains multiple IMPUs, the HSS can also judge whether the IMPU in the SAR message is associated with the same IMPU according to the association relationship between the IMPI and the IMPU in the above record , if yes, perform the operation requested by the SAR message, otherwise return the SAA message carrying the error code DIAMETER_ERRORIDENTITIES_DONT_MATCH, the error code indicates that the user ID does not match.

步骤204,HSS不执行SAR消息请求的操作,向S-CSCF返回表示错误的SAA消息。In step 204, the HSS does not execute the operation requested by the SAR message, and returns an SAA message indicating an error to the S-CSCF.

例如:当SAR消息中带多个IMPI时,HSS向S-CSCF返回携带错误码DIAMETER_AVP_OCCURS_TOO_MANY_TIMES的SAA消息,该错误码表示参数过多。当SAR消息中没有携带IMPI和IMPU时,HSS向S-CSCF返回携带错误码DIAMETER_MISSING_USER_ID的SAA消息,该错误码表示用户标识缺失。For example: when the SAR message carries multiple IMPIs, the HSS returns the SAA message carrying the error code DIAMETER_AVP_OCCURS_TOO_MANY_TIMES to the S-CSCF, which indicates that there are too many parameters. When the SAR message does not carry the IMPI and IMPU, the HSS returns to the S-CSCF the SAA message carrying the error code DIAMETER_MISSING_USER_ID, which indicates that the user ID is missing.

具体例如,当SAR消息中ServerAssignmentType为REGISTRATION,并且其中的用户标识包含一个IMPU和两个IMPI时,而用户标识存在性约束表中与REGISTRATION对应的用户标识数目是一个IMPU和一个IMPI,那么HSS判断出该SAR消息中的用户标识数目与用户标识存在性约束表中与REGISTRATION对应的用户标识数目不相符,则HSS不执行SAR消息请求的操作,并向S-CSCF返回表示错误的SAA消息。由于该SAR消息的用户标识包含了两个IMPI,所以在该SAA消息中会携带错误码DIAMETER_AVP_OCCURS_TOO_MANY_TIMES。Specifically, for example, when the ServerAssignmentType in the SAR message is REGISTRATION, and the user ID in it contains one IMPU and two IMPIs, and the number of user IDs corresponding to REGISTRATION in the user ID existence constraint table is one IMPU and one IMPI, then the HSS judges If the number of user IDs in the SAR message does not match the number of user IDs corresponding to REGISTRATION in the user ID existence constraint table, the HSS does not perform the operation requested by the SAR message, and returns an error SAA message to the S-CSCF. Since the user ID of the SAR message contains two IMPIs, the SAA message will carry the error code DIAMETER_AVP_OCCURS_TOO_MANY_TIMES.

参考图3,根据本发明的对用户标识存在性进行约束的系统包括接口单元、约束表单元、记录单元、存在性检查单元和SAR消息处理单元。其中,接口单元与存在性检查单元、SAR消息处理单元相连接;存在性检查单元与接口单元、约束表单元以及SAR消息处理单元相连接;记录单元与SAR消息处理单元相连接。Referring to FIG. 3 , the system for restricting the existence of user IDs according to the present invention includes an interface unit, a constraint table unit, a recording unit, an existence checking unit and a SAR message processing unit. Wherein, the interface unit is connected with the existence checking unit and the SAR message processing unit; the existence checking unit is connected with the interface unit, the constraint table unit and the SAR message processing unit; the recording unit is connected with the SAR message processing unit.

其中,约束表单元中预先设置了用于保存操作类型与用户标识IMPI、IMPU数目对应关系的用户标识存在性约束表,并且约束表用于向存在性检查单元提供所述用户标识存在性约束表。记录单元中预先保存有IMPI与IMPU的关联关系,以及与各IMPI-IMPU对应的用户注册状态,并且记录单元与现有技术中一样向SAR消息处理单元提供所述用户注册状态。接口单元用于接收来自S-CSCF的SAR消息,并将其转发给存在性检查单元,接口单元还用于向SAR发送HSS返回的SAA消息。存在性检查单元用于判断该SAR消息中的用户标识数目是否与所述约束表单元提供的用户标识存在性约束表中对应于所述SAR消息中操作类型的用户标识数目相符,并在相符的情况下将SAR消息转发给SAR消息处理单元,否则通过接口单元向S-CSCF返回表示错误的SAA消息。SAR消息处理单元,用于根据从存在性检查单元转发过来的SAR消息中的ServerAssignmentType进行相应操作,并通过接口单元向S-CSCF返回SAA消息,所述操作过程与现有技术中HSS正确处理SAR消息请求操作的过程是一样的,这里不再赘述。Wherein, the constraint table unit is preset with a user identifier presence constraint table for storing the corresponding relationship between the operation type and the user identifier IMPI and IMPU numbers, and the constraint table is used to provide the presence check unit with the user identifier presence constraint table . The association relationship between IMPI and IMPU, and the user registration status corresponding to each IMPI-IMPU are stored in the recording unit in advance, and the recording unit provides the user registration status to the SAR message processing unit as in the prior art. The interface unit is used to receive the SAR message from the S-CSCF and forward it to the existence checking unit, and the interface unit is also used to send the SAA message returned by the HSS to the SAR. The existence checking unit is used to determine whether the number of user identifications in the SAR message is consistent with the number of user identifications corresponding to the operation type in the SAR message in the user identification existence constraint table provided by the constraint table unit, and in the matching In the case, the SAR message is forwarded to the SAR message processing unit; otherwise, an SAA message indicating an error is returned to the S-CSCF through the interface unit. The SAR message processing unit is used to perform corresponding operations according to the ServerAssignmentType in the SAR message forwarded from the existence checking unit, and return the SAA message to the S-CSCF through the interface unit, and the operation process is the same as the HSS in the prior art to correctly process the SAR The process of the message request operation is the same and will not be repeated here.

如图3所示,该系统还可以进一步包括连接于存在性检查单元和SAR消息处理单元之间的匹配性检查单元,该匹配性检查单元还与接口单元和记录单元相连接,匹配性检查单元用于在存在性检查单元转发给SAR消息处理单元的SAR消息中的用户标识包括多个IMPU时,根据预先保存在所述记录单元中的IMPI与IMPU的关联关系,判断该SAR消息中的多个IMPU是否与同一个IMPI关联,如果是则将该SAR消息转发给SAR消息处理单元,否则通过接口单元向S-CSCF返回携带错误码DIAMETER_ERROR_IDENTITIES_DONT_MATCH的SAA消息。As shown in Figure 3, the system can further include a matching checking unit connected between the existence checking unit and the SAR message processing unit, the matching checking unit is also connected with the interface unit and the recording unit, the matching checking unit When the user identifier in the SAR message forwarded by the existence checking unit to the SAR message processing unit includes multiple IMPUs, judge the multiple IMPUs in the SAR message according to the association relationship between the IMPI and the IMPUs pre-stored in the recording unit. Whether two IMPUs are associated with the same IMPI, if so, forward the SAR message to the SAR message processing unit, otherwise return the SAA message carrying the error code DIAMETER_ERROR_IDENTITIES_DONT_MATCH to the S-CSCF through the interface unit.

上述SAR消息处理单元中还可以进一步包括IMPI插入单元,用于在SAR消息处理单元产生的SAA消息中插入用户标识IMPI。当所述SAR消息中携带IMPI时,IMPI插入单元将所述IMPI打包进向S-CSCF返回的SAA消息中;当所述SAR消息中没有携带IMPI时,IMPI插入单元根据IMPI消息中的IMPU以及记录单元提供的IMPI与IMPU的关联关系检索出对应的IMPI,如果只有一个IMPI,则将该IMPI打包进SAA消息,如果有多个IMPI,则任选一个打包进SAA消息中。The SAR message processing unit may further include an IMPI inserting unit, configured to insert the user identifier IMPI into the SAA message generated by the SAR message processing unit. When the IMPI is carried in the SAR message, the IMPI insertion unit packs the IMPI into the SAA message returned to the S-CSCF; when the IMPI is not carried in the SAR message, the IMPI insertion unit according to the IMPU and The corresponding IMPI is retrieved from the association relationship between the IMPI and the IMPU provided by the recording unit. If there is only one IMPI, the IMPI is packaged into the SAA message. If there are multiple IMPIs, one is selected and packaged into the SAA message.

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

Claims (9)

1、一种归属签约用户服务器HSS对用户标识存在性进行约束的方法,其特征在于,该方法预先在HSS上设置用于保存操作类型与用户标识数目对应关系的用户标识存在性约束表,该方法还进一步包括:1. A method for the home subscriber server HSS to restrict the existence of user identifications, characterized in that the method pre-sets on the HSS a user identification existence constraint table for storing the corresponding relationship between the operation type and the number of user identifications, the The method further includes: A.接收到服务呼叫会话功能实体S-CSCF发送来的用户注册/注销请求SAR消息后,HSS判断所述SAR消息中的用户标识数目是否与所述用户标识存在性约束表中对应于所述SAR消息中操作类型的用户标识数目相符,如果是则执行步骤B,否则执行步骤C;A. After receiving the user registration/deregistration request SAR message sent by the serving call session function entity S-CSCF, the HSS judges whether the number of user identifications in the SAR message corresponds to the number in the user identification existence constraint table The number of user identifications of the operation type in the SAR message matches, if so, perform step B, otherwise perform step C; B.HSS根据SAR消息中的操作类型进行相应操作,并向S-CSCF返回用户注册/注销应答SAA消息,结束本流程;B. The HSS performs corresponding operations according to the operation type in the SAR message, and returns the user registration/deregistration response SAA message to the S-CSCF, and ends this process; C.HSS向S-CSCF返回表示错误的SAA消息。C. The HSS returns an error SAA message to the S-CSCF. 2、根据权利要求1所述的方法,其特征在于,2. The method of claim 1, wherein: 当SAR消息中的用户标识包括多于一个私有用户标识IMPI时,所述步骤C为:HSS向S-CSCF返回表示参数过多的SAA消息。When the user identification in the SAR message includes more than one private user identification IMPI, the step C is: the HSS returns an SAA message indicating too many parameters to the S-CSCF. 3、根据权利要求1所述的方法,其特征在于,3. The method of claim 1, wherein: 当SAR消息中的用户标识不包括IMPI和公有用户标识IMPU时,所述步骤C为:HSS向S-CSCF返回表示用户标识缺失的SAA消息。When the user ID in the SAR message does not include the IMPI and the public user ID IMPU, the step C is: the HSS returns an SAA message indicating that the user ID is missing to the S-CSCF. 4、根据权利要求1所述的方法,其特征在于,步骤B之前进一步包括:在SAR消息中的用户标识包括多个IMPU时,HSS根据预先保存的IMPI与IMPU的关联关系判断所述多个IMPU是否与同一个IMPI关联,如果是则执行步骤B,否则向S-CSCF返回表示用户标识不匹配的SAA消息。4. The method according to claim 1, further comprising: before step B, when the user identifier in the SAR message includes multiple IMPUs, the HSS judges the multiple Whether the IMPU is associated with the same IMPI, if yes, execute step B, otherwise return to the S-CSCF an SAA message indicating that the user IDs do not match. 5、根据权利要求1所述的方法,其特征在于,步骤B进一步包括以下步骤:5. The method according to claim 1, wherein step B further comprises the following steps: 当所述SAR消息中的用户标识包括IMPI时,HSS将所述IMPI打包进所述向S-CSCF返回的SAA消息中;When the user identifier in the SAR message includes IMPI, the HSS packs the IMPI into the SAA message returned to the S-CSCF; 当所述SAR消息中的用户标识不包括IMPI时,HSS根据SAR消息中的IMPU以及预先保存的IMPI与IMPU的关联关系检索出与所述IMPU关联的IMPI,并将所述IMPI中的任意一个打包进所述向S-CSCF返回的SAA消息中。When the user identifier in the SAR message does not include an IMPI, the HSS retrieves the IMPI associated with the IMPU according to the IMPU in the SAR message and the pre-saved association between the IMPI and the IMPU, and sends any one of the IMPI Packed into the SAA message returned to the S-CSCF. 6、根据权利要求1所述的方法,其特征在于,所述用户标识存在性约束表中保存的操作类型与用户标识数据对应关系为:6. The method according to claim 1, wherein the corresponding relationship between the operation type and user identification data stored in the user identification existence constraint table is as follows: 取数据NO_ASSIGNMENT、注册REGISTRATION、重注册RE_REGISTRATION、鉴权失败AUTHENTICATION_FAILURE、鉴权超时AUTHENTICATION_TIMEOUT分别与一个IMPU和一个IMPI对应;Fetching data NO_ASSIGNMENT, registering REGISTRATION, re-registering RE_REGISTRATION, authentication failure AUTHENTICATION_FAILURE, authentication timeout AUTHENTICATION_TIMEOUT correspond to one IMPU and one IMPI respectively; 用户做被叫注册UNREGISTERED_USER与一个IMPU和IMPI缺失、或一个IMPU和一个IMPI对应;The user registers as a called UNREGISTERED_USER corresponding to a missing IMPU and IMPI, or an IMPU and an IMPI; 超时注销TIMEOUT_DEREGISTRATION、用户注销USER_DEREGISTRATION、超时注销并保存服务器地址TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME、用户注销并保存服务器地址USER_DEREGISTRATION_STORE_SERVER_NAME、控制台注销ADMINISTRATIVE_DEREGISTRATION、数据过多注销DEREGISTRATION_TOO_MUCH_DATA分别与一个IMPU和一个IMPI、或多个IMPU和一个IMPI,或IMPU缺失和一个IMPI对应。Timeout logout TIMEOUT_DEREGISTRATION, user logout USER_DEREGISTRATION, timeout logout and save server address TIMEOUT_DEREGISTRATION_STORE_SERVER_NAME, user logout and save server address USER_DEREGISTRATION_STORE_SERVER_NAME, console logout ADMINISTRATIVE_DEREGISTRATION, too much data logout DEREGISTRATION_TOO_MUCH_DATAIM with one or more IMPU and one IMPU Or a missing IMPU corresponds to an IMPI. 7、一种可用于HSS对用户标识存在性进行约束的系统,其特征在于,该系统包括接口单元、约束表单元、存在性检查单元、SAR消息处理单元,7. A system that can be used for HSS to restrict the existence of user identification, characterized in that the system includes an interface unit, a constraint table unit, an existence checking unit, and a SAR message processing unit, 其中,接口单元,分别与存在性检查单元和SAR消息处理单元相连接,用于接收S-CSCF发送来的SAR消息并将所述SAR消息转发给存在性检查单元,以及发送存在性检查单元和SAR消息处理单元向S-CSCF返回SAA消息;Wherein, the interface unit is respectively connected with the existence checking unit and the SAR message processing unit, and is used for receiving the SAR message sent by the S-CSCF and forwarding the SAR message to the existence checking unit, and sending the existence checking unit and The SAR message processing unit returns the SAA message to the S-CSCF; 约束表单元,与存在性检查单元相连接,用于保存预先设置的操作类型与用户标识数目对应关系的用户标识存在性约束表,以及向存在性检查单元提供所述用户标识存在性约束表;The constraint table unit is connected with the existence check unit, and is used to save the user identification existence constraint table of the preset operation type and the user identification number corresponding relationship, and provide the user identification existence constraint table to the existence check unit; 存在性检查单元,用于判断所述SAR消息中的用户标识数目是否与所述约束表单元提供的用户标识存在性约束表中对应于所述SAR消息中操作类型的用户标识数目相符,并在是的情况下将所述SAR消息转发给SAR消息处理单元,否则通过接口单元向S-CSCF返回表示错误的SAA消息;an existence checking unit, configured to determine whether the number of user identifications in the SAR message matches the number of user identifications corresponding to the operation type in the SAR message in the user identification existence constraint table provided by the constraint table unit, and If yes, the SAR message is forwarded to the SAR message processing unit, otherwise, an SAA message indicating an error is returned to the S-CSCF through the interface unit; SAR消息处理单元,用于根据从存在性检查单元转发过来的SAR消息中的操作类型进行相应操作,并通过接口单元向S-CSCF返回SAA消息。The SAR message processing unit is configured to perform corresponding operations according to the operation type in the SAR message forwarded from the existence checking unit, and return the SAA message to the S-CSCF through the interface unit. 8、根据权利要求7所述的系统,其特征在于,该系统进一步包括与SAR消息处理单元连接的记录单元,用于预先保存IMPI与IMPU的关联关系,并向SAR处理单元提供所述关联关系;8. The system according to claim 7, characterized in that the system further comprises a recording unit connected to the SAR message processing unit, used to pre-save the association relationship between IMPI and IMPU, and provide the association relationship to the SAR processing unit ; 所述SAR消息处理单元进一步包括IMPI插入模块,用于在所述SAR消息处理单元向S-CSCF返回的SAA消息中插入IMPI,当所述SAR消息中的用户标识包括IMPI时,IMPI插入模块将所述IMPI打包进所述SAA消息中;当所述SAR消息中的用户标识不包括IMPI时,IMPI插入模块根据SAR消息中的IMPU以及所述记录单元提供的IMPI与IMPU的关联关系检索出与所述IMPU关联的IMPI,并将所述IMPI中的任意一个打包进所述SAA消息中。The SAR message processing unit further includes an IMPI insertion module, configured to insert an IMPI into the SAA message returned by the SAR message processing unit to the S-CSCF, and when the user identifier in the SAR message includes IMPI, the IMPI insertion module will The IMPI is packaged into the SAA message; when the user identifier in the SAR message does not include the IMPI, the IMPI insertion module retrieves the IMPI according to the IMPU in the SAR message and the association relationship between the IMPI and the IMPU provided by the recording unit. The IMPI associated with the IMPU, and pack any one of the IMPIs into the SAA message. 9、根据权利要求7所述的系统,其特征在于,该系统进一步包括记录单元和匹配性检查单元,9. The system according to claim 7, characterized in that the system further comprises a recording unit and a matching checking unit, 其中,记录单元与匹配性检查单元相连接,用于预先保存IMPI与IMPU的关联关系,并向匹配性检查单元提供所述关联关系;Wherein, the recording unit is connected with the matching checking unit, and is used to pre-save the association relationship between the IMPI and the IMPU, and provide the matching relationship to the matching checking unit; 匹配性检查单元,连接于存在性检查单元和SAR消息处理单元之间,并且还与接口单元、记录单元相连接,用于在所述存在性检查单元转发给SAR消息处理单元的SAR消息中的用户标识包括多个IMPU时,根据所述记录单元提供的IMPI与IMPU的关联关系,判断所述SAR消息中的IMPU是否与同一个IMPI关联,如果是则将所述SAR消息转发给SAR消息处理单元,否则通过接口单元向S-CSCF返回表示用户标识不匹配的SAA消息。The matching checking unit is connected between the existence checking unit and the SAR message processing unit, and is also connected with the interface unit and the recording unit, and is used for the SAR message forwarded to the SAR message processing unit by the existence checking unit When the user identification includes multiple IMPUs, according to the association relationship between the IMPI and the IMPU provided by the recording unit, it is judged whether the IMPU in the SAR message is associated with the same IMPU, and if so, the SAR message is forwarded to the SAR message for processing unit, otherwise the interface unit returns an SAA message indicating that the user IDs do not match to the S-CSCF.
CNB2005100890235A 2005-08-03 2005-08-03 Method and system for restraining user mark beingness Expired - Fee Related CN100499657C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100890235A CN100499657C (en) 2005-08-03 2005-08-03 Method and system for restraining user mark beingness

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100890235A CN100499657C (en) 2005-08-03 2005-08-03 Method and system for restraining user mark beingness

Publications (2)

Publication Number Publication Date
CN1852289A true CN1852289A (en) 2006-10-25
CN100499657C CN100499657C (en) 2009-06-10

Family

ID=37133757

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100890235A Expired - Fee Related CN100499657C (en) 2005-08-03 2005-08-03 Method and system for restraining user mark beingness

Country Status (1)

Country Link
CN (1) CN100499657C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008083587A1 (en) * 2006-12-29 2008-07-17 Huawei Technologies Co., Ltd. Method and system and network element for service processing after network element data invalidated and occurring fault
WO2009092310A1 (en) * 2008-01-18 2009-07-30 Huawei Technologies Co., Ltd. Service provision method and device for a user
CN101026648B (en) * 2007-04-05 2010-07-21 华为技术有限公司 Communication service management method, tool and device
CN103607411A (en) * 2013-12-02 2014-02-26 中国联合网络通信集团有限公司 Method and device for processing IMS user identification

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008083587A1 (en) * 2006-12-29 2008-07-17 Huawei Technologies Co., Ltd. Method and system and network element for service processing after network element data invalidated and occurring fault
US9706019B2 (en) 2006-12-29 2017-07-11 Huawei Technologies Co., Ltd. Method, system, and network element for service processing after data of network element is invalid or network element fails
CN101026648B (en) * 2007-04-05 2010-07-21 华为技术有限公司 Communication service management method, tool and device
WO2009092310A1 (en) * 2008-01-18 2009-07-30 Huawei Technologies Co., Ltd. Service provision method and device for a user
CN103607411A (en) * 2013-12-02 2014-02-26 中国联合网络通信集团有限公司 Method and device for processing IMS user identification

Also Published As

Publication number Publication date
CN100499657C (en) 2009-06-10

Similar Documents

Publication Publication Date Title
US8412192B2 (en) Apparatus, and associated method, for providing an instance identifier to a network database node of a mobile network
CN100551146C (en) A method, system and device for realizing user identity association
KR100909533B1 (en) User identities
DK2461617T3 (en) Method, system and apparatus for communication
CN1735875A (en) Method and apparatus for resolving protocol-agnostic schemes in an internet protocol multimedia subsystem
CN1781331A (en) Multiple registration of a subscriber in a mobile communication system
CN1898986A (en) User registration in a communication system
CN1643967A (en) A method of registering and deregistering a user
CN101039269A (en) Method of providing access to an IP multimedia subsystem
US20110145388A1 (en) Method, system, and device for realizing registration mechanism of ip multimedia subsystem
CN1802016A (en) Method for carrying out authentication on user terminal
CN101043526A (en) Method, apparatus and system for processing message in IMS network
CN101079818A (en) Message forwarding method and network device
AU2009278901A1 (en) Method and apparatus for creating an instance ID based on a unique device identifier
CN1805450A (en) Method of implementing data synchronization between server and client in DNS mechanism
CN102025683B (en) Service access method and system of user in access gateway control function entity
CN1777322A (en) Method for treating user of updating IP address at network side
CN1859426A (en) Method for connecting multimedia subsystem of circuit field terminal and its realizing device
CN1852289A (en) Method and system for restraining user mark beingness
CN101170748B (en) A method for using public identifier in IP multimedia subsystem
US7949767B2 (en) System and method for multiple address of record registration using a single explicit SIP request
CN1968267A (en) Server positioning function network element and application method thereof
KR101341703B1 (en) Method for processing register request, network element, and communication system
CN1852143A (en) Method for processing user's registering/log-out request message
US9094422B2 (en) System and method for multiple address of record deregistration using a single SIP request

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090610

Termination date: 20120803