CN102118879A - Method and device for controlling connection session of data service - Google Patents
Method and device for controlling connection session of data service Download PDFInfo
- Publication number
- CN102118879A CN102118879A CN2009101136879A CN200910113687A CN102118879A CN 102118879 A CN102118879 A CN 102118879A CN 2009101136879 A CN2009101136879 A CN 2009101136879A CN 200910113687 A CN200910113687 A CN 200910113687A CN 102118879 A CN102118879 A CN 102118879A
- Authority
- CN
- China
- Prior art keywords
- connection session
- data service
- described connection
- ocs
- session
- 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.)
- Pending
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
- Computer And Data Communications (AREA)
Abstract
Description
技术领域technical field
本发明涉及通信技术领域,尤其涉及数据业务的连接会话控制方法及装置。The invention relates to the technical field of communication, in particular to a connection session control method and device for data services.
背景技术Background technique
近年来,随着电信业务发展,尤其是3G设备的推广应用,数据业务被应用的越来越多,使用方式也趋向于大容量、长连接,其中以宽带上网业务为典型。统计数据显示用户每天平均在网时长为8小时,忙时在线用户比例往往超过20%。在这样的一种趋势下,对OCS(Online Charging System,融合计费系统)数据业务的处理性能要求也越来越高。In recent years, with the development of telecommunication services, especially the popularization and application of 3G equipment, more and more data services have been applied, and the usage methods tend to be large-capacity and long-term connections, among which broadband Internet access services are typical. Statistics show that users spend an average of 8 hours online every day, and the proportion of online users often exceeds 20% during busy hours. Under such a trend, the processing performance requirements for OCS (Online Charging System, integrated charging system) data services are also getting higher and higher.
OCS解决方案下的数据业务系统一般包括如下几部分网元:The data service system under the OCS solution generally includes the following network elements:
OCS:基于多种网络、多种计费模式的融合计费系统;OCS: an integrated billing system based on multiple networks and multiple billing modes;
AAA(Authentication,Authorization,and Accounting,认证、授权和记账):数据业务中实现认证、授权和记账功能的网元模块;AAA (Authentication, Authorization, and Accounting, authentication, authorization, and accounting): a network element module that implements authentication, authorization, and accounting functions in data services;
ASN-GW(Access Service Network-GateWay,接入服务网络网关):底层的核心网接入网关;ASN-GW (Access Service Network-GateWay, access service network gateway): the underlying core network access gateway;
BS(Base Station,基站);底层基站;BS (Base Station, base station); bottom base station;
Fixed(固定终端)、PDA(Personal Digital Assistant,个人数码助理):终端用户的一种。Fixed (fixed terminal), PDA (Personal Digital Assistant, personal digital assistant): a type of end user.
现有技术提供一种OCS数据业务计费方案,即“AAA+OCS”解决方案。该方案中,OCS提供实时计费功能。AAA实现数据业务的认证、授权和记账功能,AAA把ASN-GW发送来的计费消息翻译成DCC(Diameter Credit Control,Diamete信用控制协议)消息发送给OCS进行计费。该方案中OCS数据业务计费流程如下:The prior art provides an OCS data service charging solution, that is, an "AAA+OCS" solution. In this solution, the OCS provides the real-time billing function. AAA realizes the authentication, authorization and accounting functions of data services. AAA translates the charging message sent by ASN-GW into a DCC (Diameter Credit Control, Diameter Credit Control Protocol) message and sends it to OCS for charging. The OCS data service billing process in this solution is as follows:
ASN-GW发送一个业务请求到AAA,AAA接收到该业务请求后发送一个CCR(Credit Control Request,信用控制请求)请求到OCS;ASN-GW sends a service request to AAA, and AAA sends a CCR (Credit Control Request, credit control request) request to OCS after receiving the service request;
OCS对接收到的CCR请求进行批价,并从用户账户里面作资金预留,然后对该CCR请求发送一个回复消息CCA(Credit Control Answer,信用控制应答);OCS approves the received CCR request, reserves funds from the user account, and then sends a reply message CCA (Credit Control Answer) to the CCR request;
AAA收到CCA后,AAA授权终端用户使用相应服务,并产生立即信用控制请求;After AAA receives the CCA, AAA authorizes the end user to use the corresponding service and generates an immediate credit control request;
当用户预留资金快要用完或者要过期时,AAA再次向OCS发送新的预留请求,OCS再次从用户账户内作资金预留,并将相应的额度回复给AAA,AAA对用户预留金额作相应的更新;When the user's reserved funds are about to run out or expire, AAA sends a new reservation request to OCS again, OCS reserves funds from the user's account again, and replies the corresponding amount to AAA, and AAA reserves the amount for the user update accordingly;
当用户账户用完或者启用的服务要结束时,AAA发送一个终止信用控制服务的消息到OCS,消息中包含标识服务终止时间的AVP(Attribute Value Pairs,属性-值对);When the user account is used up or the enabled service is about to end, AAA sends a message to terminate the credit control service to OCS, and the message contains AVP (Attribute Value Pairs, attribute-value pair) identifying the service termination time;
OCS需要把预留的剩余金额,返还到用户账户,并进行扣款。OCS needs to return the remaining reserved amount to the user's account and make a deduction.
发明人在实现本发明的过程中,发现上述现有技术存在如下不足:In the process of realizing the present invention, the inventor found that the above-mentioned prior art has the following deficiencies:
在现有的数据业务计费方案实现中,对大容量长连接的数据业务来说,在线呼叫经常在一段时间内不产生流量或产生极小流量,譬如机器中木马或病毒情况下不停产生小流量。但AAA、OCS为了保持呼叫,却需要在长时间保持所有连接会话,这样对系统性能消耗极其严重,大大限制了对数据业务的支持能力,不利于大容量长连接数据业务的应用。In the implementation of existing data service billing schemes, for data services with large capacity and long connections, online calls often generate no traffic or very small traffic for a period of time, such as Trojan horses or viruses in the machine. small traffic. However, in order to maintain calls, AAA and OCS need to maintain all connection sessions for a long time, which consumes a lot of system performance, greatly limits the ability to support data services, and is not conducive to the application of large-capacity long-connection data services.
发明内容Contents of the invention
本发明实施例提供一种数据业务的连接会话控制方法,用以减少对系统内存的占用消耗,该方法包括:An embodiment of the present invention provides a method for controlling a connection session of a data service to reduce the occupation and consumption of system memory. The method includes:
当数据业务的连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,保存所述连接会话的相关信息,并释放所述连接会话占用的资源,使所述连接会话进入休眠状态。When the connection session of the data service does not generate billing traffic or the billing traffic generated is less than the threshold within the set duration, save the relevant information of the connection session, and release the resources occupied by the connection session, so that the connection session Go to sleep.
本发明实施例还提供一种数据业务的连接会话控制装置,用以减少对系统内存的占用消耗,该装置包括:The embodiment of the present invention also provides a connection session control device for data services, which is used to reduce the occupation and consumption of system memory, and the device includes:
保存模块,用于在数据业务的连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,保存所述连接会话的相关信息;The storage module is used to save the relevant information of the connection session of the data service when no charging traffic is generated or the generated charging traffic is less than a threshold within the set time period;
释放模块,用于在保存模块保存所述连接会话的相关信息后,释放所述连接会话占用的资源,使所述连接会话进入休眠状态。The release module is configured to release the resources occupied by the connection session after the storage module saves the relevant information of the connection session, so that the connection session enters a dormant state.
本发明实施例中,当数据业务的连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,保存所述连接会话的相关信息,并释放所述连接会话占用的资源,使所述连接会话进入休眠状态,可以减少数据业务对系统内存的占用消耗,提高数据业务性能,以及对数据业务的支持能力,有利于大容量长连接数据业务的应用。In the embodiment of the present invention, when the connection session of the data service generates no charging flow or the generated charging flow is less than the threshold within the set duration, save the relevant information of the connection session, and release the resources occupied by the connection session Putting the connection session into a dormant state can reduce the occupation and consumption of system memory by the data service, improve the performance of the data service, and support the data service, and is beneficial to the application of the large-capacity long-connection data service.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。在附图中:In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort. In the attached picture:
图1为本发明实施例中数据业务的连接会话控制方法流程图;FIG. 1 is a flow chart of a method for controlling a connection session of a data service in an embodiment of the present invention;
图2为本发明实施例中OCS触发数据业务的连接会话进入休眠状态的流程图;FIG. 2 is a flow chart of OCS triggering a connection session of a data service to enter a dormant state in an embodiment of the present invention;
图3为本发明实施例中数据业务的连接会话控制方法在一个具体实例中的处理流程图;FIG. 3 is a processing flowchart of a specific example of a method for controlling a connection session of a data service in an embodiment of the present invention;
图4为本发明实施例中数据业务的连接会话控制方法在一个具体实例中休眠会话的处理流程图;FIG. 4 is a flow chart of processing a dormant session in a specific example of a data service connection session control method in an embodiment of the present invention;
图5为本发明实施例中数据业务的连接会话控制方法在一个具体实例中激活会话的处理流程图;FIG. 5 is a flow chart of the process of activating a session in a specific example of the data service connection session control method in the embodiment of the present invention;
图6为本发明实施例中数据业务的连接会话控制装置的结构示意图;FIG. 6 is a schematic structural diagram of an apparatus for controlling a connection session of a data service in an embodiment of the present invention;
图7为本发明实施例中数据业务的连接会话控制装置为AAA时的具体结构示意图;FIG. 7 is a schematic diagram of a specific structure when the connection session control device for data services is AAA in an embodiment of the present invention;
图8为本发明实施例中数据业务的连接会话控制装置为AAA时的另一具体结构示意图;FIG. 8 is a schematic diagram of another specific structure when the device for controlling the connection session of the data service in the embodiment of the present invention is AAA;
图9为本发明实施例中图8所示装置的一个具体实例的结构示意图;Fig. 9 is a schematic structural diagram of a specific example of the device shown in Fig. 8 in an embodiment of the present invention;
图10为本发明实施例中图8所示装置的又一具体实例的结构示意图;Fig. 10 is a schematic structural diagram of another specific example of the device shown in Fig. 8 in the embodiment of the present invention;
图11为本发明实施例中数据业务的连接会话控制装置为OCS时的具体结构示意图;FIG. 11 is a schematic diagram of a specific structure when the connection session control device for a data service is an OCS in an embodiment of the present invention;
图12为本发明实施例中图11所示装置的一个具体实例的结构示意图;Fig. 12 is a schematic structural diagram of a specific example of the device shown in Fig. 11 in an embodiment of the present invention;
图13为本发明实施例中图11所示装置的又一具体实例的结构示意图。Fig. 13 is a schematic structural diagram of another specific example of the device shown in Fig. 11 in the embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚明白,下面结合附图对本发明实施例做进一步详细说明。在此,本发明的示意性实施例及其说明用于解释本发明,但并不作为对本发明的限定。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, the embodiments of the present invention will be further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments and descriptions of the present invention are used to explain the present invention, but not to limit the present invention.
如图1所示,本发明实施例中,数据业务的连接会话控制方法流程可以包括:As shown in FIG. 1, in the embodiment of the present invention, the flow of the connection session control method for data services may include:
步骤101、当数据业务的连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,保存该连接会话的相关信息;Step 101, when the connection session of the data service does not generate billing traffic or the billing traffic generated is less than a threshold within the set time period, save the relevant information of the connection session;
步骤102、释放该连接会话占用的资源,使该连接会话进入休眠状态。Step 102, release the resources occupied by the connection session, and make the connection session enter a dormant state.
由图1所示流程可以得知,本发明实施例中,当数据业务的连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,保存该连接会话的相关信息,并释放该连接会话占用的资源,使该连接会话进入休眠状态,可以减少数据业务对系统内存的占用消耗,提高数据业务性能,以及对数据业务的支持能力,有利于大容量长连接数据业务的应用。As can be seen from the flow shown in Figure 1, in the embodiment of the present invention, when the connection session of the data service does not generate billing traffic within the set duration or when the billing traffic generated is less than the threshold, the relevant information of the connection session is saved, And release the resources occupied by the connection session, so that the connection session enters a dormant state, which can reduce the consumption of system memory by data services, improve the performance of data services, and support capabilities for data services, which is conducive to the development of large-capacity long-connection data services application.
图1所示流程及其具体实施可由能够实现其功能的设备完成,比如AAA、或OCS,下面以AAA为例进行说明:The process shown in Figure 1 and its specific implementation can be completed by devices that can realize its functions, such as AAA or OCS. The following uses AAA as an example to illustrate:
具体实施时,在执行步骤101之前,还可以包括:AAA监控数据业务的连接会话;可以看到,通过监控并累积数据业务计费流量的大小,可以达到实时控制数据业务连接会话状态的目的。During specific implementation, before step 101 is executed, it may also include: AAA monitors the connection session of the data service; it can be seen that by monitoring and accumulating the size of the charging flow of the data service, the purpose of real-time control of the state of the data service connection session can be achieved.
一个实施例中,监控数据业务的连接会话,可具体实施为:实时扫描数据业务的连接会话的状态,累计在设定时长内数据业务的连接会话的计费流量。In one embodiment, the monitoring of the connection session of the data service may be specifically implemented as: scanning the status of the connection session of the data service in real time, and accumulating the billing traffic of the connection session of the data service within a set time period.
一个实施例中,当该连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,还可以通知融合计费系统OCS将所述连接会话进入休眠状态。具体可实施为:向OCS发送CCR消息,该CCR消息用于通知OCS触发该连接会话进入休眠状态。In an embodiment, when the connection session generates no charging traffic or the generated charging traffic is less than a threshold within the set time period, the converged charging system OCS may also be notified to put the connection session into a dormant state. Specifically, it may be implemented as: sending a CCR message to the OCS, where the CCR message is used to notify the OCS to trigger the connection session to enter a dormant state.
一个实施例中,在AAA保存数据业务的连接会话的相关信息之前,还可以包括:接收OCS发来的信用控制应答CCA消息,该CCA消息用于指示OCS根据CCR消息触发该连接会话进入休眠状态的结果;若该结果为OCS根据CCR消息成功触发该连接会话进入休眠状态,则AAA可以执行保存该连接会话的相关信息的操作。本发明实施例中,触发数据业务的连接会话进入休眠状态,包括:保存该连接会话的相关信息,释放该连接会话占用的资源,使该连接会话进入休眠状态。In one embodiment, before the AAA saves the relevant information of the connection session of the data service, it may also include: receiving a credit control response CCA message from the OCS, the CCA message is used to instruct the OCS to trigger the connection session to enter the dormant state according to the CCR message Result; if the result is that the OCS successfully triggers the connection session to enter the dormant state according to the CCR message, the AAA may perform an operation of saving the relevant information of the connection session. In the embodiment of the present invention, triggering the connection session of the data service to enter the dormant state includes: saving the relevant information of the connection session, releasing the resources occupied by the connection session, and making the connection session enter the dormant state.
具体实施时,对于处于休眠状态的数据业务连接会话,会将该连接会话的相关信息存放在物理存储介质中,而不继续存放在内存模块中;保存之后再释放该连接会话所占用的资源,譬如内存空间、会话号等。即,当接收到OCS发来的CCA消息后,判断OCS根据CCR消息数据业务的连接会话是否休眠成功,若成功则AAA保存该连接会话的相关信息,释放该连接会话占用的资源,使该连接会话进入休眠状态,保存该连接会话的相关信息,释放该连接会话所占用的资源,若不成功则可以等待下一次继续尝试休眠。During specific implementation, for a data service connection session in a dormant state, the relevant information of the connection session will be stored in the physical storage medium instead of being stored in the memory module; after saving, the resources occupied by the connection session will be released, For example, memory space, session number, etc. That is, after receiving the CCA message sent by the OCS, it is judged whether the connection session of the OCS according to the CCR message data service is dormant successfully. The session enters the dormant state, saves the relevant information of the connection session, and releases the resources occupied by the connection session. If it fails, it can wait for the next attempt to sleep.
一个实施例中,当接收到流量消费信息或数据业务的连接会话的累计计费流量大于阈值时,则可以向OCS发送激活该连接会话的激活请求。类似的,若后续接收到OCS返回的连接会话激活成功的响应消息时,AAA可以激活本地侧的连接会话。具体在进行会话激活时,可以从物理存储中读取所存放的该连接会话的相关信息,并加载到内存模块中,从而激活原本处于休眠状态的连接会话。In one embodiment, when the received traffic consumption information or the accumulative billed traffic of the connection session of the data service is greater than the threshold, an activation request for activating the connection session may be sent to the OCS. Similarly, the AAA may activate the connection session at the local side if it subsequently receives a response message indicating that the connection session is successfully activated returned by the OCS. Specifically, when the session is activated, the stored relevant information of the connection session can be read from the physical storage and loaded into the memory module, thereby activating the connection session that was originally in a dormant state.
通过休眠和激活数据业务连接会话的方式,可以解决长连接大容量使用数据业务时,因长时间保持会话带来的系统性能消耗严重的问题,从而减少大容量长连接数据业务对系统内存的占用消耗,提高数据业务性能,提高对于长连接数据业务的支持力度。By dormant and activating the data service connection session, it can solve the problem of serious system performance consumption caused by maintaining the session for a long time when the long-term connection and large-capacity data service are used, thereby reducing the occupation of the system memory by the large-capacity long-connection data service Consumption, improve data service performance, and improve support for long-connection data services.
具体实施时,实现CCR消息用于通知触发数据业务的连接会话进入休眠状态可以有多种方式,例如:可以包括:CCR消息中扩展有休眠通知字段,该休眠通知字段用于通知触发数据业务的连接会话进入休眠状态,例如:During specific implementation, there are many ways to realize that the CCR message is used to notify the connection session that triggers the data service to enter the dormant state. The connection session goes to sleep, for example:
在CCR消息中扩展休眠通知字段Dormancy-Message,该字段的取值含义可以是:Extend the dormancy notification field Dormancy-Message in the CCR message. The meaning of the value of this field can be:
0表示数据业务的连接会话处于激活状态;1表示数据业务的连接会话进入休眠状态。0 indicates that the connection session of the data service is active; 1 indicates that the connection session of the data service enters the dormant state.
通过扩展CCR消息,可以实现动态通知休眠连接会话,释放连接会话的相关资源,包括内存,对话号等资源,达到减少因保持长连接会话造成的内存损耗,从而提高支持长连接数据业务的性能。By extending the CCR message, the dormant connection session can be dynamically notified, and the related resources of the connection session, including memory, session number and other resources, can be released to reduce the memory loss caused by maintaining the long-term connection session, thereby improving the performance of supporting long-term connection data services.
除了扩展CCR消息,也可以通过监控固定时长内,是否上报计费请求消息来判断是否需通知触发数据业务的连接会话进入休眠状态。当固定时长内无计费请求消息上报则自动进入休眠状态,直到下次收到计费请求消息再激活会话,或者到消息超时再释放。In addition to extending the CCR message, it is also possible to determine whether the connection session that triggers the data service needs to be notified to enter the dormant state by monitoring whether the charging request message is reported within a fixed period of time. When there is no billing request message reported within a fixed period of time, it will automatically enter the dormant state, and the session will not be activated until the next billing request message is received, or released after the message times out.
具体实施时,实现CCA消息用于指示OCS根据CCR消息触发连接会话进入休眠状态的结果也可以有多种方式,例如,可以包括:CCA消息中扩展有休眠类型字段和休眠结果字段,该休眠类型字段用于指示OCS是否触发连接会话进入休眠状态,该休眠结果字段用于指示OCS是否成功触发连接会话进入休眠状态,例如:During specific implementation, there may be multiple ways to implement the CCA message to indicate that the OCS triggers the connection session to enter the dormant state according to the CCR message. For example, it may include: the CCA message is extended with a dormancy type field and a dormancy result field. The field is used to indicate whether the OCS triggers the connection session to enter the dormant state, and the dormancy result field is used to indicate whether the OCS successfully triggers the connection session to enter the dormant state, for example:
在CCA消息中扩展休眠类型字段:Extend the dormant type field in the CCA message:
Dormancy-Type,该字段的取值含义是:0表示数据业务的连接会话处于激活状态,1表示数据业务的连接会话处于休眠状态;Dormancy-Type, the meaning of the value of this field is: 0 indicates that the connection session of the data service is in the active state, and 1 indicates that the connection session of the data service is in the dormant state;
在CCA消息中扩展休眠结果字段:Extend the dormant result field in the CCA message:
Dormancy-Result,该字段的取值含义是:0表示数据业务的连接会话休眠失败,1表示数据业务的连接会话休眠成功。Dormancy-Result, the meaning of the value of this field is: 0 indicates that the connection session of the data service fails to dormant, and 1 indicates that the connection session of the data service does not dormant successfully.
下面再以OCS为例说明图1所示流程的具体实施:Next, take OCS as an example to illustrate the specific implementation of the process shown in Figure 1:
如图2所示,本例中OCS触发数据业务的连接会话进入休眠状态的流程可以包括:As shown in Figure 2, in this example, the process of OCS triggering the connection session of the data service to enter the dormant state may include:
步骤201、当数据业务的连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,接收AAA发来的CCR消息,该CCR消息用于通知触发数据业务的连接会话进入休眠状态;Step 201: When the connection session of the data service generates no billing traffic within the set time period or the billing traffic generated is less than the threshold, receive a CCR message from the AAA, which is used to notify the triggering of the connection session of the data service to enter dormant state;
步骤202、根据该CCR消息,保存该连接会话的相关信息,并释放该连接会话占用的资源,使该连接会话进入休眠状态。Step 202: According to the CCR message, save the relevant information of the connection session, and release the resources occupied by the connection session, so that the connection session enters a dormant state.
OCS在接收到CCR消息后,即触发数据业务的连接会话进入休眠状态,保存数据业务的连接会话的相关信息,释放数据业务的连接会话所占用的资源。After receiving the CCR message, the OCS triggers the connection session of the data service to enter a dormant state, saves the relevant information of the connection session of the data service, and releases the resources occupied by the connection session of the data service.
一个实施例中,根据CCR消息,触发本地侧的连接会话进入休眠状态之后,还可以包括:向AAA发送CCA消息,该CCA消息用于指示触发本地侧的连接会话进入休眠状态的结果。In an embodiment, after triggering the connection session on the local side to enter the dormant state according to the CCR message, the method may further include: sending a CCA message to the AAA, where the CCA message is used to indicate the result of triggering the connection session on the local side to enter the dormant state.
若后续接收到AAA发来的激活连接会话的激活请求,还可以根据激活请求,激活本地侧的休眠状态的连接会话。实施时可以包括:读取所保存的连接会话的相关信息,激活休眠状态的会话,从而启动后续的消息处理流程。If an activation request for activating the connection session is subsequently received from the AAA, the dormant connection session at the local side may also be activated according to the activation request. The implementation may include: reading the saved information about the connection session, activating the session in the dormant state, so as to start the subsequent message processing flow.
与图1所示流程类似,具体实施时,实现CCR消息用于通知触发数据业务的连接会话进入休眠状态可以有多种方式,例如:可以包括:CCR消息中扩展有休眠通知字段,该休眠通知字段用于通知触发数据业务的连接会话进入休眠状态。Similar to the process shown in Figure 1, during specific implementation, there may be multiple ways to realize that the CCR message is used to notify the connection session that triggers the data service to enter the dormant state, for example: it may include: the CCR message is extended with a dormancy notification field, and the dormancy notification The field is used to notify the connection session that triggers the data service to enter the dormant state.
实现CCA消息用于指示触发本地侧的连接会话进入休眠状态的结果也可以有多种方式,例如,可以包括:CCA消息中扩展有休眠类型字段和休眠结果字段,该休眠类型字段用于指示是否触发连接会话进入休眠状态,该休眠结果字段用于指示是否成功触发连接会话进入休眠状态。There may also be multiple ways to implement the CCA message to indicate the result of triggering the connection session on the local side to enter the sleep state. For example, it may include: the CCA message is extended with a sleep type field and a sleep result field, and the sleep type field is used to indicate whether The connection session is triggered to enter the dormant state, and the dormancy result field is used to indicate whether the connection session is successfully triggered to enter the dormant state.
下面以利用OCS和AAA实现上述数据业务的连接会话控制方法为例,说明本发明实施例方法的具体实施。The specific implementation of the method in the embodiment of the present invention will be described below by taking the connection session control method for realizing the above-mentioned data service by using OCS and AAA as an example.
图3示出了本例中数据业务的连接会话控制方法的处理流程,该处理流程可以包括:Fig. 3 shows the processing flow of the connection session control method of the data service in this example, and the processing flow may include:
步骤301、AAA接收到计费请求;Step 301, AAA receives a charging request;
步骤302、AAA向OCS发送CCR消息;Step 302, AAA sends a CCR message to the OCS;
步骤303、OCS接收到CCR消息后,进行批价处理,包括鉴权、反算等,并从用户账户里进行资金预留处理;Step 303: After receiving the CCR message, the OCS performs price approval processing, including authentication, reverse calculation, etc., and performs fund reservation processing from the user account;
步骤304、OCS向AAA返回CCA消息;Step 304, the OCS returns a CCA message to the AAA;
步骤305、AAA收到CCA消息后,授权终端用户使用相应服务,并产生立即信用控制请求,其中包括调用业务组件,并确定接续参数;Step 305: After receiving the CCA message, the AAA authorizes the terminal user to use the corresponding service, and generates an immediate credit control request, including invoking the service component and determining the connection parameters;
步骤306、AAA监控数据业务的连接会话;Step 306, AAA monitors the connection session of the data service;
步骤307、AAA确定数据业务的连接会话在设定时长内未产生流量消费、或累积计费流量小于阈值;Step 307, AAA determines that the connection session of the data service does not generate traffic consumption within the set time period, or the accumulated billing traffic is less than the threshold;
步骤308、AAA发送CCR消息给OCS,该CCR消息中携带信息知会OCS侧数据业务的连接会话可以进入休眠状态;Step 308, AAA sends a CCR message to the OCS, and the CCR message carries information to inform the OCS side that the connection session of the data service can enter a dormant state;
步骤309、OCS收到AAA发来的通知休眠会话的CCR消息后,触发数据业务的连接会话进入休眠状态;Step 309, after the OCS receives the CCR message notifying the dormant session from the AAA, triggers the connection session of the data service to enter the dormant state;
步骤310、OCS向AAA反馈CCA消息,告知休眠结果和休眠类型;Step 310, the OCS feeds back a CCA message to the AAA, notifying the dormancy result and dormancy type;
步骤311、AAA判断接收的CCA消息中的休眠结果,如果成功则触发AAA侧的数据业务连接会话也进入休眠状态,否则不进入,待下一次继续尝试休眠;Step 311, AAA judges the dormancy result in the received CCA message, if successful, triggers the data service connection session on the AAA side to also enter the dormant state, otherwise it does not enter, and continues to try dormancy next time;
步骤312、当用户预留资金快要用完或者要过期时,AAA接收到继续申请数据业务的请求;Step 312, when the funds reserved by the user are about to run out or expire, AAA receives a request to continue applying for data services;
步骤313、AAA根据接收的继续申请数据业务的请求中的申请计费信息,读取之前保存的数据业务连接会话的相关信息,激活该连接会话;Step 313, AAA reads the relevant information of the previously saved data service connection session according to the application charging information in the received request to continue to apply for the data service, and activates the connection session;
步骤314、AAA向OCS发送CCR消息,请求扣费;Step 314, AAA sends a CCR message to OCS, requesting deduction;
步骤315、OCS接收到AAA的扣费请求消息,读取之前保存的数据业务连接会话的相关信息,激活连接会话;Step 315, the OCS receives the AAA deduction request message, reads the previously saved information about the data service connection session, and activates the connection session;
步骤316、OCS进行批价处理,包括鉴权、反算等,并从用户账户里进行资金预留处理;Step 316, OCS performs price approval processing, including authentication, reverse calculation, etc., and performs fund reservation processing from the user account;
步骤317、OCS通过ACS将相应的额度回复给AAA;Step 317, OCS replies the corresponding amount to AAA through ACS;
步骤318、AAA继续监控数据业务的连接会话;Step 318, AAA continues to monitor the connection session of the data service;
步骤319、用户账户用完或者启用的服务要结束;Step 319, the user account is used up or the enabled service is about to be terminated;
步骤320、AAA通过CCR发送一个终止信用控制服务的消息到OCS;Step 320, AAA sends a message of terminating credit control service to OCS through CCR;
步骤321、OCS进行批价处理、入账处理,结束会话;Step 321, the OCS performs price approval processing and account processing, and ends the session;
步骤322、OCS返回CCA给AAA;Step 322, OCS returns CCA to AAA;
步骤323、AAA释放连接。Step 323, AAA releases the connection.
下面再举一例,分别说明数据业务的连接会话的休眠和激活过程。Another example is given below to illustrate the dormancy and activation processes of the connection session of the data service respectively.
本例中,仍利用OCS、AAA实现上述数据业务的连接会话控制方法,另外,本例中还在CCR消息中扩展休眠通知字段Dormancy-Message,该字段的取值含义是:0表示数据业务的连接会话处于激活状态;1表示数据业务的连接会话进入休眠状态;In this example, OCS and AAA are still used to implement the connection session control method of the above-mentioned data service. In addition, in this example, the dormancy notification field Dormancy-Message is also extended in the CCR message. The meaning of the value of this field is: 0 means the data service The connection session is active; 1 indicates that the connection session of the data service is in the dormant state;
在CCA消息中扩展休眠类型字段:Dormancy-Type,该字段的取值含义是:0表示数据业务的连接会话处于激活状态,1表示数据业务的连接会话处于休眠状态;Extend the dormancy type field in the CCA message: Dormancy-Type, the meaning of the value of this field is: 0 indicates that the connection session of the data service is in the active state, and 1 indicates that the connection session of the data service is in the dormant state;
在CCA消息中扩展休眠结果字段:Dormancy-Result,该字段的取值含义是:0表示数据业务的连接会话休眠失败,1表示数据业务的连接会话休眠成功。Extend the dormancy result field in the CCA message: Dormancy-Result, the meaning of the value of this field is: 0 indicates that the connection session of the data service fails to dormant, and 1 indicates that the connection session of the data service does not dormant successfully.
如图4所示,本例中数据业务的连接会话休眠处理流程可以包括:As shown in Figure 4, the connection session dormancy processing flow of the data service in this example may include:
步骤401、数据业务计费时,AAA监控当前计费会话的连接状态;
步骤402、无论当前会话采用按时长/流量/时长&流量监控方式,AAA都累积在预先设定的时长内,当前会话所产生的计费流量;Step 402, regardless of whether the current session is monitored by duration/flow/duration&flow, AAA is accumulated within the preset duration, and the billing traffic generated by the current session;
步骤403、判断当前预设时间内累积的计费流量等于0,或者小于一定的阈值(该阈值可在AAA上配置),如满足条件则执行步骤404,否则执行步骤405;
步骤404、发送CCR(update)消息,并在CCR消息中设置Dormancy-Message的值为1会话进入休眠状态,执行步骤406;
步骤405、在CCR消息中设置Dormancy-Message的值为0会话激活状态,或者不传该AVP;
步骤406、OCS系统接受到CCR消息,并进行处理;
步骤407、判断Dormancy-Message的值是否等于1会话进入休眠状态,如果等于1执行步骤409,否则执行步骤408;
步骤408、正常的CCR计费流程处理,正常返回CCA消息,该处理结束;
步骤409、OCS休眠会话,如果休眠成功,则执行步骤410,休眠失败执行步骤411;
步骤410、在CCA消息中Dormancy-Type=1会话休眠状态,Dormancy-Result=1会话休眠成功,执行步骤412;
步骤411、在CCA消息中Dormancy-Type=0会话激活状态,Dormancy-Result=0会话休眠失败;
步骤412、AAA接收到CCA消息,进行处理;
步骤413、判断Dormancy-Type=1会话休眠状态,Dormancy-Result=1会话休眠成功,如果满足则执行步骤414,否则执行步骤48;
步骤414、AAA休眠会话,等待会话激活,休眠流程结束。
如图5所示,本例中数据业务的连接会话激活流程可以包括:As shown in Figure 5, the connection session activation process of the data service in this example may include:
步骤501、数据业务计费时,AAA监控当前计费会话的连接状态;
步骤502、无论当前会话采用按时长/流量/时长&流量监控方式,AAA都累积在预先设定的时长内,当前会话所产生的计费流量;Step 502, regardless of whether the current session adopts the monitoring method by duration/flow/duration&flow, AAA is accumulated within the preset duration, and the billing traffic generated by the current session;
步骤503、判断当前预设时间内累积的计费流量是否大于阀值(该阀值可在AAA上配置),如满足条件则执行步骤504,否则执行步骤508;
步骤504、编码CCR(update)消息;
步骤505、在CCR消息中设置Dormancy-Message的值为0会话激活状态,并发送消息;
步骤506、OCS系统接受到CCR消息,并进行处理;
步骤507、判断Dormancy-Message的值是否等于0会话激活状态,如果等于0执行步骤509,否则执行步骤508;
步骤508、非会话激活CCR计费流程处理,正常返回CCA消息,该处理结束;
步骤509、OCS激活会话,如果激活成功,则执行步骤510,激活失败执行步骤511;
步骤510、在CCA消息中Dormancy-Type=0会话激活状态,Dormancy-Result=0会话休眠失败,执行步骤512;
步骤511、在CCA消息中Dormancy-Type=1会话休眠状态,Dormancy-Result=0会话休眠失败;
步骤512、AAA接收到CCA消息,进行处理;
步骤513、判断Dormancy-Type=0会话激活状态and Dormancy-Result=0会话休眠失败,如果满足则执行步骤514,不满足执行步骤515;
步骤514、AAA激活会话,激活流程结束;
步骤515、重试会话激活流程,直到最大次数或者失败释放会话,流程结束。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件完成,该程序可以存储于一计算机可读取存储介质中,该程序在执行时,可以包括上述实施例方法中的全部或部分步骤,该存储介质可以包括:ROM、RAM、磁盘、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. When the program is executed, it can Including all or part of the steps in the methods of the foregoing embodiments, the storage medium may include: ROM, RAM, magnetic disk, optical disk, and the like.
本发明实施例中还提供了一种数据业务的连接会话控制装置,如下面的实施例所述。由于该装置解决问题的原理与数据业务的连接会话控制方法相似,因此该装置的实施可以参见方法的实施,重复之处不再赘述。The embodiment of the present invention also provides a data service connection session control device, as described in the following embodiments. Since the problem-solving principle of the device is similar to the connection session control method of the data service, the implementation of the device can refer to the implementation of the method, and repeated descriptions will not be repeated.
如图6所示,本发明实施例中,数据业务的连接会话控制装置可以包括:As shown in Figure 6, in the embodiment of the present invention, the connection session control device for data services may include:
保存模块601,用于在数据业务的连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,保存该连接会话的相关信息;The saving
释放模块602,用于在保存模块保存该连接会话的相关信息后,释放该连接会话占用的资源,使该连接会话进入休眠状态。The
图6所示数据业务的连接会话装置在具体实现时,能够实现其功能的装置均可实施,比如该装置为AAA、或OCS,下面以该装置为AAA为例进行说明:When the connection session device of the data service shown in Figure 6 is implemented in practice, any device capable of realizing its function can be implemented. For example, the device is AAA or OCS. The following takes the device as AAA as an example to illustrate:
若该数据业务的连接会话控制装置为AAA,则如图7所示,在一个实施例中,数据业务的连接会话控制装置还可以包括:If the connection session control device for the data service is AAA, as shown in Figure 7, in one embodiment, the connection session control device for the data service may also include:
监控模块701,用于实时扫描所述连接会话的状态,累计在设定时长内所述连接会话产生的计费流量。The
另一个实施例中,如图8所示,数据业务的连接会话控制装置还可以包括:In another embodiment, as shown in FIG. 8, the device for controlling a connection session of a data service may further include:
第一发送模块801,用于在该连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,通知融合计费系统OCS将该连接会话进入休眠状态。当然,图7所示装置也可以包括第一发送模块801。The
第一发送模块801具体可用于:向OCS发送携带休眠通知字段的CCR消息,该休眠通知字段用于通知OCS触发该连接会话进入休眠状态。The
在一个实施例中,如图9所示,数据业务的连接会话控制装置还可以包括:In one embodiment, as shown in FIG. 9, the device for controlling a connection session of a data service may further include:
第一接收模块901,用于接收OCS发来的信用控制应答CCA消息,该CCA消息用于指示OCS根据CCR消息触发该连接会话进入休眠状态的结果;The
保存模块601具体可用于:在该结果为OCS根据该CCR消息成功触发该连接会话进入休眠状态时,执行所述保存该连接会话的相关信息的操作。The saving
另一个实施例中,如图10所示,数据业务的连接会话控制装置还可以包括:In another embodiment, as shown in FIG. 10 , the device for controlling a connection session of a data service may further include:
第一激活模块1001,用于在接收到流量消费信息或连接会话的累计计费流量大于阈值时,向OCS发送激活连接会话的激活请求。The
下面以数据业务的连接会话控制装置为OCS为例进行说明:The following takes the connection session control device of the data service as an example for description:
若数据业务的连接会话控制装置为OCS,则如图11所示,在一个实施例中,数据业务的连接会话控制装置还可以包括:If the connection session control device for the data service is an OCS, as shown in FIG. 11 , in one embodiment, the connection session control device for the data service may further include:
第二接收模块1101,用于在数据业务的连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,接收认证、授权和记账AAA发来的携带休眠通知字段的CCR消息,该休眠通知字段用于通知触发数据业务的连接会话进入休眠状态;The
保存模块602具体可以用于:根据休眠通知字段,执行保存该连接会话的相关信息的操作。The saving
如图12所示,一个实施例中,数据业务的连接会话控制还可以包括:As shown in Figure 12, in an embodiment, the connection session control of the data service may also include:
第二发送模块1201,用于向AAA发送CCA消息,该CCA消息用于指示触发本地侧的连接会话进入休眠状态的结果。The
如图13所示,一个实施例中,数据业务的连接会话控制装置还可以包括:As shown in FIG. 13, in an embodiment, the device for controlling a connection session of a data service may further include:
第二激活模块1301,用于接收AAA发来的激活连接会话的激活请求;根据该激活请求,激活本地侧的休眠状态的连接会话。The
本发明实施例中,当数据业务的连接会话在设定时长内无计费流量产生或产生的计费流量小于阈值时,保存所述连接会话的相关信息,并释放所述连接会话占用的资源,使所述连接会话进入休眠状态,可以减少数据业务对系统内存的占用消耗,提高数据业务性能,以及对数据业务的支持能力,有利于大容量长连接数据业务的应用。In the embodiment of the present invention, when the connection session of the data service generates no charging flow or the generated charging flow is less than the threshold within the set duration, save the relevant information of the connection session, and release the resources occupied by the connection session Putting the connection session into a dormant state can reduce the occupation and consumption of system memory by the data service, improve the performance of the data service, and support the data service, and is beneficial to the application of the large-capacity long-connection data service.
以上所述的具体实施例,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施例而已,并不用于限定本发明的保护范围,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The specific embodiments described above have further described the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above descriptions are only specific embodiments of the present invention and are not intended to limit the scope of the present invention. Protection scope, within the spirit and principles of the present invention, any modification, equivalent replacement, improvement, etc., shall be included in the protection scope of the present invention.
Claims (18)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101136879A CN102118879A (en) | 2009-12-31 | 2009-12-31 | Method and device for controlling connection session of data service |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2009101136879A CN102118879A (en) | 2009-12-31 | 2009-12-31 | Method and device for controlling connection session of data service |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102118879A true CN102118879A (en) | 2011-07-06 |
Family
ID=44217427
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2009101136879A Pending CN102118879A (en) | 2009-12-31 | 2009-12-31 | Method and device for controlling connection session of data service |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102118879A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103259742A (en) * | 2012-01-04 | 2013-08-21 | 国际商业机器公司 | Activity-based virtual machine availability in a networked computing environment |
CN103888230A (en) * | 2012-12-20 | 2014-06-25 | 中国电信股份有限公司 | Timer dynamic setting method and device |
CN104168665A (en) * | 2014-08-07 | 2014-11-26 | 华为软件技术有限公司 | Method for processing conversation service, OSC and PCRF solid |
CN108770053A (en) * | 2012-04-20 | 2018-11-06 | 高通股份有限公司 | The suspend mode being wirelessly connected is initiated earlier |
CN114364056A (en) * | 2021-12-28 | 2022-04-15 | 天翼物联科技有限公司 | Method, system, device and storage medium for controlling terminal LWM2M session |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1507204A (en) * | 2002-12-09 | 2004-06-23 | 华为技术有限公司 | A control method for network online users |
CN1898933A (en) * | 2003-10-21 | 2007-01-17 | 高通股份有限公司 | Methods and apparatus for network initiated data services |
WO2007116310A2 (en) * | 2006-04-07 | 2007-10-18 | Nokia Corporation | Managing connections in a mobile telecommunications network |
-
2009
- 2009-12-31 CN CN2009101136879A patent/CN102118879A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1507204A (en) * | 2002-12-09 | 2004-06-23 | 华为技术有限公司 | A control method for network online users |
CN1898933A (en) * | 2003-10-21 | 2007-01-17 | 高通股份有限公司 | Methods and apparatus for network initiated data services |
WO2007116310A2 (en) * | 2006-04-07 | 2007-10-18 | Nokia Corporation | Managing connections in a mobile telecommunications network |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103259742A (en) * | 2012-01-04 | 2013-08-21 | 国际商业机器公司 | Activity-based virtual machine availability in a networked computing environment |
CN103259742B (en) * | 2012-01-04 | 2016-12-28 | 国际商业机器公司 | The method and system controlled based on movable virtual machine availability is carried out in networked computing environment |
CN108770053A (en) * | 2012-04-20 | 2018-11-06 | 高通股份有限公司 | The suspend mode being wirelessly connected is initiated earlier |
CN103888230A (en) * | 2012-12-20 | 2014-06-25 | 中国电信股份有限公司 | Timer dynamic setting method and device |
CN103888230B (en) * | 2012-12-20 | 2017-05-31 | 中国电信股份有限公司 | timer dynamic setting method and device |
CN104168665A (en) * | 2014-08-07 | 2014-11-26 | 华为软件技术有限公司 | Method for processing conversation service, OSC and PCRF solid |
CN114364056A (en) * | 2021-12-28 | 2022-04-15 | 天翼物联科技有限公司 | Method, system, device and storage medium for controlling terminal LWM2M session |
CN114364056B (en) * | 2021-12-28 | 2023-08-29 | 天翼物联科技有限公司 | Control method, system, device and storage medium for LWM2M session of terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102835089B (en) | QoS for mobile device controls | |
US9066275B2 (en) | Method and system to improve device pinging | |
KR101844755B1 (en) | Terminate a charging session for an always on ip connectivity session | |
EP1662702B1 (en) | Call control with converged application server logic and gateway logic in IMS networks | |
CN102883464B (en) | Gx interface resource releasing method and device | |
US9521266B2 (en) | Charging method, authentication method, charging device, and authentication device | |
CN100466526C (en) | Credit control client, credit control server, billing system and billing method | |
CN102118879A (en) | Method and device for controlling connection session of data service | |
KR20140124411A (en) | Method and apparatus for setting up/releasing radio resource control connection between evolved node b base station and user equipment in communication system | |
CN101267480A (en) | Billing processing method, system and online billing system | |
US9800741B2 (en) | Charging method, charging device, charging system, and authentication device | |
WO2005083933A1 (en) | Method and systems for implementing data service prepayment in a cdma network | |
EP3849232B1 (en) | Method and device for processing gx session exception | |
CN107027109A (en) | A kind of method, Online Charging System and gateway for adjusting customer flow quota | |
CN106685672B (en) | An online billing method and device | |
CN102754490A (en) | Service processing method and device when user equipment is in ultra-low power consumption | |
CN107809551B (en) | Method for controlling processing load of telecommunication service and related device and system | |
CN108306744A (en) | Chargeable session management method and equipment | |
CN106454788A (en) | Method, system and device for realizing online charging | |
KR101652316B1 (en) | Roaming conrol method for reduction of roaming charge, roaming service apparatus and roaming terminal thereof | |
CN107040945A (en) | The QoS amending methods and mobility management entity device of EPC networks | |
CN102137379A (en) | Method and device for controlling charging flow | |
CN101415169A (en) | Method, equipment and system for processing charging | |
EP2706768B1 (en) | User transfer control method and service control point | |
CN101453724B (en) | Method and device for processing user billing information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110706 |