CN106656662A - Method and system for determining abnormal bandwidth, and electronic device - Google Patents
Method and system for determining abnormal bandwidth, and electronic device Download PDFInfo
- Publication number
- CN106656662A CN106656662A CN201611115084.9A CN201611115084A CN106656662A CN 106656662 A CN106656662 A CN 106656662A CN 201611115084 A CN201611115084 A CN 201611115084A CN 106656662 A CN106656662 A CN 106656662A
- Authority
- CN
- China
- Prior art keywords
- bandwidth
- time
- order difference
- mean
- range
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/145—Network analysis or design involving simulating, designing, planning or modelling of a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/147—Network analysis or design for predicting network behaviour
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明实施例公开一种异常带宽确定方法、系统及电子设备,其中所述方法包括:获取预设时间内用户在不同时间点所使用的历史带宽数据;根据历史带宽数据确定用于预测用户在不同时间点所使用带宽范围的带宽预测模型;根据带宽预测模型预测所述用户在某一时间点所使用的带宽范围;比较所述用户在某一时间点所使用的实际带宽与所述带宽范围;当实际带宽超出所述带宽范围时确定实际带宽为异常带宽。本发明实施例根据历史带宽数据确定带宽预测模型,并利用带宽预测模型确定用户在某一时间点所使用的带宽范围,之后通过比较用户在某一时间点实际使用带宽与所述带宽范围的方式实现了判定用户在某一时间点所使用的实际带宽是否为异常带宽。
The embodiment of the present invention discloses a method, system, and electronic device for determining abnormal bandwidth, wherein the method includes: obtaining historical bandwidth data used by users at different time points within a preset time; The bandwidth prediction model of the bandwidth range used at different time points; predict the bandwidth range used by the user at a certain time point according to the bandwidth prediction model; compare the actual bandwidth used by the user at a certain time point with the bandwidth range ; When the actual bandwidth exceeds the bandwidth range, it is determined that the actual bandwidth is an abnormal bandwidth. The embodiment of the present invention determines the bandwidth prediction model according to the historical bandwidth data, and uses the bandwidth prediction model to determine the bandwidth range used by the user at a certain point in time, and then compares the actual bandwidth used by the user at a certain point in time with the bandwidth range It is realized to determine whether the actual bandwidth used by the user at a certain point in time is abnormal bandwidth.
Description
技术领域technical field
本发明实施例涉及互联网技术领域,尤其涉及一种异常带宽确定方法、系统及电子设备。The embodiments of the present invention relate to the technical field of the Internet, and in particular to a method, system and electronic equipment for determining abnormal bandwidth.
背景技术Background technique
带宽是一个非常有用的概念,在网络通信中的地位十分重要。而网络带宽,是指在单位时间(一般指的是1秒钟)内能传输的数据量。随着互联网的迅猛发展,越来越多的CDN服务提供商来为用户提供带宽服务。随着竞争的激烈,CDN服务提供商越来越关心用户所得到的带宽服务的服务质量,以更好的满足用户的需求。Bandwidth is a very useful concept and plays an important role in network communication. The network bandwidth refers to the amount of data that can be transmitted within a unit of time (generally refers to 1 second). With the rapid development of the Internet, more and more CDN service providers provide users with bandwidth services. With the fierce competition, CDN service providers are more and more concerned about the service quality of the bandwidth service that users get, so as to better meet the needs of users.
但是,发明人在实现本发明实施例的过程中发现,由于CDN服务提供商针对于不同的业务所提供的带宽服务总是存在波动性的,从而对用户的服务质量造成的时好时坏的波动性。因此,如何能够及时的确定引起带宽服务的波动性的异常带宽点,以供参考来消除波动成为了亟待解决的技术问题。However, the inventor found in the process of implementing the embodiment of the present invention that because the bandwidth services provided by CDN service providers for different services always have fluctuations, the service quality of users is sometimes good or bad. volatility. Therefore, how to timely determine the abnormal bandwidth point that causes the fluctuation of the bandwidth service for reference to eliminate the fluctuation has become an urgent technical problem to be solved.
发明内容Contents of the invention
本发明实施例提供一种异常带宽确定方法、系统及电子设备,用于解决现有技术中无法确定带宽服务中的异常带宽点的技术问题。Embodiments of the present invention provide a method, system and electronic device for determining abnormal bandwidth, which are used to solve the technical problem in the prior art that abnormal bandwidth points in bandwidth services cannot be determined.
第一方面,本发明实施例提供一种异常带宽确定方法,包括:In the first aspect, an embodiment of the present invention provides a method for determining abnormal bandwidth, including:
获取预设时间内用户在不同时间点所使用的历史带宽数据;Obtain historical bandwidth data used by users at different points in time within a preset period;
根据所述历史带宽数据确定用于预测所述用户在不同时间点所使用带宽范围的带宽预测模型;determining a bandwidth prediction model for predicting bandwidth ranges used by the user at different time points according to the historical bandwidth data;
根据所述带宽预测模型预测所述用户在某一时间点所使用的带宽范围;Predict the bandwidth range used by the user at a certain point in time according to the bandwidth prediction model;
比较所述用户在所述某一时间点所使用的实际带宽与所述带宽范围;comparing the actual bandwidth used by the user at the certain time point with the bandwidth range;
当所述实际带宽超出所述带宽范围时确定所述实际带宽为异常带宽。When the actual bandwidth exceeds the bandwidth range, it is determined that the actual bandwidth is an abnormal bandwidth.
第二方面,本发明实施例还提供一种异常带宽确定系统,包括:In the second aspect, the embodiment of the present invention also provides a system for determining abnormal bandwidth, including:
历史数据获取模块,用于获取预设时间内用户在不同时间点所使用的历史带宽数据;The historical data acquisition module is used to acquire historical bandwidth data used by users at different time points within a preset time;
模型确定模块,用于根据所述历史带宽数据确定用于预测所述用户在不同时间点所使用带宽范围的带宽预测模型;A model determination module, configured to determine a bandwidth prediction model for predicting the range of bandwidth used by the user at different time points according to the historical bandwidth data;
带宽范围确定模块,用于根据所述带宽预测模型预测所述用户在某一时间点所使用的带宽范围;A bandwidth range determination module, configured to predict the bandwidth range used by the user at a certain point in time according to the bandwidth prediction model;
比较模块,用于比较所述用户在所述某一时间点所使用的实际带宽与所述带宽范围;A comparison module, configured to compare the actual bandwidth used by the user at the certain time point with the bandwidth range;
异常判定模块,用于当所述实际带宽超出所述带宽范围时确定所述实际带宽为异常带宽。An abnormality determination module, configured to determine that the actual bandwidth is an abnormal bandwidth when the actual bandwidth exceeds the bandwidth range.
第三方面,本发明实施例提供一种非易失性计算机可读存储介质,所述存储介质中存储有一个或多个包括执行指令的程序,所述执行指令能够被电子设备(包括但不限于计算机,服务器,或者网络设备等)读取并执行,以用于执行本发明实施例上述任一项异常带宽确定方法。In the third aspect, the embodiment of the present invention provides a non-volatile computer-readable storage medium, and one or more programs including execution instructions are stored in the storage medium, and the execution instructions can be executed by electronic devices (including but not limited to a computer, server, or network device, etc.) to read and execute, so as to implement any one of the methods for determining abnormal bandwidth described above in the embodiments of the present invention.
第四方面,提供一种电子设备,其包括:至少一个处理器,以及与所述至少一个处理器通信连接的存储器,其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行本发明实施例上述任一项异常带宽确定方法。In a fourth aspect, an electronic device is provided, which includes: at least one processor, and a memory connected to the at least one processor in communication, wherein the memory stores instructions executable by the at least one processor, The instructions are executed by the at least one processor, so that the at least one processor can execute any one of the methods for determining abnormal bandwidth in the embodiments of the present invention.
第五方面,本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括存储在非易失性计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一项异常带宽确定方法。In the fifth aspect, the embodiment of the present invention also provides a computer program product, the computer program product includes a computing program stored on a non-volatile computer-readable storage medium, the computer program includes program instructions, when the program When the instructions are executed by a computer, the computer is made to execute any one of the methods for determining abnormal bandwidth described above.
本发明实施例根据用户的历史带宽数据确定出了用于预测该用户未来使用带宽的带宽预测模型,并利用确定的带宽预测模型确定用户在某一时间点所使用的带宽范围,之后通过比较用户在所述某一时间点实际使用的实际带宽与确定的所述带宽范围的方式实现了判定用户在所述某一时间点所使用的实际带宽是否为异常带宽。The embodiment of the present invention determines a bandwidth prediction model for predicting the user's future bandwidth according to the user's historical bandwidth data, and uses the determined bandwidth prediction model to determine the bandwidth range used by the user at a certain point in time, and then compares the user's The manner of the actual bandwidth actually used at the certain time point and the determined bandwidth range realizes determining whether the actual bandwidth used by the user at the certain time point is an abnormal bandwidth.
附图说明Description of drawings
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
图1为本发明的异常带宽确定方法的一实施例的流程图;Fig. 1 is the flowchart of an embodiment of the abnormal bandwidth determination method of the present invention;
图2为图1中步骤S12的一实施方式的流程图;Fig. 2 is the flowchart of an embodiment of step S12 in Fig. 1;
图3为本发明的异常带宽确定方法的另一实施例的流程图;FIG. 3 is a flow chart of another embodiment of the abnormal bandwidth determination method of the present invention;
图4为本发明的异常带宽确定方法的又一实施例的流程图;FIG. 4 is a flowchart of another embodiment of the abnormal bandwidth determination method of the present invention;
图5为本发明的异常带宽确定系统一实施例的结构框图;Fig. 5 is the structural block diagram of an embodiment of the abnormal bandwidth determination system of the present invention;
图6为本发明的异常带宽确定系统中的模型确定模块一实施例的结构框图;Fig. 6 is the structural block diagram of an embodiment of the model determination module in the abnormal bandwidth determination system of the present invention;
图7为本发明的异常带宽确定系统的另一实施例的结构框图;FIG. 7 is a structural block diagram of another embodiment of the abnormal bandwidth determination system of the present invention;
图8为本发明的异常带宽确定系统中的模型确定模块另一实施例的结构框图;Fig. 8 is a structural block diagram of another embodiment of the model determination module in the abnormal bandwidth determination system of the present invention;
图9为本发明的电子设备的一实施例的结构示意图。FIG. 9 is a schematic structural diagram of an embodiment of the electronic device of the present invention.
具体实施方式detailed description
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明实施例保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the embodiments of the present invention.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
本发明实施例可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、元件、数据结构等等。也可以在分布式计算环境中实践本发明实施例,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。Embodiments of the invention may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. Embodiments of the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including storage devices.
在本发明实施例中,“模块”、“装置”、“系统”等等指应用于计算机的相关实体,如硬件、硬件和软件的组合、软件或执行中的软件等。详细地说,例如,元件可以、但不限于是运行于处理器的过程、处理器、对象、可执行元件、执行线程、程序和/或计算机。还有,运行于服务器上的应用程序或脚本程序、服务器都可以是元件。一个或多个元件可在执行的过程和/或线程中,并且元件可以在一台计算机上本地化和/或分布在两台或多台计算机之间,并可以由各种计算机可读介质运行。元件还可以根据具有一个或多个数据包的信号,例如,来自一个与本地系统、分布式系统中另一元件交互的,和/或在因特网的网络通过信号与其它系统交互的数据的信号通过本地和/或远程过程来进行通信。In the embodiments of the present invention, "module", "device", "system" and the like refer to related entities applied to computers, such as hardware, a combination of hardware and software, software or software in execution, and the like. In particular, for example, an element may be, but is not limited to being, a process running on a processor, a processor, an object, an executable element, a thread of execution, a program and/or a computer. Also, an application program or a script program running on a server, and the server may both be components. One or more elements can be within a process and/or thread of execution and an element can be localized on one computer and/or distributed between two or more computers and executed by various computer-readable media . Components may also communicate via a signal having one or more packets of data, for example, from one interacting with a local system, another component in a distributed system, and/or interacting with other systems via a network over the Internet. local and/or remote procedures to communicate.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”,不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Moreover, the terms "comprising" and "comprising" not only include those elements, but also include other elements not explicitly listed, or also include elements inherent in such a process, method, article, or device. Without further limitations, an element defined by the statement "comprising..." does not exclude the presence of additional same elements in the process, method, article or device comprising said element.
如图1所示,本发明的一实施例的异常带宽确定方法,包括:As shown in Figure 1, the abnormal bandwidth determination method of an embodiment of the present invention includes:
S11、获取预设时间内用户在不同时间点所使用的历史带宽数据;S11. Obtain historical bandwidth data used by users at different time points within a preset time;
S12、根据所述历史带宽数据确定用于预测所述用户在不同时间点所使用带宽范围的带宽预测模型;S12. Determine a bandwidth prediction model for predicting the range of bandwidth used by the user at different time points according to the historical bandwidth data;
S13、根据所述带宽预测模型预测所述用户在某一时间点所使用的带宽范围;S13. Predict the bandwidth range used by the user at a certain time point according to the bandwidth prediction model;
S14、比较所述用户在所述某一时间点所使用的实际带宽与所述带宽范围;S14. Comparing the actual bandwidth used by the user at the certain time point with the bandwidth range;
S15、当所述实际带宽超出所述带宽范围时确定所述实际带宽为异常带宽。S15. Determine that the actual bandwidth is an abnormal bandwidth when the actual bandwidth exceeds the bandwidth range.
本实施例的异常带宽确定方法根据用户的历史带宽数据确定出了用于预测该用户未来使用带宽的带宽预测模型,并利用确定的带宽预测模型确定用户在某一时间点所使用的带宽范围,之后通过比较用户在所述某一时间点实际使用的实际带宽与确定的所述带宽范围的方式实现了判定用户在所述某一时间点所使用的实际带宽是否为异常带宽。The method for determining abnormal bandwidth in this embodiment determines a bandwidth prediction model for predicting the user's future bandwidth according to the user's historical bandwidth data, and uses the determined bandwidth prediction model to determine the bandwidth range used by the user at a certain point in time, Then, by comparing the actual bandwidth actually used by the user at the certain time point with the determined bandwidth range, it is realized whether the actual bandwidth used by the user at the certain time point is an abnormal bandwidth.
步骤S11中的历史带宽数据可以是距离当前日期之前一段时间内的用户使用的带宽数据,并且带宽数据为以一天为周期,并且为一天中的固定时间点(将一天按照预定的时间粒度进行划分。例如,以5分钟为带宽数据的采集粒度,即,每隔5分钟取一个带宽数值。根据业务的不同可以选择不同的时间粒度,本发明实施例不对时间粒度的选择进行限制)时的带宽值。例如,距离当前日期之前60天的带宽数据及对应时间点。带宽数据的获取方式可以通过分布在通信网络或信道中的各带宽数据侦测设备获取,也可以通过其他方式获取。本实施例中的历史带宽数据可以包括多个数据样本子集,该多个数据样本子集可以按照用户进行划分,即每个用户的各个时间点的带宽可以构成数据样本子集,这样针对性的对所需要分析的用户带宽使用情况进行分析和预测。在其他的实施例中也可以根据用户和时间进行画法数据样本子集,即可以利用某一用户在预设时间段内的带宽构成数据样本子集,该预设时间段可以是以年为单位,如一年,也可以是月为单位,如一个月,也可以是其他任意的时间区间,但是在优选的实施方案中,一般不小于一个月。The historical bandwidth data in step S11 can be the bandwidth data used by users within a period of time before the current date, and the bandwidth data is a period of one day, and is a fixed time point in a day (dividing a day according to a predetermined time granularity For example, take 5 minutes as the collection granularity of bandwidth data, that is, get a bandwidth value every 5 minutes. Different time granularities can be selected according to different services, and the embodiment of the present invention does not limit the selection of time granularity). value. For example, bandwidth data and corresponding time points 60 days before the current date. The bandwidth data can be obtained through various bandwidth data detection devices distributed in the communication network or channels, or through other methods. The historical bandwidth data in this embodiment may include multiple data sample subsets, and the multiple data sample subsets may be divided according to users, that is, the bandwidth of each user at each time point may constitute a data sample subset, so that targeted Analyze and predict the user bandwidth usage that needs to be analyzed. In other embodiments, data sample subsets can also be drawn according to the user and time, that is, the bandwidth of a certain user within a preset time period can be used to form a data sample subset, and the preset time period can be based on a year The unit, such as a year, may also be a unit of a month, such as one month, or any other time interval, but in a preferred embodiment, it is generally not less than one month.
在一些实施例中,所述历史带宽数据包括在各时间点获取的带宽Aij,其中,Ai,j表示日期为i,时间为j时的带宽。如A20160101,1200可以表示该用户2016年1月1日12点整的带宽量,本实施例中的数据样本集包括大量的关于Aij的数据集合。In some embodiments, the historical bandwidth data includes bandwidth A ij acquired at each time point, where A i,j represents the bandwidth when date is i and time is j. For example, A 20160101 , 1200 may indicate the amount of bandwidth of the user at 12 o'clock on January 1, 2016, and the data sample set in this embodiment includes a large number of data sets about A ij .
如图2所示,在一些实施例中步骤S12、根据所述历史带宽数据确定用于预测所述用户在不同时间点所使用带宽范围的带宽预测模型包括:As shown in FIG. 2, in some embodiments, step S12, determining a bandwidth prediction model for predicting the range of bandwidth used by the user at different time points according to the historical bandwidth data includes:
S21、分别计算预设时间内,每天同一时间点的带宽和与所述同一时间点相隔第一时间的时间点处的带宽之间的一阶差分构成第一一阶差分集,获取所述第一一阶差分集中的众数为第一众数;S21. Calculate the first-order difference between the bandwidth at the same time point every day and the bandwidth at a time point separated from the same time point by a first time within the preset time to form a first-order difference set, and obtain the first-order difference set. - the mode in the first-order difference set is the first mode;
S22、分别计算预设时间内,所述每天同一时间点的带宽和与所述同一时间点相隔第二时间的时间点处带宽之间的一阶差分构成第二一阶差分集,获取所述第二一阶差分集中的众数为第二众数;S22. Calculate respectively the first-order difference between the bandwidth at the same time point every day and the bandwidth at a time point separated from the same time point by a second time within a preset time to form a second first-order difference set, and obtain the The mode in the second first-order difference set is the second mode;
S23、根据所述第一众数和第二众数,确定所述带宽预测模型;所述带宽预测模型如下:S23. Determine the bandwidth prediction model according to the first mode and the second mode; the bandwidth prediction model is as follows:
Fi,j=a*(Ai,j-t1+mean1)+b*(Ai,j-t2+mean2);F i,j = a*(A i,j-t1 +mean 1 )+b*(A i,j-t2 +mean 2 );
其中,a表示第一权重,b表示第二权重,并且a+b=1,mean1表示第一众数,mean2表示第二众数,Fi,j表示时间为j时的预测带宽,Ai,j-t1表示与时间j以第一时间t1为间隔时的带宽,Ai,j-t2表示与时间j以第二时间t2为间隔时的带宽。Wherein, a represents the first weight, b represents the second weight, and a+b=1, mean 1 represents the first mode, mean 2 represents the second mode, F i,j represents the prediction bandwidth when the time is j, A i,j-t1 represents the bandwidth when time j is separated by the first time t1, and A i,j-t2 represents the bandwidth when time j is separated by the second time t2.
本实施例中,为了计算出每个用户每天的每个时间点的带宽,需要对每天的同一时间点的带宽值进行分析计算,以预测出后一天的该时间点的带宽。In this embodiment, in order to calculate the bandwidth of each user at each time point every day, it is necessary to analyze and calculate the bandwidth value at the same time point every day, so as to predict the bandwidth at the time point of the next day.
本实施例中,可以随机的计算预设时间(如半年)内,每天同一时间点的带宽与相隔第一时间的带宽之间的一阶差分构成第一一阶差分集,以及每天同一时间点的带宽与相隔第二时间的带宽之间的一阶差分构成第二一阶差分集;该第一时间和第二时间可以是任意的时间间隔,一般以分钟为单位(一般小于30分钟),如本实施例中的第一时间可以是5分钟,第二时间可以是10分钟。In this embodiment, within the preset time (such as half a year), the first-order difference between the bandwidth at the same time point every day and the bandwidth separated by the first time can be randomly calculated to form the first first-order difference set, and at the same time point every day The first-order difference between the bandwidth of the bandwidth and the bandwidth separated by the second time constitutes a second first-order difference set; the first time and the second time can be any time interval, generally in minutes (generally less than 30 minutes), For example, the first time in this embodiment may be 5 minutes, and the second time may be 10 minutes.
也就是说,本实施例中获得的第一一阶差分集可以表示为Bn=Ai,j-Ai,j-nt1,其中Bn表示以第一时间为间隔的一阶差分值,t1表示第一时间。That is to say, the first first-order difference set obtained in this embodiment can be expressed as Bn=A i,j -A i,j-nt1 , where Bn represents the first-order difference values at intervals of the first time, and t1 represents first timing.
本实施例获得的第二一阶差分集可以表示为Cn=Ai,j-Ai,j-nt2,其中Cn表示以第二时间为间隔的一阶差分值,t2表示第二时间。The second first-order difference set obtained in this embodiment can be expressed as Cn=A i,j -A i,j-nt2 , where Cn represents the first-order difference values at intervals of the second time, and t2 represents the second time.
在本实施例中确定第一一阶差分集和第二一阶差分集之后分别采取直方图原理确定对应于第一一阶差分集的第一众数和对应于第二一阶差分集的第二众数。所述“众数”,为集中出现的区间中的数据。本发明实施例中第一一阶差分集和第二一阶差分集中的序列的最大值和最小值作为整个区间的两端点,设置分区参数n=3。统计序列落入相应区间内的数目,选取数目最多区间中的数据,计算其均值确定为众数。In this embodiment, after determining the first first-order difference set and the second first-order difference set, the histogram principle is used to determine the first mode corresponding to the first first-order difference set and the first mode corresponding to the second first-order difference set. Two modes. The "mode" refers to the data in the interval that appears intensively. In the embodiment of the present invention, the maximum value and the minimum value of the sequence in the first first-order difference set and the second first-order difference set are used as two endpoints of the entire interval, and the partition parameter n=3 is set. Count the number of sequences falling into the corresponding interval, select the data in the interval with the largest number, calculate its mean value and determine it as the mode.
例如,第一一阶差分集的表达式可以表示为Bi,j-nt1=Ai,j-Ai,j-nt1,其中,n为整数,t1表示第一时间。例如:For example, the expression of the first first-order difference set may be expressed as B i,j-nt1 =A i,j -A i,j-nt1 , where n is an integer, and t1 represents the first time. E.g:
B20160530,1155=A20160530,1200-A20160530,1155;B 20160530 , 1155 = A 20160530 , 1200 -A 20160530 , 1155;
B20160529,1155=A20160529,1200-A20160529,1155;B 20160529 , 1155 = A 20160529 , 1200 -A 20160529 , 1155;
B20160528,1155=A20160528,1200-A20160528,1155;……。B 20160528 , 1155 = A 20160528 , 1200 -A 20160528 , 1155; ….
其中,B20160530,115、B20160529,1155、B20160528,1155……等为第一一阶差分集中的序列值。Among them, B 20160530 , 115, B 20160529 , 1155, B 20160528 , 1155, etc. are the sequence values in the first first-order difference set.
例如,第二一阶差分集的表达式可以表示为Ci,j-nt1=Ai,j-Ai,j-nt1,其中,n为整数,t2表示第二时间。例如:For example, the expression of the second first-order difference set may be expressed as C i,j-nt1 =A i,j -A i,j-nt1 , where n is an integer, and t2 represents the second time. E.g:
C20160530,1155=A20160530,1200-A20160530,1155;C 20160530 , 1155 = A 20160530 , 1200 -A 20160530 , 1155;
C20160529,1155=A20160529,1200-A20160529,1155;C 20160529 , 1155 = A 20160529 , 1200-A 20160529 , 1155;
C20160528,1155=A20160528,1200-A20160528,1155;……。C 20160528 , 1155 = A 20160528 , 1200 -A 20160528 , 1155; ….
其中,C20160530,115、C20160529,1155、C20160528,1155……等为第二一阶差分集中的序列值。Among them, C 20160530 , 115, C 20160529 , 1155, C 20160528 , 1155, etc. are the sequence values in the second first-order difference set.
本实施例采用众数的方法确定第一众数和第二众数以用于确定带宽预测模型,能够得到更加准确的带宽预测模型。以“众数”的概念,确定序列中出现最多的数值作为用于确定带宽预测模型,避免了偶尔出现的小概率序列值影响最终确定的带宽预测模型的准确性。In this embodiment, the mode of mode is used to determine the first mode and the second mode for determining the bandwidth prediction model, and a more accurate bandwidth prediction model can be obtained. With the concept of "moderate number", determine the value that appears most in the sequence as the bandwidth prediction model, avoiding the occasional small probability sequence value from affecting the accuracy of the final bandwidth prediction model.
如图3所示,在一些实施例中异常带宽确定方法还包括:As shown in Figure 3, in some embodiments, the abnormal bandwidth determination method further includes:
S31、分别计算预设时间内,每天同一时间点的实际带宽与预测带宽之间的一阶差分构成第三一阶差分集;S31. Calculate the first-order difference between the actual bandwidth and the predicted bandwidth at the same time point every day within the preset time respectively to form a third first-order difference set;
S32、确定所述带宽范围的上边界和下边界;其中S32. Determine the upper boundary and the lower boundary of the bandwidth range; wherein
所述上边界的表达式为:The expression of the upper boundary is:
L1=a*(Ai,j-t1+mean1+3*σ1)+b*(Ai,j-t2+mean2+3*σ2)+3*σ3;L 1 =a*(A i,j-t1 +mean 1 +3*σ 1 )+b*(A i,j-t2 +mean 2 +3*σ 2 )+3*σ 3 ;
所述下边界的表达式为:The expression of the lower bound is:
L2=a*(Ai,j-t1+mean1-3*σ1)+b*(Ai,j-t2+mean2-3*σ2)-3*σ3;L 2 =a*(A i,j-t1 +mean 1 -3*σ 1 )+b*(A i,j-t2 +mean 2 -3*σ 2 )-3*σ 3 ;
其中,L1表示所述带宽范围的上边界,L2表示所述带宽范围的下边界,σ1为所述第一一阶差分集的标准差,σ2为所述第二一阶差分集的标准差,σ3为所述第三一阶差分集的标准差。Wherein, L 1 represents the upper boundary of the bandwidth range, L 2 represents the lower boundary of the bandwidth range, σ 1 is the standard deviation of the first first-order difference set, and σ 2 is the second first-order difference set The standard deviation of , σ 3 is the standard deviation of the third first-order difference set.
本实施例步骤S31中计算得到了实际带宽值和预测带宽值之间的额白噪声。白噪声定义为实际带宽值与预测带宽值之间的偏差,是无法避免的变量之一。通过考虑真实值与预测值之间的偏差引起的白噪声,使得本实施例确定的带宽范围的上下边界更加符合实际情况,从而能够更加准确的确定异常带宽。The amount of white noise between the actual bandwidth value and the predicted bandwidth value is calculated in step S31 of this embodiment. White noise, defined as the deviation between the actual bandwidth value and the predicted bandwidth value, is one of the unavoidable variables. By considering the white noise caused by the deviation between the real value and the predicted value, the upper and lower boundaries of the bandwidth range determined in this embodiment are more in line with the actual situation, so that the abnormal bandwidth can be determined more accurately.
本实施例中的第三一阶差分集的表达式可以表示为Di,j=Ai,j-Fi,j,其中,Ai,j为日期为i时间为j时的实际带宽值,Fi,j为日期为i时间为j时的预测带宽值。例如:The expression of the third first-order difference set in this embodiment can be expressed as D i,j =A i,j -F i,j , where A i,j is the actual bandwidth value when the date is i and the time is j , F i,j is the predicted bandwidth value when the date is i and the time is j. E.g:
D20160530,1155=A20160530,1155-F20160530,1155;D 20160530 , 1155 = A 20160530 , 1155-F 20160530 , 1155;
D20160529,1155=A20160529,1155-F20160529,1155;D 20160529 , 1155 = A 20160529 , 1155-F 20160529 , 1155;
D20160528,1155=A20160528,1155-F20160528,1155;……。D 20160528 , 1155 = A 20160528 , 1155 -F 20160528 , 1155; ….
其中,D20160530,1155、D20160529,1155、D20160528,1155……等为第三一阶差分集中的序列值。Among them, D 20160530 , 1155, D 20160529 , 1155, D 20160528 , 1155, etc. are the sequence values in the third first-order difference set.
本实施例中需要分别计算第一一阶差分集的标准差σ1,第二一阶差分集的标准差σ2,第三一阶差分集的标准差σ3,以用于确定带宽范围的上下界限。In this embodiment, it is necessary to calculate the standard deviation σ 1 of the first first-order difference set, the standard deviation σ 2 of the second first-order difference set, and the standard deviation σ 3 of the third first-order difference set, so as to determine the bandwidth range Upper and lower boundaries.
如图4所示,在一些实施例中所述第一权重和第二权重由以下步骤确定:As shown in Figure 4, in some embodiments the first weight and the second weight are determined by the following steps:
S41、计算所述第三一阶差分集中的实际带宽与预测带宽之间的一阶差分值的平方和Q:S41. Calculate the square sum Q of the first-order difference values between the actual bandwidth and the predicted bandwidth in the third first-order difference set:
其中,A’i,j=Ai,j-t1+mean1;A”i,j=Ai,j-t2+mean2,日期i的区间为(i0,iend),时间j的区间为(j0,jend);Among them, A' i,j =A i,j-t1 +mean 1 ; A” i,j =A i,j-t2 +mean 2 , the interval of date i is (i0, iend), and the interval of time j is (j0, jend);
S42、根据和计算得到所述第一权重a和第二权重b。S42. According to with The first weight a and the second weight b are obtained through calculation.
本实施例中通过最小二乘法,最小化实际带宽与预测带宽之间差值的平方作为限制条件确定第一权重a和第二权重b。因此,本实施例确定的第一权重和第二权重作为带宽预测模型的参数,可以最小化预测带宽值和真实带宽值之间的差值,提升了带宽预测模型的准确性。In this embodiment, the first weight a and the second weight b are determined by minimizing the square of the difference between the actual bandwidth and the predicted bandwidth as a constraint condition by using the least square method. Therefore, the first weight and the second weight determined in this embodiment are used as parameters of the bandwidth prediction model, which can minimize the difference between the predicted bandwidth value and the real bandwidth value, and improve the accuracy of the bandwidth prediction model.
上述实施例中的历史带宽数据分为两部分使用,第一部分数据用作基准数据(1/3的历史带宽数据),第二部分数据作为测试数据(2/3的历史带宽数据)。其中,第一部分数据用于确定第一众数和第二众数以确定上述实施例中的带宽预测模型;第二部分数据用于带入所述带宽预测模型中得到预测带宽值,并与实际带宽值最差后确定第三一阶差分集。再根据所述第三一阶差分集基于最小二乘法来确定最优的带宽预测模型的权重。The historical bandwidth data in the above embodiment is divided into two parts, the first part of data is used as benchmark data (1/3 of historical bandwidth data), and the second part of data is used as test data (2/3 of historical bandwidth data). Among them, the first part of data is used to determine the first mode and the second mode to determine the bandwidth prediction model in the above embodiment; the second part of data is used to bring into the bandwidth prediction model to obtain the predicted bandwidth value, and compare with the actual The third first-order difference set is determined after the bandwidth value is the worst. Then, the weight of the optimal bandwidth prediction model is determined based on the least squares method according to the third first-order difference set.
此外,因为历史带宽数据中存在异常点的原因,为了避免异常点对建立带宽预测模型的准确性的影响,本发明实施例中,对第三一阶差分集中的差值按照大小进行排序。按照百分比删除序列中前面的较大值(例如序列的5%)和后面较小值(例如序列的5%),保留剩下的差值(序列的90%)进行后续的计算。In addition, because there are abnormal points in the historical bandwidth data, in order to avoid the influence of the abnormal points on the accuracy of establishing the bandwidth prediction model, in the embodiment of the present invention, the differences in the third first-order difference set are sorted according to their size. Delete the previous larger value (eg 5% of the sequence) and the later smaller value (eg 5% of the sequence) in the sequence according to the percentage, and keep the remaining difference (90% of the sequence) for subsequent calculation.
在一些实施例中,在当所述实际带宽超出所述带宽范围时确定所述实际带宽为异常带宽之后生成报警信息。In some embodiments, alarm information is generated after the actual bandwidth is determined to be abnormal bandwidth when the actual bandwidth exceeds the bandwidth range.
本实施例的异常带宽确定方法可以在确定存在异常带宽的第一时间通过报警信息通知工作人员进行紧急处理,解决引起异常带宽发生的问题。The method for determining the abnormal bandwidth in this embodiment can notify the staff to perform emergency treatment through the alarm information at the first time when the abnormal bandwidth is determined, so as to solve the problem that causes the abnormal bandwidth to occur.
实践发现,可能会同时出现多处异常带宽。但由于工作人员有限,只能对出现的多处异常带宽进行逐个分析并解决导致的异常带宽出现的问题。但是多处异常带宽又可能是有着不同的严重程度的,工作人员进行机械的逐个分析解决显然是不合理的,而是应该将严重程度高的放在高优先级进行分析处理。因此,在本发明的实施例中生成的报警信息明确地按照带宽异常的严重性进行分级报警。Practice has found that multiple abnormal bandwidths may appear at the same time. However, due to the limited staff, it is only possible to analyze the multiple abnormal bandwidths one by one and solve the resulting abnormal bandwidth problems. However, multiple abnormal bandwidths may have different severities. It is obviously unreasonable for the staff to mechanically analyze and solve them one by one. Instead, the ones with higher severity should be analyzed and processed with high priority. Therefore, the alarm information generated in the embodiment of the present invention clearly performs hierarchical alarms according to the severity of the bandwidth anomaly.
本发明实施例中,设计了逻辑表结构,命名为报警等级规则表。引入两个指标参数来进行报警等级的划分。所述两个指标参数分别为:带宽相对变化率d和同业务线异常用户数m。其中,带宽相对变化率d定义为:当前时间点的带宽值与前一时间点的带宽值之差与当前时间点的带宽值的比值,例如,当前5分钟点的带宽值减去前一个5分钟点的带宽值之后除以当前5分钟点的带宽值。In the embodiment of the present invention, a logic table structure is designed and named as alarm level rule table. Introduce two index parameters to divide the alarm level. The two index parameters are respectively: the relative bandwidth change rate d and the number m of abnormal users of the same service line. Among them, the bandwidth relative change rate d is defined as: the ratio of the difference between the bandwidth value at the current time point and the bandwidth value at the previous time point to the bandwidth value at the current time point, for example, the bandwidth value at the current 5-minute point minus the previous 5 The bandwidth value at the minute point is divided by the current bandwidth value at the 5-minute point.
所述对异常带宽分级报警的步骤包括:The step of classifying and alerting the abnormal bandwidth includes:
确定当前业务下异常带宽点的带宽相对于前一时间点的带宽相对变化率d是否大于预设值(例如,预设值为60%);Determine whether the relative change rate d of the bandwidth of the abnormal bandwidth point under the current service is greater than a preset value (for example, the preset value is 60%) relative to the bandwidth of the previous time point;
当确定当前业务下带宽相对变化率d大于或者等于预设值的用于数大于或者等于3时生成四级报警信息;Generate four-level alarm information when it is determined that the relative change rate d of bandwidth under the current service is greater than or equal to the preset value and the number of applications is greater than or equal to 3;
当确定当前业务下带宽相对变化率d大于或者等于预设值的用于数大于或者等于2时生成三级报警信息;When it is determined that the relative change rate d of the bandwidth under the current service is greater than or equal to the preset value and the usage number is greater than or equal to 2, a three-level alarm message is generated;
当确定当前业务下带宽相对变化率d大于或者等于预设值的用户数大于或者等于1时生成二级报警信息;When it is determined that the relative rate of change of bandwidth d under the current service is greater than or equal to the number of users whose preset value is greater than or equal to 1, a secondary alarm message is generated;
当确定当前业务下带宽相对变化率d小于预设值的用户数大于或者等于3时生成三级报警信息;When it is determined that the number of users whose bandwidth relative change rate d is less than the preset value under the current service is greater than or equal to 3, a three-level alarm message is generated;
当确定当前业务下带宽相对变化率d小于预设值的用户数大于或者等于2时生成二级报警信息;When it is determined that the number of users whose bandwidth relative change rate d is less than the preset value under the current service is greater than or equal to 2, a secondary alarm message is generated;
当确定当前业务下带宽相对变化率d小于预设值的用户数大于或者等于1时生成一级报警信息。本实施例中一级报警信息至四级报警信息所代表的异常带宽情况逐级严重。When it is determined that the number of users whose bandwidth relative change rate d is less than the preset value under the current service is greater than or equal to 1, a first-level alarm message is generated. In this embodiment, the abnormal bandwidth conditions represented by the first-level alarm information to the fourth-level alarm information are serious step by step.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作合并,但是本领域技术人员应该知悉,本发明实施例并不受所描述的动作顺序的限制,因为依据本发明实施例,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明实施例所必须的。It should be noted that, for the sake of simple description, all the aforementioned method embodiments are described as a series of combined actions. However, those skilled in the art should know that the embodiments of the present invention are not limited by the sequence of actions described. Because according to the embodiment of the present invention, some steps may be performed in other order or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification belong to preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the foregoing embodiments, the descriptions of each embodiment have their own emphases, and for parts not described in detail in a certain embodiment, reference may be made to relevant descriptions of other embodiments.
如图5所示为本申请一实施例提供的一种异常带宽确定系统500,包括:As shown in Figure 5, an abnormal bandwidth determination system 500 provided by an embodiment of the present application includes:
历史数据获取模块510,用于获取预设时间内用户在不同时间点所使用的历史带宽数据;A historical data acquisition module 510, configured to acquire historical bandwidth data used by users at different time points within a preset time;
模型确定模块520,用于根据所述历史带宽数据确定用于预测所述用户在不同时间点所使用带宽范围的带宽预测模型;A model determination module 520, configured to determine a bandwidth prediction model for predicting the range of bandwidth used by the user at different time points according to the historical bandwidth data;
带宽范围确定模块530,用于根据所述带宽预测模型预测所述用户在某一时间点所使用的带宽范围;A bandwidth range determination module 530, configured to predict the bandwidth range used by the user at a certain point in time according to the bandwidth prediction model;
比较模块540,用于比较所述用户在所述某一时间点所使用的实际带宽与所述带宽范围;A comparison module 540, configured to compare the actual bandwidth used by the user at the certain time point with the bandwidth range;
异常判定模块550,用于当所述实际带宽超出所述带宽范围时确定所述实际带宽为异常带宽。An abnormality determination module 550, configured to determine that the actual bandwidth is an abnormal bandwidth when the actual bandwidth exceeds the bandwidth range.
如图6所示,在一些实施例中,所述历史带宽数据包括在各时间点获取的带宽Ai,j,其中,Ai,j表示日期为i,时间为j时的带宽;As shown in FIG. 6, in some embodiments, the historical bandwidth data includes bandwidth A i,j acquired at each time point, where A i,j represents the bandwidth when the date is i and the time is j;
所述模型确定模块520包括:The model determination module 520 includes:
第一众数确定单元521,用于分别计算预设时间内,每天同一时间点的带宽和与所述同一时间点相隔第一时间的时间点处的带宽之间的一阶差分构成第一一阶差分集,获取所述第一一阶差分集中的众数为第一众数;The first mode determination unit 521 is configured to respectively calculate the first-order difference between the bandwidth at the same time point every day and the bandwidth at a time point separated from the same time point by a first time within a preset time to form the first one An order difference set, obtaining the mode number in the first first order difference set as the first mode number;
第二众数确定单元522,用于分别计算预设时间内,所述每天同一时间点的带宽和与所述同一时间点相隔第二时间的时间点处带宽之间的一阶差分构成第二一阶差分集,获取所述第二一阶差分集中的众数为第二众数;The second mode determination unit 522 is configured to respectively calculate the first-order difference between the bandwidth at the same time point every day and the bandwidth at a time point separated from the same time point by a second time within the preset time to form the second mode. A first-order difference set, obtaining the mode in the second first-order difference set as the second mode;
模型确定单元523,用于根据所述第一众数和第二众数,确定所述带宽预测模型;其中A model determining unit 523, configured to determine the bandwidth prediction model according to the first mode and the second mode; wherein
所述带宽预测模型为:Fi,j=a*(Ai,j-t1+mean1)+b*(Ai,j-t2+mean2);The bandwidth prediction model is: F i,j =a*(A i,j-t1 +mean 1 )+b*(A i,j-t2 +mean 2 );
其中,a表示第一权重,b表示第二权重,并且a+b=1,mean1表示第一众数,mean2表示第二众数,Fi,j表示时间为j时的预测带宽,Ai,j-t1表示与时间j以第一时间t1为间隔时的带宽,Ai,j-t2表示与时间j以第二时间t2为间隔时的带宽。Wherein, a represents the first weight, b represents the second weight, and a+b=1, mean 1 represents the first mode, mean 2 represents the second mode, F i,j represents the prediction bandwidth when the time is j, A i,j-t1 represents the bandwidth when time j is separated by the first time t1, and A i,j-t2 represents the bandwidth when time j is separated by the second time t2.
如图7所示,在一些实施例中,所述异常带宽确定系统500还包括:As shown in FIG. 7, in some embodiments, the abnormal bandwidth determination system 500 further includes:
差分计算模块560,用于分别计算预设时间内,每天同一时间点的实际带宽与预测带宽之间的一阶差分构成第三一阶差分集;The difference calculation module 560 is used to calculate the first-order difference between the actual bandwidth and the predicted bandwidth at the same time point every day within the preset time to form a third first-order difference set;
上下边界确定模块570,用于确定所述带宽范围的上边界和下边界;其中The upper and lower boundary determination module 570 is used to determine the upper boundary and the lower boundary of the bandwidth range; wherein
所述上边界的表达式为:The expression of the upper boundary is:
L1=a*(Ai,j-t1+mean1+3*σ1)+b*(Ai,j-t2+mean2+3*σ2)+3*σ3;L 1 =a*(A i,j-t1 +mean 1 +3*σ 1 )+b*(A i,j-t2 +mean 2 +3*σ 2 )+3*σ 3 ;
所述下边界的表达式为:The expression of the lower bound is:
L2=a*(Ai,j-t1+mean1-3*σ1)+b*(Ai,j-t2+mean2-3*σ2)-3*σ3;L 2 =a*(A i,j-t1 +mean 1 -3*σ 1 )+b*(A i,j-t2 +mean 2 -3*σ 2 )-3*σ 3 ;
其中,L1表示所述带宽范围的上边界,L2表示所述带宽范围的下边界,σ1为所述第一一阶差分集的标准差,σ2为所述第二一阶差分集的标准差,σ3为所述第三一阶差分集的标准差。Wherein, L 1 represents the upper boundary of the bandwidth range, L 2 represents the lower boundary of the bandwidth range, σ 1 is the standard deviation of the first first-order difference set, and σ 2 is the second first-order difference set The standard deviation of , σ 3 is the standard deviation of the third first-order difference set.
如图8所示,所述模型确定模块520还包括权重确定单元521,所述权重确定单元521包括:As shown in Figure 8, the model determination module 520 also includes a weight determination unit 521, and the weight determination unit 521 includes:
平方和计算元件5211,用于计算所述第三一阶差分集中的实际带宽与预测带宽之间的一阶差分值的平方和Q:The square sum calculation element 5211 is used to calculate the square sum Q of the first-order difference values between the actual bandwidth and the predicted bandwidth in the third first-order difference set:
其中,A’i,j=Ai,j-t1+mean1;A”i,j=Ai,j-t2+mean2,日期i的区间为(i0,iend),时间j的区间为(j0,jend);Among them, A' i,j =A i,j-t1 +mean 1 ; A” i,j =A i,j-t2 +mean 2 , the interval of date i is (i0, iend), and the interval of time j is (j0, jend);
权重计算元件5212,用于根据和计算得到所述第一权重a和第二权重b。Weight calculation element 5212, for according to with The first weight a and the second weight b are obtained through calculation.
在一些实施例中,所述异常带宽确定系统500还包括报警信息生成模块,用于在当所述实际带宽超出所述带宽范围时确定所述实际带宽为异常带宽之后生成报警信息。In some embodiments, the abnormal bandwidth determination system 500 further includes an alarm information generating module, configured to generate alarm information after determining that the actual bandwidth is abnormal bandwidth when the actual bandwidth exceeds the bandwidth range.
上述本发明实施例的异常带宽确定系统可用于执行本发明实施例的异常带宽确定方法,并相应的达到上述本发明实施例的异常带宽确定方法所达到的技术效果,这里不再赘述。The system for determining the abnormal bandwidth of the above-mentioned embodiment of the present invention can be used to execute the method for determining the abnormal bandwidth of the embodiment of the present invention, and correspondingly achieve the technical effect achieved by the method for determining the abnormal bandwidth of the embodiment of the present invention, which will not be repeated here.
本发明实施例中可以通过硬件处理器(hardware processor)来实现相关功能模块。In the embodiment of the present invention, a hardware processor (hardware processor) may be used to implement related functional modules.
另一方面,本发明实施例提供一种非易失性计算机可读存储介质,所述存储介质中存储有一个或多个包括执行指令的程序,所述执行指令能够被电子设备(包括但不限于计算机,服务器,或者网络设备等)读取并执行,以用于执行上述方法实施例中的相关步骤,例如:On the other hand, an embodiment of the present invention provides a non-volatile computer-readable storage medium, where one or more programs including execution instructions are stored in the storage medium, and the execution instructions can be executed by an electronic device (including but not limited to computers, servers, or network devices, etc.) to read and execute, to perform the relevant steps in the above method embodiments, for example:
获取预设时间内用户在不同时间点所使用的历史带宽数据;Obtain historical bandwidth data used by users at different points in time within a preset period;
根据所述历史带宽数据确定用于预测所述用户在不同时间点所使用带宽范围的带宽预测模型;determining a bandwidth prediction model for predicting bandwidth ranges used by the user at different time points according to the historical bandwidth data;
根据所述带宽预测模型预测所述用户在某一时间点所使用的带宽范围;Predict the bandwidth range used by the user at a certain point in time according to the bandwidth prediction model;
比较所述用户在所述某一时间点所使用的实际带宽与所述带宽范围;comparing the actual bandwidth used by the user at the certain time point with the bandwidth range;
当所述实际带宽超出所述带宽范围时确定所述实际带宽为异常带宽。When the actual bandwidth exceeds the bandwidth range, it is determined that the actual bandwidth is an abnormal bandwidth.
另一方面,本发明实施例还公开一种电子设备,该电子设备包括:On the other hand, the embodiment of the present invention also discloses an electronic device, which includes:
至少一个存储器,用于存放计算机操作指令;At least one memory for storing computer operation instructions;
至少一个处理器,用于执行所述存储器存储的计算机操作指令,以执行:at least one processor configured to execute said memory stored computer operating instructions to perform:
获取预设时间内用户在不同时间点所使用的历史带宽数据;Obtain historical bandwidth data used by users at different points in time within a preset period;
根据所述历史带宽数据确定用于预测所述用户在不同时间点所使用带宽范围的带宽预测模型;determining a bandwidth prediction model for predicting bandwidth ranges used by the user at different time points according to the historical bandwidth data;
根据所述带宽预测模型预测所述用户在某一时间点所使用的带宽范围;Predict the bandwidth range used by the user at a certain point in time according to the bandwidth prediction model;
比较所述用户在所述某一时间点所使用的实际带宽与所述带宽范围;comparing the actual bandwidth used by the user at the certain time point with the bandwidth range;
当所述实际带宽超出所述带宽范围时确定所述实际带宽为异常带宽。When the actual bandwidth exceeds the bandwidth range, it is determined that the actual bandwidth is an abnormal bandwidth.
图9是本申请另一实施例提供的执行异常带宽确定方法的电子设备的硬件结构示意图,如图9所示,该设备包括:Fig. 9 is a schematic diagram of the hardware structure of an electronic device for performing an abnormal bandwidth determination method provided by another embodiment of the present application. As shown in Fig. 9, the device includes:
一个或多个处理器910以及存储器920,图9中以一个处理器910为例。One or more processors 910 and memory 920, one processor 910 is taken as an example in FIG. 9 .
执行异常带宽确定方法的设备还可以包括:输入装置930和输出装置940。The device for executing the method for determining the abnormal bandwidth may further include: an input device 930 and an output device 940 .
处理器910、存储器920、输入装置930和输出装置940可以通过总线或者其他方式连接,图9中以通过总线连接为例。The processor 910, the memory 920, the input device 930, and the output device 940 may be connected through a bus or in other ways, and connection through a bus is taken as an example in FIG. 9 .
存储器920作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块,如本申请实施例中的异常带宽确定方法对应的程序指令/模块。处理器910通过运行存储在存储器920中的非易失性软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例异常带宽确定方法。The memory 920, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs and modules, such as the program corresponding to the abnormal bandwidth determination method in the embodiment of the present application directive/module. The processor 910 executes various functional applications and data processing of the server by running the non-volatile software programs, instructions and modules stored in the memory 920, that is, implements the method for determining abnormal bandwidth in the above method embodiment.
存储器920可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据异常带宽确定装置的使用所创建的数据等。此外,存储器920可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,存储器920可选包括相对于处理器910远程设置的存储器,这些远程存储器可以通过网络连接至异常带宽确定装置。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 920 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the usage of the abnormal bandwidth determination device, and the like. In addition, the memory 920 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the memory 920 may optionally include a memory that is remotely located relative to the processor 910, and these remote memories may be connected to the abnormal bandwidth determining device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
输入装置930可接收输入的数字或字符信息,以及产生与异常带宽确定装置的用户设置以及功能控制有关的键信号输入。输出装置940可包括显示屏等显示设备。The input device 930 can receive input number or character information, and generate key signal input related to user setting and function control of the abnormal bandwidth determination device. The output device 940 may include a display device such as a display screen.
所述一个或者多个模块存储在所述存储器920中,当被所述一个或者多个处理器910执行时,执行上述任意方法实施例中的异常带宽确定方法。The one or more modules are stored in the memory 920, and when executed by the one or more processors 910, execute the method for determining abnormal bandwidth in any of the above method embodiments.
上述产品可执行本申请实施例所提供的方法,具备执行方法相应的功能模块和有益效果。未在本实施例中详尽描述的技术细节,可参见本申请实施例所提供的方法。The above-mentioned products can execute the method provided by the embodiment of the present application, and have corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, refer to the method provided in the embodiment of this application.
本申请实施例的电子设备以多种形式存在,包括但不限于:The electronic equipment of the embodiment of the present application exists in various forms, including but not limited to:
(1)移动通信设备:这类设备的特点是具备移动通信功能,并且以提供话音、数据通信为主要目标。这类终端包括:智能手机(例如iPhone)、多媒体手机、功能性手机,以及低端手机等。(1) Mobile communication equipment: This type of equipment is characterized by mobile communication functions, and its main goal is to provide voice and data communication. Such terminals include: smart phones (such as iPhone), multimedia phones, feature phones, and low-end phones.
(2)超移动个人计算机设备:这类设备属于个人计算机的范畴,有计算和处理功能,一般也具备移动上网特性。这类终端包括:PDA、MID和UMPC设备等,例如iPad。(2) Ultra-mobile personal computer equipment: This type of equipment belongs to the category of personal computers, has computing and processing functions, and generally has the characteristics of mobile Internet access. Such terminals include: PDA, MID and UMPC equipment, such as iPad.
(3)便携式娱乐设备:这类设备可以显示和播放多媒体内容。该类设备包括:音频、视频播放器(例如iPod),掌上游戏机,电子书,以及智能玩具和便携式车载导航设备。(3) Portable entertainment equipment: This type of equipment can display and play multimedia content. Such devices include: audio and video players (such as iPod), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
(4)服务器:提供计算服务的设备,服务器的构成包括处理器、硬盘、内存、系统总线等,服务器和通用的计算机架构类似,但是由于需要提供高可靠的服务,因此在处理能力、稳定性、可靠性、安全性、可扩展性、可管理性等方面要求较高。(4) Server: A device that provides computing services. The composition of a server includes a processor, hard disk, memory, system bus, etc. The server is similar to a general-purpose computer architecture, but due to the need to provide high-reliability services, it is important in terms of processing power and stability. , Reliability, security, scalability, manageability and other aspects have high requirements.
(5)其他具有数据交互功能的电子装置。(5) Other electronic devices with data interaction function.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行各个实施例或者实施例的某些部分所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a general hardware platform, and of course also by hardware. Based on this understanding, the essence of the above technical solutions or the part that contributes to related technologies can be embodied in the form of software products, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, disk , CD, etc., including several instructions to make a computer device (which may be a personal computer, server, or network device, etc.) execute the methods described in each embodiment or some parts of the embodiments.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limiting them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present application.
Claims (11)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611115084.9A CN106656662A (en) | 2016-12-07 | 2016-12-07 | Method and system for determining abnormal bandwidth, and electronic device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611115084.9A CN106656662A (en) | 2016-12-07 | 2016-12-07 | Method and system for determining abnormal bandwidth, and electronic device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106656662A true CN106656662A (en) | 2017-05-10 |
Family
ID=58819285
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611115084.9A Pending CN106656662A (en) | 2016-12-07 | 2016-12-07 | Method and system for determining abnormal bandwidth, and electronic device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106656662A (en) |
Cited By (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107728599A (en) * | 2017-09-01 | 2018-02-23 | 北京中燕信息技术有限公司 | A kind of method and apparatus for determining refinery device valve state |
| CN108599976A (en) * | 2018-02-13 | 2018-09-28 | 广东省电信规划设计院有限公司 | Network quality assessment models construction method, device and computer equipment |
| CN110474852A (en) * | 2019-08-01 | 2019-11-19 | 网宿科技股份有限公司 | A kind of bandwidth scheduling method and device |
| CN111405319A (en) * | 2020-03-31 | 2020-07-10 | 北京达佳互联信息技术有限公司 | Bandwidth determination method and device, electronic equipment and storage medium |
| CN111464323A (en) * | 2019-01-18 | 2020-07-28 | 北京沃东天骏信息技术有限公司 | Node bandwidth scheduling method and scheduling device |
| CN111988196A (en) * | 2020-07-21 | 2020-11-24 | 中国长城科技集团股份有限公司 | Bandwidth detection method and device, electronic equipment and storage medium |
| WO2021063368A1 (en) * | 2019-09-30 | 2021-04-08 | 华为技术有限公司 | Cdn system-based source station state detection method and device |
| CN114143223A (en) * | 2020-08-13 | 2022-03-04 | 贵州白山云科技股份有限公司 | Bandwidth anomaly detection method, device, medium and equipment |
| US20220130018A1 (en) * | 2020-10-23 | 2022-04-28 | Montage Lz Technologies (Chengdu) Co., Ltd. | Method, device, and storage medium for removing false contours in an image |
-
2016
- 2016-12-07 CN CN201611115084.9A patent/CN106656662A/en active Pending
Cited By (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107728599A (en) * | 2017-09-01 | 2018-02-23 | 北京中燕信息技术有限公司 | A kind of method and apparatus for determining refinery device valve state |
| CN108599976A (en) * | 2018-02-13 | 2018-09-28 | 广东省电信规划设计院有限公司 | Network quality assessment models construction method, device and computer equipment |
| CN111464323A (en) * | 2019-01-18 | 2020-07-28 | 北京沃东天骏信息技术有限公司 | Node bandwidth scheduling method and scheduling device |
| CN110474852A (en) * | 2019-08-01 | 2019-11-19 | 网宿科技股份有限公司 | A kind of bandwidth scheduling method and device |
| CN110474852B (en) * | 2019-08-01 | 2023-06-20 | 网宿科技股份有限公司 | Bandwidth scheduling method and device |
| WO2021063368A1 (en) * | 2019-09-30 | 2021-04-08 | 华为技术有限公司 | Cdn system-based source station state detection method and device |
| CN111405319A (en) * | 2020-03-31 | 2020-07-10 | 北京达佳互联信息技术有限公司 | Bandwidth determination method and device, electronic equipment and storage medium |
| CN111405319B (en) * | 2020-03-31 | 2021-07-23 | 北京达佳互联信息技术有限公司 | Bandwidth determination method, apparatus, electronic device and storage medium |
| US11388459B2 (en) | 2020-03-31 | 2022-07-12 | Beijing Dajia Internet Information Technology Co., Ltd. | Method and apparatus for determining bandwidth, and electronic device and storage medium |
| CN111988196A (en) * | 2020-07-21 | 2020-11-24 | 中国长城科技集团股份有限公司 | Bandwidth detection method and device, electronic equipment and storage medium |
| CN114143223A (en) * | 2020-08-13 | 2022-03-04 | 贵州白山云科技股份有限公司 | Bandwidth anomaly detection method, device, medium and equipment |
| CN114143223B (en) * | 2020-08-13 | 2023-11-21 | 贵州白山云科技股份有限公司 | Bandwidth anomaly detection method, device, medium and equipment |
| US20220130018A1 (en) * | 2020-10-23 | 2022-04-28 | Montage Lz Technologies (Chengdu) Co., Ltd. | Method, device, and storage medium for removing false contours in an image |
| US12154253B2 (en) * | 2020-10-23 | 2024-11-26 | Montage Lz Technologies (Chengdu) Co., Ltd. | Method, device, and storage medium for removing false contours in an image |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN106656662A (en) | Method and system for determining abnormal bandwidth, and electronic device | |
| TWI696124B (en) | Model integration method and device | |
| US10608905B2 (en) | Method and system for temporal sampling in evolving network | |
| TWI745623B (en) | Model integration method and device | |
| US9866578B2 (en) | System and method for network intrusion detection anomaly risk scoring | |
| US9817893B2 (en) | Tracking changes in user-generated textual content on social media computing platforms | |
| US8849798B2 (en) | Sampling analysis of search queries | |
| KR101904436B1 (en) | Machine learning based identification of broken network connections | |
| US9225738B1 (en) | Markov behavior scoring | |
| US9588813B1 (en) | Determining cost of service call | |
| CN109388674B (en) | Data processing method, device, equipment and readable storage medium | |
| CN112650921B (en) | Object recommendation method, device, equipment and storage medium | |
| CN109558561A (en) | A kind of user behavior path acquisition method, device, equipment and medium | |
| CA3211747A1 (en) | Alert actioning and machine learning feedback | |
| Boldea et al. | Change point estimation in panel data with time‐varying individual effects | |
| CN110245684B (en) | Data processing method, electronic device, and medium | |
| CN109271495B (en) | Question-answer recognition effect detection method, device, equipment and readable storage medium | |
| CN113342998B (en) | Multimedia resource recommendation method and device, electronic equipment and storage medium | |
| CN119718733A (en) | Log data generation method, device, equipment and medium based on support vector machine | |
| US10970341B2 (en) | Predictive modeling in event processing systems for big data processing in cloud | |
| CN116578911A (en) | Data processing method, device, electronic device and computer storage medium | |
| CN113961565A (en) | Data detection method, system, computer system and readable storage medium | |
| CN108429632A (en) | A business monitoring method and device | |
| Song et al. | System Design of Integrated Intelligent Platform of National Fitness Based on K‐Means Clustering | |
| CN115913657B (en) | A method and apparatus for risk assessment of equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| WD01 | Invention patent application deemed withdrawn after publication | ||
| WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170510 |