CN106936733B - A kind of bandwidth resource allocation method and device - Google Patents

A kind of bandwidth resource allocation method and device Download PDF

Info

Publication number
CN106936733B
CN106936733B CN201511029265.5A CN201511029265A CN106936733B CN 106936733 B CN106936733 B CN 106936733B CN 201511029265 A CN201511029265 A CN 201511029265A CN 106936733 B CN106936733 B CN 106936733B
Authority
CN
China
Prior art keywords
computer room
peak
target
customer
ratio
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
CN201511029265.5A
Other languages
Chinese (zh)
Other versions
CN106936733A (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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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 Beijing Kingsoft Cloud Network Technology Co Ltd, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201511029265.5A priority Critical patent/CN106936733B/en
Publication of CN106936733A publication Critical patent/CN106936733A/en
Application granted granted Critical
Publication of CN106936733B publication Critical patent/CN106936733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/83Admission control; Resource allocation based on usage prediction

Landscapes

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

Abstract

The embodiment of the application discloses a method and a device for allocating bandwidth resources, which relate to the technical field of networks, wherein the method comprises the following steps: obtaining the estimated peak bandwidth of a target client and the estimated shared bandwidth of the target client; obtaining peak bandwidth of each machine room and shared bandwidth of each machine room; selecting a target machine room of the target client from each machine room according to the estimated peak bandwidth of the target client, the estimated shared bandwidth of the target client, the peak bandwidth of each machine room and the shared bandwidth of each machine room; and allocating bandwidth resources to the target client according to the bandwidth resources of the target computer room. By applying the scheme provided by the embodiment of the application to allocate the bandwidth resources, the bandwidth resources of the computer room can be fully utilized.

Description

一种带宽资源分配方法及装置A kind of bandwidth resource allocation method and device

技术领域technical field

本申请涉及网络技术领域,特别涉及一种带宽资源分配方法及装置。The present application relates to the field of network technologies, and in particular, to a method and apparatus for allocating bandwidth resources.

背景技术Background technique

随着网络技术的快速发展,网络越来越成为人们工作、生活中不可缺少的一部分。实际应用中,客户欲构建其网络时,首先需要确定其需要的带宽资源由网络服务提供商的哪个机房分配,然后才能根据该机房分配的带宽资源构建其网络,进行网络访问。With the rapid development of network technology, the network has increasingly become an indispensable part of people's work and life. In practical applications, when customers want to build their network, they first need to determine which computer room of the network service provider the bandwidth resources they need are allocated by, and then they can build their network and access the network according to the bandwidth resources allocated by the computer room.

现有技术中,确定客户所需要的带宽资源由哪个机房分配时,通常是随机选择的,从当前可用的机房中随机选择一个机房为上述客户分配其所需要的带宽资源。应用该方式虽然能够实现带宽资源分配,但是由于选择机房时是随机选择的,所以可能会造成个别机房中各个客户的峰值带宽集中,例如,一段时间时间峰值带宽过高,而一段时间峰值带宽过低,进而该机房内带宽资源得不到充分利用。In the prior art, when determining which computer room allocates the bandwidth resources required by customers, it is usually randomly selected, and randomly selects a computer room from the currently available computer rooms to allocate the bandwidth resources required by the above-mentioned customers. Although this method can realize bandwidth resource allocation, because the computer room is randomly selected, it may cause the peak bandwidth of each customer in individual computer rooms to be concentrated. Therefore, the bandwidth resources in the equipment room cannot be fully utilized.

发明内容SUMMARY OF THE INVENTION

本申请实施例公开了一种带宽资源分配方法及装置,以充分利用机房的带宽资源。The embodiments of the present application disclose a method and device for allocating bandwidth resources, so as to make full use of the bandwidth resources of a computer room.

为达到上述目的,本申请实施例公开了一种带宽资源分配方法,所述方法包括:In order to achieve the above purpose, an embodiment of the present application discloses a bandwidth resource allocation method, the method includes:

获得目标客户的预估峰值带宽和所述目标客户的预估共享带宽;Obtain the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer;

获得各个机房的峰值带宽和各个机房的共享带宽;Obtain the peak bandwidth of each computer room and the shared bandwidth of each computer room;

根据所述目标客户的预估峰值带宽、所述目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,从各个机房中选择所述目标客户的目标机房;According to the estimated peak bandwidth of the target customer, the estimated shared bandwidth of the target customer, the peak bandwidth of each computer room, and the shared bandwidth of each computer room, the target computer room of the target customer is selected from each computer room;

根据所述目标机房的带宽资源,为所述目标客户分配带宽资源。According to the bandwidth resources of the target computer room, bandwidth resources are allocated to the target customers.

在本申请的一种具体实现方式中,在所述目标客户包含多个客户的情况下,所述根据所述目标客户的预估峰值带宽、所述目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,从各个机房中选择所述目标客户的目标机房,包括:In a specific implementation manner of the present application, when the target customer includes multiple customers, the estimated peak bandwidth of the target customer, the estimated shared bandwidth of the target customer, the Peak bandwidth and shared bandwidth of each computer room, select the target computer room of the target customer from each computer room, including:

根据各个机房的峰值带宽和各个机房的共享带宽,计算各个机房的机房峰共比,其中,所述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值;Calculate the peak-to-peak ratio of each computer room according to the peak bandwidth of each computer room and the shared bandwidth of each computer room, where the peak-to-peak ratio of each computer room is: the ratio between the peak bandwidth of one computer room and the shared bandwidth of the computer room;

根据各个机房的机房峰共比,按照以下方式从各个机房中选择所述目标客户中每一客户的目标机房:According to the peak-to-peak ratio of each computer room, the target computer room of each of the target customers is selected from each computer room in the following manner:

根据客户U的预估峰值带宽和所述客户U的预估共享带宽,估算将所述客户U分别加入各个机房后各个机房的机房峰共比,其中,所述客户U为所述目标客户中的任一客户;According to the estimated peak bandwidth of the customer U and the estimated shared bandwidth of the customer U, estimate the peak total ratio of each computer room after adding the customer U to each computer room, wherein the customer U is one of the target customers any customer of ;

确定满足第一关系式的机房峰共比数量,其中,所述第一关系式为:估算得到的机房的机房峰共比>估算前该机房的机房峰共比;Determine the number of computer room peak-to-peak ratios that satisfy the first relational expression, wherein the first relational formula is: the estimated computer-room peak-to-peak ratio of the computer room > the computer room peak-to-peak ratio of the computer room before the estimation;

判断所述机房峰共比数量是否大于预设的数量阈值;judging whether the peak-to-common ratio quantity of the computer room is greater than a preset quantity threshold;

若为是,从满足所述第一关系式的估算得到的机房峰共比对应的机房中选择所述客户U的目标机房;If yes, select the target computer room of the customer U from the computer rooms corresponding to the computer room peak-to-peak ratio obtained by the estimation that satisfies the first relational expression;

若为否,根据估算得到的机房峰共比,从各个机房中选择所述客户U的目标机房。If no, the target computer room of the customer U is selected from each computer room according to the estimated peak-to-peak ratio of the computer room.

在本申请的一种具体实现方式中,所述从满足所述第一关系式的估算得到的机房峰共比对应的机房中选择所述客户U的目标机房,包括:In a specific implementation manner of the present application, the selecting the target computer room of the customer U from the computer rooms corresponding to the computer room peak-to-peak ratio obtained by the estimation satisfying the first relational expression includes:

基于同一机房,计算满足所述第一关系式的估算得到的机房峰共比与估算前机房峰共比之间的比值;Based on the same computer room, calculating the ratio between the estimated computer room peak-to-peak ratio that satisfies the first relational expression and the pre-estimated computer room peak-to-peak ratio;

选择计算得到的比值中数值最大的比值对应的机房为所述客户U的目标机房。The computer room corresponding to the ratio with the largest value among the calculated ratios is selected as the target computer room of the customer U.

在本申请的一种具体实现方式中,所述根据估算得到的机房峰共比,从各个机房中选择所述客户U的目标机房,包括:In a specific implementation manner of the present application, the target computer room of the customer U is selected from each computer room according to the estimated total computer room peak ratio, including:

基于同一机房,计算估算得到的机房峰共比与估算前机房峰共比之间的比值;Based on the same computer room, calculate the ratio between the estimated peak-to-peak ratio of the computer room and the estimated peak-to-peak ratio of the previous computer room;

选择计算得到的比值中数值最大的比值对应的机房为所述客户U的目标机房。The computer room corresponding to the ratio with the largest value among the calculated ratios is selected as the target computer room of the customer U.

在本申请的一种具体实现方式中,在所述根据估算得到的机房峰共比,从各个机房中选择所述客户U的目标机房之后,还包括:In a specific implementation manner of the present application, after the target computer room of the customer U is selected from each computer room according to the estimated computer room peak-to-peak ratio, the method further includes:

将所述客户U标记为可变更机房的客户。The customer U is marked as a customer of the changeable computer room.

在本申请的一种具体实现方式中,在所述目标客户包含一个客户的情况下,所述根据所述目标客户的预估峰值带宽、所述目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,从各个机房中选择所述目标客户的目标机房,包括:In a specific implementation manner of the present application, when the target customer includes one customer, the estimated peak bandwidth of the target customer, the estimated shared bandwidth of the target customer, the peak value of each computer room Bandwidth and shared bandwidth of each computer room, select the target computer room of the target customer from each computer room, including:

根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,估算将所述目标客户加入各个机房后各个机房的机房峰共比,其中,所述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值;According to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer, estimate the total computer room peak ratio of each computer room after the target customer is added to each computer room, wherein the computer room peak total ratio is: one The ratio between the peak bandwidth of the computer room and the shared bandwidth of the computer room;

根据估算得到的机房峰共比,为所述目标客户选择目标机房。According to the estimated peak-to-peak ratio of computer rooms, a target computer room is selected for the target customer.

在本申请的一种具体实现方式中,所述根据估算得到的机房峰共比,为所述目标客户选择目标机房,包括:In a specific implementation manner of the present application, selecting a target computer room for the target customer according to the estimated peak-to-peak ratio of computer rooms includes:

根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,计算所述目标客户的客户峰共比,其中,所述客户峰共比为:所述目标客户的预估峰值带宽与所述目标客户的预估共享带宽之间的比值;According to the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client, calculate the client-to-peak ratio of the target client, wherein the client-to-peak ratio is: the estimated peak value of the target client the ratio between the bandwidth and the estimated shared bandwidth of the target client;

判断所述目标客户的客户峰共比是否大于预设的客户峰共比阈值;Judging whether the customer peak common ratio of the target customer is greater than a preset customer peak common ratio threshold;

若为是,选择估算得到的机房峰共比中数值最大的机房峰共比对应的机房为所述目标客户的目标机房;If yes, select the computer room corresponding to the peak-to-peak ratio of the computer room with the largest value in the estimated peak-to-peak ratio of the computer room as the target computer room of the target customer;

若为否,从不低于估算前机房峰共比的估算得到的机房峰共比对应的机房中选择所述目标客户的目标机房。If no, the target computer room of the target customer is selected from the computer rooms corresponding to the estimated computer room peak-to-peak ratio not lower than the pre-estimated peak-to-peak ratio of computer rooms.

在本申请的一种具体实现方式中,在所述从不低于估算前机房峰共比的估算得到的机房峰共比对应的机房中选择所述目标客户的目标机房之后,还包括:In a specific implementation manner of the present application, after selecting the target computer room of the target customer from the computer room corresponding to the estimated computer room peak-to-peak ratio not lower than the pre-estimated computer room peak-to-peak ratio, the method further includes:

将所述目标客户标记为可变更机房的客户。The target customer is marked as a customer who can change the computer room.

在本申请的一种具体实现方式中,所述根据估算得到的机房峰共比,为所述目标客户选择目标机房,包括:In a specific implementation manner of the present application, selecting a target computer room for the target customer according to the estimated peak-to-peak ratio of computer rooms includes:

判断是否存在被标记为可变更机房的客户;Determine whether there is a customer marked as a changeable room;

若存在,对所述目标客户和所述被标记为可变更机房的客户进行客户合并处理得到合并客户;If it exists, perform customer merging processing on the target customer and the customer marked as a changeable computer room to obtain a merged customer;

根据估算得到的机房峰共比,为所述合并客户选择目标机房,并将所述目标机房确定为所述目标客户的目标机房,将所述被标记为可变更机房的客户由当前所在的机房变更至所述目标机房。According to the estimated peak-to-peak ratio of computer rooms, a target computer room is selected for the combined customer, and the target computer room is determined as the target computer room of the target customer, and the customer marked as a changeable computer room is replaced by the current computer room Change to the target computer room.

在本申请的一种具体实现方式中,所述带宽资源分配方法还包括:In a specific implementation manner of the present application, the bandwidth resource allocation method further includes:

根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,计算所述目标客户的客户峰共比,其中,所述客户峰共比为:所述目标客户的预估峰值带宽与所述目标客户的预估共享带宽之间的比值;According to the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client, calculate the client-to-peak ratio of the target client, wherein the client-to-peak ratio is: the estimated peak value of the target client the ratio between the bandwidth and the estimated shared bandwidth of the target client;

根据所述目标客户的客户峰共比,从预设的客户价值计算规则库中选择针对所述目标客户的客户价值计算规则;According to the customer peak total ratio of the target customer, select a customer value calculation rule for the target customer from a preset customer value calculation rule library;

根据所选择的客户价值计算规则,计算所述目标客户的客户价值。Calculate the customer value of the target customer according to the selected customer value calculation rule.

为达到上述目的,本申请实施例公开了一种带宽资源分配装置,所述装置包括:To achieve the above purpose, an embodiment of the present application discloses an apparatus for allocating bandwidth resources, and the apparatus includes:

第一带宽信息获得模块,用于获得目标客户的预估峰值带宽和所述目标客户的预估共享带宽;The first bandwidth information obtaining module is used to obtain the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client;

第二带宽信息获得模块,用于获得各个机房的峰值带宽和各个机房的共享带宽;The second bandwidth information obtaining module is used to obtain the peak bandwidth of each computer room and the shared bandwidth of each computer room;

目标机房选择模块,用于根据所述目标客户的预估峰值带宽、所述目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,从各个机房中选择所述目标客户的目标机房;The target computer room selection module is used to select the target customer's target computer room;

带宽资源分配模块,用于根据所述目标机房的带宽资源,为所述目标客户分配带宽资源。A bandwidth resource allocation module, configured to allocate bandwidth resources to the target client according to the bandwidth resources of the target computer room.

在本申请的一种具体实现方式中,在所述目标客户包含多个客户的情况下,所述目标机房选择模块,包括:In a specific implementation manner of the present application, when the target customer includes multiple customers, the target computer room selection module includes:

机房峰共比计算子模块,用于根据各个机房的峰值带宽和各个机房的共享带宽,计算各个机房的机房峰共比,其中,所述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值;The computer room peak-to-peak ratio calculation sub-module is used to calculate the computer room peak-to-peak ratio of each computer room according to the peak bandwidth of each computer room and the shared bandwidth of each computer room. The ratio between the shared bandwidths;

第一目标机房选择子模块,用于根据各个机房的机房峰共比,从各个机房中选择所述目标客户中每一客户的目标机房;The first target computer room selection sub-module is used to select the target computer room of each of the target customers from the various computer rooms according to the peak-to-peak ratio of each computer room;

其中,所述第一目标机房选择子模块,包括:Wherein, the first target computer room selection sub-module includes:

机房峰共比估算单元,用于根据客户U的预估峰值带宽和所述客户U的预估共享带宽,估算将所述客户U分别加入各个机房后各个机房的机房峰共比,其中,所述客户U为所述目标客户中的任一客户;The computer room peak total ratio estimation unit is used to estimate the computer room peak total ratio of each computer room after adding the customer U to each computer room according to the estimated peak bandwidth of the customer U and the estimated shared bandwidth of the customer U, wherein, all The customer U is any one of the target customers;

机房峰共比数量确定单元,用于确定满足第一关系式的机房峰共比数量,其中,所述第一关系式为:估算得到的机房的机房峰共比>估算前该机房的机房峰共比;The unit for determining the peak-to-peak ratio of computer rooms is used to determine the number of peak-to-peak ratios of computer rooms that satisfies the first relational expression, wherein the first relational formula is: the estimated computer-room peak-to-peak ratio of the computer room > the computer room peak of the computer room before the estimation total ratio;

机房峰共比数量判断单元,用于判断所述机房峰共比数量是否大于预设的数量阈值;a computer room peak-to-common ratio quantity judgment unit, configured to judge whether the computer room peak-to-common ratio quantity is greater than a preset quantity threshold;

第一目标机房选择单元,用于在所述机房峰共比数量判断单元的判断结果为是的情况下,从满足所述第一关系式的估算得到的机房峰共比对应的机房中选择所述客户U的目标机房;The first target computer room selection unit is configured to select the desired computer room from the computer room corresponding to the computer room peak-to-peak ratio obtained by the estimation that satisfies the first relational expression when the judgment result of the computer room peak-to-common ratio quantity judgment unit is yes. Describe the target computer room of customer U;

第二目标机房选择单元,用于在所述机房峰共比数量判断单元的判断结果为否的情况下,根据估算得到的机房峰共比,从各个机房中选择所述客户U的目标机房。The second target computer room selection unit is configured to select the target computer room of the customer U from each computer room according to the estimated peak total ratio of computer rooms when the judgment result of the computer room peak-to-peak ratio quantity judgment unit is no.

在本申请的一种具体实现方式中,所述第一目标机房选择单元,包括:In a specific implementation manner of the present application, the first target computer room selection unit includes:

第一比值计算子单元,用于基于同一机房,计算满足所述第一关系式的估算得到的机房峰共比与估算前机房峰共比之间的比值;a first ratio calculation subunit, configured to calculate, based on the same computer room, the ratio between the estimated computer room peak-to-peak ratio that satisfies the first relational expression and the pre-estimated computer room peak-to-peak ratio;

第一目标机房选择子单元,用于选择计算得到的比值中数值最大的比值对应的机房为所述客户U的目标机房。The first target computer room selection subunit is configured to select the computer room corresponding to the ratio with the largest value among the calculated ratios as the target computer room of the customer U.

在本申请的一种具体实现方式中,所述第二目标机房选择单元,包括:In a specific implementation of the present application, the second target computer room selection unit includes:

第二比值计算子单元,用于基于同一机房,计算估算得到的机房峰共比与估算前机房峰共比之间的比值;The second ratio calculation sub-unit is used to calculate the ratio between the estimated peak-to-peak ratio of the computer room and the estimated peak-to-peak ratio of the previous computer room based on the same computer room;

第二目标机房选择子单元,用于选择计算得到的比值中数值最大的比值对应的机房为所述客户U的目标机房。The second target computer room selection subunit is used to select the computer room corresponding to the ratio with the largest value among the calculated ratios as the target computer room of the customer U.

在本申请的一种具体实现方式中,所述第一目标机房选择子模块还包括:In a specific implementation manner of the present application, the first target computer room selection sub-module further includes:

客户标记单元,用于在所述第二目标机房选择单元选择目标机房之后,将所述客户U标记为可变更机房的客户。A customer marking unit, configured to mark the customer U as a customer of a changeable computer room after the second target computer room selection unit selects a target computer room.

在本申请的一种具体实现方式中,在所述目标客户包含一个客户的情况下,所述目标机房选择模块,包括:In a specific implementation manner of the present application, when the target customer includes one customer, the target computer room selection module includes:

机房峰共比估算子模块,用于根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,估算将所述目标客户加入各个机房后各个机房的机房峰共比,其中,所述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值;The computer room peak-to-peak ratio estimation sub-module is used for estimating the computer room peak-to-peak ratio of each computer room after adding the target customer to each computer room according to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer, wherein , the peak-to-common ratio of the computer room is: the ratio between the peak bandwidth of a computer room and the shared bandwidth of the computer room;

第二目标机房选择子模块,用于根据估算得到的机房峰共比,为所述目标客户选择目标机房。The second target computer room selection sub-module is configured to select a target computer room for the target customer according to the estimated peak-to-peak ratio of the computer room.

在本申请的一种具体实现方式中,所述第二目标机房选择子模块,包括:In a specific implementation of the present application, the second target computer room selection sub-module includes:

客户峰共比计算单元,用于根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,计算所述目标客户的客户峰共比,其中,所述客户峰共比为:所述目标客户的预估峰值带宽与所述目标客户的预估共享带宽之间的比值;A customer peak common ratio calculation unit, configured to calculate the customer peak common ratio of the target customer according to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer, wherein the customer peak common ratio is : the ratio between the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client;

客户峰共比判断单元,用于判断所述目标客户的客户峰共比是否大于预设的客户峰共比阈值;a customer peak common ratio judging unit, configured to judge whether the customer peak common ratio of the target customer is greater than a preset customer peak common ratio threshold;

第三目标机房选择单元,用于在所述客户峰共比判断单元的判断结果为是的情况下,选择估算得到的机房峰共比中数值最大的机房峰共比对应的机房为所述目标客户的目标机房;The third target computer room selection unit is configured to select the computer room corresponding to the computer room peak total ratio with the largest value among the estimated computer room peak total ratios as the target when the judgment result of the customer peak total ratio judgment unit is yes The customer's target computer room;

第四目标机房选择单元,用于在所述客户峰共比判断单元的判断结果为否的情况下,从不低于估算前机房峰共比的估算得到的机房峰共比对应的机房中选择所述目标客户的目标机房。The fourth target computer room selection unit is configured to select from the computer room corresponding to the computer room peak total ratio obtained by the estimation not lower than the estimated peak total ratio of the previous computer room when the judgment result of the customer peak total ratio judgment unit is negative The target computer room of the target customer.

在本申请的一种具体实现方式中,所述带宽资源分配装置还包括:In a specific implementation manner of the present application, the bandwidth resource allocation apparatus further includes:

客户标记模块,用于在所述第四目标机房选择单元选择目标机房之后,将所述目标客户标记为可变更机房的客户。The customer marking module is configured to mark the target customer as a customer of a changeable machine room after the fourth target machine room selection unit selects a target machine room.

在本申请的一种具体实现方式中,所述第二目标机房选择子模块,包括:In a specific implementation of the present application, the second target computer room selection sub-module includes:

标记客户判断单元,用于判断是否存在被标记为可变更机房的客户;The marking customer judgment unit is used to judge whether there is a customer marked as a changeable computer room;

客户合并处理单元,用于在所述标记客户判断单元的判断结果为是的情况下,对所述目标客户和所述被标记为可变更机房的客户进行客户合并处理得到合并客户;a customer merging processing unit, configured to perform customer merging processing on the target customer and the customer marked as a changeable computer room to obtain a merged customer when the judgment result of the marking customer judging unit is yes;

第五目标机房选择单元,用于根据估算得到的机房峰共比,为所述合并客户选择目标机房,并将所述目标机房确定为所述目标客户的目标机房,将所述被标记为可变更机房的客户由当前所在的机房变更至所述目标机房。The fifth target computer room selection unit is configured to select a target computer room for the combined customer according to the estimated peak-to-peak ratio of computer rooms, and determine the target computer room as the target computer room of the target customer, and mark the target computer room as available. The customer who changes the computer room is changed from the current computer room to the target computer room.

在本申请的一种具体实现方式中,所述带宽资源分配装置还包括:In a specific implementation manner of the present application, the bandwidth resource allocation apparatus further includes:

客户峰共比计算模块,用于根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,计算所述目标客户的客户峰共比,其中,所述客户峰共比为:所述目标客户的预估峰值带宽与所述目标客户的预估共享带宽之间的比值;The client peak total ratio calculation module is used to calculate the client peak total ratio of the target client according to the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client, wherein the client peak total ratio is : the ratio between the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client;

计算规则选择模块,用于根据所述目标客户的客户峰共比,从预设的客户价值计算规则库中选择针对所述目标客户的客户价值计算规则;A calculation rule selection module, configured to select a customer value calculation rule for the target customer from a preset customer value calculation rule base according to the customer peak ratio of the target customer;

客户价值计算模块,用于根据所选择的客户价值计算规则,计算所述目标客户的客户价值。The customer value calculation module is configured to calculate the customer value of the target customer according to the selected customer value calculation rule.

由以上可见,本申请实施例提供的方案中,为目标客户端选择目标机房时,考虑了目标客户的预估峰值带宽、目标客户的预估共享带宽、各个机房的峰值带宽、各个机房的共享带宽等因素,因此能够综合各个机房的特性进行机房选择,并根据该目标机房的带宽资源,为目标客户端分配带宽资源,进而能够充分利用机房的带宽资源,有利于帮助解决客户的带宽定价问题,有利于在客户之间进行合理搭配,提高机房利用率,解决新客户的调度,进而提高了机房的收益率。As can be seen from the above, in the solution provided by the embodiments of the present application, when selecting the target computer room for the target client, the estimated peak bandwidth of the target client, the estimated shared bandwidth of the target client, the peak bandwidth of each computer room, and the sharing of each computer room are considered. Therefore, it is possible to select a computer room based on the characteristics of each computer room, and allocate bandwidth resources to the target client according to the bandwidth resources of the target computer room, so as to make full use of the bandwidth resources of the computer room, which is beneficial to help solve the problem of bandwidth pricing for customers. , which is conducive to reasonable collocation among customers, improves the utilization rate of the computer room, solves the scheduling of new customers, and thus improves the yield of the computer room.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1为本申请实施例提供的第一种带宽资源分配方法的流程示意图;FIG. 1 is a schematic flowchart of a first bandwidth resource allocation method provided by an embodiment of the present application;

图2为本申请实施例提供的一种选择目标机房的方法的流程示意图;2 is a schematic flowchart of a method for selecting a target computer room according to an embodiment of the present application;

图3为本申请实施例提供的第二种带宽资源分配方法的流程示意图;3 is a schematic flowchart of a second bandwidth resource allocation method provided by an embodiment of the present application;

图4为本申请实施例提供的第三种带宽资源分配方法的流程示意图;4 is a schematic flowchart of a third bandwidth resource allocation method provided by an embodiment of the present application;

图5为本申请实施例提供的第一种带宽资源分配装置的结构示意图;FIG. 5 is a schematic structural diagram of a first bandwidth resource allocation apparatus provided by an embodiment of the present application;

图6为本申请实施例提供的一种选择目标机房的装置的结构示意图;6 is a schematic structural diagram of an apparatus for selecting a target computer room provided by an embodiment of the present application;

图7为本申请实施例提供的第二种带宽资源分配装置的结构示意图;FIG. 7 is a schematic structural diagram of a second bandwidth resource allocation apparatus provided by an embodiment of the present application;

图8为本申请实施例提供的第三种带宽资源分配装置的机构示意图。FIG. 8 is a schematic structural diagram of a third apparatus for allocating bandwidth resources according to an embodiment of the present application.

具体实施方式Detailed ways

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

先对本申请实施例中涉及的概念进行介绍:First, the concepts involved in the embodiments of the present application are introduced:

对于多IP(Internet Protocol,网络之间互连的协议)客户而言,峰值带宽是指截止到计算日该客户各IP的带宽峰值之和;共享带宽是指截止到计算日该客户各IP的共享带宽最大值。For multi-IP (Internet Protocol, network interconnection protocol) customers, the peak bandwidth refers to the sum of the peak bandwidths of the customer's IPs as of the calculation day; the shared bandwidth refers to the Shared bandwidth maximum.

对于多客户多IP的机房而言,峰值带宽是指截止到计算日各客户所有IP的共享带宽之和;共享带宽是指截止到计算日该机房的最大出口带宽。For a computer room with multiple clients and multiple IPs, the peak bandwidth refers to the sum of the shared bandwidths of all IPs of each client as of the computing day; the shared bandwidth refers to the maximum egress bandwidth of the computer room as of the computing day.

客户峰共比,是指一个客户的峰值带宽与该客户的共享带宽之间的比值。The peak-to-peak ratio of clients refers to the ratio between the peak bandwidth of a client and the shared bandwidth of the client.

理论上来讲,客户峰共比总是大于等于1的,当客户峰共比越小时,表示该客户在带宽上为网络服务提供商贡献的利润越少,相反,当客户峰共比越大时,表示客户在带宽上为网络服务器提供商贡献的利润越多。Theoretically speaking, the customer-to-peak ratio is always greater than or equal to 1. When the customer-to-peak ratio is smaller, it means that the customer contributes less profit to the network service provider in terms of bandwidth. On the contrary, when the customer-to-peak ratio is larger , indicating that the customer contributes more profit to the web server provider in terms of bandwidth.

机房峰共比,是指一个机房的峰值带宽与该机房的共享带宽之间的比值。Computer room peak-to-total ratio refers to the ratio between the peak bandwidth of a computer room and the shared bandwidth of the computer room.

图1为本申请实施例提供的第一种带宽资源分配方法的流程示意图,该方法包括:FIG. 1 is a schematic flowchart of a first bandwidth resource allocation method provided by an embodiment of the present application, and the method includes:

S101:获得目标客户的预估峰值带宽和目标客户的预估共享带宽。S101: Obtain the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer.

实际应用中,上述预估峰值带宽和预估共享带宽,可以是目标客户根据自己的实际需求提出的,该预估峰值带宽和预估共享带宽可能会与实际应用中目标客户的实际峰值带宽和实际共享带宽存在一定误差。In practical applications, the above-mentioned estimated peak bandwidth and estimated shared bandwidth may be proposed by the target customer according to their actual needs. The estimated peak bandwidth and estimated shared bandwidth may be different from the actual peak bandwidth and the estimated There is a certain error in the actual shared bandwidth.

另外,网络服务提供商为提高用户体验,有时会向客户提供试用服务,这种情况下,上述预估峰值带宽和预估共享带宽可以是根据目标客户试用服务阶段所产生的数据获得的,本申请并不对此进行限定。In addition, in order to improve user experience, network service providers sometimes provide trial services to customers. In this case, the above estimated peak bandwidth and estimated shared bandwidth can be obtained according to the data generated during the trial service phase of target customers. The application is not limited in this regard.

需要说明的是,上述目标客户中可以仅仅包括一个客户,还可以包括多个客户。It should be noted that, the above target customers may include only one customer, and may also include multiple customers.

S102:获得各个机房的峰值带宽和各个机房的共享带宽。S102: Obtain the peak bandwidth of each computer room and the shared bandwidth of each computer room.

S103:根据目标客户的预估峰值带宽、目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,从各个机房中选择目标客户的目标机房。S103: According to the estimated peak bandwidth of the target customer, the estimated shared bandwidth of the target customer, the peak bandwidth of each computer room, and the shared bandwidth of each computer room, select the target computer room of the target customer from each computer room.

由于一个客户的客户峰共比一定程度上能够反映该客户在使用网络服务提供商所提供的带宽时能够为服务提供商带来的利润程度,或者说能够反映该客户在所分配的带宽上是否可以为网络服务提供商贡献更多的利润,又由于网络服务提供商的各个机房的带宽资源是有限的,所以,从最大化网络服务提供商利润的角度出发,可以结合目标客户的预估峰值带宽、目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽等因素,采取错峰原则将网络服务提供商提供服务的各个客户安置于各个不同的机房中,例如,将客户峰共比低的客户与客户峰共比高的客户相配合放入一个机房,避免同一机房中出现过多峰共比高的客户,或者出现过多峰共比低的客户。Since a customer's peak-to-peak ratio can to a certain extent reflect the profit that the customer can bring to the service provider when using the bandwidth provided by the network service provider, or it can reflect whether the customer is on the allocated bandwidth. It can contribute more profits to the network service provider, and because the bandwidth resources of each computer room of the network service provider are limited, from the perspective of maximizing the profit of the network service provider, it can be combined with the estimated peak value of the target customer. Factors such as bandwidth, estimated shared bandwidth of target customers, peak bandwidth of each computer room, and shared bandwidth of each computer room, etc., adopt the peak-staggering principle to place each customer served by the network service provider in each different computer room. Customers with a low peak-to-common ratio and customers with a high peak-to-common ratio are placed in the same computer room to avoid too many customers with a high peak-to-common ratio or too many customers with a low peak-to-common ratio in the same computer room.

S104:根据目标机房的带宽资源,为目标客户分配带宽资源。S104: Allocate bandwidth resources to target customers according to bandwidth resources of the target computer room.

由前面的描述可以看出,一个客户的客户峰共比能够在一定程度上反映该客户可能为网络服务提供商带来的利润,所以,在本申请的一种可选实现方式中,上述带宽分配方法还可以包括:It can be seen from the foregoing description that the peak-to-peak ratio of a customer can reflect the profit that the customer may bring to the network service provider to a certain extent. Therefore, in an optional implementation manner of the present application, the above bandwidth Allocation methods can also include:

根据目标客户的预估峰值带宽和目标客户的预估共享带宽,计算目标客户的客户峰共比,然后根据目标客户的客户峰共比,从预设的客户价值计算规则库中选择针对目标客户的客户价值计算规则,并根据所选择的客户价值计算规则,计算目标客户的客户价值。According to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer, calculate the customer peak-to-peak ratio of the target customer, and then select the target customer from the preset customer value calculation rule library according to the target customer's customer peak-to-peak ratio. Calculate the customer value of the target customer according to the selected customer value calculation rule.

其中,本可选实现方式中,上述客户峰共比为:目标客户的预估峰值带宽与目标客户的预估共享带宽之间的比值。Wherein, in this optional implementation manner, the above-mentioned customer peak-to-peak ratio is: the ratio between the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer.

具体的,上述客户价值可以理解为是针对网络服务提供商而言的,例如,上述客户价值可以是:目标客户能够为网络服务提供商带来的利润等等。Specifically, the above-mentioned customer value can be understood as being aimed at the network service provider. For example, the above-mentioned customer value can be: the profit that the target customer can bring to the network service provider, and so on.

上述预设的客户价值计算规则库中可以包含多种客户价值计算规则,这些客户价值计算规则可以是与客户的客户峰共比相关的计算规则。The above-mentioned preset customer value calculation rule base may include a variety of customer value calculation rules, and these customer value calculation rules may be calculation rules related to the customer peak ratio of the customer.

在本申请的一种具体实现方式中,在客户峰共比大于预设的峰共比阈值时,可以认为该客户为高峰共比客户,上述客户价值计算规则可以是根据客户的峰值带宽计算利润的规则,进一步的还可以在根据客户的峰值带宽计算利润的基础上根据客户峰共比的大小采取阶梯折扣计算利润的规则;而在客户峰共比小于预设的峰共比阈值时,可以认为该客户为低峰共比客户,上述客户价值计算规则可以是根据客户的共享带宽计算利润的规则,可以是根据客户的共用带宽计算利润的规则,还可以是根据固定带宽计算利润的规则。In a specific implementation of the present application, when the peak-to-peak ratio of a customer is greater than a preset peak-to-common ratio threshold, the customer may be considered as a peak-to-peak ratio customer, and the above-mentioned customer value calculation rule may be to calculate the profit according to the peak bandwidth of the customer The rules for calculating profits based on the peak bandwidth of customers can also be based on the rule of step discount calculation according to the size of the peak-to-peak ratio of customers; and when the peak-to-peak ratio of customers is less than the preset peak-to-common ratio threshold, you can Considering that the customer is a low-peak total ratio customer, the above-mentioned customer value calculation rule may be a rule for calculating profit based on the customer's shared bandwidth, a rule for calculating profit based on a customer's shared bandwidth, or a rule for calculating profit based on fixed bandwidth.

例如,上述预设的峰共比阈值可以为2。For example, the above-mentioned preset peak-to-common ratio threshold may be 2.

在根据客户的峰值带宽计算利润的基础上根据客户峰共比的大小采取阶梯折扣计算利润时,客户峰共比的范围以及计算折扣具体可以如下表1所示。On the basis of calculating the profit based on the peak bandwidth of the customer, when the profit is calculated by using a step discount according to the size of the customer peak-to-peak ratio, the range of the customer's peak-to-peak ratio and the calculated discount can be specifically shown in Table 1 below.

表1Table 1

Figure GDA0002573443400000101
Figure GDA0002573443400000101

Figure GDA0002573443400000111
Figure GDA0002573443400000111

需要说明的是,本申请只是以上述为例进行说明,实际应用中预设的峰共比阈值、客户峰共比的范围以及计算折扣的取值并不仅限于此。It should be noted that the present application only takes the above as an example for description, and the preset peak-to-peak ratio threshold, the range of the customer peak-to-combination ratio, and the value of the calculated discount in practical applications are not limited to this.

进一步的,网络服务提供商可以根据上述的客户峰共比制定销售策略。Further, the network service provider may formulate a sales strategy according to the above-mentioned customer peak ratio.

例如,客户峰共比较小时(如,接近于1时),可以建议客户使用“共享带宽”结算方式,这样可以使得客户感觉优惠力度较大,而对于网络服务提供商的利润没有显著影响。For example, if the total peak period of customers is relatively small (for example, close to 1 hour), the customer may be advised to use the "shared bandwidth" settlement method, which can make the customer feel that the preferential treatment is more powerful, but has no significant impact on the profit of the network service provider.

客户峰共比较大时,可以建议客户使用“峰值带宽”结算方式,以客户“金山”为例,4月16日“金山”的峰共比超过10,如果以“峰值带宽”结算的话,4月16日消耗金额33K;如果以“共享带宽”结算的话4月16日消耗金额3K,即便以1折的“峰值带宽”结算,收入仍优于“共享带宽”结算。可见客户峰共比较大时,采用“峰值带宽”与折扣相结合的方式结算时,不仅可以给予用户最大的优惠力度,而且相对粗狂的处理方案来说,本实施例的技术方案也确保能留给网络服务提供商更多的利润。When the peak-to-peak ratio of customers is relatively large, customers can be advised to use the "peak bandwidth" settlement method. Take the customer "Jinshan" as an example. On April 16, the peak-to-peak ratio of "Jinshan" exceeded 10. If the settlement is based on "peak bandwidth", 4 On the 16th, the consumption amount is 33K; if the settlement is based on "shared bandwidth", the consumption amount on April 16 is 3K. Even if the "peak bandwidth" is settled at a 10% discount, the income is still better than the "shared bandwidth" settlement. It can be seen that when the peak total customer peak is relatively large, the combination of "peak bandwidth" and discount can not only give users the greatest discount, but also the technical solution of this embodiment can ensure the More profit left for ISPs.

进一步的,网络服务提供商可以根据上述的客户峰共比指定运营策略。Further, the network service provider may specify an operation strategy according to the above-mentioned customer peak ratio.

对于峰共比较大的客户,其本身能够为网络服务提供商带来的宽利润率较高,因此,该客户可以放到任何机房,与任何其他客户相配合。而对于峰共比较小的客户,可以建议将其放到共享带宽与其处于不同时间点的机房,以起到降低成本,增加收益的效果。For a customer with a large peak total, it can bring a higher profit margin to the network service provider. Therefore, the customer can be placed in any computer room and cooperate with any other customer. For customers with a small peak-to-peak ratio, it is recommended to place them in a computer room with shared bandwidth at different time points to reduce costs and increase revenue.

另外,网络服务提供商还可以根据不同的带宽成本和出口带宽上限,建立“高峰共比”或“低峰共比”两类机房,用于将具有不同客户峰共比的客户放置在不同类型的机房,以充分利用现有资源,规避机房本身的不足。In addition, network service providers can also establish two types of computer rooms, “peak total ratio” or “low peak total ratio” according to different bandwidth costs and egress bandwidth caps, which are used to place customers with different peak total ratios in different types of equipment rooms. In order to make full use of existing resources and avoid the insufficiency of the computer room itself.

前面描述中提到,目标客户中可能包含多个客户,也可能仅仅包含一个客户,下面分情况对本申请实施例提供的带宽资源分配方法进行介绍。As mentioned in the foregoing description, the target client may include multiple clients, or may include only one client. The following describes the bandwidth resource allocation method provided by the embodiment of the present application according to the situation.

具体的,在目标客户包含多个客户的情况下,根据目标客户的预估峰值带宽、目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,从各个机房中选择目标客户的目标机房时,可以先根据各个机房的峰值带宽和各个机房的共享带宽,计算各个机房的机房峰共比,然后根据各个机房的机房峰共比,从各个机房中选择目标客户中每一客户的目标机房。Specifically, when the target customer includes multiple customers, the target customer is selected from each computer room according to the estimated peak bandwidth of the target customer, the estimated shared bandwidth of the target customer, the peak bandwidth of each computer room, and the shared bandwidth of each computer room. When the target computer room is selected, you can first calculate the peak-to-peak ratio of each computer room according to the peak bandwidth of each computer room and the shared bandwidth of each computer room, and then select each of the target customers from each computer room according to the peak-to-peak ratio of each computer room. target computer room.

其中,上述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值。The above-mentioned peak-to-common ratio of computer rooms is: the ratio between the peak bandwidth of a computer room and the shared bandwidth of the computer room.

在本申请的一种具体实现方式中,参见图2,提供了一种选择目标机房的方法的流程示意图,该方法包括:In a specific implementation manner of the present application, referring to FIG. 2 , a schematic flowchart of a method for selecting a target computer room is provided, and the method includes:

S201:根据客户U的预估峰值带宽和客户U的预估共享带宽,估算将客户U分别加入各个机房后各个机房的机房峰共比。S201 : According to the estimated peak bandwidth of the customer U and the estimated shared bandwidth of the customer U, estimate the peak-to-peak ratio of each computer room after adding the customer U to each computer room respectively.

其中,上述客户U为上述目标客户中的任一客户。Wherein, the above-mentioned customer U is any one of the above-mentioned target customers.

当然,本步骤中估算将客户U分别加入各个机房后各个机房的机房峰共比,可以理解为,假设将客户U分别加入各个机房,然后估算将客户U假设加入各个机房后各个机房的机房峰共比。Of course, in this step, the total ratio of computer room peaks in each computer room is estimated after adding customer U to each computer room. It can be understood as assuming that customer U is added to each computer room respectively, and then estimating the computer room peak of each computer room after adding customer U to each computer room. total ratio.

具体的,假设,当前机房F的机房峰共比=S1/O1,其中,S1表示当前机房F的峰值带宽,O1表示当前机房F的共享带宽。Specifically, it is assumed that the peak-to-peak ratio of the current computer room F = S1/O1, where S1 represents the peak bandwidth of the current computer room F, and O1 represents the shared bandwidth of the current computer room F.

可以根据如下表达式估算将客户U加入机房F后该机房F的机房峰共比P,The computer room peak-to-peak ratio P of the computer room F after the customer U is added to the computer room F can be estimated according to the following expression,

P=(S1+S2)/(O1+O2)P=(S1+S2)/(O1+O2)

其中,S2表示客户U的预估峰值带宽,O2表示客户U的预估共享带宽。Among them, S2 represents the estimated peak bandwidth of the customer U, and O2 represents the estimated shared bandwidth of the customer U.

S202:确定满足第一关系式的机房峰共比数量。S202: Determine the peak-to-peak ratio quantity of the computer room that satisfies the first relational expression.

需要说明的是,上述第一关系式为:It should be noted that the above-mentioned first relational formula is:

估算得到的机房的机房峰共比>估算前该机房的机房峰共比。The estimated peak-to-peak ratio of the computer room > the peak-to-peak ratio of the computer room before the estimation.

S203:判断机房峰共比数量是否大于预设的数量阈值,若为是,执行S204,否则,执行S205。S203: Determine whether the peak-to-common ratio quantity of the computer room is greater than a preset quantity threshold, if yes, execute S204; otherwise, execute S205.

上述预设的数量可以是与网络服务提供商能够提供的可用机房的数量相关的数值。The above-mentioned preset number may be a value related to the number of available computer rooms that the network service provider can provide.

例如,网络服务提供商能够提供的可用机房的数量为4,则上述预设的数量可以为3等等。For example, if the number of available computer rooms that the network service provider can provide is 4, the above-mentioned preset number may be 3 and so on.

S204:从满足第一关系式的估算得到的机房峰共比对应的机房中选择客户U的目标机房。S204: Select the target computer room of the customer U from the computer rooms corresponding to the computer room peak-to-peak ratio obtained by the estimation satisfying the first relational expression.

在本申请的一种可选实现方式中,从满足上述第一关系式的估算得到的机房峰共比对应的机房中选择客户U的目标机房时,可以先基于同一机房,计算满足上述第一关系式的估算得到的机房峰共比与估算前机房峰共比之间的比值,然后选择计算得到的比值中数值最大的比值对应的机房为客户U的目标机房。In an optional implementation manner of the present application, when selecting the target computer room of the customer U from the computer rooms corresponding to the computer room peak-to-peak ratio obtained by the estimation that satisfies the above-mentioned first relational expression, the target computer room of the customer U can be selected based on the same computer room. Calculate the ratio between the estimated peak-to-peak ratio of the computer room and the pre-estimated peak-to-peak ratio of the computer room, and then select the computer room corresponding to the ratio with the largest value among the calculated ratios as the target computer room of customer U.

假设,网络服务提供商能够提供的4个可用机房,假设将客户U加入这4个机房,估算得到的机房峰共比、估算前机房峰共比以及上述两者之间的比值,如下表2所示。Assuming that the network service provider can provide four available computer rooms, assuming that customer U is added to these four computer rooms, the estimated peak-to-peak ratio of the computer room, the estimated peak-to-peak ratio of the previous computer room, and the ratio between the above two are shown in Table 2 below. shown.

表2Table 2

Figure GDA0002573443400000131
Figure GDA0002573443400000131

从上表可见机房4对应的比值最大,所以,可以确定机房4为客户U的目标机房。From the above table, it can be seen that the ratio corresponding to the computer room 4 is the largest, so it can be determined that the computer room 4 is the target computer room of the customer U.

在本申请的另一种可选实现方式中,从满足上述第一关系式的估算得到的机房峰共比对应的机房中选择客户U的目标机房时,可以直接从满足上述第一关系式的估算得到的机房峰共比中选择数值最大的机房峰共比对应的机房作为客户U的目标机房。In another optional implementation manner of the present application, when selecting the target computer room of customer U from the computer rooms corresponding to the computer room peak-to-peak ratio obtained by the estimation that satisfies the first relational expression, the target computer room of the customer U can be selected directly from the computer room that satisfies the first relational expression above. The computer room corresponding to the peak-to-peak ratio of the computer room with the largest value is selected as the target computer room of the customer U.

例如,从上述表2中可以看出估算得到的峰共比中机房4的峰共比最大,所以,可以确定机房4为客户U的目标机房。For example, it can be seen from the above Table 2 that the peak-to-common ratio of computer room 4 is the largest among the estimated peak-to-common ratios. Therefore, it can be determined that computer room 4 is the target computer room of customer U.

S205:根据估算得到的机房峰共比,从各个机房中选择客户U的目标机房。S205: According to the estimated peak-to-peak ratio of computer rooms, select the target computer room of customer U from each computer room.

与上述S204中给出的可选实现方式类似,在本申请的一种可选实现方式中,根据估算得到的机房峰共比,从各个机房中选择客户U的目标机房时,也可以先基于同一机房,计算估算得到的机房峰共比与估算前机房峰共比之间的比值,然后选择计算得到的比值中数值最大的比值对应的机房为客户U的目标机房。Similar to the optional implementation manner given in the above S204, in an optional implementation manner of the present application, when selecting the target computer room of the customer U from each computer room according to the estimated total computer room peak ratio, it may also be based on In the same computer room, calculate the ratio between the estimated peak-to-peak ratio of the computer room and the estimated peak-to-peak ratio of the previous computer room, and then select the computer room corresponding to the ratio with the largest value among the calculated ratios as the target computer room of customer U.

在本申请的另一种可选实现方式中,根据估算得到的机房峰共比,从各个机房中选择客户U的目标机房时,可以直接从估算得到的机房峰共比中选择数值最大的机房峰共比对应的机房作为客户U的目标机房,然后将客户U分配到该目标机房。In another optional implementation manner of the present application, according to the estimated peak-to-peak ratio of computer rooms, when selecting the target computer room of customer U from each computer room, the computer room with the largest value can be directly selected from the estimated peak-to-peak ratio of computer rooms The computer room corresponding to the peak to total ratio is used as the target computer room of customer U, and then customer U is allocated to the target computer room.

由于上述机房峰共比数量小于预设的数量阈值时,说明将客户U放入各个机房后,对于大多数机房而言,不仅不会带来这些机房收益的增加,反而有可能会带来这些机房收益的下降。但是,对于商家而言,考虑到优先为客户提供优质服务的原则,可以先按照上述S205中提供的方式为客户U确定目标机房,并从所确定的目标机房中为客户U分配带宽资源。进一步的,考虑到后续还会有客户向网络服务提供商申请服务,而后续申请服务的客户其客户峰共比可能会比较高,当然也可能会比较低,所以,有可能可以与客户U相配合放入同一机房,以提高网络服务提供商各个机房的整体收益。Since the above-mentioned peak-to-peak ratio of computer rooms is less than the preset number threshold, it means that after placing customer U into each computer room, for most computer rooms, not only will it not bring about an increase in the revenue of these computer rooms, but it may bring about these Decrease in computer room revenue. However, for the merchant, considering the principle of providing high-quality services to customers first, the target computer room can be determined for the customer U according to the method provided in S205 above, and bandwidth resources can be allocated to the customer U from the determined target computer room. Further, considering that there will be customers who will apply for services from the network service provider in the future, and the customers who apply for services in the future may have a higher peak-to-peak ratio of customers, of course, it may be lower, so it may be possible to compare with customer U. Put them in the same computer room to improve the overall revenue of each computer room of the network service provider.

鉴于上述情况,本申请的一种较佳实现方式中,在根据估算得到的机房峰共比,从各个机房中选择客户U的目标机房之后,还可以将客户U标记为可变更机房的客户。In view of the above situation, in a preferred implementation manner of the present application, after selecting the target computer room of customer U from each computer room according to the estimated total ratio of computer rooms to peaks, the customer U can also be marked as a customer whose computer room can be changed.

当客户U被标记为可变更机房的客户后,表明为客户U分配带宽资源的机房可以从当前机房变更为其他机房,当然,变更机房的操作可以在不影响客户正常使用服务的情况下,在后台进行。When customer U is marked as a customer who can change the computer room, it indicates that the computer room that allocates bandwidth resources for customer U can be changed from the current computer room to another computer room. in the background.

另外,当客户U与后续申请服务的客户相结合确定新的目标机房,且确定新的目标机房后,客户U与后续申请服务的客户组成的结合客户未被标记为可变更机房的客户,则消除上述客户U的可变更机房标记。In addition, when the new target computer room is determined by combining the customer U and the customer who subsequently applies for the service, and after the new target computer room is determined, the combined customer composed of the customer U and the customer who subsequently applies for the service is not marked as a customer who can change the computer room, then Remove the changeable room flag for Customer U above.

在本申请的一种具体实现方式中,参见图3,提供了第二种带宽资源分配方法的流程示意图,与前述实施例相比,本实施例中,目标客户仅仅包含一个客户,根据目标客户的预估峰值带宽、目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,从各个机房中选择目标客户的目标机房(S103),包括:In a specific implementation manner of the present application, referring to FIG. 3 , a schematic flowchart of the second method for allocating bandwidth resources is provided. Compared with the foregoing embodiment, in this embodiment, the target client only includes one client. According to the target client The estimated peak bandwidth of the target customer, the estimated shared bandwidth of the target customer, the peak bandwidth of each computer room, and the shared bandwidth of each computer room, and the target computer room of the target customer is selected from each computer room (S103), including:

S103A:根据目标客户的预估峰值带宽和目标客户的预估共享带宽,估算将目标客户加入各个机房后各个机房的机房峰共比。S103A: According to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer, estimate the peak-to-peak ratio of each computer room after the target customer is added to each computer room.

其中,上述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值。The above-mentioned peak-to-common ratio of computer rooms is: the ratio between the peak bandwidth of a computer room and the shared bandwidth of the computer room.

需要说明的是,本步骤中估算将目标分别加入各个机房后各个机房的机房峰共比,可以理解为,假设将目标分别加入各个机房,然后估算将目标客户假设加入各个机房后各个机房的机房峰共比。It should be noted that in this step, the peak-to-peak ratio of computer rooms in each computer room is estimated after adding the target to each computer room. It can be understood as assuming that the target is added to each computer room, and then estimating the computer room of each computer room after the target customer is assumed to be added to each computer room. Peak total ratio.

具体的,假设,当前机房H的机房峰共比=S3/O3,其中,S3表示当前机房H的峰值带宽,O3表示当前机房H的共享带宽。Specifically, it is assumed that the peak-to-peak ratio of the current computer room H=S3/O3, where S3 represents the peak bandwidth of the current computer room H, and O3 represents the shared bandwidth of the current computer room H.

可以根据如下表达式估算将目标客户加入机房H后该机房H的机房峰共比P,The computer room peak-to-peak ratio P of the computer room H after the target customer is added to the computer room H can be estimated according to the following expression,

P=(S3+S4)/(O3+O4)P=(S3+S4)/(O3+O4)

其中,S4表示目标客户的预估峰值带宽,O4表示目标客户的预估共享带宽。Among them, S4 represents the estimated peak bandwidth of the target customer, and O4 represents the estimated shared bandwidth of the target customer.

S103B:根据估算得到的机房峰共比,为目标客户选择目标机房。S103B: According to the estimated peak-to-peak ratio of the computer room, select the target computer room for the target customer.

在本申请的一种可选实现方式中,根据估算得到的机房峰共比,为目标客户选择目标机房时,可以先根据目标客户的预估峰值带宽和目标客户的预估共享带宽,计算目标客户的客户峰共比,然后判断目标客户的客户峰共比是否大于预设的客户峰共比阈值,若判断得目标客户的客户峰共比大于预设的客户峰共比阈值,则选择估算得到的机房峰共比中数值最大的机房峰共比对应的机房为目标客户的目标机房,若判断得目标客户的客户峰共比不大于预设的客户峰共比阈值,则从不低于估算前机房峰共比的估算得到的机房峰共比对应的机房中选择目标客户的目标机房。In an optional implementation manner of the present application, when selecting a target computer room for a target customer according to the estimated peak-to-peak ratio of the computer room, the target computer room may first be calculated according to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer. Customer peak total ratio of customers, and then determine whether the target customer's customer peak total ratio is greater than the preset customer peak total ratio threshold. If it is determined that the target customer's customer peak total ratio is greater than the preset customer peak total ratio threshold, select Estimation The computer room corresponding to the computer room peak total ratio with the largest value in the obtained computer room peak total ratio is the target computer room of the target customer. If it is judged that the customer peak total ratio of the target customer is not greater than the preset customer peak total ratio threshold, it will never be lower than Select the target computer room of the target customer from the computer room corresponding to the estimated computer room peak total ratio obtained by estimating the peak total ratio of the previous computer room.

基于上述可选实现方式,在本申请的另一种可选实现方式中,若判断得目标客户的客户峰共比大于预设的客户峰共比阈值,可以先计算满足第二关系式的估算得到的机房峰共比与估算前机房峰共比之间的比值,然后选择计算得到的比值中数值最大的比值对应的机房为目标客户的目标机房;若判断得目标客户的客户峰共比不大于预设的客户峰共比阈值,可以先计算估算得到的机房峰共比与估算前机房峰共比之间的比值,然后选择计算得到的比值中数值最大的比值对应的机房为目标客户的目标机房。Based on the above optional implementation manner, in another optional implementation manner of the present application, if it is determined that the customer peak common ratio of the target customer is greater than the preset customer peak common ratio threshold, an estimate that satisfies the second relational expression can be calculated first The ratio between the peak total ratio of the computer room obtained and the estimated peak total ratio of the previous computer room, and then select the computer room corresponding to the ratio with the largest value among the calculated ratios as the target computer room of the target customer; if it is judged that the customer peak total ratio of the target customer is not If it is greater than the preset customer peak-to-peak ratio threshold, you can first calculate the ratio between the estimated peak-to-peak ratio of the computer room and the estimated peak-to-peak ratio of the previous computer room, and then select the computer room corresponding to the ratio with the largest value among the calculated ratios as the target customer's target room.

需要说明的是,上述第二关系式为:It should be noted that the above-mentioned second relational formula is:

估算得到的机房的机房峰共比>估算前该机房的机房峰共比。The estimated peak-to-peak ratio of the computer room > the peak-to-peak ratio of the computer room before the estimation.

在本申请的一种较佳实现方式中,在从不低于估算前机房峰共比的估算得到的机房峰共比对应的机房中选择目标客户的目标机房之后,还包括:In a preferred implementation manner of the present application, after selecting the target computer room of the target customer from the computer room corresponding to the computer room peak-to-peak ratio estimated not lower than the pre-estimated computer-room peak-to-peak ratio, the method further includes:

将目标客户标记为可变更机房的客户。Mark the target customer as a customer who can change the room.

在本申请的一种具体实现方式中,参见图4,提供了第三种带宽资源分配方法的流程示意图,与图3所示实施例相比,本实施例中,根据估算得到的机房峰共比,为目标客户选择目标机房(S103B),包括:In a specific implementation manner of the present application, referring to FIG. 4 , a schematic flowchart of a third bandwidth resource allocation method is provided. Compared with the embodiment shown in FIG. 3 , in this embodiment, according to the estimated than, select the target computer room for the target customer (S103B), including:

S103B1:判断是否存在被标记为可变更机房的客户,若存在,执行S103B2。S103B1: Determine whether there is a customer marked as a changeable computer room, and if so, execute S103B2.

S103B2:对目标客户和被标记为可变更机房的客户进行客户合并处理得到合并客户。S103B2: Perform customer merger processing on the target customer and the customer marked as a changeable computer room to obtain a merged customer.

S103B3:根据估算得到的机房峰共比,为合并客户选择目标机房,并将上述目标机房确定为目标客户的目标机房,将被标记为可变更机房的客户由当前所在的机房变更至上述目标机房。S103B3: According to the estimated peak-to-peak ratio of computer rooms, select a target computer room for the merged customer, determine the above target computer room as the target computer room of the target customer, and change the customer marked as a changeable computer room from the current computer room to the above target computer room .

需要说明的是,为合并客户选择目标机房的过程与图3所示实施例提供的方案类似,在此不再赘述。It should be noted that the process of selecting a target computer room for a merged customer is similar to the solution provided by the embodiment shown in FIG. 3 , and details are not repeated here.

本步骤中将上述目标机房确定为目标客户的目标机房后,可以从该目标机房中为目标客户分配带宽资源,另外,将被标记为可变更机房的客户由当前所在的机房变更至上述目标机房后,由上述目标机房为被标记为可变更机房的客户分配带宽资源,同时被标记为可变更机房的客户不再使用当前所在机房的带宽资源。这样多个客户可以相配合分配带宽资源,由利于提高各个机房的整体带宽利用率。In this step, after the above target computer room is determined as the target computer room of the target customer, bandwidth resources can be allocated to the target customer from the target computer room. In addition, the customer marked as a changeable computer room is changed from the current computer room to the above target computer room Afterwards, the target computer room allocates bandwidth resources to the customers marked as changeable computer rooms, and at the same time, the customers marked as changeable computer rooms no longer use the bandwidth resources of the current computer room. In this way, multiple customers can cooperate to allocate bandwidth resources, which is beneficial to improve the overall bandwidth utilization of each computer room.

由以上可见,上述各个实施例提供的方案中,为目标客户端选择目标机房时,考虑了目标客户的预估峰值带宽、目标客户的预估共享带宽、各个机房的峰值带宽、各个机房的共享带宽等因素,因此能够综合各个机房的特性进行机房选择,并根据该目标机房的带宽资源,为目标客户端分配带宽资源,进而能够充分利用机房的带宽资源。It can be seen from the above that in the solutions provided by the above embodiments, when selecting the target computer room for the target client, the estimated peak bandwidth of the target client, the estimated shared bandwidth of the target client, the peak bandwidth of each computer room, and the sharing of each computer room are considered. Therefore, it is possible to select a computer room based on the characteristics of each computer room, and allocate bandwidth resources to the target client according to the bandwidth resources of the target computer room, so as to make full use of the bandwidth resources of the computer room.

与上述带宽资源分配方法相对应,本申请实施例还提供了一种带宽资源分配装置。Corresponding to the foregoing bandwidth resource allocation method, an embodiment of the present application further provides a bandwidth resource allocation apparatus.

图5为本申请实施例提供的第一种带宽资源分配装置的结构示意图,该装置包括:FIG. 5 is a schematic structural diagram of a first bandwidth resource allocation apparatus provided by an embodiment of the present application, and the apparatus includes:

第一带宽信息获得模块501,用于获得目标客户的预估峰值带宽和所述目标客户的预估共享带宽;The first bandwidth information obtaining module 501 is used to obtain the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client;

第二带宽信息获得模块502,用于获得各个机房的峰值带宽和各个机房的共享带宽;The second bandwidth information obtaining module 502 is configured to obtain the peak bandwidth of each computer room and the shared bandwidth of each computer room;

目标机房选择模块503,用于根据所述目标客户的预估峰值带宽、所述目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,从各个机房中选择所述目标客户的目标机房;The target computer room selection module 503 is used to select the target customer from each computer room according to the estimated peak bandwidth of the target customer, the estimated shared bandwidth of the target customer, the peak bandwidth of each computer room, and the shared bandwidth of each computer room the target computer room;

带宽资源分配模块504,用于根据所述目标机房的带宽资源,为所述目标客户分配带宽资源。The bandwidth resource allocation module 504 is configured to allocate bandwidth resources to the target client according to the bandwidth resources of the target computer room.

可选的,上述带宽资源分配装置还可以包括:Optionally, the above-mentioned apparatus for allocating bandwidth resources may further include:

客户峰共比计算模块,用于根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,计算所述目标客户的客户峰共比,其中,所述客户峰共比为:所述目标客户的预估峰值带宽与所述目标客户的预估共享带宽之间的比值;The client peak total ratio calculation module is used to calculate the client peak total ratio of the target client according to the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client, wherein the client peak total ratio is : the ratio between the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client;

计算规则选择模块,用于根据所述目标客户的客户峰共比,从预设的客户价值计算规则库中选择针对所述目标客户的客户价值计算规则;A calculation rule selection module, configured to select a customer value calculation rule for the target customer from a preset customer value calculation rule base according to the customer peak ratio of the target customer;

客户价值计算模块,用于根据所选择的客户价值计算规则,计算所述目标客户的客户价值。The customer value calculation module is configured to calculate the customer value of the target customer according to the selected customer value calculation rule.

具体的,在所述目标客户包含多个客户的情况下,所述目标机房选择模块,包括:Specifically, when the target customer includes multiple customers, the target computer room selection module includes:

机房峰共比计算子模块,用于根据各个机房的峰值带宽和各个机房的共享带宽,计算各个机房的机房峰共比,其中,所述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值;The computer room peak-to-peak ratio calculation sub-module is used to calculate the computer room peak-to-peak ratio of each computer room according to the peak bandwidth of each computer room and the shared bandwidth of each computer room. The ratio between the shared bandwidths;

第一目标机房选择子模块,用于根据各个机房的机房峰共比,从各个机房中选择所述目标客户中每一客户的目标机房。The first target computer room selection sub-module is configured to select a target computer room of each of the target customers from each computer room according to the computer room peak-to-peak ratio of each computer room.

在本申请的一种具体实现方式中,参见图6,提供了一种选择目标机房的装置的机构示意图,该装置中,所述第一目标机房选择子模块,包括:In a specific implementation manner of the present application, referring to FIG. 6 , a schematic diagram of the mechanism of a device for selecting a target computer room is provided. In the device, the first target computer room selection sub-module includes:

机房峰共比估算单元601,用于根据客户U的预估峰值带宽和所述客户U的预估共享带宽,估算将所述客户U分别加入各个机房后各个机房的机房峰共比,其中,所述客户U为所述目标客户中的任一客户;The computer room peak total ratio estimation unit 601 is configured to estimate the computer room peak total ratio of each computer room after adding the customer U to each computer room according to the estimated peak bandwidth of the customer U and the estimated shared bandwidth of the customer U, wherein, The customer U is any one of the target customers;

机房峰共比数量确定单元602,用于确定满足第一关系式的机房峰共比数量,其中,所述第一关系式为:估算得到的机房的机房峰共比>估算前该机房的机房峰共比;The unit 602 for determining the peak-to-peak ratio of computer rooms is configured to determine the number of peak-to-peak ratios of computer rooms that satisfies a first relationship, wherein the first relationship is: the estimated peak-to-peak ratio of the computer room>the computer room of the computer room before the estimation peak total ratio;

机房峰共比数量判断单元603,用于判断所述机房峰共比数量是否大于预设的数量阈值;a computer room peak-to-peak ratio judging unit 603, configured to determine whether the computer room peak-to-peak ratio number is greater than a preset number threshold;

第一目标机房选择单元604,用于在所述机房峰共比数量判断单元603的判断结果为是的情况下,从满足所述第一关系式的估算得到的机房峰共比对应的机房中选择所述客户U的目标机房;The first target computer room selection unit 604 is configured to, in the case where the judgment result of the computer room peak-to-peak ratio number judgment unit 603 is yes, from the computer room corresponding to the computer room peak-to-peak ratio obtained by the estimation that satisfies the first relational expression Select the target computer room of the customer U;

第二目标机房选择单元605,用于在所述机房峰共比数量判断单元603的判断结果为否的情况下,根据估算得到的机房峰共比,从各个机房中选择所述客户U的目标机房。The second target computer room selection unit 605 is configured to select the target of the customer U from each computer room according to the estimated peak-to-peak ratio of computer rooms when the judgment result of the computer room peak-to-peak ratio judging unit 603 is negative engine room.

具体的,所述第一目标机房选择单元604可以包括:Specifically, the first target computer room selection unit 604 may include:

第一比值计算子单元,用于基于同一机房,计算满足所述第一关系式的估算得到的机房峰共比与估算前机房峰共比之间的比值;a first ratio calculation subunit, configured to calculate, based on the same computer room, the ratio between the estimated computer room peak-to-peak ratio that satisfies the first relational expression and the pre-estimated computer room peak-to-peak ratio;

第一目标机房选择子单元,用于选择计算得到的比值中数值最大的比值对应的机房为所述客户U的目标机房。The first target computer room selection subunit is configured to select the computer room corresponding to the ratio with the largest value among the calculated ratios as the target computer room of the customer U.

具体的,所述第二目标机房选择单元605可以包括:Specifically, the second target computer room selection unit 605 may include:

第二比值计算子单元,用于基于同一机房,计算估算得到的机房峰共比与估算前机房峰共比之间的比值;The second ratio calculation sub-unit is used to calculate the ratio between the estimated peak-to-peak ratio of the computer room and the estimated peak-to-peak ratio of the previous computer room based on the same computer room;

第二目标机房选择子单元,用于选择计算得到的比值中数值最大的比值对应的机房为所述客户U的目标机房。The second target computer room selection subunit is used to select the computer room corresponding to the ratio with the largest value among the calculated ratios as the target computer room of the customer U.

较佳的,所述第一目标机房选择子模块还可以包括:Preferably, the first target computer room selection sub-module may further include:

客户标记单元,用于在所述第二目标机房选择单元选择目标机房之后,将所述客户U标记为可变更机房的客户。A customer marking unit, configured to mark the customer U as a customer of a changeable computer room after the second target computer room selection unit selects a target computer room.

在本申请的一种具体实现方式中,参见图7,提供了第二种带宽资源分配装置的结构示意图,与前述实施例相比,本实施例中,在所述目标客户包含一个客户的情况下,所述目标机房选择模块503,包括:In a specific implementation manner of the present application, referring to FIG. 7 , a schematic structural diagram of a second bandwidth resource allocation apparatus is provided. Compared with the foregoing embodiment, in this embodiment, in the case where the target client includes one client Next, the target computer room selection module 503 includes:

机房峰共比估算子模块503A,用于根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,估算将所述目标客户加入各个机房后各个机房的机房峰共比,其中,所述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值;The computer room peak-to-peak ratio estimation submodule 503A is used to estimate the computer-room peak-to-peak ratio of each computer room after adding the target customer to each computer room according to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer, Wherein, the peak-to-common ratio of the computer room is: the ratio between the peak bandwidth of a computer room and the shared bandwidth of the computer room;

第二目标机房选择子模块503B,用于根据估算得到的机房峰共比,为所述目标客户选择目标机房。The second target computer room selection sub-module 503B is configured to select a target computer room for the target customer according to the estimated peak-to-peak ratio of the computer room.

具体的,所述第二目标机房选择子模块503B可以包括:Specifically, the second target computer room selection sub-module 503B may include:

客户峰共比计算单元,用于根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,计算所述目标客户的客户峰共比,其中,所述客户峰共比为:所述目标客户的预估峰值带宽与所述目标客户的预估共享带宽之间的比值;A customer peak common ratio calculation unit, configured to calculate the customer peak common ratio of the target customer according to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer, wherein the customer peak common ratio is : the ratio between the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client;

客户峰共比判断单元,用于判断所述目标客户的客户峰共比是否大于预设的客户峰共比阈值;a customer peak common ratio judging unit, configured to judge whether the customer peak common ratio of the target customer is greater than a preset customer peak common ratio threshold;

第三目标机房选择单元,用于在所述客户峰共比判断单元的判断结果为是的情况下,选择估算得到的机房峰共比中数值最大的机房峰共比对应的机房为所述目标客户的目标机房;The third target computer room selection unit is configured to select the computer room corresponding to the computer room peak total ratio with the largest value among the estimated computer room peak total ratios as the target when the judgment result of the customer peak total ratio judgment unit is yes The customer's target computer room;

第四目标机房选择单元,用于在所述客户峰共比判断单元的判断结果为否的情况下,从不低于估算前机房峰共比的估算得到的机房峰共比对应的机房中选择所述目标客户的目标机房。The fourth target computer room selection unit is configured to select from the computer room corresponding to the computer room peak total ratio obtained by the estimation not lower than the estimated peak total ratio of the previous computer room when the judgment result of the customer peak total ratio judgment unit is negative The target computer room of the target customer.

较佳的,所述带宽资源分配装置还可以包括:Preferably, the bandwidth resource allocation device may further include:

客户标记模块,用于在所述第四目标机房选择单元选择目标机房之后,将所述目标客户标记为可变更机房的客户。The customer marking module is configured to mark the target customer as a customer of a changeable machine room after the fourth target machine room selection unit selects a target machine room.

在本申请的一种具体实现方式中,参见图8,提供了第三种带宽资源分配装置的结构示意图,与前述实施例相比,本实施例中,所述第二目标机房选择子模块503B,包括:In a specific implementation manner of the present application, referring to FIG. 8 , a schematic structural diagram of a third bandwidth resource allocation apparatus is provided. Compared with the foregoing embodiment, in this embodiment, the second target computer room selection sub-module 503B ,include:

标记客户判断单元503B1,用于判断是否存在被标记为可变更机房的客户;The marked customer judgment unit 503B1 is used to judge whether there is a customer marked as a changeable computer room;

客户合并处理单元503B2,用于在所述标记客户判断单元503B1的判断结果为是的情况下,对所述目标客户和所述被标记为可变更机房的客户进行客户合并处理得到合并客户;a customer merging processing unit 503B2, configured to perform customer merging processing on the target customer and the customer marked as a changeable computer room to obtain a merged customer when the judgment result of the marked customer judging unit 503B1 is yes;

第五目标机房选择单元503B3,用于根据估算得到的机房峰共比,为所述合并客户选择目标机房,并将所述目标机房确定为所述目标客户的目标机房,将所述被标记为可变更机房的客户由当前所在的机房变更至所述目标机房。The fifth target computer room selection unit 503B3 is configured to select a target computer room for the combined customer according to the estimated computer room peak-to-peak ratio, determine the target computer room as the target computer room of the target customer, and mark the target computer room as the target computer room of the target customer. The customer who can change the computer room is changed from the current computer room to the target computer room.

由以上可见,上述各个实施例提供的方案中,为目标客户端选择目标机房时,考虑了目标客户的预估峰值带宽、目标客户的预估共享带宽、各个机房的峰值带宽、各个机房的共享带宽等因素,因此能够综合各个机房的特性进行机房选择,并根据该目标机房的带宽资源,为目标客户端分配带宽资源,进而能够充分利用机房的带宽资源。It can be seen from the above that in the solutions provided by the above embodiments, when selecting the target computer room for the target client, the estimated peak bandwidth of the target client, the estimated shared bandwidth of the target client, the peak bandwidth of each computer room, and the sharing of each computer room are considered. Therefore, it is possible to select a computer room based on the characteristics of each computer room, and allocate bandwidth resources to the target client according to the bandwidth resources of the target computer room, so as to make full use of the bandwidth resources of the computer room.

对于装置实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the apparatus embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts.

需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion such that a process, method, article or device comprising a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.

本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the implementation of the above method can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium. Storage medium, such as: ROM/RAM, magnetic disk, optical disk, etc.

以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application are included in the protection scope of this application.

Claims (20)

1.一种带宽资源分配方法,其特征在于,所述方法包括:1. A bandwidth resource allocation method, wherein the method comprises: 获得目标客户的预估峰值带宽和所述目标客户的预估共享带宽;Obtain the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer; 获得各个机房的峰值带宽和各个机房的共享带宽;Obtain the peak bandwidth of each computer room and the shared bandwidth of each computer room; 根据所述目标客户的预估峰值带宽、所述目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,采取错峰原则从各个机房中选择所述目标客户的目标机房;According to the estimated peak bandwidth of the target customer, the estimated shared bandwidth of the target customer, the peak bandwidth of each computer room, and the shared bandwidth of each computer room, the target computer room of the target customer is selected from each computer room by adopting the principle of staggered peak; 根据所述目标机房的带宽资源,为所述目标客户分配带宽资源。According to the bandwidth resources of the target computer room, bandwidth resources are allocated to the target customers. 2.根据权利要求1所述的方法,其特征在于,在所述目标客户包含多个客户的情况下,所述根据所述目标客户的预估峰值带宽、所述目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,采取错峰原则从各个机房中选择所述目标客户的目标机房,包括:2. method according to claim 1, is characterized in that, in the situation that described target client comprises multiple clients, described according to the estimated peak bandwidth of described target client, the estimated shared bandwidth of described target client , the peak bandwidth of each computer room and the shared bandwidth of each computer room, adopt the principle of staggered peak to select the target computer room of the target customer from each computer room, including: 根据各个机房的峰值带宽和各个机房的共享带宽,计算各个机房的机房峰共比,其中,所述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值;Calculate the peak-to-peak ratio of each computer room according to the peak bandwidth of each computer room and the shared bandwidth of each computer room, where the peak-to-peak ratio of each computer room is: the ratio between the peak bandwidth of one computer room and the shared bandwidth of the computer room; 根据各个机房的机房峰共比,按照以下方式从各个机房中选择所述目标客户中每一客户的目标机房:According to the peak-to-peak ratio of each computer room, the target computer room of each of the target customers is selected from each computer room in the following manner: 根据客户U的预估峰值带宽和所述客户U的预估共享带宽,估算将所述客户U分别加入各个机房后各个机房的机房峰共比,其中,所述客户U为所述目标客户中的任一客户;According to the estimated peak bandwidth of the customer U and the estimated shared bandwidth of the customer U, estimate the peak total ratio of each computer room after adding the customer U to each computer room, wherein the customer U is one of the target customers any customer of ; 确定满足第一关系式的机房峰共比数量,其中,所述第一关系式为:估算得到的机房的机房峰共比>估算前该机房的机房峰共比;所述机房峰共比数量为满足所述第一关系式的机房的数量;Determine the peak-to-peak ratio quantity of the computer room that satisfies the first relational expression, wherein the first relational formula is: the estimated computer-room peak-to-peak ratio of the computer room > the computer-room peak-to-peak ratio of the computer room before the estimation; the peak-to-peak ratio of the computer room the number of computer rooms that satisfy the first relational expression; 判断所述机房峰共比数量是否大于预设的数量阈值;judging whether the peak-to-common ratio quantity of the computer room is greater than a preset quantity threshold; 若为是,从满足所述第一关系式的估算得到的机房峰共比对应的机房中选择所述客户U的目标机房;If yes, select the target computer room of the customer U from the computer room corresponding to the computer room peak-to-peak ratio obtained by the estimation that satisfies the first relational expression; 若为否,根据估算得到的机房峰共比,从各个机房中选择所述客户U的目标机房。If no, the target computer room of the customer U is selected from each computer room according to the estimated peak-to-peak ratio of the computer room. 3.根据权利要求2所述的方法,其特征在于,所述从满足所述第一关系式的估算得到的机房峰共比对应的机房中选择所述客户U的目标机房,包括:3. The method according to claim 2, wherein the selecting the target computer room of the customer U from the computer room corresponding to the computer room peak-to-peak ratio obtained by the estimation satisfying the first relational expression, comprises: 基于同一机房,计算满足所述第一关系式的估算得到的机房峰共比与估算前机房峰共比之间的比值;Based on the same computer room, calculating the ratio between the estimated computer room peak-to-peak ratio that satisfies the first relational expression and the pre-estimated computer room peak-to-peak ratio; 选择计算得到的比值中数值最大的比值对应的机房为所述客户U的目标机房。The computer room corresponding to the ratio with the largest value among the calculated ratios is selected as the target computer room of the customer U. 4.根据权利要求2所述的方法,其特征在于,所述根据估算得到的机房峰共比,从各个机房中选择所述客户U的目标机房,包括:4. The method according to claim 2, characterized in that, selecting the target computer room of the customer U from each computer room according to the estimated computer room peak-to-peak ratio, comprising: 基于同一机房,计算估算得到的机房峰共比与估算前机房峰共比之间的比值;Based on the same computer room, calculate the ratio between the estimated peak-to-peak ratio of the computer room and the estimated peak-to-peak ratio of the previous computer room; 选择计算得到的比值中数值最大的比值对应的机房为所述客户U的目标机房。The computer room corresponding to the ratio with the largest value among the calculated ratios is selected as the target computer room of the customer U. 5.根据权利要求2所述的方法,其特征在于,在所述根据估算得到的机房峰共比,从各个机房中选择所述客户U的目标机房之后,还包括:5. The method according to claim 2, characterized in that, after selecting the target computer room of the customer U from each computer room according to the estimated computer room peak-to-peak ratio, the method further comprises: 将所述客户U标记为可变更机房的客户。The customer U is marked as a customer of the changeable computer room. 6.根据权利要求1所述的方法,其特征在于,在所述目标客户包含一个客户的情况下,所述根据所述目标客户的预估峰值带宽、所述目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,采取错峰原则从各个机房中选择所述目标客户的目标机房,包括:6. method according to claim 1, is characterized in that, under the situation that described target customer comprises a customer, described according to the estimated peak bandwidth of described target customer, the estimated shared bandwidth of described target customer, For the peak bandwidth of each computer room and the shared bandwidth of each computer room, the target computer room of the target customer is selected from each computer room by adopting the principle of staggered peak, including: 根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,估算将所述目标客户加入各个机房后各个机房的机房峰共比,其中,所述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值;According to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer, estimate the total computer room peak ratio of each computer room after the target customer is added to each computer room, wherein the computer room peak total ratio is: one The ratio between the peak bandwidth of the computer room and the shared bandwidth of the computer room; 根据估算得到的机房峰共比,为所述目标客户选择目标机房。According to the estimated peak-to-peak ratio of computer rooms, a target computer room is selected for the target customer. 7.根据权利要求6所述的方法,其特征在于,所述根据估算得到的机房峰共比,为所述目标客户选择目标机房,包括:7. The method according to claim 6, wherein, selecting a target computer room for the target customer according to the estimated computer room peak-to-peak ratio, comprising: 根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,计算所述目标客户的客户峰共比,其中,所述客户峰共比为:所述目标客户的预估峰值带宽与所述目标客户的预估共享带宽之间的比值;According to the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client, calculate the client-to-peak ratio of the target client, wherein the client-to-peak ratio is: the estimated peak value of the target client the ratio between the bandwidth and the estimated shared bandwidth of the target client; 判断所述目标客户的客户峰共比是否大于预设的客户峰共比阈值;Judging whether the customer peak common ratio of the target customer is greater than a preset customer peak common ratio threshold; 若为是,选择估算得到的机房峰共比中数值最大的机房峰共比对应的机房为所述目标客户的目标机房;If yes, select the computer room corresponding to the peak-to-peak ratio of the computer room with the largest value in the estimated peak-to-peak ratio of the computer room as the target computer room of the target customer; 若为否,从不低于估算前机房峰共比的估算得到的机房峰共比对应的机房中选择所述目标客户的目标机房。If no, the target computer room of the target customer is selected from the computer rooms corresponding to the estimated computer room peak-to-peak ratio not lower than the pre-estimated peak-to-peak ratio of computer rooms. 8.根据权利要求7所述的方法,其特征在于,在所述从不低于估算前机房峰共比的估算得到的机房峰共比对应的机房中选择所述目标客户的目标机房之后,还包括:8 . The method according to claim 7 , wherein, after selecting the target computer room of the target customer from the computer room corresponding to the computer room peak-to-peak ratio obtained from the estimation that is not lower than the pre-estimated computer-room peak-to-peak ratio, the method according to claim 7 . Also includes: 将所述目标客户标记为可变更机房的客户。The target customer is marked as a customer who can change the computer room. 9.根据权利要求8所述的方法,其特征在于,所述根据估算得到的机房峰共比,为所述目标客户选择目标机房,包括:9. The method according to claim 8, wherein, selecting a target computer room for the target customer according to the estimated computer room peak-to-peak ratio, comprising: 判断是否存在被标记为可变更机房的客户;Determine whether there is a customer marked as a changeable room; 若存在,对所述目标客户和所述被标记为可变更机房的客户进行客户合并处理得到合并客户;If it exists, perform customer merging processing on the target customer and the customer marked as a changeable computer room to obtain a merged customer; 根据估算得到的机房峰共比,为所述合并客户选择目标机房,并将所述目标机房确定为所述目标客户的目标机房,将所述被标记为可变更机房的客户由当前所在的机房变更至所述目标机房。According to the estimated peak-to-peak ratio of computer rooms, a target computer room is selected for the combined customer, and the target computer room is determined as the target computer room of the target customer, and the customer marked as a changeable computer room is replaced by the current computer room Change to the target computer room. 10.根据权利要求1所述的方法,其特征在于,所述方法还包括:10. The method of claim 1, wherein the method further comprises: 根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,计算所述目标客户的客户峰共比,其中,所述客户峰共比为:所述目标客户的预估峰值带宽与所述目标客户的预估共享带宽之间的比值;According to the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client, calculate the client-to-peak ratio of the target client, wherein the client-to-peak ratio is: the estimated peak value of the target client the ratio between the bandwidth and the estimated shared bandwidth of the target client; 根据所述目标客户的客户峰共比,从预设的客户价值计算规则库中选择针对所述目标客户的客户价值计算规则;According to the customer peak total ratio of the target customer, select a customer value calculation rule for the target customer from a preset customer value calculation rule library; 根据所选择的客户价值计算规则,计算所述目标客户的客户价值。Calculate the customer value of the target customer according to the selected customer value calculation rule. 11.一种带宽资源分配装置,其特征在于,所述装置包括:11. An apparatus for allocating bandwidth resources, wherein the apparatus comprises: 第一带宽信息获得模块,用于获得目标客户的预估峰值带宽和所述目标客户的预估共享带宽;The first bandwidth information obtaining module is used to obtain the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client; 第二带宽信息获得模块,用于获得各个机房的峰值带宽和各个机房的共享带宽;The second bandwidth information obtaining module is used to obtain the peak bandwidth of each computer room and the shared bandwidth of each computer room; 目标机房选择模块,用于根据所述目标客户的预估峰值带宽、所述目标客户的预估共享带宽、各个机房的峰值带宽以及各个机房的共享带宽,采取错峰原则从各个机房中选择所述目标客户的目标机房;The target computer room selection module is used to select the target computer room according to the estimated peak bandwidth of the target customer, the estimated shared bandwidth of the target customer, the peak bandwidth of each computer room, and the shared bandwidth of each computer room. Describe the target computer room of the target customer; 带宽资源分配模块,用于根据所述目标机房的带宽资源,为所述目标客户分配带宽资源。A bandwidth resource allocation module, configured to allocate bandwidth resources to the target client according to the bandwidth resources of the target computer room. 12.根据权利要求11所述的装置,其特征在于,在所述目标客户包含多个客户的情况下,所述目标机房选择模块,包括:12 . The apparatus according to claim 11 , wherein in the case that the target customer includes multiple customers, the target computer room selection module comprises: 12 . 机房峰共比计算子模块,用于根据各个机房的峰值带宽和各个机房的共享带宽,计算各个机房的机房峰共比,其中,所述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值;The computer room peak-to-peak ratio calculation sub-module is used to calculate the computer room peak-to-peak ratio of each computer room according to the peak bandwidth of each computer room and the shared bandwidth of each computer room. The ratio between the shared bandwidths; 第一目标机房选择子模块,用于根据各个机房的机房峰共比,从各个机房中选择所述目标客户中每一客户的目标机房;The first target computer room selection sub-module is used to select the target computer room of each of the target customers from the various computer rooms according to the peak-to-peak ratio of each computer room; 其中,所述第一目标机房选择子模块,包括:Wherein, the first target computer room selection sub-module includes: 机房峰共比估算单元,用于根据客户U的预估峰值带宽和所述客户U的预估共享带宽,估算将所述客户U分别加入各个机房后各个机房的机房峰共比,其中,所述客户U为所述目标客户中的任一客户;The computer room peak total ratio estimation unit is used to estimate the computer room peak total ratio of each computer room after adding the customer U to each computer room according to the estimated peak bandwidth of the customer U and the estimated shared bandwidth of the customer U, wherein, all The customer U is any one of the target customers; 机房峰共比数量确定单元,用于确定满足第一关系式的机房峰共比数量,其中,所述第一关系式为:估算得到的机房的机房峰共比>估算前该机房的机房峰共比;所述机房峰共比数量为满足所述第一关系式的机房的数量;The unit for determining the peak-to-peak ratio of computer rooms is used to determine the number of peak-to-peak ratios of computer rooms that satisfies the first relational expression, wherein the first relational formula is: the estimated computer-room peak-to-peak ratio of the computer room > the computer room peak of the computer room before the estimation Total ratio; the number of the computer room peak total ratio is the number of computer rooms that satisfy the first relational expression; 机房峰共比数量判断单元,用于判断所述机房峰共比数量是否大于预设的数量阈值;a computer room peak-to-common ratio quantity judgment unit, configured to judge whether the computer room peak-to-common ratio quantity is greater than a preset quantity threshold; 第一目标机房选择单元,用于在所述机房峰共比数量判断单元的判断结果为是的情况下,从满足所述第一关系式的估算得到的机房峰共比对应的机房中选择所述客户U的目标机房;The first target computer room selection unit is configured to select the desired computer room from the computer room corresponding to the computer room peak-to-peak ratio obtained by the estimation that satisfies the first relational expression when the judgment result of the computer room peak-to-common ratio quantity judgment unit is yes. Describe the target computer room of customer U; 第二目标机房选择单元,用于在所述机房峰共比数量判断单元的判断结果为否的情况下,根据估算得到的机房峰共比,从各个机房中选择所述客户U的目标机房。The second target computer room selection unit is configured to select the target computer room of the customer U from each computer room according to the estimated peak total ratio of computer rooms when the judgment result of the computer room peak-to-peak ratio quantity judgment unit is no. 13.根据权利要求12所述的装置,其特征在于,所述第一目标机房选择单元,包括:13. The apparatus according to claim 12, wherein the first target computer room selection unit comprises: 第一比值计算子单元,用于基于同一机房,计算满足所述第一关系式的估算得到的机房峰共比与估算前机房峰共比之间的比值;a first ratio calculation subunit, configured to calculate, based on the same computer room, the ratio between the estimated computer room peak-to-peak ratio that satisfies the first relational expression and the pre-estimated computer room peak-to-peak ratio; 第一目标机房选择子单元,用于选择计算得到的比值中数值最大的比值对应的机房为所述客户U的目标机房。The first target computer room selection subunit is configured to select the computer room corresponding to the ratio with the largest value among the calculated ratios as the target computer room of the customer U. 14.根据权利要求12所述的装置,其特征在于,所述第二目标机房选择单元,包括:14. The apparatus according to claim 12, wherein the second target computer room selection unit comprises: 第二比值计算子单元,用于基于同一机房,计算估算得到的机房峰共比与估算前机房峰共比之间的比值;The second ratio calculation sub-unit is used to calculate the ratio between the estimated peak-to-peak ratio of the computer room and the estimated peak-to-peak ratio of the previous computer room based on the same computer room; 第二目标机房选择子单元,用于选择计算得到的比值中数值最大的比值对应的机房为所述客户U的目标机房。The second target computer room selection subunit is used to select the computer room corresponding to the ratio with the largest value among the calculated ratios as the target computer room of the customer U. 15.根据权利要求12所述的装置,其特征在于,所述第一目标机房选择子模块还包括:15. The apparatus according to claim 12, wherein the first target computer room selection sub-module further comprises: 客户标记单元,用于在所述第二目标机房选择单元选择目标机房之后,将所述客户U标记为可变更机房的客户。A customer marking unit, configured to mark the customer U as a customer of a changeable computer room after the second target computer room selection unit selects a target computer room. 16.根据权利要求11所述的装置,其特征在于,在所述目标客户包含一个客户的情况下,所述目标机房选择模块,包括:16. The apparatus according to claim 11, wherein, in the case that the target customer includes one customer, the target computer room selection module comprises: 机房峰共比估算子模块,用于根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,估算将所述目标客户加入各个机房后各个机房的机房峰共比,其中,所述机房峰共比为:一个机房的峰值带宽与该机房的共享带宽之间的比值;The computer room peak-to-peak ratio estimation sub-module is used for estimating the computer room peak-to-peak ratio of each computer room after adding the target customer to each computer room according to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer, wherein , the peak-to-common ratio of the computer room is: the ratio between the peak bandwidth of a computer room and the shared bandwidth of the computer room; 第二目标机房选择子模块,用于根据估算得到的机房峰共比,为所述目标客户选择目标机房。The second target computer room selection sub-module is configured to select a target computer room for the target customer according to the estimated peak-to-peak ratio of the computer room. 17.根据权利要求16所述的装置,其特征在于,所述第二目标机房选择子模块,包括:17. The apparatus according to claim 16, wherein the second target computer room selection sub-module comprises: 客户峰共比计算单元,用于根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,计算所述目标客户的客户峰共比,其中,所述客户峰共比为:所述目标客户的预估峰值带宽与所述目标客户的预估共享带宽之间的比值;A customer peak common ratio calculation unit, configured to calculate the customer peak common ratio of the target customer according to the estimated peak bandwidth of the target customer and the estimated shared bandwidth of the target customer, wherein the customer peak common ratio is : the ratio between the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client; 客户峰共比判断单元,用于判断所述目标客户的客户峰共比是否大于预设的客户峰共比阈值;a customer peak common ratio judging unit, configured to judge whether the customer peak common ratio of the target customer is greater than a preset customer peak common ratio threshold; 第三目标机房选择单元,用于在所述客户峰共比判断单元的判断结果为是的情况下,选择估算得到的机房峰共比中数值最大的机房峰共比对应的机房为所述目标客户的目标机房;The third target computer room selection unit is configured to select the computer room corresponding to the computer room peak total ratio with the largest value among the estimated computer room peak total ratios as the target when the judgment result of the customer peak total ratio judgment unit is yes The customer's target computer room; 第四目标机房选择单元,用于在所述客户峰共比判断单元的判断结果为否的情况下,从不低于估算前机房峰共比的估算得到的机房峰共比对应的机房中选择所述目标客户的目标机房。The fourth target computer room selection unit is configured to select from the computer room corresponding to the computer room peak total ratio obtained by the estimation not lower than the estimated peak total ratio of the previous computer room when the judgment result of the customer peak total ratio judgment unit is negative The target computer room of the target customer. 18.根据权利要求17所述的装置,其特征在于,所述装置还包括:18. The apparatus of claim 17, wherein the apparatus further comprises: 客户标记模块,用于在所述第四目标机房选择单元选择目标机房之后,将所述目标客户标记为可变更机房的客户。The customer marking module is configured to mark the target customer as a customer of a changeable machine room after the fourth target machine room selection unit selects a target machine room. 19.根据权利要求18所述的装置,其特征在于,所述第二目标机房选择子模块,包括:19. The apparatus according to claim 18, wherein the second target computer room selection sub-module comprises: 标记客户判断单元,用于判断是否存在被标记为可变更机房的客户;The marking customer judgment unit is used to judge whether there is a customer marked as a changeable computer room; 客户合并处理单元,用于在所述标记客户判断单元的判断结果为是的情况下,对所述目标客户和所述被标记为可变更机房的客户进行客户合并处理得到合并客户;a customer merging processing unit, configured to perform customer merging processing on the target customer and the customer marked as a changeable computer room to obtain a merged customer when the judgment result of the marking customer judging unit is yes; 第五目标机房选择单元,用于根据估算得到的机房峰共比,为所述合并客户选择目标机房,并将所述目标机房确定为所述目标客户的目标机房,将所述被标记为可变更机房的客户由当前所在的机房变更至所述目标机房。The fifth target computer room selection unit is configured to select a target computer room for the combined customer according to the estimated peak-to-peak ratio of computer rooms, and determine the target computer room as the target computer room of the target customer, and mark the target computer room as available. The customer who changes the computer room is changed from the current computer room to the target computer room. 20.根据权利要求11所述的装置,其特征在于,所述装置还包括:20. The apparatus of claim 11, wherein the apparatus further comprises: 客户峰共比计算模块,用于根据所述目标客户的预估峰值带宽和所述目标客户的预估共享带宽,计算所述目标客户的客户峰共比,其中,所述客户峰共比为:所述目标客户的预估峰值带宽与所述目标客户的预估共享带宽之间的比值;The client peak total ratio calculation module is used to calculate the client peak total ratio of the target client according to the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client, wherein the client peak total ratio is : the ratio between the estimated peak bandwidth of the target client and the estimated shared bandwidth of the target client; 计算规则选择模块,用于根据所述目标客户的客户峰共比,从预设的客户价值计算规则库中选择针对所述目标客户的客户价值计算规则;A calculation rule selection module, configured to select a customer value calculation rule for the target customer from a preset customer value calculation rule base according to the customer peak ratio of the target customer; 客户价值计算模块,用于根据所选择的客户价值计算规则,计算所述目标客户的客户价值。The customer value calculation module is configured to calculate the customer value of the target customer according to the selected customer value calculation rule.
CN201511029265.5A 2015-12-31 2015-12-31 A kind of bandwidth resource allocation method and device Active CN106936733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511029265.5A CN106936733B (en) 2015-12-31 2015-12-31 A kind of bandwidth resource allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511029265.5A CN106936733B (en) 2015-12-31 2015-12-31 A kind of bandwidth resource allocation method and device

Publications (2)

Publication Number Publication Date
CN106936733A CN106936733A (en) 2017-07-07
CN106936733B true CN106936733B (en) 2020-08-28

Family

ID=59442646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511029265.5A Active CN106936733B (en) 2015-12-31 2015-12-31 A kind of bandwidth resource allocation method and device

Country Status (1)

Country Link
CN (1) CN106936733B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110519104B (en) * 2019-09-18 2022-06-14 深圳市梦网视讯有限公司 Bandwidth multiplexing method and system based on peak error degree
CN111585824B (en) * 2020-05-21 2022-10-25 北京奇艺世纪科技有限公司 Resource distribution method, device and system and electronic equipment
CN114118838A (en) * 2021-12-02 2022-03-01 多点(深圳)数字科技有限公司 Method and device for calling network resources and electronic equipment
CN114430375B (en) * 2021-12-27 2024-07-05 天翼云科技有限公司 Scheduling method, device, equipment and medium for multi-line machine room bandwidth

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188562B (en) * 2007-12-20 2011-02-09 杭州华三通信技术有限公司 Flow control method, system and device
US9007898B2 (en) * 2011-02-01 2015-04-14 Google Inc. System to share network bandwidth among competing applications
US9882832B2 (en) * 2013-09-10 2018-01-30 Robin Systems, Inc. Fine-grained quality of service in datacenters through end-host control of traffic flow
CN104580012B (en) * 2013-10-14 2018-08-07 深圳市腾讯计算机系统有限公司 A kind of selection method and device of content delivery network node
CN104750541B (en) * 2015-04-22 2018-01-16 成都睿峰科技有限公司 A kind of virtual machine migration method

Also Published As

Publication number Publication date
CN106936733A (en) 2017-07-07

Similar Documents

Publication Publication Date Title
Mashayekhy et al. Cloud federations in the sky: Formation game and mechanism
Jarray et al. Decomposition approaches for virtual network embedding with one-shot node and link mapping
US8914469B2 (en) Negotiating agreements within a cloud computing environment
US8352611B2 (en) Allocating computer resources in a cloud environment
CN102640475B (en) The method and system of resource-sharing between the cloud in cloud computing environment
CN104679591B (en) For carrying out the method and apparatus of resource allocation in cloud environment
US20130111027A1 (en) Accessing physical resources in a cloud computing environment
CN108062678A (en) A kind of advertisement bit allocation method, device and advertisement delivery system
CN106936733B (en) A kind of bandwidth resource allocation method and device
Das et al. A QoS and profit aware cloud confederation model for IaaS service providers
CN106789118A (en) Cloud computing charging method based on service-level agreement
US9619827B1 (en) Flexible resource commitments for computing resources
CN104301257B (en) A kind of resource allocation methods, device and equipment
CN113835823B (en) Resource scheduling method and device, electronic equipment and computer readable storage medium
Guan et al. The value of cooperation: Minimizing user costs in multi-broker mobile cloud computing networks
CN105791254A (en) Network request processing method, device and terminal
Kukreja et al. Performance analysis of cloud resource provisioning algorithms
CN106303112B (en) A traffic equalization method and device
CN111611076B (en) Fair distribution method for mobile edge computing shared resources under task deployment constraint
Aazam et al. Advance resource reservation and QoS based refunding in cloud federation
CN103281254B (en) The method of bandwidth dynamic allocation
CN108279968B (en) Method and device for scheduling virtual machine resources
Omezzine et al. Negotiation based scheduling for an efficient saas provisioning in the cloud
Li et al. Price competition in a duopoly iaas cloud market
CN110008441B (en) Data interaction method and device

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