CN102916851A - 一种网络流量预测方法及装置 - Google Patents

一种网络流量预测方法及装置 Download PDF

Info

Publication number
CN102916851A
CN102916851A CN2012103593870A CN201210359387A CN102916851A CN 102916851 A CN102916851 A CN 102916851A CN 2012103593870 A CN2012103593870 A CN 2012103593870A CN 201210359387 A CN201210359387 A CN 201210359387A CN 102916851 A CN102916851 A CN 102916851A
Authority
CN
China
Prior art keywords
flow
predicted
network traffic
sample value
operating system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2012103593870A
Other languages
English (en)
Other versions
CN102916851B (zh
Inventor
吕广杰
朱波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baoding Inspur Cloud Computing Co ltd
Original Assignee
Inspur Beijing Electronic Information Industry Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201210359387.0A priority Critical patent/CN102916851B/zh
Publication of CN102916851A publication Critical patent/CN102916851A/zh
Application granted granted Critical
Publication of CN102916851B publication Critical patent/CN102916851B/zh
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明提供一种网络流量预测方法及装置,该方法包括:获取云操作系统中待预测点周围抽样时刻的流量样本值;利用不同抽样时刻的流量样本值,根据插值预测算法计算网络流量预测值。根据本发明可以准确快速预测云操作系统的网络流量。

Description

一种网络流量预测方法及装置
技术领域
本发明涉及云OS(Operating System,操作系统)中基础设备监控系统领域,具体涉及一种高效、准确的网络流量预测方法及装置。
背景技术
随着信息科技的发展,云计算逐步成为业界的发展热点,国内外各大厂商的云计算服务平台也开始纷纷投入到科学、教育、文化、卫生、政府、高性能计算、电子商务、物联网等多个领域进行使用。
在云OS中,资源调度模块是系统的核心组成部分,通过资源调度,达到系统中各资源合理、高效、低耗地运行。网络流量曲线,是资源调度模块的重要依据之一。但由于系统运行速度要求,不可能时时获取流量值,所以,对于任意时刻流量值的预测,特别是下一时刻流量值,变得尤为重要。
传统的网络流量预测方法,采用最近邻算法、加权平均法或样条拟合法进行预测,要么准确度太低,要么时间复杂度太高,无法满足云OS中资源调度系统的要求。如何在保证高准确度的前提下,尽量减小预测算法的时间复杂度,成为一个难点问题。
发明内容
本发明要解决的技术问题是提供一种网络流量预测方法及装置,以准确快速预测云操作系统的网络流量。
为了解决上述技术问题,本发明提供了一种网络流量预测方法,包括:
获取云操作系统中待预测点周围抽样时刻的流量样本值;
利用不同抽样时刻的流量样本值,根据插值预测算法计算网络流量预测值。
进一步地,上述方法还具有下面特点:所述获取云操作系统中待预测点周围抽样时刻的流量样本值是通过以下方式实现的:
使用简单网络管理协议来获取的。
进一步地,上述方法还具有下面特点:所述插值预测算法包括:
埃特金插值算法。
为了解决上述问题,本发明还提供了一种网络流量预测装置,包括:
第一模块,用于获取云操作系统中待预测点周围抽样时刻的流量样本值;
第二模块,用于利用不同抽样时刻的流量样本值,根据插值预测算法计算网络流量预测值。
进一步地,上述装置还具有下面特点:
所述第一模块,是使用简单网络管理协议获取云操作系统中待预测点周围抽样时刻的流量样本值的。
进一步地,上述装置还具有下面特点:所述插值预测算法包括:
埃特金插值算法。
综上,本发明提供一种网络流量预测方法及装置,以准确快速预测云操作系统的网络流量。
附图说明
图1为本发明实施例的网络流量预测方法的流程图;
图2为本发明实施例的网络流量预测装置的示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
图1为本发明实施例的网络流量预测方法的流程图,如图1所示,包括以下步骤:
步骤101、获取云操作系统中待预测点周围抽样时刻的流量样本值;
具体地,可以使用SNMP(Simple Network Management Protocol,简单网络管理协议)获取待预测点周围抽样时刻的流量样本值;
通过使用SNMP,获得靠近且尽量使待预测点位于其中心的若干个抽样时刻的网络流量累积值,并计算求得各时刻流量样本值(公式为:yk=YK-YK-1;其中,yk为tk时刻流量值,Yk为tk时刻流量累积值,作为预测算法的数据基础。
例如,指定一定的时间段,使用SNMP获取待预测时刻附近10个(或n个)抽样时刻的网络流量累积值,计算得到该10个(或n个)时刻的流量样本值。
使用广泛适用于各种服务器、存储以及网络设备的SNMP获取待预测点周围抽样时刻的流量样本值,具有适用性、实时性、快捷性。选择样本点的分段越为精细,样本点的个数越多,则预测值就越为准确。
步骤102、利用不同抽样时刻的流量样本值,根据插值预测算法计算网络流量预测值;
通过插值预测算法,将高次插值过程转化为线性插值的多次重复计算,利用不同时刻的流量抽样值,准确率更高;时间复杂度低、计算简便、便于编程、占用存储空间小、预测结果准确。
将计算得到的流量样本值代入埃特金插值表,按照埃特金插值公式,逐行计算未知系数,直到求出最后一行,获得待预测时刻的预测值。
本实施例中可以采用埃特金插值算法,以提高该预测方法精度,常见的插值算法还有:拉格朗日插值算法、牛顿插值算法。
埃特金插值表如下:
t0    a0,0(y0)
t1    a1,0(y1)    a1,1
t2    a2,0(y2)    a2,1    a2,2
……?……
tm-1  am-1,0(ym-1)am-1,1 am-1,2…am-1,m-1
其中,前两列是m对插值结点,即ak,0=yk=y(tk),k=0,1,…,m-1;剩余各列可由埃特金插值公式计算得到:
a k , l = a l - 1 , l - 1 + t - t l - 1 t k - t l - 1 ( a k , l - 1 - a l - 1 , l - 1 ) , k = l , · · · , m - 1 ; l = 1 , · · · , m - 1
即:
a 1,1 = a 0,0 + t - t 0 t 1 - t 0 ( a 1,0 - a 0,0 ) ; a 2,1 = a 0,0 + t - t 0 t 2 - t 0 ( a 2,0 - a 0,0 ) ; a 2,2 = a 1,1 + t - t 1 t 2 - t 1 ( a 2,1 - a 1,1 ) = a 0,0 + t - t 0 t 1 - t 0 ( a 1,0 - a 0,0 ) + t - t 1 t 2 - t 1 [ t - t 0 t 2 - t 0 ( a 2,0 - a 0,0 ) - t - t 0 t - t 0 ( a 1,0 - a 0,0 ) ] ; · · · · · ·
埃特金插值表中右下角的元素即为得到的预测值,即y(t)=am-1,m-1
计算网络流量预测值:
以时刻t为自变量,网络流量y为因变量,定义网络流量函数,利用不同时刻ti对应的流量抽样值yi,对所在时间段的流量值进行预测,得到极为准确的预测值yt
本发明实施例:一方面,创新地将SNMP获取网络设备流量信息的方法移植到云OS中,使得云服务平台的网络得到高效管理;另一方面,采用一种准确、高效的算法——埃特金插值算法对任意时刻的网络流量进行预测,将高次插值过程转化为线性插值的多次重复计算,时间复杂度低,计算简便,便于编程,占用存储空间小,预测结果准确。
由于埃特金插值算法的预测精确度只由样本点的选取方式决定,选择样本点的分段越为精细、样本点的个数越多,则预测值就越为准确。所以可以通过选择不同的样本点选取方式,来满足各种云计算操作系统的调度需求,具有较高的普适性。
图2为本发明实施例的网络流量预测装置的示意图,如图2所示,本实施例的装置包括:
第一模块,用于获取云操作系统中待预测点周围抽样时刻的流量样本值;
第二模块,用于利用不同抽样时刻的流量样本值,根据插值预测算法计算网络流量预测值。
其中,所述第一模块,是使用SNMP获取云操作系统中待预测点周围抽样时刻的流量样本值的。
其中,所述插值预测算法包括:
埃特金插值算法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本发明不限制于任何特定形式的硬件和软件的结合。
以上仅为本发明的优选实施例,当然,本发明还可有其他多种实施例,在不背离本发明精神及其实质的情况下,熟悉本领域的技术人员当可根据本发明作出各种相应的改变和变形,但这些相应的改变和变形都应属于本发明所附的权利要求的保护范围。

Claims (6)

1.一种网络流量预测方法,包括:
获取云操作系统中待预测点周围抽样时刻的流量样本值;
利用不同抽样时刻的流量样本值,根据插值预测算法计算网络流量预测值。
2.如权利要求1所述的方法,其特征在于:所述获取云操作系统中待预测点周围抽样时刻的流量样本值是通过以下方式实现的:
使用简单网络管理协议来获取的。
3.如权利要求1或2所述的方法,其特征在于:所述插值预测算法包括:
埃特金插值算法。
4.一种网络流量预测装置,包括:
第一模块,用于获取云操作系统中待预测点周围抽样时刻的流量样本值;
第二模块,用于利用不同抽样时刻的流量样本值,根据插值预测算法计算网络流量预测值。
5.如权利要求4所述的装置,其特征在于:
所述第一模块,是使用简单网络管理协议获取云操作系统中待预测点周围抽样时刻的流量样本值的。
6.如权利要求4或5所述的装置,其特征在于:所述插值预测算法包括:
埃特金插值算法。
CN201210359387.0A 2012-09-24 2012-09-24 一种网络流量预测方法及装置 Active CN102916851B (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210359387.0A CN102916851B (zh) 2012-09-24 2012-09-24 一种网络流量预测方法及装置

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210359387.0A CN102916851B (zh) 2012-09-24 2012-09-24 一种网络流量预测方法及装置

Publications (2)

Publication Number Publication Date
CN102916851A true CN102916851A (zh) 2013-02-06
CN102916851B CN102916851B (zh) 2016-03-23

Family

ID=47615088

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210359387.0A Active CN102916851B (zh) 2012-09-24 2012-09-24 一种网络流量预测方法及装置

Country Status (1)

Country Link
CN (1) CN102916851B (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744749A (zh) * 2014-01-11 2014-04-23 浪潮电子信息产业股份有限公司 一种基于预算算法的虚拟机智能备份方法
CN104410582A (zh) * 2014-12-10 2015-03-11 国家电网公司 一种基于流量预测的电力通信网流量均衡方法
CN109586954A (zh) * 2018-11-14 2019-04-05 网宿科技股份有限公司 一种网络流量预测方法、装置及电子设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020080726A1 (en) * 2000-12-21 2002-06-27 International Business Machines Corporation System and method for determining network throughput speed and streaming utilization
CN102104509A (zh) * 2011-02-17 2011-06-22 浪潮(北京)电子信息产业有限公司 云操作系统中服务器负载预测的方法及装置
CN102647433A (zh) * 2012-05-21 2012-08-22 北京航空航天大学 一种高效的云存储数据持有性验证方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020080726A1 (en) * 2000-12-21 2002-06-27 International Business Machines Corporation System and method for determining network throughput speed and streaming utilization
CN102104509A (zh) * 2011-02-17 2011-06-22 浪潮(北京)电子信息产业有限公司 云操作系统中服务器负载预测的方法及装置
CN102647433A (zh) * 2012-05-21 2012-08-22 北京航空航天大学 一种高效的云存储数据持有性验证方法

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
吴大鹏等: "面向链路稳定性的MANET路径建立机制", 《电子与信息学报》 *
陈开岩等: "矿井风温预测的一种加速迭代计算新方法", 《采矿与安全工程学报》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103744749A (zh) * 2014-01-11 2014-04-23 浪潮电子信息产业股份有限公司 一种基于预算算法的虚拟机智能备份方法
CN104410582A (zh) * 2014-12-10 2015-03-11 国家电网公司 一种基于流量预测的电力通信网流量均衡方法
CN104410582B (zh) * 2014-12-10 2017-10-10 国家电网公司 一种基于流量预测的电力通信网流量均衡方法
CN109586954A (zh) * 2018-11-14 2019-04-05 网宿科技股份有限公司 一种网络流量预测方法、装置及电子设备
CN109586954B (zh) * 2018-11-14 2020-09-18 网宿科技股份有限公司 一种网络流量预测方法、装置及电子设备
US11252044B2 (en) 2018-11-14 2022-02-15 Wangsu Science & Technology Co., Ltd. Network traffic prediction method, apparatus, and electronic device

Also Published As

Publication number Publication date
CN102916851B (zh) 2016-03-23

Similar Documents

Publication Publication Date Title
Yuan et al. Network-wide traffic state estimation using loop detector and floating car data
Shu et al. Wireless traffic modeling and prediction using seasonal ARIMA models
CN107239846B (zh) 停车场泊位预测处理方法及装置
CN104407688A (zh) 基于树回归的虚拟化云平台能耗测量方法及系统
Balijepalli et al. The two-regime transmission model for network loading in dynamic traffic assignment problems
Lu et al. A note on resource allocation scheduling with group technology and learning effects on a single machine
US20180047043A1 (en) Determining Sensor Placement and a Reward Sharing Mechanism Based on Shared Energy Forecasting Information
US11379766B2 (en) Sensor deployment
CN111835536B (zh) 一种流量预测方法和装置
Kim et al. Improving the accuracy and operational predictability of project cost forecasts: an adaptive combination approach
CN102916851B (zh) 一种网络流量预测方法及装置
Vicil et al. Computationally efficient optimization of stock pooling and allocation levels for two-demand-classes under general lead time distributions
JP5628745B2 (ja) トラヒック予測方法及び装置及びプログラム
JP6176390B2 (ja) 情報処理装置、解析方法、及び、プログラム記録媒体
CN115688547A (zh) 模拟天气情景和极端天气预测
CN104424294A (zh) 一种信息处理方法及装置
Diriba et al. Statistical modeling of spatial extremes through max-stable process models: Application to extreme rainfall events in South Africa
Lu et al. Estimation of lane-level travel time distributions under a connected environment
Zietz et al. When was the US housing downturn predictable? A comparison of univariate forecasting methods
Zheng et al. Evaluation of peak over threshold approach for road safety estimation
Han et al. On the estimation of space-mean-speed from inductive loop detector data
CN103530190A (zh) 一种负载预测方法及装置
Sørup et al. Evaluating catchment response to artificial rainfall from four weather generators for present and future climate
CN112764660A (zh) 用于数据搬移的方法、设备和计算机可读存储介质
CN102930346B (zh) 一种soa服务平均故障间隔时间预测方法

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

Effective date of registration: 20180827

Address after: 200436 Room 411, No. three, JIANGCHANG Road, Jingan District, Shanghai, 411

Patentee after: SHANGHAI INSPUR CLOUD CALCULATING SERVICE CO.,LTD.

Address before: 100085 floor 1, C 2-1, No. 2, Shang Di Road, Haidian District, Beijing.

Patentee before: INSPUR (BEIJING) ELECTRONIC INFORMATION INDUSTRY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221021

Address after: 071000 Room 502, Block B, East Lake Yunduan Science and Technology Industrial Park, No. 1111, Jinhe Street, Dongjinzhuang Township, Lianchi District, Baoding City, Hebei Province

Patentee after: Baoding Inspur Cloud Computing Co.,Ltd.

Address before: 200436 Room 411, No. three, JIANGCHANG Road, Jingan District, Shanghai, 411

Patentee before: SHANGHAI INSPUR CLOUD CALCULATING SERVICE CO.,LTD.

TR01 Transfer of patent right