CN100531257C - Control method and system for preventing load from over loading in communication network - Google Patents
Control method and system for preventing load from over loading in communication network Download PDFInfo
- Publication number
- CN100531257C CN100531257C CNB2004101024160A CN200410102416A CN100531257C CN 100531257 C CN100531257 C CN 100531257C CN B2004101024160 A CNB2004101024160 A CN B2004101024160A CN 200410102416 A CN200410102416 A CN 200410102416A CN 100531257 C CN100531257 C CN 100531257C
- Authority
- CN
- China
- Prior art keywords
- control
- load
- call
- processor
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000004891 communication Methods 0.000 title claims abstract description 21
- 238000012545 processing Methods 0.000 claims abstract description 37
- 238000001914 filtration Methods 0.000 claims abstract description 28
- 230000008569 process Effects 0.000 claims description 17
- 238000005070 sampling Methods 0.000 claims description 13
- 238000004364 calculation method Methods 0.000 claims description 11
- 230000003993 interaction Effects 0.000 claims description 9
- 101000802640 Homo sapiens Lactosylceramide 4-alpha-galactosyltransferase Proteins 0.000 claims description 3
- 102100035838 Lactosylceramide 4-alpha-galactosyltransferase Human genes 0.000 claims description 3
- 238000011156 evaluation Methods 0.000 abstract description 6
- 230000007246 mechanism Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 4
- 230000011664 signaling Effects 0.000 description 4
- 238000009825 accumulation Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000008358 core component Substances 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000002265 prevention Effects 0.000 description 1
Images
Landscapes
- Exchange Systems With Centralized Control (AREA)
- Telephonic Communication Services (AREA)
- Monitoring And Testing Of Exchanges (AREA)
Abstract
本发明涉及一种通信网中防止负荷过载的控制方法,包括:1)预设处理器的负荷上限,并确定处理器负荷的控制误差;2)将所述控制误差在控制周期内通过PID控制运算,获得呼叫过滤比值;3)系统根据过呼叫过滤比值直接对上报的呼叫请求消息进行拒绝处理。本发明还涉及一种通信网中防止负荷过载的控制系统,包括:业务控制呼叫处理单元;自动调整单元;PID控制器,与自动调整器和业务控制呼叫处理单元分别连接,对所述负荷的控制误差进行PID控制运算,并将其运算结果上报给业务控制呼叫处理单元。本发明实现简单、对负载评价标准统一以及控制目标直接,以解决系统在过负荷条件下,最大限度为用户提供服务。
The invention relates to a control method for preventing load overload in a communication network, comprising: 1) preset the load upper limit of the processor, and determine the control error of the processor load; 3) The system directly rejects the reported call request message according to the call filtering ratio. The present invention also relates to a control system for preventing load overload in a communication network, comprising: a service control call processing unit; an automatic adjustment unit; a PID controller, connected to the automatic adjuster and the service control call processing unit respectively, and controlling the load The PID control operation is performed on the control error, and the operation result is reported to the service control call processing unit. The invention has the advantages of simple realization, unified load evaluation standard and direct control target, so as to solve the problem of system overload and provide services for users to the greatest extent.
Description
技术领域 technical field
本发明涉及系统过载的控制技术领域,特别是涉及一种通信网中防止负荷过载的控制方法及系统。The invention relates to the technical field of system overload control, in particular to a control method and system for preventing load overload in a communication network.
背景技术 Background technique
和其它系统一样,在智能网系统中,为了保证系统能够长期稳定运行,尤其是在较大话务量条件下能够稳定运行,必须采取过载控制措施,以实现在系统过负荷条件下,最大限度保证为用户提供服务。下面以智能业务为例进行说明。Like other systems, in the intelligent network system, in order to ensure the long-term stable operation of the system, especially under the condition of large traffic, overload control measures must be taken to achieve maximum performance under system overload conditions. Guaranteed to provide services to users. The following uses an intelligent service as an example for description.
在智能网中,业务控制点SCP是智能网的核心构件,其主要功能根据是业务交换点SSP上报来的呼叫事件启动不同的业务逻辑,根据业务逻辑向相应的业务交换点SSP发出呼叫控制指令,从而实现各种智能呼叫。通常业务控制点SCP在物理上是一台服务器或者小型机。In the intelligent network, the service control point SCP is the core component of the intelligent network. Its main function is to start different service logics according to the call events reported by the service switching point SSP, and send call control instructions to the corresponding service switching point SSP according to the service logic. , so as to realize various intelligent calls. Usually, the service control point SCP is physically a server or a minicomputer.
所述智能业务有很多种,比如200、201、800等都是智能业务,一个SCP可以同时加载并处理多种这样的智能业务。一种智能业务的实现,需要在SCP和SSP之间经过多次的信息交互,一个复杂的智能业务可以包括几十次甚至上百次的交互。如图1所示,是一个移动智能网中的充值流程,包括:There are many kinds of intelligent services, such as 200, 201, 800, etc. are all intelligent services, and one SCP can simultaneously load and process multiple such intelligent services. The realization of an intelligent service requires multiple information interactions between the SCP and the SSP, and a complex intelligent service may include dozens or even hundreds of interactions. As shown in Figure 1, it is a recharge process in a mobile intelligent network, including:
每一个用户使用这种智能业务与被叫方进行通话,业务控制点SCP都需要不断的处理业务交换点SSP上报的消息,再跟据特定的业务控制逻辑,向业务交换点SSP下发相应的控制消息,控制呼叫的全过程。如果同时使用智能业务的用户很多,那么业务控制点SCP就会相当地繁忙甚至过载。系统过载导致的后果可能有:消息丢失,呼叫因无法及时处理而中断,系统崩溃。因此,在通信系统中,防止设备过载的措施是必不可少的,对于业务控制SCP设备,有许多方法可以防止系统过载。Each user uses this intelligent service to communicate with the called party. The service control point SCP needs to continuously process the messages reported by the service switching point SSP, and then send the corresponding information to the service switching point SSP according to the specific service control logic. Control messages and control the whole process of calling. If there are many users using intelligent services at the same time, the service control point SCP will be quite busy or even overloaded. Consequences of system overload can include lost messages, dropped calls that cannot be processed in time, and system crashes. Therefore, in the communication system, measures to prevent equipment overload are essential, and for service control SCP equipment, there are many ways to prevent system overload.
目前,防止系统过载机制主要由两部分构成:系统繁忙程度的评价和降低系统负荷的手段。所述评价系统的繁忙程度可以选择多种指标,最常见的指标有以下几个:1)一段时间内,统计终端到业务交换点SSP上报的试呼次数;2)系统中消息队列堆积的长度;3)系统对试呼消息响应时间的平均统计值。对此,智能网系统本身提出了一种呼叫间隙机制(Call Gapping),使用这种机制时,新的呼叫在业务交换点SSP就被阻塞(拒绝)了,也就是说,新呼叫在到达业务控制点SCP之前就被阻塞了,这样可以不浪费SCP控制单元的潜力,同时保证未被阻塞的呼叫能够进行到底。At present, the system overload prevention mechanism is mainly composed of two parts: the evaluation of the system busyness and the means of reducing the system load. The busyness of the evaluation system can select multiple indicators, and the most common indicators have the following: 1) within a period of time, count the number of call attempts reported by the terminal to the service switching point SSP; 2) the length of the message queue accumulation in the system ; 3) The average statistical value of the system's response time to the call attempt message. In this regard, the intelligent network system itself proposes a call gap mechanism (Call Gapping). When using this mechanism, the new call is blocked (rejected) at the service switching point SSP, that is, the new call arrives at the service The control point SCP is previously blocked, so that the potential of the SCP control unit is not wasted, while ensuring that unblocked calls can be carried through to the end.
在智能网系统中,为业务控制点SCP设置一个下限,即所谓的间隙时间范围,利用此间隙时间范围,业务控制点减少通信业务,即小于此时间间隔就不允许业务交换点向业务控制点上报新的呼叫。如果业务交换点SSP接收了一个呼叫并发送到业务控制点SCP,那么随后所有在这个间隙时间范围以内的新呼叫都会被SSP拒绝掉,不再向SCP上报,只有在这个时间范围结束之后才接收第一个到达SSP的新呼叫,并且重新计时,如此周期性重复。这种机制会持续一定的时间D,称为持续时间。在此持续时间结束后,SSP又可以接收所有的呼叫。持续时间的长短由SCP确定。In the intelligent network system, a lower limit is set for the service control point SCP, that is, the so-called gap time range. Using this gap time range, the service control point reduces the communication service, that is, the service switching point is not allowed to communicate with the service control point if the time interval is less than this time interval. Report a new call. If the service switching point SSP receives a call and sends it to the service control point SCP, then all new calls within this gap time range will be rejected by the SSP and will not be reported to the SCP, and will only be received after the end of this time range The first new call to arrive at the SSP, and the timer is reset, repeating periodically. This mechanism lasts for a certain amount of time D, called the duration. After this duration expires, the SSP can receive all calls again. The length of the duration is determined by the SCP.
由此可知,呼叫间隙机制实现起来是比较复杂的,SCP需要对呼叫间隙时间和控制持续时间进行计算,SSP需要增加定时机制,保证呼叫间隙时间内只上报一个呼叫,和保证这种控制持续指定的时间。此外,通常SSP还同时处理普通呼叫,普通呼叫是不需要上报SCP的,因此,SSP还要保证呼叫间隙控制不会影响普通呼叫。对于普通呼叫,SSP就像一个普通的交换机,它根据呼叫号码直接通过交换,把话路转接到目的用户;而智能呼叫需要SSP与SCP进行信息交互,这就需要SSP能够区分出普通呼叫和智能业务呼叫,否则SSP就有可能根据呼叫间隙机制将普通呼叫也拒绝掉了。因此,呼叫间隙机制需要SSP的配合,这也增加了机制实现的复杂度。It can be seen that the implementation of the call gap mechanism is relatively complicated. The SCP needs to calculate the call gap time and the control duration, and the SSP needs to add a timing mechanism to ensure that only one call is reported within the call gap time and that the control continues to be specified. time. In addition, usually the SSP also processes ordinary calls at the same time, and the ordinary calls do not need to be reported to the SCP. Therefore, the SSP also needs to ensure that the call gap control will not affect the ordinary calls. For ordinary calls, the SSP is like an ordinary exchange, which directly transfers the call to the destination user through the exchange according to the calling number; while the intelligent call requires the SSP to exchange information with the SCP, which requires the SSP to be able to distinguish between ordinary calls and Intelligent service calls, otherwise the SSP may reject ordinary calls according to the call gap mechanism. Therefore, the call gap mechanism requires the cooperation of the SSP, which also increases the complexity of the mechanism implementation.
另外,评价系统繁忙程度的指标参数,一段时间内统计到的SSP上报的试呼次数,系统中消息队列堆积的长度,系统对试呼消息响应时间的平均统计值等,对这些指标的具体数值究竟达到多少才认为是系统过载,这有赖于经验和实验,而且对于不同的设备,其处理能力有差别,所以过载指标的参数具体数值也要根据具体设备而相应进行修改,这显然不够方便。In addition, the index parameters for evaluating the busyness of the system, the number of call attempts reported by the SSP within a period of time, the length of the message queue accumulation in the system, the average statistical value of the system’s response time to the call attempt messages, etc., the specific values of these indicators How much is considered to be system overload depends on experience and experiments, and different devices have different processing capabilities, so the specific value of the parameters of the overload index should be modified according to the specific device, which is obviously not convenient.
评价系统负荷的指标参数都基本是与设备所承载的呼叫业务相关的,它们只是通过在呼叫处理过程中体现出来的现象而反映系统的工作情况,是间接的,并不能直接体现执行呼叫控制功能的设备(如服务器)本身的系统资源利用情况,比如CPU资源占用率。The index parameters for evaluating the system load are basically related to the call services carried by the equipment. They only reflect the working conditions of the system through the phenomena reflected in the call processing process, which are indirect and cannot directly reflect the execution of call control functions. The system resource utilization of the device (such as a server) itself, such as CPU resource usage.
因此,现有技术的缺点为:1、呼叫间隙机制实现起来是比较复杂,需要多种设备的相互配合;2、评价系统过负荷的标准比较依赖于经验,与设备本身的处理能力关系较紧密;3、评价系统负荷的参考数据不够直接,只能部分反应系统负荷真实情况。Therefore, the disadvantages of the prior art are: 1. The implementation of the call gap mechanism is relatively complicated and requires the cooperation of multiple devices; 2. The standard for evaluating system overload is more dependent on experience and has a close relationship with the processing capacity of the device itself ;3. The reference data for evaluating the system load is not direct enough, and can only partially reflect the real situation of the system load.
发明内容 Contents of the invention
本发明解决的技术问题是提供一种通信网中防止负荷过载的控制方法与系统,本发明实现简单、对负载评价标准统一以及控制目标直接,以解决系统在过负荷条件下,最大限度为用户提供服务。The technical problem solved by the present invention is to provide a control method and system for preventing load overload in a communication network. The present invention is simple to implement, unifies the load evaluation standard and directs the control target, so as to solve the problem that the system is under overload conditions and maximizes the benefits for users. Provide services.
为解决上述问题,本发明提供一种通信网中防止负荷过载的控制方法,包括:In order to solve the above problems, the present invention provides a control method for preventing load overload in a communication network, including:
预设处理器的负荷上限,并根据所述负荷上限与所述处理器的实际占用率数值之差确定处理器负荷的控制误差;Presetting the upper limit of the load of the processor, and determining the control error of the processor load according to the difference between the upper limit of the load and the actual occupancy value of the processor;
将所述控制误差在控制周期内通过离散PID控制运算,获得呼叫过滤比值,所述呼叫过滤比值为系统应该拒绝的呼叫请求数与该周期总的呼叫请求数的比值;The control error is calculated by discrete PID control in the control cycle to obtain a call filtering ratio, and the call filtering ratio is the ratio of the number of call requests that the system should reject to the total number of call requests in the cycle;
系统根据所述呼叫过滤比值直接对上报的呼叫请求消息进行拒绝处理。The system directly rejects the reported call request message according to the call filtering ratio.
所述处理器的负荷上限是根据控制参数由人工来设置的。The upper limit of the load of the processor is manually set according to the control parameters.
所述离散PID控制运算的过程包括:对处理器负荷的控制误差进行比例、积分和微分运算。The process of the discrete PID control operation includes: performing proportional, integral and differential operations on the control error of the processor load.
所述离散PID控制运算的过程具体包括:The process of the discrete PID control operation specifically includes:
其运算公式为:Its operation formula is:
其中,T=Δt,是采样周期,E(k)是第k次采样时的控制误差,E(k-1)是第k-1次采样时的控制误差,P(k)是第k次采样时控制器输出的离散呼叫过滤比值,Kp是比例系数,TI是积分时间,TD是微分时间。Among them, T=Δt is the sampling period, E(k) is the control error at the kth sampling time, E(k-1) is the control error at the k-1th sampling time, and P(k) is the kth time The discrete call filtering ratio output by the controller when sampling, Kp is the proportional coefficient, T I is the integral time, T D is the differential time.
所述呼叫过滤比值为系统拒绝的呼叫请求数与该周期总的呼叫请求数之比。The call filtering ratio is the ratio of the number of call requests rejected by the system to the total number of call requests in this period.
本发明还提供一种通信网中防止负荷过载的控制系统,包括:The present invention also provides a control system for preventing load overload in a communication network, including:
业务控制呼叫处理单元,实现业务控制功能的功能实体,用于处理各种智能呼叫,完成与业务交换接点之间的信息交互;The service control call processing unit is a functional entity that realizes the service control function, and is used to process various intelligent calls and complete the information interaction with the service switching point;
自动调整单元,用于接收业务控制呼叫处理单元反馈的处理器实际占用率的数值,并将其与系统设定处理器的负荷上限进行比较,得到处理器负荷的控制误差;The automatic adjustment unit is used to receive the value of the actual processor occupancy rate fed back by the service control call processing unit, and compare it with the upper limit of the processor load set by the system to obtain the control error of the processor load;
PID控制器,与自动调整器和业务控制呼叫处理单元分别连接,对所述负荷的控制误差进行离散PID控制运算,并将其运算结果上报给业务控制呼叫处理单元。The PID controller is connected to the automatic adjuster and the service control call processing unit respectively, performs discrete PID control calculation on the control error of the load, and reports the calculation result to the service control call processing unit.
所述自动调整单元包括:运算器,用于将预设处理器CPU的负荷上限与处理器实际占用率的数值进行减法运算。The automatic adjustment unit includes: an arithmetic unit, which is used for subtracting the preset processor CPU load limit from the value of the actual processor occupancy rate.
所述离散PID控制运算具体包括:对处理器负荷的控制误差进行比例、积分和微分运算。The discrete PID control operation specifically includes: performing proportional, integral and differential operations on the control error of the processor load.
与现有技术相比,本发明具有以下有益效果:首先,本发明实现简单,在现有的系统中只增加了一个控制单元,所述控制单元是根据PID控制算法而设计出来的,用于调节系统处理器占用率,只需要得到控制误差,然后进行很少的运算即可,不需要对各种呼叫信息进行收集和统计,对系统负荷的变化反应迅速。对业务控制节点SCP的负荷控制不需要业务交换节点SSP的配合,由于SCP对被拒绝的呼叫返回符合协议标准的呼叫拒绝消息,SSP呼叫处理单元就像处理正常呼叫结束一样的处理被SCP拒绝的呼叫请求,完全不需要知道SCP的活动状态;其次,本发明的控制目标最直接,是直接反应系统运行情况的系统CPU占用率;最后,对系统负载情况的评价标准统一,不依赖于经验数据。本发明对系统负载的评价标准是CPU占用率,而这个参数对不同的性能的系统有统一的取值范围0%~100%,对任何系统都可以确定统一的负荷上限,不需依靠经验值。Compared with the prior art, the present invention has the following beneficial effects: firstly, the present invention is simple to implement, and only one control unit is added in the existing system, and the control unit is designed according to the PID control algorithm for To adjust the system processor occupancy, it only needs to obtain the control error, and then perform few calculations. It does not need to collect and count various call information, and responds quickly to changes in system load. The load control of the service control node SCP does not require the cooperation of the service switching node SSP. Since the SCP returns a call rejection message conforming to the protocol standard for the rejected call, the SSP call processing unit handles the call rejected by the SCP just like a normal call end. The call request does not need to know the active state of the SCP at all; secondly, the control target of the present invention is the most direct, which is the system CPU occupancy rate that directly reflects the system operation; finally, the evaluation standard of the system load is unified and does not depend on empirical data . The evaluation standard of the present invention to the system load is the CPU occupancy rate, and this parameter has a unified value range of 0% to 100% for systems with different performances, and a unified upper limit of the load can be determined for any system without relying on empirical values .
附图说明 Description of drawings
图1是现有技术中移动智能网充值的流程图;Fig. 1 is the flowchart of mobile intelligent network charging in the prior art;
图2是本发明通信网中防止负荷过载的控制方法的控制流程图;Fig. 2 is the control flowchart of the control method for preventing load overload in the communication network of the present invention;
图3是本发明通信网中防止负荷过载的控制系统的结构框图;Fig. 3 is the structural block diagram of the control system that prevents load overload in the communication network of the present invention;
图4是本发明应用实例的结构框图。Fig. 4 is a structural block diagram of an application example of the present invention.
具体实施方式 Detailed ways
本发明根据系统资源的使用情况,也就是处理器CPU的占用率作为参考指标和控制目标,设计实现方式简单的负荷比例积分微分(PID,Proportion Integral Differential)控制器,并根据所述PID控制器的输出结果直接限制用户的呼叫流量。所述PID控制器先读取业务交换节点的处理器CPU负荷信息,并对负荷信息进行自动调整;然后通过PID控制运算,获得一个呼叫过滤比值,并将所述呼叫过滤比值上报给业务控制交换节点中的业务控制呼The present invention is based on the use of system resources, that is, the occupancy rate of the processor CPU as a reference index and a control target, and designs a simple load proportional integral differential (PID, Proportion Integral Differential) controller, and according to the PID controller The output result directly restricts the call flow of the user. The PID controller first reads the processor CPU load information of the service switching node, and automatically adjusts the load information; then obtains a call filtering ratio through the PID control operation, and reports the call filtering ratio to the service control switching Service control calls in nodes
叫处理单元;最后,业务控制呼叫处理单元根据呼叫过滤比例值对业务交换节点上报的用户呼叫流量直接进行拒绝处理,以达到防止系统负荷过载的目的。Finally, the service control call processing unit directly rejects the user call flow reported by the service switching node according to the call filtering ratio value, so as to prevent the system from overloading.
现面结合附图对本发明做进一步的说明。Now the present invention will be further described in conjunction with the accompanying drawings.
请参考图2,是本发明通信网中防止负荷过载的控制方法的流程图,包括:Please refer to Fig. 2, which is a flow chart of the control method for preventing load overload in the communication network of the present invention, including:
步骤S11:预设系统处理器的负荷上限,并确定处理器负荷的控制误差;Step S11: preset the upper limit of the load of the system processor, and determine the control error of the processor load;
步骤S12:将所述控制误差在控制周期内通过PID控制运算,获得呼叫过滤比值;Step S12: calculating the control error through PID control within the control period to obtain a call filtering ratio;
步骤S13:系统根据过呼叫过滤比值直接对上报的呼叫请求消息进行拒绝处理。Step S13: The system directly rejects the reported call request message according to the passed call filtering ratio.
系统处理器CPU的负荷上限是根据控制参数由人工来设置的,所述控制参数是指系统CPU占用率的控制目标,其取值范围可以是1%-100%。根据预先设定处理器的负荷上限与实际处理器占用率数值之差来确定系统处理器负荷的控制误差(步骤S11)。将所述控制误差在控制周期内通过PID控制运算,获得呼叫过滤比值,所述PID控制运算实际上就是对控制误差进行比例(Prop-ortion)、积分(Integral)、微分(Differential)的运算,将得出的运算结果作为控制变量作用到受控系统中,使受控系统的输出与控制目标相一致(步骤S12)。所述PID控制运算包括以下步骤:The upper limit of CPU load of the system processor is manually set according to the control parameter, which refers to the control target of the CPU usage of the system, and its value range may be 1%-100%. The control error of the system processor load is determined according to the difference between the preset processor load upper limit and the actual processor occupancy value (step S11 ). The control error is obtained through the PID control operation in the control cycle to obtain the call filtering ratio. The PID control operation is actually a proportional (Prop-ortion), integral (Integral), and differential (Differential) operation on the control error, The obtained operation result is acted on the controlled system as a control variable, so that the output of the controlled system is consistent with the control target (step S12). Described PID control operation comprises the following steps:
首先,对控制误差进行积分运算,获得控制器的输出变量,其运算公式为:First, the control error is integrated to obtain the output variable of the controller, and the calculation formula is:
其中,P(t)是控制器输出信号,e(t)是控制器偏差信号,Kp是比例系数,TI是积分时间,TD是微分时间。Among them, P(t) is the controller output signal, e(t) is the controller deviation signal, Kp is the proportional coefficient, T I is the integral time, T D is the differential time.
其次,由于计算机系统中输入、输出值不是连续的,而是离散的,因此必须对上述公式进行离散化处理,也即是对控制器的输出变量进行采样,从而得到离散呼叫过滤比值,其离散的PID公式为:Secondly, since the input and output values in the computer system are not continuous but discrete, the above formula must be discretized, that is, the output variable of the controller is sampled to obtain the discrete call filter ratio, which is discrete The PID formula is:
其中,T=Δt,是采样周期,E(k)是第k次采样时的输入、输出误差值,E(k-1)是第k-1次采样时的输入、输出误差值,P(k)是第k次采样时控制器输出的呼叫过滤比值。Among them, T=Δt is the sampling period, E(k) is the input and output error value during the k sampling, E(k-1) is the input and output error value during the k-1 sampling, P( k) is the call filtering ratio output by the controller at the kth sampling.
由于计算机系统中得不到连续的系统CPU占用率数值,因此需要定期对CPU占用率进行采样,其采样周期为T。在每个周期开始时,系统都对处理器的占用率进行采样,在UNIX操作系统中,可以通过vmstat命令得到处理器当前的占用率,然后将得到的CPU占用率数值与设定的CPU负荷上限进行比较,得到控制误差E(k),利用这个误差作为PID控制器的输入,进行离散PID运算,得到呼叫过滤比值,并将其上报给业务控制节点的业务控制呼叫处理单元,所述呼叫过滤比值为系统应该拒绝的呼叫请求数与该周期总的呼叫请求数的比值。业务控制呼叫处理单元在接下来的控制周期内根据上报的呼叫过滤比值,对业务交换节点SSP上报的呼叫请求消息直接进行拒绝处理,以达到防止系统负荷过载的目的。Since the continuous system CPU usage value cannot be obtained in the computer system, it is necessary to periodically sample the CPU usage rate, and the sampling period is T. At the beginning of each cycle, the system samples the occupancy rate of the processor. In the UNIX operating system, the current occupancy rate of the processor can be obtained through the vmstat command, and then the obtained CPU occupancy rate value is compared with the set CPU load The upper limit is compared to obtain the control error E(k), use this error as the input of the PID controller, perform discrete PID calculation, obtain the call filtering ratio, and report it to the service control call processing unit of the service control node, the call The filtering ratio is the ratio of the number of call requests that the system should reject to the total number of call requests in this period. The service control call processing unit directly rejects the call request message reported by the service switching node SSP according to the reported call filtering ratio in the next control period, so as to prevent the system from overloading.
但是对于被业务控制节点SCP拒绝的呼叫请求,业务控制呼叫处理单元一旦收到该用户的请求立即返回呼叫拒绝消息,业务交换节点SSP收到拒绝消息后马上终止当前用户的呼叫,后续的业务控制节点SCP与业务交换节点SSP之间的信息交互以及业务控制节点SCP对呼叫的控制处理都因此而取消,从而减少了业务控制节点SCP的工作量,有效节省了业务控制节点本身系统资源的利用的潜力,从而降低了系统的负荷。也就是说,业务控制节点SCP在拒绝用户呼叫请求时,向业务交换节点SSP返回的是协议标准中的呼叫拒绝消息,业务交换节点SSP收到此消息后即知此呼叫需被终止。However, for a call request rejected by the service control node SCP, once the service control call processing unit receives the user's request, it returns a call rejection message immediately, and the service switching node SSP immediately terminates the call of the current user after receiving the rejection message, and the subsequent service control The information interaction between the node SCP and the service switching node SSP and the call control processing of the service control node SCP are canceled, thereby reducing the workload of the service control node SCP and effectively saving the utilization of system resources of the service control node itself potential, thereby reducing the load on the system. That is to say, when the service control node SCP rejects the user's call request, it returns a call rejection message in the protocol standard to the service switching node SSP, and the service switching node SSP knows that the call needs to be terminated after receiving this message.
如果本控制周期结束后,系统负荷还没有降到设定的上限,那么本周期的控制误差E(k)会被累积,导致呼叫过滤比值P(k)的计算结果增大,下一周期将拒绝更多的呼叫。如此反复,直到系统负荷下降到设定值以下,这时,PID控制器的输出也会维持在一个比较稳定的数值范围内,即业务控制节点SCP对呼叫请求的拒绝也达到一个比较稳定的比例,系统到达了平衡状态。If the system load has not dropped to the set upper limit after the end of this control period, then the control error E(k) of this period will be accumulated, resulting in an increase in the calculation result of the call filtering ratio P(k), and the next period will be Deny further calls. Repeat this until the system load drops below the set value. At this time, the output of the PID controller will also be maintained within a relatively stable value range, that is, the rejection of the call request by the service control node SCP also reaches a relatively stable ratio. , the system reaches an equilibrium state.
还请参考图3,为本发明是通信网中防止负荷过载的控制系统的结构框图;所述控制系统包括:自动调整单元32、PID控制器33和业务控制呼叫处理单元34。Please also refer to FIG. 3 , which is a structural block diagram of a control system for preventing overload in a communication network according to the present invention; the control system includes: an
所述业务控制呼叫处理单元34,实现业务控制功能的功能实体,用于处理各种智能呼叫,完成与业务交换接点之间的信息交互;The service control
所述自动调整单元32,用于接收业务控制呼叫处理单元反馈的处理器CPU实际占用率的数值,并与设定处理器CPU的负荷上限进行调整,得到负荷控制误差,并将其作为PID控制器的输入;The
所述PID控制器33,与自动调整单元32和业务控制呼叫处理单元34分别连接,对负荷控制误差进行PID运算,并将其运算结果上报给业务控制呼叫处理单元。The
所述自动调整器32,包括一个运算器(图3中未示),用于接收业务控制呼叫处理单元反馈的CPU实际占用率的数值,并将其与设定系统处理器CPU的负荷上限进行减法运算,从而得到负荷控制误差,并将其作为PID控制器的输入变量。The
所述PID控制器33是根据经典控制理论中的PID控制运算而设计出来的用于调节系统CPU占用率的控制器。所述PID控制运算如上所述,在这里不在赘述。其PID控制器输入端的设定是根据预设CPU占用率上限与实际CPU占用率之间的差值,并将其差值为处理器占用率的控制误差,也就是说,PID控制器对输入处理器占用率的控制误差进行比例、积分和微分运算,得到离散的呼叫过滤比值,并将其上报给业务控制呼叫处理单元34。The
所述业务控制呼叫处理单元34是业务控制节点SCP中的一个子单元,该业务控制呼叫处理单元34具有实现具体业务控制功能的功能实体,它能够处理各种智能网协议,完成与业务交换节点SSP之间的信息交互。所述业务交换节点与业务控制节点之间信息的交互过程为:业务控制节点中的业务控制呼叫处理单元将接收业务交换点SSP上报的,由标准智能网协议信令承载的智能呼叫请求,并根据呼叫请求里包含的用户标识和呼叫类型,查询其本身数据库中保存的该用户的相关信息,以决定如何控制该用户的呼叫流程,业务控制呼叫处理单元将对该用户的呼叫控制命令通过协议信令发送回给业务交换节点SSP,所述业务交换节点SSP根据业务控制节点SCP的控制命令决定如何处理该用户的呼叫请求。在处理过程中,根据呼叫需要可能还会发生多次的业务交换接点SSP和业务控制节点SCP之间的信令交互。业务控制呼叫处理单元还会根据当前系统负荷,采用一定的方法来限制业务交换节点SSP的呼叫请求。在上述的业务信息交互的过程中,业务控制呼叫处理单元就是根据所述PID控制器产生的呼叫过滤比值来限制业务交换节点SSP的呼叫请求的。所述呼叫过滤比值是系统CPU负荷经过本发明的PID控制器的PID控制运算之后,得到系统当前的CPU占用率,并将其反馈到自动调整单元中。通常SCP服务器运行在UNIX操作系统上,UNIX操作系统提供获取系统CPU占用率的函数命令,如vmstat命令,它输出一系列当前系统性能数据,其中一项参数是id,即系统空闲率,(100-id)就是系统当前的CPU占用率。所述PID控制运算与上述相同,在这里不再赘述。The service control
还请参考图4,为本发明的应用实例的原理框图,包括:业务交换节点41、自动调整单元32、PID控制器33和业务控制节点42。所有的业务交换节点SSP与业务控制节点SCP中业务控制呼叫处理单元之间的交互信令都要经过PID控制器,所述PID控制器只对业务交换节点SSP上报的每一个呼叫的初始请求消息作出控制处理,并将其它已经允许处理的呼叫消息都上报给业务控制节点SCP。Please also refer to FIG. 4 , which is a functional block diagram of an application example of the present invention, including: a
所述PID控制器33的控制处理过程为:首先,自动调整单元32要从业务控制节点42中的业务控制呼叫处理单元获取系统实际的CPU负荷信息,然后通过将其与系统CPU负荷上限通过本身的运算器进行自身调整,并将调整后的CPU占用率的控制误差发送给PID控制器,所述PID控制器对接收的控制误差进行PID控制运算,运算结果得出一个呼叫过滤比值,并将其上报给业务控制节点42。所述PID控制器在一个控制周期内,根据PID运算得到的呼叫过滤比值,对收到的业务交换节点SSP用户呼叫的初始请求进行拒绝处理。一个控制周期结束后,自动调整单元42重新获取SCP的CPU负荷信息,并将其负荷信息发送给PID控制器,是PID控制器再计算一个新的呼叫过滤比值,然后以这个新的比例值在下一个控制周期内进行呼叫过滤处理。The control process of the
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004101024160A CN100531257C (en) | 2004-12-22 | 2004-12-22 | Control method and system for preventing load from over loading in communication network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2004101024160A CN100531257C (en) | 2004-12-22 | 2004-12-22 | Control method and system for preventing load from over loading in communication network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1798201A CN1798201A (en) | 2006-07-05 |
CN100531257C true CN100531257C (en) | 2009-08-19 |
Family
ID=36818949
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2004101024160A Expired - Fee Related CN100531257C (en) | 2004-12-22 | 2004-12-22 | Control method and system for preventing load from over loading in communication network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100531257C (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120109852A1 (en) * | 2010-10-27 | 2012-05-03 | Microsoft Corporation | Reactive load balancing for distributed systems |
CN112162820A (en) * | 2020-09-23 | 2021-01-01 | 广州六环信息科技有限公司 | Timing method and device of timer |
-
2004
- 2004-12-22 CN CNB2004101024160A patent/CN100531257C/en not_active Expired - Fee Related
Non-Patent Citations (2)
Title |
---|
单片微处理器在PID调节器中的应用. 丁则信.化学工业与工程技术,第18卷第3期. 1997 |
单片微处理器在PID调节器中的应用. 丁则信.化学工业与工程技术,第18卷第3期. 1997 * |
Also Published As
Publication number | Publication date |
---|---|
CN1798201A (en) | 2006-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP2254286B1 (en) | Network real time monitoring and control method, system and computer program product | |
US5067074A (en) | Control of overload in communications networks | |
CN107171839B (en) | Bandwidth flow cost control method | |
EP2254277B1 (en) | Control management of voice-over IP parameters | |
CN106375239B (en) | A method and device for processing network data reception | |
US20030058792A1 (en) | Method and system for managing admission to a network | |
CN107592284A (en) | The apparatus and method of anti-DoS/DDoS attacks | |
CN109257304A (en) | A kind of bandwidth adjusting method, device, storage medium and the network equipment | |
CN1988684B (en) | Network process managing method and device | |
CN100531257C (en) | Control method and system for preventing load from over loading in communication network | |
CN113328906B (en) | Flow real-time monitoring method and device, storage medium and electronic equipment | |
CN113094305B (en) | Asynchronous communication processing method, device and storage medium | |
Mirtchev | Packet-level link capacity evaluation for IP networks | |
CN111897659B (en) | Method, system and device for controlling service processing frequency and electronic equipment | |
CN114827033B (en) | Data flow control method, device, equipment and computer readable storage medium | |
CA2252792A1 (en) | Apparatus and method for preventing network server overload | |
EP1880516A1 (en) | Communication system | |
CN111107084A (en) | Monitoring method, monitoring device, electronic equipment and storage medium | |
KR20250002390A (en) | Method and device for reporting service capacity load parameters | |
WO2006005263A1 (en) | A method for gathering the performance statistical data | |
EP2355422A1 (en) | A method and apparatus to provide minimum resource sharing without buffering requests | |
CN1430376A (en) | Automatic overload control system | |
CN114024913A (en) | Network performance optimization method, device, equipment and storage medium | |
JP4062240B2 (en) | Variance estimation method in traffic fluctuation, reception buffer control device and program thereof | |
KR101506448B1 (en) | Method And Apparatus for Managing Machine to Machine Traffic |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201204 Address after: 276800 41 / F, building 1, China Resources Land Plaza, No. 1000, Shandong Road, Qinlou street, Donggang District, Rizhao City, Shandong Province Patentee after: New Donggang Holding Group Co.,Ltd. Address before: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd. Effective date of registration: 20201204 Address after: Unit 2414-2416, main building, no.371, Wushan Road, Tianhe District, Guangzhou City, Guangdong Province Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090819 |