CN117354072B - Automatic charging adjustment method and device for data center network bandwidth flow - Google Patents

Automatic charging adjustment method and device for data center network bandwidth flow Download PDF

Info

Publication number
CN117354072B
CN117354072B CN202311314204.8A CN202311314204A CN117354072B CN 117354072 B CN117354072 B CN 117354072B CN 202311314204 A CN202311314204 A CN 202311314204A CN 117354072 B CN117354072 B CN 117354072B
Authority
CN
China
Prior art keywords
flow
data
flow data
subsequence
traffic
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.)
Active
Application number
CN202311314204.8A
Other languages
Chinese (zh)
Other versions
CN117354072A (en
Inventor
陈康壮
蔡丹丽
谭长华
车科谋
赵振东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Cloud Base Technology Co ltd
Original Assignee
Guangdong Cloud Base Technology 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 Guangdong Cloud Base Technology Co ltd filed Critical Guangdong Cloud Base Technology Co ltd
Priority to CN202311314204.8A priority Critical patent/CN117354072B/en
Publication of CN117354072A publication Critical patent/CN117354072A/en
Application granted granted Critical
Publication of CN117354072B publication Critical patent/CN117354072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method and a device for automatically charging and adjusting network bandwidth flow of a data center, which are characterized in that historical flow charging data of a user are collected and preprocessed to obtain a plurality of flow data subsequences, flow data in the flow data subsequences are used for determining accumulation residual errors, further accumulation likelihood coefficients are determined, the flow data subsequences are subjected to characteristic reconstruction, a flow characteristic space matrix is determined by the reconstructed flow data subsequences, further a flow characteristic covariance matrix is obtained, a flow characteristic value is determined by the flow characteristic covariance matrix, a flow charging variation index of the flow data subsequences is determined according to the flow characteristic value, a flow charging prediction function value of the flow data subsequences is determined according to the accumulation likelihood coefficients and the flow charging variation index, and the network bandwidth time-consuming by a bandwidth flowmeter of a flow transmission link is adjusted according to the flow charging prediction function value, so that the network stability under different network environments is improved, and the accuracy of charging results is ensured.

Description

一种数据中心网络带宽流量自动计费调节方法及装置A data center network bandwidth flow automatic billing adjustment method and device

技术领域Technical Field

本申请涉及数据中心技术领域,更具体的说,本申请涉及一种数据中心网络带宽流量自动计费调节方法及装置。The present application relates to the technical field of data centers, and more specifically, to a method and device for automatically billing and adjusting network bandwidth flow in a data center.

背景技术Background technique

数据中心是一个专门设计和配置的设施,用于集中存储、处理和管理大量的计算机服务器、网络设备、存储系统和相关基础设施,以提供计算、存储和网络服务,数据中心使用带宽的流量计费是一种根据峰值带宽和使用流量计费的方法。A data center is a specially designed and configured facility used to centrally store, process and manage a large number of computer servers, network equipment, storage systems and related infrastructure to provide computing, storage and network services. Traffic billing for bandwidth used in a data center is a method of billing based on peak bandwidth and traffic usage.

但现有的流量计费方法中,由于用户的网络使用习惯不同,其流量使用模式也不同,导致计费结果存在不确定性,此外,传统的计费方式中网络流量的峰值只考虑了短时间内的流量变化情况,没有考虑长期使用的情况,这会导致计费结果与实际网络使用情况相差较大,因此如何提高计费结果的准确性是业界迫切需要解决的问题。However, in the existing traffic billing methods, since users have different network usage habits and their traffic usage patterns are also different, the billing results are uncertain. In addition, the peak value of network traffic in traditional billing methods only considers the traffic changes in a short period of time, and does not consider long-term usage. This will cause the billing results to be quite different from the actual network usage. Therefore, how to improve the accuracy of billing results is an issue that the industry urgently needs to solve.

发明内容Summary of the invention

本申请提供一种数据中心网络带宽流量自动计费调节方法及装置,以提高计费结果的准确性。The present application provides a method and device for automatically adjusting the billing of data center network bandwidth traffic to improve the accuracy of billing results.

为解决上述技术问题,本申请采用如下技术方案:In order to solve the above technical problems, this application adopts the following technical solutions:

第一方面,本申请提供一种数据中心网络带宽流量自动计费调节方法,包括如下步骤:In a first aspect, the present application provides a method for automatically charging and adjusting bandwidth flow in a data center network, comprising the following steps:

采集数据中心的用户历史流量计费数据并进行预处理,得到多个流量数据子序列;Collect historical user traffic billing data from the data center and pre-process it to obtain multiple traffic data subsequences;

由各个流量数据子序列中的流量数据确定聚积残差,根据所述聚积残差得到各个流量数据子序列的重聚积因子,进而通过所述重聚积因子确定各个流量数据子序列分别对应的聚积似然系数;Determine an aggregated residual from the flow data in each flow data subsequence, obtain a re-aggregation factor for each flow data subsequence according to the aggregated residual, and then determine an aggregated likelihood coefficient corresponding to each flow data subsequence respectively through the re-aggregation factor;

对于多个流量数据子序列中的每一个流量数据子序列,对该个流量数据子序列进行特征重构,将重构后的流量数据子序列中的流量数据映射到空间矩阵中,得到流量特征空间矩阵;For each of the multiple traffic data subsequences, feature reconstruction is performed on the traffic data subsequence, and the traffic data in the reconstructed traffic data subsequence is mapped to a spatial matrix to obtain a traffic feature spatial matrix;

根据所述流量特征空间矩阵确定流量特征协方差矩阵,由所述流量特征协方差矩阵确定该个流量数据子序列的流量特征值,根据所述流量特征值确定该个流量数据子序列的流量计费迭变指数,进而确定各个流量数据子序列分别对应的流量计费迭变指数;Determine a traffic feature covariance matrix according to the traffic feature space matrix, determine the traffic feature value of the traffic data subsequence according to the traffic feature covariance matrix, determine the traffic billing iterative index of the traffic data subsequence according to the traffic feature value, and then determine the traffic billing iterative index corresponding to each traffic data subsequence;

根据各个流量数据子序列分别对应的聚积似然系数和流量计费迭变指数,确定各个流量数据子序列分别对应的流量计费预测函值,将各个流量数据子序列的流量计费预测函值叠加得到流量数据序列的流量计费预测函值;According to the accumulated likelihood coefficient and flow billing iteration index corresponding to each flow data subsequence, the flow billing prediction function value corresponding to each flow data subsequence is determined, and the flow billing prediction function value of each flow data subsequence is superimposed to obtain the flow billing prediction function value of the flow data sequence;

根据所述流量计费预测函值对流量传输链路的带宽流量计费时的网络带宽进行调节。The network bandwidth during bandwidth flow billing of the traffic transmission link is adjusted according to the flow billing prediction function value.

在一些实施例中,采集数据中心的用户历史流量计费数据并进行预处理,得到多个流量数据子序列具体包括:In some embodiments, collecting historical traffic billing data of users in a data center and preprocessing the data to obtain multiple traffic data subsequences specifically includes:

采集数据中心的用户历史流量计费数据,对所述用户历史流量计费数据进行区块划分得到流量数据序列;Collecting historical traffic billing data of users in the data center, and dividing the historical traffic billing data of users into blocks to obtain a traffic data sequence;

对所述流量数据序列进行平滑处理得到流量数据平滑序列;Smoothing the flow data sequence to obtain a flow data smoothing sequence;

根据用户流量使用频率对所述流量数据平滑序列进行分解,得到多个流量数据子序列。The flow data smoothing sequence is decomposed according to the user flow usage frequency to obtain a plurality of flow data subsequences.

在一些实施例中,由各个流量数据子序列中的流量数据确定聚积残差具体包括:In some embodiments, determining the accumulated residual from the flow data in each flow data subsequence specifically includes:

确定各个流量数据子序列分别对应的流量数据均值Determine the mean value of the traffic data corresponding to each traffic data subsequence ;

根据所述流量数据均值确定各个流量数据子序列的聚积残差,其中,所述聚积残差根据下述公式确定:The accumulated residual of each flow data subsequence is determined according to the flow data mean, wherein the accumulated residual is determined according to the following formula:

其中,表示第/>个流量数据子序列的聚积残差,/>表示第/>个流量数据子序列中第/>个流量数据值,/>表示单个流量数据子序列中流量数据值的数量。in, Indicates the first/> The accumulated residual of the subsequences of traffic data, /> Indicates the first/> The first/> in the flow data subsequence flow data values, /> Represents the number of flow data values in a single flow data subsequence.

在一些实施例中,根据所述聚积残差得到各个流量数据子序列的重聚积因子具体包括:In some embodiments, obtaining the re-aggregation factor of each flow data subsequence according to the aggregated residual specifically includes:

获取各个流量数据子序列的聚积残差Get the accumulated residual of each flow data subsequence ;

确定各个流量数据子序列分别对应的聚积异度值Determine the accumulation heterogeneity value corresponding to each flow data subsequence ;

通过所述聚积残差和聚积异度值确定各个流量数据子序列的重聚积因子,其中,重聚积因子根据下述公式确定:The re-aggregation factor of each flow data subsequence is determined by the aggregation residual and the aggregation heterogeneity value, wherein the re-aggregation factor is determined according to the following formula:

表示第/>个流量数据子序列的重聚积因子,/>表示第/>个流量数据子序列中第个流量数据值,/>表示单个流量数据子序列中流量数据值的数量。 Indicates the first/> The re-aggregation factor of the traffic data subsequences, /> Indicates the first/> The first flow data values, /> Represents the number of flow data values in a single flow data subsequence.

在一些实施例中,通过所述重聚积因子确定各个流量数据子序列的聚积似然系数具体包括:In some embodiments, determining the accumulation likelihood coefficient of each traffic data subsequence by the re-aggregation factor specifically includes:

获取各个流量数据子序列的重聚积因子;Obtain the re-aggregation factor of each flow data subsequence;

确定各个流量数据子序列的平均重聚积因子;determining an average reaggregation factor for each subsequence of flow data;

确定各个流量数据子序列的重聚积衰减因子;determining a re-aggregation attenuation factor for each flow data subsequence;

根据所述重聚积因子、平均重聚积因子以及重聚积衰减因子确定聚积似然系数。An aggregation likelihood coefficient is determined according to the re-aggregation factor, the average re-aggregation factor and the re-aggregation attenuation factor.

在一些实施例中,由根据所述流量特征空间矩阵确定流量特征协方差矩阵具体包括:In some embodiments, determining the traffic feature covariance matrix according to the traffic feature space matrix specifically includes:

对流量特征空间矩阵进行中心化处理;Centralize the traffic feature space matrix;

确定中心化处理后的流量特征空间矩阵中流量数据值的协方差;Determine the covariance of the flow data values in the flow feature space matrix after the centralization process;

将流量特征空间矩阵中所有流量数据值的协方差按照时间顺序,填充到矩阵的相应位置得到流量特协方差矩阵。The covariance of all traffic data values in the traffic feature space matrix is filled into the corresponding positions of the matrix in chronological order to obtain the traffic feature covariance matrix.

在一些实施例中,根据所述流量特征值确定该个流量数据子序列的流量计费迭变指数具体包括:In some embodiments, determining the traffic billing iteration index of the traffic data subsequence according to the traffic characteristic value specifically includes:

获取该个流量数据子序列的流量特征值;Obtaining the flow characteristic value of the flow data subsequence;

确定该个流量数据子序列中的流量数据均值;Determine the mean value of the flow data in the flow data subsequence;

根据所述流量特征值和流量数据均值确定该个流量数据子序列的流量计费迭变指数。The flow billing iterative index of the flow data subsequence is determined according to the flow characteristic value and the flow data mean.

第二方面,本申请提供一种数据中心网络带宽流量自动计费调节装置,其包括有带宽控制单元,所述带宽控制单元包括:In a second aspect, the present application provides a data center network bandwidth flow automatic billing adjustment device, which includes a bandwidth control unit, and the bandwidth control unit includes:

流量数据子序列确定模块,用于采集数据中心的用户历史流量计费数据,对所述用户历史流量计费数据进行区块划分得到流量数据序列,进而对所述流量数据序列进行平滑处理得到流量数据平滑序列,根据用户流量使用频率对所述流量数据平滑序列进行分解,得到多个流量数据子序列;A flow data subsequence determination module is used to collect historical flow billing data of users in a data center, divide the historical flow billing data of users into blocks to obtain a flow data sequence, and then smooth the flow data sequence to obtain a flow data smoothed sequence, and decompose the flow data smoothed sequence according to the user flow usage frequency to obtain multiple flow data subsequences;

聚积似然系数确定模块,用于由各个流量数据子序列中的流量数据确定聚积残差,根据所述聚积残差得到各个流量数据子序列的重聚积因子,进而通过所述重聚积因子确定各个流量数据子序列的聚积似然系数;An accumulation likelihood coefficient determination module, used to determine an accumulation residual from the flow data in each flow data subsequence, obtain a re-aggregation factor of each flow data subsequence according to the accumulation residual, and then determine the accumulation likelihood coefficient of each flow data subsequence through the re-aggregation factor;

流量特征空间矩阵确定模块,用于对于多个流量数据子序列中的每一个流量数据子序列,根据流量特征对该个流量数据子序列进行重构,将重构后的流量数据子序列中的流量数据映射到空间矩阵中,得到流量特征空间矩阵;A traffic feature space matrix determination module is used to reconstruct each traffic data subsequence in a plurality of traffic data subsequences according to the traffic feature, and map the traffic data in the reconstructed traffic data subsequence to the space matrix to obtain the traffic feature space matrix;

流量计费迭变指数确定模块,用于根据所述流量特征空间矩阵确定流量特征协方差矩阵,由所述流量特征协方差矩阵确定该个流量数据子序列的流量特征值,根据所述流量特征值确定该个流量数据子序列的流量计费迭变指数,进而确定各个流量数据子序列分别对应的流量计费迭变指数;A flow billing iterative index determination module is used to determine a flow feature covariance matrix according to the flow feature space matrix, determine the flow feature value of the flow data subsequence by the flow feature covariance matrix, determine the flow billing iterative index of the flow data subsequence according to the flow feature value, and further determine the flow billing iterative index corresponding to each flow data subsequence;

流量计费预测函值确定模块,用于根据各个流量数据子序列分别对应的聚积似然系数和流量计费迭变指数,确定各个流量数据子序列分别对应的流量计费预测函值,将各个流量数据子序列的流量计费预测函值叠加得到流量数据序列的流量计费预测函值;The flow billing prediction function value determination module is used to determine the flow billing prediction function value corresponding to each flow data subsequence according to the accumulation likelihood coefficient and flow billing iteration index corresponding to each flow data subsequence, and superimpose the flow billing prediction function values of each flow data subsequence to obtain the flow billing prediction function value of the flow data sequence;

带宽控制模块,根据所述流量计费预测函值对流量传输链路的带宽流量计费时的网络带宽进行调节。The bandwidth control module adjusts the network bandwidth of the traffic transmission link during bandwidth flow billing according to the traffic billing prediction function value.

第三方面,本申请提供一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器存储有代码,所述处理器被配置为获取所述代码,并执行上述的数据中心网络带宽流量自动计费调节方法。In a third aspect, the present application provides a computer device, comprising a memory and a processor, wherein the memory stores codes, and the processor is configured to obtain the codes and execute the above-mentioned data center network bandwidth traffic automatic billing adjustment method.

第四方面,本申请提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述的数据中心网络带宽流量自动计费调节方法。In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned data center network bandwidth traffic automatic billing and adjustment method is implemented.

本申请公开的实施例提供的技术方案具有以下有益效果:The technical solution provided by the embodiments disclosed in this application has the following beneficial effects:

本申请提供的一种数据中心网络带宽流量自动计费调节方法及装置中,首先采集数据中心的用户历史流量计费数据并进行预处理,得到多个流量数据子序列,由各个流量数据子序列中的流量数据确定聚积残差,根据所述聚积残差得到各个流量数据子序列的重聚积因子,进而通过所述重聚积因子确定各个流量数据子序列分别对应的聚积似然系数,对于多个流量数据子序列中的每一个流量数据子序列,对该个流量数据子序列进行特征重构,将重构后的流量数据子序列中的流量数据映射到空间矩阵中,得到流量特征空间矩阵,根据所述流量特征空间矩阵确定流量特征协方差矩阵,由所述流量特征协方差矩阵确定该个流量数据子序列的流量特征值,根据所述流量特征值确定该个流量数据子序列的流量计费迭变指数,进而确定各个流量数据子序列分别对应的流量计费迭变指数,根据各个流量数据子序列分别对应的聚积似然系数和流量计费迭变指数,确定各个流量数据子序列分别对应的流量计费预测函值,将各个流量数据子序列的流量计费预测函值叠加得到流量数据序列的流量计费预测函值,根据所述流量计费预测函值对流量传输链路的带宽流量计费时的网络带宽进行调节,从而提高了不同网络环境下的网络稳定性,保证了计费结果的准确性。In a data center network bandwidth flow automatic billing and adjustment method and device provided by the present application, historical flow billing data of users in the data center is first collected and preprocessed to obtain multiple flow data subsequences, and the accumulation residual is determined from the flow data in each flow data subsequence. The re-aggregation factor of each flow data subsequence is obtained according to the accumulation residual, and then the accumulation likelihood coefficient corresponding to each flow data subsequence is determined according to the re-aggregation factor. For each flow data subsequence in the multiple flow data subsequences, the flow data subsequence is feature reconstructed, and the flow data in the reconstructed flow data subsequence is mapped to a space matrix to obtain a flow feature space matrix, and the flow feature covariance moment is determined according to the flow feature space matrix. The flow characteristic value of each flow data subsequence is determined by the flow characteristic covariance matrix, and the flow billing iteration index of the flow data subsequence is determined according to the flow characteristic value, and then the flow billing iteration index corresponding to each flow data subsequence is determined, and the flow billing prediction function value corresponding to each flow data subsequence is determined according to the accumulation likelihood coefficient and the flow billing iteration index corresponding to each flow data subsequence, and the flow billing prediction function value of each flow data subsequence is superimposed to obtain the flow billing prediction function value of the flow data sequence, and the network bandwidth of the flow transmission link is adjusted according to the flow billing prediction function value during bandwidth flow billing, thereby improving the network stability under different network environments and ensuring the accuracy of the billing results.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是根据本申请一些实施例所示的一种数据中心网络带宽流量自动计费调节方法的示例性流程图;FIG1 is an exemplary flow chart of a method for automatically charging and adjusting bandwidth flow in a data center network according to some embodiments of the present application;

图2是根据本申请一些实施例所示的带宽控制单元的示例性硬件和/或软件的示意图;FIG2 is a schematic diagram of exemplary hardware and/or software of a bandwidth control unit according to some embodiments of the present application;

图3是本申请一些实施例所示的应用一种数据中心网络带宽流量自动计费调节方法的计算机设备的结构示意图。FIG3 is a schematic diagram of the structure of a computer device that applies a method for automatically charging and adjusting bandwidth flow in a data center network as shown in some embodiments of the present application.

具体实施方式Detailed ways

本申请核心是采集数据中心的用户历史流量计费数据并进行预处理,得到多个流量数据子序列;由各个流量数据子序列中的流量数据确定聚积残差,根据所述聚积残差得到各个流量数据子序列的重聚积因子,进而通过所述重聚积因子确定各个流量数据子序列分别对应的聚积似然系数;对于多个流量数据子序列中的每一个流量数据子序列,对该个流量数据子序列进行特征重构,将重构后的流量数据子序列中的流量数据映射到空间矩阵中,得到流量特征空间矩阵;根据所述流量特征空间矩阵确定流量特征协方差矩阵,由所述流量特征协方差矩阵确定该个流量数据子序列的流量特征值,根据所述流量特征值确定该个流量数据子序列的流量计费迭变指数,进而确定各个流量数据子序列分别对应的流量计费迭变指数;根据各个流量数据子序列分别对应的聚积似然系数和流量计费迭变指数,确定各个流量数据子序列分别对应的流量计费预测函值,将各个流量数据子序列的流量计费预测函值叠加得到流量数据序列的流量计费预测函值;根据所述流量计费预测函值对流量传输链路的带宽流量计费时的网络带宽进行调节,从而提高了不同网络环境下的网络稳定性,保证了计费结果的准确性。The core of the present application is to collect historical user traffic billing data of a data center and perform preprocessing to obtain multiple traffic data subsequences; determine the aggregation residual from the traffic data in each traffic data subsequence, obtain the re-aggregation factor of each traffic data subsequence according to the aggregation residual, and then determine the aggregation likelihood coefficient corresponding to each traffic data subsequence through the re-aggregation factor; for each traffic data subsequence in the multiple traffic data subsequences, perform feature reconstruction on the traffic data subsequence, map the traffic data in the reconstructed traffic data subsequence to a space matrix, and obtain a traffic feature space matrix; determine the traffic feature covariance matrix according to the traffic feature space matrix, and obtain the traffic feature covariance matrix from the traffic feature covariance matrix. The method comprises the following steps: determining the traffic characteristic value of the traffic data subsequence by an array, determining the traffic billing iteration index of the traffic data subsequence according to the traffic characteristic value, and then determining the traffic billing iteration index corresponding to each traffic data subsequence; determining the traffic billing prediction function value corresponding to each traffic data subsequence according to the accumulation likelihood coefficient and the traffic billing iteration index corresponding to each traffic data subsequence, and superimposing the traffic billing prediction function values of each traffic data subsequence to obtain the traffic billing prediction function value of the traffic data sequence; adjusting the network bandwidth of the traffic transmission link during bandwidth flow billing according to the traffic billing prediction function value, thereby improving the network stability under different network environments and ensuring the accuracy of the billing results.

为了更好的理解上述技术方案,下面将结合说明书附图以及具体的实施方式对上述技术方案进行详细的说明。参考图1,该图是根据本申请一些实施例所示的一种数据中心网络带宽流量自动计费调节方法的示例性流程图,该数据中心网络带宽流量自动计费调节方法100主要包括如下步骤:In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods of the specification. Referring to Figure 1, this figure is an exemplary flow chart of a data center network bandwidth flow automatic billing adjustment method according to some embodiments of the present application. The data center network bandwidth flow automatic billing adjustment method 100 mainly includes the following steps:

在步骤S101,采集数据中心的用户历史流量计费数据并进行预处理,得到多个流量数据子序列。In step S101, historical traffic billing data of users in a data center is collected and preprocessed to obtain a plurality of traffic data subsequences.

在一些实施例中,采集数据中心的用户历史流量计费数据,对所述用户历史流量计费数据进行区块划分得到流量数据序列;In some embodiments, historical traffic billing data of users in a data center is collected, and the historical traffic billing data of users is divided into blocks to obtain a traffic data sequence;

对所述流量数据序列进行平滑处理得到流量数据平滑序列,根据用户流量使用频率对所述流量数据平滑序列进行分解,得到多个流量数据子序列。The flow data sequence is smoothed to obtain a flow data smoothed sequence, and the flow data smoothed sequence is decomposed according to the user flow usage frequency to obtain a plurality of flow data subsequences.

具体实现时,可以将数据收集工具部署在数据中心的服务器和设备上,以收集数据中心的用户历史流量计费数据,例如,可以采用现有技术中的Wireshark获取流量计费数据,Wireshark是一个用于网络协议分析和数据包捕获的开源工具,允许用户捕获网络数据包、分析网络通信以及检测和诊断网络问题。In specific implementation, the data collection tool can be deployed on the servers and devices in the data center to collect the historical traffic billing data of users in the data center. For example, Wireshark in the existing technology can be used to obtain traffic billing data. Wireshark is an open source tool for network protocol analysis and data packet capture, which allows users to capture network data packets, analyze network communications, and detect and diagnose network problems.

在一些实施例中,可以通过设置流量数量阈值,当流量数据量达到阈值时,将数据划分为一个新的区块,以获得流量数据序列。In some embodiments, a flow quantity threshold may be set, and when the flow data volume reaches the threshold, the data is divided into a new block to obtain a flow data sequence.

需要说明的是,本申请中的平滑处理可采用现有技术中的移动平均法进行处理,所述移动平均法通过计算流量数据序列中流量数据的平均值,并用平均值来代替原始数据点,对流量数据序列进行平滑处理可以减少数据中的噪声和波动,使数据趋于平稳。It should be noted that the smoothing process in the present application can be processed using the moving average method in the prior art. The moving average method calculates the average value of the flow data in the flow data sequence and replaces the original data points with the average value. Smoothing the flow data sequence can reduce noise and fluctuations in the data and make the data tend to be stable.

具体实现时,根据用户流量使用频率对流量数据序列进行分解,例如,根据用户流量使用的需求,按照每小时流量使用的频率对流量数据序列进行分解,分解为24个子块,对应24小时,将分解后的子块作为流量数据子序列。In specific implementation, the traffic data sequence is decomposed according to the user's traffic usage frequency. For example, according to the user's traffic usage demand, the traffic data sequence is decomposed according to the hourly traffic usage frequency and decomposed into 24 sub-blocks corresponding to 24 hours, and the decomposed sub-blocks are used as traffic data sub-sequences.

在步骤S102,由各个流量数据子序列中的流量数据确定聚积残差,根据所述聚积残差得到各个流量数据子序列的重聚积因子,进而通过所述重聚积因子确定各个流量数据子序列分别对应的聚积似然系数。In step S102, an accumulation residual is determined from the flow data in each flow data subsequence, a re-accumulation factor of each flow data subsequence is obtained according to the accumulation residual, and then the accumulation likelihood coefficient corresponding to each flow data subsequence is determined by the re-accumulation factor.

在一些实施例中,由各个流量数据子序列中的流量数据确定聚积残差可采用下述步骤实现:In some embodiments, determining the aggregate residual from the flow data in each flow data subsequence may be implemented by the following steps:

确定各个流量数据子序列分别对应的流量数据均值Determine the mean value of the traffic data corresponding to each traffic data subsequence ;

根据所述流量数据均值确定各个流量数据子序列的聚积残差,其中,所述聚积残差根据下述公式确定:The accumulated residual of each flow data subsequence is determined according to the flow data mean, wherein the accumulated residual is determined according to the following formula:

其中,表示第/>个流量数据子序列的聚积残差,/>表示第/>个流量数据子序列中第/>个流量数据值,/>表示单个流量数据子序列中流量数据值的数量。in, Indicates the first/> The accumulated residual of the subsequences of traffic data, /> Indicates the first/> The first/> in the flow data subsequence flow data values, /> Represents the number of flow data values in a single flow data subsequence.

在一些实施例中,根据所述聚积残差得到各个流量数据子序列的重聚积因子可采用下述步骤实现:In some embodiments, obtaining the re-aggregation factor of each flow data subsequence according to the aggregated residual may be implemented by the following steps:

获取各个流量数据子序列的聚积残差Get the accumulated residual of each flow data subsequence ;

确定各个流量数据子序列分别对应的聚积异度值Determine the accumulation heterogeneity value corresponding to each flow data subsequence ;

通过所述聚积残差和聚积异度值确定各个流量数据子序列的重聚积因子,其中,重聚积因子根据下述公式确定:The re-aggregation factor of each flow data subsequence is determined by the aggregation residual and the aggregation heterogeneity value, wherein the re-aggregation factor is determined according to the following formula:

表示第/>个流量数据子序列的重聚积因子,/>表示第/>个流量数据子序列中第个流量数据值,/>表示单个流量数据子序列中流量数据值的数量。 Indicates the first/> The re-aggregation factor of the traffic data subsequences, /> Indicates the first/> The first flow data values, /> Represents the number of flow data values in a single flow data subsequence.

在一些实施例中,通过所述重聚积因子确定各个流量数据子序列分别对应的聚积似然系数可采用下述步骤实现:In some embodiments, determining the accumulation likelihood coefficients corresponding to each traffic data subsequence respectively by the re-aggregation factor can be implemented by the following steps:

获取各个流量数据子序列的重聚积因子Get the re-aggregation factor of each flow data subsequence ;

根据重聚积因子确定各个流量数据子序列的平均重聚积因子Determine the average reaggregation factor of each flow data subsequence based on the reaggregation factor ;

确定各个流量数据子序列的重聚积衰减因子Determine the re-aggregation attenuation factor for each flow data subsequence ;

根据所述重聚积因子、平均重聚积因子以及重聚积衰减因子确定聚积似然系数,其中,聚积似然系数根据下述公式确定:The aggregation likelihood coefficient is determined according to the re-aggregation factor, the average re-aggregation factor and the re-aggregation attenuation factor, wherein the aggregation likelihood coefficient is determined according to the following formula:

表示第/>个流量数据子序列的聚积似然系数。 Indicates the first/> The cumulative likelihood coefficient of a traffic data subsequence.

在步骤S103,对于多个流量数据子序列中的每一个流量数据子序列,对该个流量数据子序列进行特征重构,将重构后的流量数据子序列中的流量数据映射到空间矩阵中,得到流量特征空间矩阵。In step S103, for each of the multiple traffic data subsequences, feature reconstruction is performed on the traffic data subsequence, and the traffic data in the reconstructed traffic data subsequence is mapped into a space matrix to obtain a traffic feature space matrix.

在一些实施例中,对于多个流量数据子序列中的每一个流量数据子序列,对该个流量数据子序列进行特征重构可采用下述步骤实现:In some embodiments, for each of the plurality of traffic data subsequences, feature reconstruction of the traffic data subsequence may be implemented by the following steps:

根据该个流量数据子序列中的流量数据值确定延迟时间;Determine the delay time according to the flow data value in the flow data subsequence;

根据该个流量数据子序列中的流量数据值确定嵌入维数;Determine the embedding dimension according to the flow data value in the flow data subsequence;

由所述延迟时间值和嵌入维数对该个流量子序列进行特征重构。The characteristics of the traffic subsequence are reconstructed according to the delay time value and the embedding dimension.

需要说明的是,所述延迟时间表示在流量数据子序列中流量数据值之间的时间间隔。It should be noted that the delay time represents the time interval between flow data values in the flow data subsequence.

具体实现时,获取延迟时间,将流量数据子序列中的数据映射到一维空间中,逐渐增加空间的维数,得到流量嵌入向量,例如,将空间的维度增加为2、3、4等,以便更好的表示流量时间子序列的动态特性,计算各个维度空间中的每个流量数据点与它最近的相邻点的距离,将这些最近的相邻点记为邻近点;In the specific implementation, the delay time is obtained, and the data in the traffic data subsequence is mapped into a one-dimensional space, and the dimension of the space is gradually increased to obtain a traffic embedding vector. For example, the dimension of the space is increased to 2, 3, 4, etc., so as to better represent the dynamic characteristics of the traffic time subsequence. The distance between each traffic data point and its nearest neighboring point in each dimensional space is calculated, and these nearest neighboring points are recorded as neighboring points.

预设一个距离阈值,若邻近点之间的距离在阈值内,判定为真实的邻近点,若它们之间的距离超出阈值,则被判定是虚假邻近点,计算各个维度中虚假邻近点的比例,即虚假邻近点的数量与总邻近点数量的比值,根据虚假邻近点的比值选定嵌入维数,将虚假邻近点比值的最小值取整作为嵌入维数。A distance threshold is preset. If the distance between neighboring points is within the threshold, they are judged as real neighboring points. If the distance between them exceeds the threshold, they are judged as false neighboring points. The proportion of false neighboring points in each dimension is calculated, that is, the ratio of the number of false neighboring points to the total number of neighboring points. The embedding dimension is selected according to the ratio of false neighboring points, and the minimum value of the ratio of false neighboring points is rounded as the embedding dimension.

本申请中嵌入维数的确定采用了现有技术中的虚假邻近点法确定,在其他实施例中也可采用其他方法,这里不做限定。The embedding dimension in the present application is determined by using the false neighbor point method in the prior art. Other methods may also be used in other embodiments, which are not limited here.

具体实现时,根据延迟时间和嵌入维数将流量数据子序列进行特征重构,延迟时间确定重构后的子序列中流量数据点之间的时间间隔,嵌入维数确定重构后的嵌入向量的维度,进而提取所述流量数据子序列的归一化特征并转换为流量嵌入向量子序列,流量嵌入向量子序列是原始流量数据子序列的高维表示,能够更好的获取流量数据的特征,用于进一步的分析处理。In the specific implementation, the traffic data subsequence is feature reconstructed according to the delay time and the embedding dimension. The delay time determines the time interval between the traffic data points in the reconstructed subsequence, and the embedding dimension determines the dimension of the reconstructed embedding vector. Then, the normalized features of the traffic data subsequence are extracted and converted into a traffic embedding vector subsequence. The traffic embedding vector subsequence is a high-dimensional representation of the original traffic data subsequence, which can better obtain the features of the traffic data for further analysis and processing.

在一些实施例中,将重构后的流量数据子序列中的流量数据映射到空间矩阵中,得到流量特征空间矩阵可采用下述步骤实现:In some embodiments, mapping the traffic data in the reconstructed traffic data subsequence into a spatial matrix to obtain a traffic feature spatial matrix may be implemented by the following steps:

获取空间矩阵,其中矩阵的每一行代表不同的时间段,矩阵的每一列代表了流量数据特征;Obtain a spatial matrix, where each row of the matrix represents a different time period, and each column of the matrix represents a flow data feature;

将流量数据子序列中的流量数据按照时间顺序从小到大一一映射到空间矩阵中,得到流量特征空间矩阵。The traffic data in the traffic data subsequence are mapped one by one to the space matrix in chronological order from small to large, and the traffic feature space matrix is obtained.

需要说明的是,本申请中采用的映射方法是现有技术中的直接映射方法,在其他实施例中也可采用其他映射方法,这里不做限定。It should be noted that the mapping method used in the present application is a direct mapping method in the prior art. Other mapping methods may also be used in other embodiments, which are not limited here.

在步骤S104,根据所述流量特征空间矩阵确定流量特征协方差矩阵,由所述流量特征协方差矩阵确定该个流量数据子序列的流量特征值,根据所述流量特征值确定该个流量数据子序列的流量计费迭变指数,进而确定各个流量数据子序列分别对应的流量计费迭变指数。In step S104, the traffic feature covariance matrix is determined according to the traffic feature space matrix, the traffic feature value of the traffic data subsequence is determined by the traffic feature covariance matrix, the traffic billing iterative index of the traffic data subsequence is determined according to the traffic feature value, and then the traffic billing iterative index corresponding to each traffic data subsequence is determined.

在一些实施例中,根据所述流量特征空间矩阵确定流量特征协方差矩阵可采用下述步骤实现:In some embodiments, determining the traffic feature covariance matrix according to the traffic feature space matrix may be implemented by the following steps:

对流量特征空间矩阵进行中心化处理;Centralize the traffic feature space matrix;

确定中心化处理后的流量特征空间矩阵中流量数据值的协方差;Determine the covariance of the flow data values in the flow feature space matrix after the centralization process;

将流量特征空间矩阵中所有流量数据值的协方差按照时间顺序,填充到矩阵的相应位置得到流量特协方差矩阵。The covariance of all traffic data values in the traffic feature space matrix is filled into the corresponding positions of the matrix in chronological order to obtain the traffic feature covariance matrix.

需要说明的是,本申请中的中心化处理是对流量特征空间矩阵进行数据预处理的一种方法,中心化处理是为了将流量特征空间矩阵中流量数据的均值移动到零点附近,消除流量特征空间矩阵中流量数据值的平移差异,减少共线性,且由于中心化后的流量数据均值为零,因此简化了协方差矩阵的计算。It should be noted that the centralization processing in the present application is a method of data preprocessing for the traffic feature space matrix. The centralization processing is to move the mean of the traffic data in the traffic feature space matrix to near zero, eliminate the translation difference of the traffic data values in the traffic feature space matrix, reduce collinearity, and because the mean of the traffic data after centering is zero, the calculation of the covariance matrix is simplified.

具体实现时,创建一个空矩阵,矩阵的每一行代表不同的时间段,矩阵的每一列代表流量数据特征,将流量特征空间矩阵中所有流量数据值的协方差按照时间顺序从小到大将其填充到矩阵的相应位置,得到流量特征协方差矩阵。In the specific implementation, an empty matrix is created. Each row of the matrix represents a different time period, and each column of the matrix represents the traffic data feature. The covariance of all traffic data values in the traffic feature space matrix is filled into the corresponding position of the matrix in chronological order from small to large to obtain the traffic feature covariance matrix.

在一些实施例中,由所述流量特征协方差矩阵确定该个流量数据子序列的流量特征值,根据所述流量特征值确定该个流量数据子序列的流量计费迭变指数,进而确定各个流量数据子序列分别对应的流量计费迭变指数可采用下述步骤实现:In some embodiments, the flow characteristic value of the flow data subsequence is determined by the flow characteristic covariance matrix, and the flow billing iterative index of the flow data subsequence is determined according to the flow characteristic value, and then the flow billing iterative index corresponding to each flow data subsequence is determined, which can be implemented by the following steps:

计算流量特征协方差矩阵的特征值Calculate the eigenvalues of the traffic characteristics covariance matrix ;

获取各个流量数据子序列分别对应的流量数据均值Get the mean value of the traffic data corresponding to each traffic data subsequence ;

确定流量特征协方差矩阵中各个流量数据值的流量属性值Determine the flow attribute value of each flow data value in the flow characteristic covariance matrix ;

通过流量特征协方差矩阵的特征值和各个流量数据值的流量变化值确定流量计费迭变指数,其中,流量计费迭变指数可根据下述公式确定:The flow billing iterative index is determined by the eigenvalue of the flow characteristic covariance matrix and the flow change value of each flow data value, wherein the flow billing iterative index can be determined according to the following formula:

表示第/>个流量数据子序列的流量计费迭变指数。 Indicates the first/> The traffic billing iteration index of a traffic data subsequence.

在步骤S105,根据各个流量数据子序列分别对应的聚积似然系数和流量计费迭变指数,确定各个流量数据子序列分别对应的流量计费预测函值,将各个流量数据子序列的流量计费预测函值叠加得到流量数据序列的流量计费预测函值。In step S105, the flow billing prediction function value corresponding to each flow data subsequence is determined according to the accumulated likelihood coefficient and flow billing iteration index corresponding to each flow data subsequence, and the flow billing prediction function value of each flow data subsequence is superimposed to obtain the flow billing prediction function value of the flow data sequence.

具体实现时,流量计费预测函值可采用下述步骤实现:In specific implementation, the traffic billing prediction function value can be realized by the following steps:

获取各个流量数据子序列分别对应的聚积似然系数Get the cumulative likelihood coefficient corresponding to each traffic data subsequence ;

获取各个流量数据子序列分别对应的流量计费迭变指数Get the traffic billing iteration index corresponding to each traffic data subsequence ;

由所述聚积似然系数和流量计费迭变指数确定流量计费预测函值,其中,流量计费预测函值根据下述公式确定:The flow billing prediction function value is determined by the accumulation likelihood coefficient and the flow billing iteration index, wherein the flow billing prediction function value is determined according to the following formula:

表示第/>个流量数据子序列的流量计费预测函值,/>表示第/>个流量数据子序列中第/>个流量数据值。 Indicates the first/> The traffic billing prediction function value of a traffic data subsequence,/> Indicates the first/> The first/> in the flow data subsequence flow data value.

在一些实施例中,将各个流量数据子序列的流量计费预测函值叠加得到流量数据序列的流量计费预测函值的过程,可以通过对所有流量数据子序列的流量计费预测函值作加法运算得到,需要说明的,所述流量计费预测函值为根据数据中心历史流量数据进行函值预测得到的预测结果,反映了基于数据中心行为习惯的下一步流量传输需求,因此可以通过所述流量计费预测函值对流量传输链路的带宽进行调节,从而提高网络计费时在不同网络环境下的网络稳定性,在网络波动情况较大时能够保证计费结果的准确性。In some embodiments, the process of superimposing the traffic billing prediction function values of each traffic data subsequence to obtain the traffic billing prediction function value of the traffic data sequence can be obtained by adding the traffic billing prediction function values of all traffic data subsequences. It should be noted that the traffic billing prediction function value is a prediction result obtained by function prediction based on the historical traffic data of the data center, reflecting the next traffic transmission demand based on the behavior habits of the data center. Therefore, the bandwidth of the traffic transmission link can be adjusted by the traffic billing prediction function value, thereby improving the network stability under different network environments during network billing, and ensuring the accuracy of the billing results when the network fluctuations are large.

在步骤S106,根据所述流量计费预测函值对流量传输链路的带宽流量计费时的网络带宽进行调节。In step S106, the network bandwidth of the traffic transmission link during bandwidth flow billing is adjusted according to the traffic billing prediction function value.

在一些实施例中,根据流量计费预测函值与预设的函值阈值进行对比,得到函值比例系数,具体实现时,可以将所述流量计费预测函值与预设的函值阈值之间的比值作为所述函值比例系数,进而通过函值比例系数对流量传输链路的带宽进行比例调节,例如,在数据中心的路由器带宽控制系统的前向通路中加入比例-积分-微分控制器(Proportional-Integral-Derivative,PID)控制器,将所述函值比例系数作为所述PID控制器中的比例参数,从而根据所述函值比例系数对数据中心占用带宽进行提前调节,提高网络计费时在不同网络环境下的网络稳定性,在网络波动情况较大时能够保证计费结果的准确性。In some embodiments, a function value proportional coefficient is obtained by comparing the traffic billing prediction function value with a preset function value threshold. In specific implementation, the ratio between the traffic billing prediction function value and the preset function value threshold can be used as the function value proportional coefficient, and then the bandwidth of the traffic transmission link is proportionally adjusted by the function value proportional coefficient. For example, a proportional-integral-derivative (PID) controller is added to the forward path of the router bandwidth control system of the data center, and the function value proportional coefficient is used as a proportional parameter in the PID controller, so that the bandwidth occupied by the data center is adjusted in advance according to the function value proportional coefficient, thereby improving the network stability under different network environments during network billing and ensuring the accuracy of the billing results when the network fluctuation is large.

另外,本申请的另一方面,在一些实施例中,本申请提供一种数据中心网络带宽流量自动计费调节装置,该装置包括有带宽控制单元,参考图2,该图是根据本申请一些实施例所示的带宽控制单元的示例性硬件和/或软件的示意图,该带宽控制单元200包括:流量数据子序列确定模块201、聚积似然系数确定模块202、流量特征空间矩阵确定模块203、流量计费迭变指数确定模块204、流量计费预测函值确定模块205和带宽控制模块206,分别说明如下:In addition, in another aspect of the present application, in some embodiments, the present application provides a data center network bandwidth flow automatic billing adjustment device, the device includes a bandwidth control unit, refer to Figure 2, which is a schematic diagram of exemplary hardware and/or software of the bandwidth control unit shown in some embodiments of the present application, the bandwidth control unit 200 includes: a flow data subsequence determination module 201, an accumulation likelihood coefficient determination module 202, a flow feature space matrix determination module 203, a flow billing iterative index determination module 204, a flow billing prediction function value determination module 205 and a bandwidth control module 206, which are respectively described as follows:

流量数据子序列确定模块201,本申请中流量数据子序列确定模块201主要用于采集数据中心的用户历史流量计费数据并进行预处理,得到多个流量数据子序列;Traffic data subsequence determination module 201, in the present application, the traffic data subsequence determination module 201 is mainly used to collect historical traffic billing data of users in the data center and perform preprocessing to obtain multiple traffic data subsequences;

聚积似然系数确定模块202,本申请中聚积似然系数确定模块202主要用于由各个流量数据子序列中的流量数据确定聚积残差,根据所述聚积残差得到各个流量数据子序列的重聚积因子,进而通过所述重聚积因子确定各个流量数据子序列的聚积似然系数;An accumulation likelihood coefficient determination module 202, in the present application, is mainly used to determine an accumulation residual from the flow data in each flow data subsequence, obtain a re-aggregation factor of each flow data subsequence according to the accumulation residual, and then determine the accumulation likelihood coefficient of each flow data subsequence through the re-aggregation factor;

流量特征空间矩阵确定模块203,本申请中流量特征空间矩阵确定模块203主要用于对于多个流量数据子序列中的每一个流量数据子序列,根据流量特征对该个流量数据子序列进行重构,将重构后的流量数据子序列中的流量数据映射到空间矩阵中,得到流量特征空间矩阵;The traffic feature space matrix determination module 203 in the present application is mainly used to reconstruct each traffic data subsequence in a plurality of traffic data subsequences according to the traffic feature, and map the traffic data in the reconstructed traffic data subsequence to the space matrix to obtain the traffic feature space matrix;

流量计费迭变指数确定模块204,本申请中流量计费迭变指数确定模块204主要用于根据所述流量特征空间矩阵确定流量特征协方差矩阵,由所述流量特征协方差矩阵确定该个流量数据子序列的流量特征值,根据所述流量特征值确定该个流量数据子序列的流量计费迭变指数,进而确定各个流量数据子序列分别对应的流量计费迭变指数;The flow billing iterative index determination module 204 in the present application is mainly used to determine the flow feature covariance matrix according to the flow feature space matrix, determine the flow feature value of the flow data subsequence by the flow feature covariance matrix, determine the flow billing iterative index of the flow data subsequence according to the flow feature value, and then determine the flow billing iterative index corresponding to each flow data subsequence;

流量计费预测函值确定模块205,本申请中流量计费预测函值确定模块205主要用于根据各个流量数据子序列分别对应的聚积似然系数和流量计费迭变指数,确定各个流量数据子序列分别对应的流量计费预测函值,将各个流量数据子序列的流量计费预测函值叠加得到流量数据序列的流量计费预测函值;The flow billing prediction function value determination module 205 in the present application is mainly used to determine the flow billing prediction function value corresponding to each flow data subsequence according to the accumulation likelihood coefficient and flow billing iterative index corresponding to each flow data subsequence, and superimpose the flow billing prediction function values of each flow data subsequence to obtain the flow billing prediction function value of the flow data sequence;

带宽控制模块206,本申请中带宽控制模块206主要用于根据所述流量计费预测函值对流量传输链路的带宽流量计费时的网络带宽进行调节。The bandwidth control module 206 in the present application is mainly used to adjust the network bandwidth of the traffic transmission link during bandwidth flow billing according to the traffic billing prediction function value.

另外,本申请还提供一种计算机设备,所述计算机设备包括存储器和处理器,所述存储器存储有代码,所述处理器被配置为获取所述代码,并执行上述的数据中心网络带宽流量自动计费调节方法。In addition, the present application also provides a computer device, which includes a memory and a processor, the memory stores code, and the processor is configured to obtain the code and execute the above-mentioned data center network bandwidth traffic automatic billing adjustment method.

在一些实施例中,参考图3,该图是根据本申请一些实施例所示的应用数据中心网络带宽流量自动计费调节方法的计算机设备的结构示意图。上述实施例中的数据中心网络带宽流量自动计费调节方法可以通过图3所示的计算机设备来实现,该计算机设备包括至少一个处理器301、通信总线302、存储器303以及至少一个通信接口304。In some embodiments, referring to FIG3, this figure is a schematic diagram of the structure of a computer device for applying a data center network bandwidth flow automatic billing adjustment method according to some embodiments of the present application. The data center network bandwidth flow automatic billing adjustment method in the above embodiment can be implemented by a computer device as shown in FIG3, which includes at least one processor 301, a communication bus 302, a memory 303, and at least one communication interface 304.

处理器301可以是一个通用中央处理器(central processing unit,CPU)、特定应用集成电路(application-specific integrated circuit,ASIC)或一个或多个用于控制本申请中的数据中心网络带宽流量自动计费调节方法的执行。Processor 301 can be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC) or one or more processors for controlling the execution of the automatic billing and adjustment method for data center network bandwidth traffic in the present application.

通信总线302可包括一通路,在上述组件之间传送信息。The communication bus 302 may include a pathway for transmitting information between the above-mentioned components.

存储器303可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electricallyerasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only Memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘或者其它磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器303可以是独立存在,通过通信总线302与处理器301相连接。存储器303也可以和处理器301集成在一起。The memory 303 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, an optical disc storage (including a compressed optical disc, a laser disc, an optical disc, a digital versatile disc, a Blu-ray disc, etc.), a magnetic disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 303 may exist independently and be connected to the processor 301 via the communication bus 302. The memory 303 may also be integrated with the processor 301.

其中,存储器303用于存储执行本申请方案的程序代码,并由处理器301来控制执行。处理器301用于执行存储器303中存储的程序代码。程序代码中可以包括一个或多个软件模块。上述实施例中数据中心网络带宽流量自动计费调节方法可以通过处理器301以及存储器303中的程序代码中的一个或多个软件模块实现。The memory 303 is used to store the program code for executing the solution of the present application, and the execution is controlled by the processor 301. The processor 301 is used to execute the program code stored in the memory 303. The program code may include one or more software modules. The automatic billing and adjustment method for data center network bandwidth flow in the above embodiment can be implemented by the processor 301 and one or more software modules in the program code in the memory 303.

通信接口304,使用任何收发器一类的装置,用于与其它设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local areanetworks,WLAN)等。The communication interface 304 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.

在具体实现中,作为一种实施例,计算机设备可以包括多个处理器,这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, a computer device may include multiple processors, each of which may be a single-CPU processor or a multi-CPU processor. The processor here may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).

上述的计算机设备可以是一个通用计算机设备或者是一个专用计算机设备。在具体实现中,计算机设备可以是台式机、便携式电脑、网络服务器、掌上电脑(personaldigital assistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备或者嵌入式设备。本申请实施例不限定计算机设备的类型。The above-mentioned computer device may be a general-purpose computer device or a special-purpose computer device. In a specific implementation, the computer device may be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of computer device.

另外,本申请还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述的数据中心网络带宽流量自动计费调节方法。In addition, the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned data center network bandwidth flow automatic billing adjustment method is implemented.

综上,本申请实施例公开的数据中心网络带宽流量自动计费调节方法及装置中,首先通过采集数据中心的用户历史流量计费数据并进行预处理,得到多个流量数据子序列,由流量数据子序列中的流量数据确定聚积残差,进而确定流量数据子序列的聚积似然系数,将量数据子序列进行特征重构,由重构后的流量数据子序列确定流量特征空间矩阵,进而得到流量特征协方差矩阵,由流量特征协方差矩阵确定流量特征值,根据流量特征值确定流量数据子序列的流量计费迭变指数,根据聚积似然系数和流量计费迭变指数,确定流量数据子序列的流量计费预测函值,根据所述流量计费预测函值对流量传输链路的带宽流量计费时的网络带宽进行调节,从而提高了不同网络环境下的网络稳定性,保证了计费结果的准确性。In summary, in the method and device for automatic billing and adjustment of data center network bandwidth traffic disclosed in the embodiment of the present application, first, historical traffic billing data of users in the data center is collected and preprocessed to obtain multiple traffic data subsequences, the accumulation residual is determined from the traffic data in the traffic data subsequence, and then the accumulation likelihood coefficient of the traffic data subsequence is determined, the traffic data subsequence is feature reconstructed, the traffic feature space matrix is determined from the reconstructed traffic data subsequence, and then the traffic feature covariance matrix is obtained, the traffic feature value is determined from the traffic feature covariance matrix, the traffic billing iteration index of the traffic data subsequence is determined according to the traffic feature value, the traffic billing prediction function of the traffic data subsequence is determined according to the accumulation likelihood coefficient and the traffic billing iteration index, and the network bandwidth of the traffic transmission link is adjusted according to the traffic billing prediction function during bandwidth traffic billing, thereby improving the network stability under different network environments and ensuring the accuracy of the billing results.

尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims (8)

1. An automatic charging adjustment method for data center network bandwidth flow is characterized by comprising the following steps:
Collecting historical flow charging data of a user of a data center and preprocessing the data to obtain a plurality of flow data subsequences;
Determining accumulation residual errors according to flow data in each flow data subsequence, obtaining a re-accumulation factor of each flow data subsequence according to the accumulation residual errors, and further determining accumulation likelihood coefficients corresponding to each flow data subsequence respectively through the re-accumulation factors;
for each flow data subsequence in the plurality of flow data subsequences, performing feature reconstruction on the flow data subsequence, and mapping flow data in the reconstructed flow data subsequence into a space matrix to obtain a flow feature space matrix;
determining a flow characteristic covariance matrix according to the flow characteristic space matrix, determining a flow characteristic value of the flow data subsequence by the flow characteristic covariance matrix, determining a flow charging iteration index of the flow data subsequence according to the flow characteristic value, and further determining flow charging iteration indexes respectively corresponding to the flow data subsequences;
Determining flow charging prediction function values corresponding to the flow data subsequences according to the accumulation likelihood coefficients and the flow charging variation indexes corresponding to the flow data subsequences, and superposing the flow charging prediction function values of the flow data subsequences to obtain flow charging prediction function values of the flow data sequences;
and adjusting the time-consuming network bandwidth of the bandwidth flowmeter of the flow transmission link according to the flow charging prediction function value.
2. The method of claim 1, wherein collecting and preprocessing historical traffic billing data for a user of the data center to obtain a plurality of traffic data subsequences comprises:
collecting user historical flow charging data of a data center, and dividing the user historical flow charging data into blocks to obtain a flow data sequence;
performing smoothing treatment on the flow data sequence to obtain a flow data smoothing sequence;
and decomposing the flow data smoothing sequence according to the use frequency of the user flow to obtain a plurality of flow data subsequences.
3. The method of claim 1, wherein determining respective accumulation likelihood coefficients for each flow data sub-sequence by the re-accumulation factor comprises:
acquiring a reaggregation factor of each flow data subsequence;
determining an average re-accumulation factor of each flow data sub-sequence;
determining a refocusing attenuation factor of each flow data sub-sequence;
and determining an accumulation likelihood coefficient according to the re-accumulation factor, the average re-accumulation factor and the re-accumulation attenuation factor.
4. The method of claim 1, wherein determining a flow feature covariance matrix from the flow feature space matrix comprises:
Carrying out centering treatment on the flow characteristic space matrix;
Determining covariance of flow data values in the flow characteristic space matrix after the centralization treatment;
And filling covariance of all flow data values in the flow characteristic space matrix to corresponding positions of the matrix according to time sequence to obtain a flow characteristic covariance matrix.
5. The method of claim 1 wherein determining a flow charging iteration index for the flow data subsequence based on the flow characteristic value comprises:
Acquiring a flow characteristic value of the flow data subsequence;
determining a flow data mean value in the flow data subsequence;
And determining the flow charging iteration index of the flow data subsequence according to the flow characteristic value and the flow data average value.
6. The utility model provides a data center network bandwidth flow automatic charging adjusting device which characterized in that, including bandwidth control unit, bandwidth control unit includes:
The flow data subsequence determining module is used for collecting user historical flow charging data of the data center, dividing the user historical flow charging data into blocks to obtain a flow data sequence, further smoothing the flow data sequence to obtain a flow data smoothing sequence, and decomposing the flow data smoothing sequence according to the use frequency of the user flow to obtain a plurality of flow data subsequences;
The accumulation likelihood coefficient determining module is used for determining an accumulation residual error from the flow data in each flow data subsequence, obtaining a re-accumulation factor of each flow data subsequence according to the accumulation residual error, and further determining the accumulation likelihood coefficient of each flow data subsequence through the re-accumulation factor;
The flow characteristic space matrix determining module is used for reconstructing each flow data subsequence in the plurality of flow data subsequences according to the flow characteristics, and mapping flow data in the reconstructed flow data subsequence into a space matrix to obtain a flow characteristic space matrix;
The flow charging iteration index determining module is used for determining a flow characteristic covariance matrix according to the flow characteristic space matrix, determining a flow characteristic value of the flow data subsequence according to the flow characteristic covariance matrix, determining a flow charging iteration index of the flow data subsequence according to the flow characteristic value, and further determining flow charging iteration indexes corresponding to the flow data subsequences respectively;
the flow charging prediction function value determining module is used for determining flow charging prediction function values respectively corresponding to the flow data subsequences according to the accumulation likelihood coefficients and the flow charging variation indexes respectively corresponding to the flow data subsequences, and superposing the flow charging prediction function values of the flow data subsequences to obtain flow charging prediction function values of the flow data sequences;
and the bandwidth control module is used for adjusting the time-consuming network bandwidth of the bandwidth flowmeter of the flow transmission link according to the flow charging prediction function value.
7. A computer device comprising a memory storing code and a processor configured to obtain the code and to perform the data center network bandwidth flow automatic billing adjustment method of any of claims 1 to 5.
8. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the data center network bandwidth flow automatic billing adjustment method of any of claims 1 to 5.
CN202311314204.8A 2023-10-11 2023-10-11 Automatic charging adjustment method and device for data center network bandwidth flow Active CN117354072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311314204.8A CN117354072B (en) 2023-10-11 2023-10-11 Automatic charging adjustment method and device for data center network bandwidth flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311314204.8A CN117354072B (en) 2023-10-11 2023-10-11 Automatic charging adjustment method and device for data center network bandwidth flow

Publications (2)

Publication Number Publication Date
CN117354072A CN117354072A (en) 2024-01-05
CN117354072B true CN117354072B (en) 2024-06-21

Family

ID=89368607

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311314204.8A Active CN117354072B (en) 2023-10-11 2023-10-11 Automatic charging adjustment method and device for data center network bandwidth flow

Country Status (1)

Country Link
CN (1) CN117354072B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113949741A (en) * 2021-10-14 2022-01-18 北京奇艺世纪科技有限公司 Scheduling method, scheduling device, electronic equipment and storage medium
CN116346639A (en) * 2023-03-04 2023-06-27 西安电子科技大学青岛计算技术研究院 Network traffic prediction method, system, medium, equipment and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2593180A (en) * 2020-03-17 2021-09-22 Univ Court Univ Of Edinburgh A distributed network traffic data decomposition method
CN112949640A (en) * 2021-01-29 2021-06-11 罗普特科技集团股份有限公司 Point cloud semantic segmentation method and device, computing equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113949741A (en) * 2021-10-14 2022-01-18 北京奇艺世纪科技有限公司 Scheduling method, scheduling device, electronic equipment and storage medium
CN116346639A (en) * 2023-03-04 2023-06-27 西安电子科技大学青岛计算技术研究院 Network traffic prediction method, system, medium, equipment and terminal

Also Published As

Publication number Publication date
CN117354072A (en) 2024-01-05

Similar Documents

Publication Publication Date Title
US9697316B1 (en) System and method for efficient data aggregation with sparse exponential histogram
CN114021770A (en) Network resource optimization method, device, electronic device and storage medium
CN118035760B (en) Canal filling water flow determining, model constructing and standard flow information extracting method
CN118551992B (en) Charging pile energy management method, device, equipment and storage medium
CN118051187A (en) Data storage method and system in transaction processing system
CN104254083B (en) Predict the method and device of traffic hotspots
CN118551327A (en) Operation management method, system and storage medium of e-commerce platform
CN117354072B (en) Automatic charging adjustment method and device for data center network bandwidth flow
CN115618654A (en) Identification method and device for out-of-tolerance electric energy meter
CN119515265A (en) Visualized warehouse tracking management system based on steel structure production
CN118784494A (en) Concentrator control method based on adaptive topology
CN112867162B (en) Slice resource allocation method and device
CN118939205A (en) Performance index prediction method and device, storage medium and electronic device
CN117910255A (en) A large-scale network distributed simulation system and construction method
CN109450684B (en) A method and device for expanding physical node capacity of a network slicing system
CN117827426A (en) A method and device for determining a virtual machine resource scheduling strategy
CN116800851A (en) An efficient block compression method for UTXO model blockchain
CN117472589B (en) Park network service management method and system
CN102137141B (en) A data storage control method and a data storage control device
CN118101720B (en) New energy data acquisition control method and system based on edge cloud
CN116628896B (en) Method and device for determining precision of parabolic antenna molded surface, electronic equipment and medium
CN114924883B (en) Method, device, equipment and readable medium for determining optimal process mapping
CN112947326B (en) Fuzzy flexible station area power supply quality data processing method, device and storage medium
CN118606328B (en) Power data storage method, electronic device and storage medium
CN113674411B (en) Map building method based on pose map adjustment and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method and device for automatic billing and adjustment of network bandwidth traffic in data centers

Granted publication date: 20240621

Pledgee: Societe Generale Bank Limited by Share Ltd. Guangzhou branch

Pledgor: GUANGDONG CLOUD BASE TECHNOLOGY Co.,Ltd.

Registration number: Y2025980007797