Bandwidth configuration method, computer equipment, readable storage medium and program product

By partitioning the physical ports with bandwidth and dynamic configuration of virtual ports, the problem of insufficient bandwidth utilization of ports is solved, and efficient resource utilization and flexible adaptation of business needs are achieved.

CN120238446AInactive Publication Date: 2025-07-01INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510708061.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-29
Publication Date
2025-07-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the bandwidth utilization rate of ports is insufficient, resulting in waste of resources and cannot effectively meet the bandwidth requirements of different services.

Method used

By dividing the bandwidth of the target physical port in units of the preset granularity of the bandwidth, creating multiple sub-bandwidth particles, using these sub-bandwidth particles to create virtual ports, and comparing the bandwidth parameters of the target time dimension with the threshold range, dynamically adjusting the bandwidth configuration of the virtual port.

Benefits of technology

Improve the bandwidth utilization of ports, reduce resource waste, and ensure efficient utilization of ports under different business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120238446A_ABST
    Figure CN120238446A_ABST
Patent Text Reader

Abstract

The invention discloses a bandwidth configuration method, computer equipment, a readable storage medium and a program product, and relates to the technical field of computers, the bandwidth configuration method comprises the following steps: dividing the bandwidth of a target physical port to obtain a plurality of sub-bandwidth particles, and creating a virtual port by using the plurality of sub-bandwidth particles meeting the requirement of the required total bandwidth amount; comparing a target bandwidth parameter corresponding to the target time dimension type with a target threshold range; in response to the condition that the target bandwidth parameter is smaller than the lower limit value of the target threshold range, updating the lower limit value of the target threshold range and / or reducing the bandwidth configuration of the target virtual port; and in response to the condition that the target bandwidth parameter is greater than the upper limit value of the target threshold range, updating the upper limit value of the target threshold range and / or increasing the bandwidth configuration of the target virtual port, thereby solving the technical problem of resource waste caused by insufficient bandwidth utilization rate of the port in related technologies, and achieving the technical effect of improving the bandwidth utilization rate of the port.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technologies, and in particular, to a bandwidth configuration method, a computer device, a readable storage medium, and a program product. Background Art

[0002] With the rapid development of the Internet, countless amounts of information are being transmitted, recorded, and born in the network every day. In order to further develop and create more markets, attention has gradually been focused on seeking unexploited demands in the market. However, unexploited demands are particularly hidden, and analysis in a large amount of data has become the most practical method. Therefore, information storage technologies have been increasingly emphasized, and storage technologies have also been continuously innovated. In the field of storage technologies, an especially important point is data transmission. To prevent data loss, to quickly save data in a RAID (Redundant Array of Independent Disks), and to experience a better data saving rate, the bandwidths of transmission ports such as 32G and 64G of FC (Fiber Channel) and 25G and 100G of RDMA (Remote Direct Memory Access) are also continuously increasing.

[0003] In related technologies, physical redundancy is mainly achieved by configuring multiple dedicated ports to ensure the reliability of the cluster. This will increase the production cost of storage, and the bandwidth requirements for ports are also different for different services. Using multiple dedicated ports alone to achieve physical redundancy is also prone to the situation of insufficient bandwidth utilization of ports, resulting in waste of resources. Summary of the Invention

[0004] This application provides a bandwidth configuration method, a computer device, a readable storage medium, and a program product to solve the technical problem of insufficient bandwidth utilization of ports and waste of resources in related technologies.

[0005] This application provides a bandwidth configuration method, including: dividing the bandwidth of a target physical port in units of a preset granularity of the bandwidth to obtain multiple sub-bandwidth grains, and creating virtual ports using multiple sub-bandwidth grains that meet the requirements of the total demand bandwidth; obtaining the target bandwidth parameter and the target threshold range of the target virtual port corresponding to the target time dimension type; comparing the target bandwidth parameter corresponding to the target time dimension type with the target threshold range; in response to the target bandwidth parameter being less than the lower limit value of the target threshold range, updating the lower limit value of the target threshold range and / or reducing the bandwidth configuration of the target virtual port; in response to the target bandwidth parameter being greater than the upper limit value of the target threshold range, updating the upper limit value of the target threshold range and / or increasing the bandwidth configuration of the target virtual port.

[0006] This application also provides a computer device, including: a memory for storing a computer program; a processor for implementing the steps of the bandwidth configuration method in the following embodiments when executing the computer program.

[0007] Divide the bandwidth of the target physical port in units of a preset granularity of the bandwidth to obtain multiple sub - bandwidth grains, and create a virtual port by using multiple sub - bandwidth grains that meet the requirements of the total required bandwidth; obtain the target bandwidth parameter and the target threshold range of the target virtual port corresponding to the target time dimension type; compare the target bandwidth parameter corresponding to the target time dimension type with the target threshold range; in response to the target bandwidth parameter being less than the lower limit value of the target threshold range, update the lower limit value of the target threshold range and / or reduce the bandwidth configuration of the target virtual port; in response to the target bandwidth parameter being greater than the upper limit value of the target threshold range, update the upper limit value of the target threshold range and / or increase the bandwidth configuration of the target virtual port.

[0008] The present application also provides a computer - readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of the bandwidth configuration method in the following embodiments are implemented.

[0009] Divide the bandwidth of the target physical port in units of a preset granularity of the bandwidth to obtain multiple sub - bandwidth grains, and create a virtual port by using multiple sub - bandwidth grains that meet the requirements of the total required bandwidth; obtain the target bandwidth parameter and the target threshold range of the target virtual port corresponding to the target time dimension type; compare the target bandwidth parameter corresponding to the target time dimension type with the target threshold range; in response to the target bandwidth parameter being less than the lower limit value of the target threshold range, update the lower limit value of the target threshold range and / or reduce the bandwidth configuration of the target virtual port; in response to the target bandwidth parameter being greater than the upper limit value of the target threshold range, update the upper limit value of the target threshold range and / or increase the bandwidth configuration of the target virtual port.

[0010] The present application also provides a computer program product, including a computer program. When the computer program is executed by a processor, the steps of the bandwidth configuration method in the following embodiments are implemented.

[0011] Divide the bandwidth of the target physical port in units of a preset granularity of the bandwidth to obtain multiple sub - bandwidth grains, and create a virtual port by using multiple sub - bandwidth grains that meet the requirements of the total required bandwidth; obtain the target bandwidth parameter and the target threshold range of the target virtual port corresponding to the target time dimension type; compare the target bandwidth parameter corresponding to the target time dimension type with the target threshold range; in response to the target bandwidth parameter being less than the lower limit value of the target threshold range, update the lower limit value of the target threshold range and / or reduce the bandwidth configuration of the target virtual port; in response to the target bandwidth parameter being greater than the upper limit value of the target threshold range, update the upper limit value of the target threshold range and / or increase the bandwidth configuration of the target virtual port.

[0012] The bandwidth configuration method provided by this application divides the bandwidth of the target physical port in units of a preset granularity of the bandwidth, obtaining multiple sub-bandwidth grains, and creates virtual ports using multiple sub-bandwidth grains that meet the requirements of the total required bandwidth. It can integrate and divide the physical port bandwidth resources, centrally plan the virtual ports corresponding to services, and compare the target bandwidth parameter corresponding to the target time dimension type with the target threshold range. In response to the target bandwidth parameter being less than the lower limit of the target threshold range, update the lower limit of the target threshold range and / or reduce the bandwidth configuration of the target virtual port; in response to the target bandwidth parameter being greater than the upper limit of the target threshold range, update the upper limit of the target threshold range and / or increase the bandwidth configuration of the target virtual port. Therefore, it supports timely adjusting the bandwidth of the target virtual port according to the target bandwidth parameter and the target threshold range, solving the technical problem of insufficient bandwidth utilization of ports in the related art and causing resource waste, and achieving the technical effect of improving the bandwidth utilization of ports. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] To more clearly illustrate the embodiments of this application, the following will briefly introduce the drawings required for the embodiments. Obviously, the drawings in the following description are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0014] Figure 1 Structural schematic diagram of a bandwidth configuration system provided by an embodiment of this application; Figure 2 Flow schematic diagram of a bandwidth configuration method provided by an embodiment of this application; Figure 3 Flow schematic diagram of a bandwidth configuration method provided by another embodiment of this application; Figure 4 Flow schematic diagram of a bandwidth configuration method provided by another embodiment of this application; Figure 5 Flow schematic diagram of a bandwidth configuration method provided by another embodiment of this application; Figure 6 Flow schematic diagram of a bandwidth configuration method provided by another embodiment of this application; Figure 7 Flow schematic diagram of a bandwidth configuration method provided by another embodiment of this application; Figure 8 Structural schematic diagram of a bandwidth configuration device provided by an embodiment of this application; Figure 9 Internal structure diagram of a computer device provided by an embodiment of this application. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0015] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0016] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or also includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects, rather than to describe a specific order or sequence.

[0017] Currently, in various port application modes, the single-port dedicated strategy and port binding are mainly adopted to improve performance and security.

[0018] Adopting the single-port dedicated strategy of the port: Assume that a single port is 100G, and this port is set for the interconnection communication of multiple controllers to build a cluster. When processing different services, it is necessary to configure multiple dedicated ports to achieve physical redundancy to ensure the reliability of the cluster.

[0019] Adopting the port binding strategy: By binding multiple ports into a virtual port, this virtual port is specifically responsible for the interconnection communication of the cluster, and helps the reliability of the cluster through the binding mode.

[0020] However, through research, it is found that when applying the single-port dedicated strategy and using port binding to execute services, there is a problem that a large amount of bandwidth of the port is idle and cannot be fully utilized. Therefore, there is an urgent need for a bandwidth configuration method that can improve the bandwidth utilization rate of the port.

[0021] To enable those skilled in the art of this technology to better understand the solution of the present application, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0022] As Figure 1 shown, an embodiment of the present application provides a bandwidth configuration system, which specifically includes: RAIP block (port array); the port array includes multiple physical ports and multiple virtual ports.

[0023] RAIP block (port array) refers to a set of physical ports in a network device (such as a switch, router). These ports can work together to improve the performance and reliability of the network. The port array can be used to implement functions such as load balancing, redundancy, and expanding network capacity.

[0024] A physical port refers to a physically existing port, such as the interfaces on an ADSL Modem, hub, switch, or router for connecting to other network devices, such as RJ-45 ports, SC ports, etc.

[0025] A virtual port refers to a port used to distinguish services in a logical sense, such as the service ports in the TCP / IP protocol. The port number range is from 0 to 65535. For example, port 80 is used for web browsing services, and port 21 is used for FTP services, etc.

[0026] In this application, multiple physical ports (such as port 1, port 2... port N in the figure) are set. The physical port with the service type of operational physical port is used as the target physical port. All target physical ports are resource-integrated, and the target physical ports are split into multiple virtual ports (such as virtual port 1, virtual port 2... virtual port M in the figure). Compared with the related art that uses multiple physical ports to achieve link redundancy or handle different services, in this application, multiple virtual ports under one target physical port can be used to handle link redundancy or meet different service requirements, which can not only meet multiple ports but also improve resource utilization.

[0027] Such as Figure 2 As shown in the figure, an embodiment of this application provides a bandwidth configuration method, which specifically includes the following steps: Step 101: Divide the bandwidth of the target physical port in units of a preset bandwidth granularity to obtain multiple sub-bandwidth grains, and create virtual ports using multiple sub-bandwidth grains that meet the total required bandwidth.

[0028] Specifically, obtain the bandwidth of the target physical port, divide the bandwidth of the target physical port in units of a preset bandwidth granularity to obtain multiple sub-bandwidth grains; select multiple sub-bandwidth grains corresponding to the total bandwidth that matches the total required bandwidth to create virtual ports.

[0029] Bandwidth refers to the network transmission bandwidth, that is, the size of the network transmission capacity, also known as network bandwidth, network broadband, or network capacity. The target physical port refers to the physical port in the system. Taking the preset bandwidth granularity of 1G as an example, the target physical port is divided into multiple sub-bandwidth grains with a granularity of 1G. For example, if the total bandwidth of the target physical port is 100G, then the target physical port can be divided into 100 sub-bandwidth grains with a granularity of 1G. The total required bandwidth can be the total bandwidth required for a certain service. Assuming the total required bandwidth is 70G, then 70 sub-bandwidth grains of 1G can be applied for to create virtual ports for this service, and the service attribute type and service data of this service are associated with the virtual ports.

[0030] When performing operations, some virtual ports can be used to connect to external hosts, and customers can access and read / write data through the virtual ports to perform read / write operations; some virtual ports are used for cluster interconnection, such as communicating with each other between multiple controllers to establish a communication path between the controllers. The service attribute types here can include cluster interconnection attributes and read / write operation attributes.

[0031] After associating the service attribute types and service data with the virtual ports, a target threshold range can be configured for the virtual ports to facilitate subsequent monitoring of the target bandwidth parameters of the virtual ports, and to monitor and analyze the status of the virtual ports based on the target threshold range and the target bandwidth parameters of the virtual ports, so as to achieve timely and accurate configuration of the bandwidth of the virtual ports.

[0032] Step 102: Obtain the target bandwidth parameters and the target threshold range of the target virtual port corresponding to the target time dimension type.

[0033] Specifically, the target bandwidth parameters include the target bandwidth peak value and the target bandwidth average value. Obtaining the target bandwidth parameters of the target virtual port corresponding to the target time dimension type includes: obtaining the service type of the virtual port, where the service type includes operational virtual ports, standby virtual ports, and fault-tolerant virtual ports; taking the virtual ports with the service type of operational virtual ports as the target virtual ports; performing a subtraction operation with the highest bandwidth value of the target virtual port in the target time dimension as the minuend and the lowest bandwidth value of the target virtual port in the target time dimension as the subtrahend to obtain the bandwidth difference, and the bandwidth difference is the target bandwidth peak value of the target virtual port in the target time dimension; performing a division operation with the sum of the bandwidth values of the target virtual port in the target time dimension as the dividend and the total number of bandwidth values participating in the sum calculation as the divisor to obtain the target bandwidth average value of the target virtual port in the target time dimension.

[0034] The target virtual port in this application refers to the virtual port used for read / write operations. The fault-tolerant virtual port here refers to the virtual port used for port mirroring, and the standby virtual port refers to the port used to share the service pressure when the bandwidth of other virtual ports is insufficient. Only the virtual ports for read / write operations are monitored and analyzed here. Obtaining the target bandwidth parameters and the target threshold range of the target virtual port includes obtaining the target bandwidth peak value and the target peak threshold range corresponding to the target bandwidth peak value, and obtaining the target bandwidth average value and the target average threshold range corresponding to the target bandwidth average value.

[0035] Specifically, obtaining the target threshold range may include: selecting the historical threshold range of the historical virtual port that matches the target time dimension type, the total target required bandwidth, the target bandwidth peak value, and the target bandwidth average value of the target virtual port; obtaining the bandwidth configuration plan corresponding to the historical threshold range within the preset time range and the service failure rate after adjustment based on the historical threshold range; the bandwidth configuration plan includes the number of adjustments to the historical threshold range after applying the historical threshold range and the cost of updating the bandwidth configuration of the historical virtual port; using the bandwidth configuration plan that meets the preset requirements and the historical threshold range of the service failure rate as the target threshold range.

[0036] The historical time dimension type, the total historical required bandwidth, the historical bandwidth peak value, and the historical bandwidth average value of the historical virtual port can be obtained from the database. The historical virtual port with the historical time dimension type being the same or similar to the target time dimension type, the total historical required bandwidth being the same or similar to the total target required bandwidth, the historical bandwidth peak value being the same or similar to the target bandwidth peak value, and the historical bandwidth average value being the same or similar to the target bandwidth average value is used as the reference historical virtual port, and the historical threshold range corresponding to the historical virtual port is obtained.

[0037] Obtain the probability of service failure within the preset time range after adjusting the historical threshold range, as well as the number of adjustments to the threshold range and the cost of updating the bandwidth configuration of the historical virtual port within the preset time range after applying the historical threshold range. The cost of updating the bandwidth configuration of the historical virtual port here may refer to the update duration of updating the bandwidth configuration of the historical virtual port, the loss of the bandwidth of the historical virtual port, etc. The historical threshold range with a small cost of updating the bandwidth configuration of the new historical virtual port, a small number of adjustments, and a low service failure rate can be selected as the target threshold range. In this way, a more optimal target threshold range can be scientifically set.

[0038] Step 103: Compare the target bandwidth parameter corresponding to the target time dimension type with the target threshold range.

[0039] The target time dimension type in this application can be one or a combination of the first time dimension, the second time dimension, and the third time dimension.

[0040] When the target time dimension type is the first time dimension, comparing the target bandwidth parameter corresponding to the target time dimension type with the target threshold range includes: obtaining the first target bandwidth peak value of the target virtual port corresponding to the first time dimension and the upper limit value of the first target peak threshold range; comparing the first target bandwidth peak value corresponding to the first time dimension with the upper limit value of the first target peak threshold range; in response to the first target bandwidth peak value being greater than the upper limit value of the first target peak threshold range, it is considered that the service pressure of the target virtual port is high, and it is necessary to update the upper limit value of the first target peak threshold range and / or the bandwidth configuration of the target virtual port.

[0041] The first time dimension can be based on the duration of one day. The peak bandwidth per day (the first target bandwidth peak) and the upper limit of the peak threshold range per day (the upper limit value of the first target peak threshold range) can be obtained. In response to the first target bandwidth peak being greater than the upper limit value of the first target peak threshold range, it is considered that the service pressure on the target virtual port is high, and it is easy to have a service congestion phenomenon, resulting in the service stopping running. Therefore, it is necessary to update the upper limit value of the first target peak threshold range and / or the bandwidth configuration of the target virtual port.

[0042] When the target time dimension type is the second time dimension, comparing the target bandwidth parameter corresponding to the target time dimension type with the target threshold range includes: obtaining the second target bandwidth peak, the second target bandwidth average value, the upper limit value of the second target peak threshold range, the lower limit value of the second target peak threshold range, the upper limit value of the second target average value threshold range, and the lower limit value of the second target average value threshold range of the target virtual port corresponding to the second time dimension; comparing the second target bandwidth peak and the second bandwidth average value corresponding to the second time dimension with the upper limit value of the second target peak threshold range and the upper limit value of the second target average value threshold range respectively; in response to the second target bandwidth peak being greater than the upper limit value of the second target peak threshold range and / or the second bandwidth average value being greater than the upper limit value of the second target average value threshold range, it is considered that the service pressure on the target virtual port is high, and it is necessary to update one or more of the upper limit value of the second target peak threshold range, the upper limit value of the second target average value threshold range, and the bandwidth configuration of the target virtual port; comparing the second target bandwidth peak and the second bandwidth average value corresponding to the second time dimension with the lower limit value of the second target peak threshold range and the lower limit value of the second target average value threshold range respectively; in response to the second target bandwidth peak being less than the lower limit value of the second target peak threshold range and / or the second bandwidth average value being less than the lower limit value of the second target average value threshold range, it is considered that the bandwidth utilization rate of the target virtual port is insufficient, and it is necessary to update one or more of the lower limit value of the second target peak threshold range, the lower limit value of the second target average value threshold range, and the bandwidth configuration of the target virtual port.

[0043] The second time dimension can be based on the duration of one week. The peak bandwidth per week (the second target bandwidth peak), the bandwidth average value per week (the second target bandwidth average value), the upper limit of the peak threshold range per week (the upper limit value of the second target peak threshold range), the lower limit of the peak threshold range per week (the lower limit value of the second target peak threshold range), the upper limit of the average value threshold range per week (the upper limit value of the second target average value threshold range), and the lower limit of the average value threshold range per week (the lower limit value of the second target average value threshold range) can be obtained.

[0044] If the second target bandwidth peak value is greater than the upper limit of the second target peak threshold range and / or the second bandwidth average value is greater than the upper limit of the second target average threshold range, it is considered that the service pressure of the target virtual port is high, and it is easy to have a service congestion phenomenon, resulting in the service stopping running. It is necessary to update one or more of the upper limit of the second target peak threshold range, the upper limit of the second target average threshold range, and the bandwidth configuration of the target virtual port.

[0045] If the second target bandwidth peak value is less than the lower limit of the second target peak threshold range and / or the second bandwidth average value is less than the lower limit of the second target average threshold range, it is considered that the bandwidth utilization rate of the target virtual port is insufficient, which will cause waste of bandwidth resources. It is necessary to update one or more of the lower limit of the second target peak threshold range, the lower limit of the second target average threshold range, and the bandwidth configuration of the target virtual port.

[0046] When the target time dimension type is the third time dimension, comparing the target bandwidth parameter corresponding to the target time dimension type with the target threshold range includes: obtaining the third target bandwidth peak value, the third target bandwidth average value, the upper limit of the third target peak threshold range, the lower limit of the third target peak threshold range, the upper limit of the third target average threshold range, and the lower limit of the third target average threshold range of the target virtual port corresponding to the third time dimension; comparing the third target bandwidth peak value and the third bandwidth average value corresponding to the third time dimension with the upper limit of the third target peak threshold range and the upper limit of the third target average threshold range respectively; if the third target bandwidth peak value is greater than the upper limit of the third target peak threshold range and / or the third bandwidth average value is greater than the upper limit of the third target average threshold range, it is considered that the service pressure of the target virtual port is high, and it is necessary to update one or more of the upper limit of the third target peak threshold range, the upper limit of the third target average threshold range, and the bandwidth configuration of the target virtual port; comparing the third target bandwidth peak value and the third bandwidth average value corresponding to the third time dimension with the lower limit of the third target peak threshold range and the lower limit of the third target average threshold range respectively; if the third target bandwidth peak value is less than the lower limit of the third target peak threshold range and / or the third bandwidth average value is less than the lower limit of the third target average threshold range, it is considered that the bandwidth utilization rate of the target virtual port is insufficient, and it is necessary to update one or more of the lower limit of the third target peak threshold range, the lower limit of the third target average threshold range, and the bandwidth configuration of the target virtual port.

[0047] The third time dimension can be based on a duration of one month, and it is possible to obtain the monthly peak bandwidth (the third target peak bandwidth), the monthly average bandwidth (the third target average bandwidth), the upper limit of the monthly peak threshold range (the upper limit value of the third target peak threshold range), the lower limit of the monthly peak threshold range (the lower limit value of the third target peak threshold range), the upper limit of the monthly average threshold range (the upper limit value of the third target average threshold range), and the lower limit of the monthly average threshold range (the lower limit value of the third target average threshold range).

[0048] In response to the third target peak bandwidth being greater than the upper limit value of the third target peak threshold range and / or the third bandwidth average being greater than the upper limit value of the third target average threshold range, it is considered that the business pressure on the target virtual port is high, and it is prone to business congestion, resulting in the suspension of business operations. It is necessary to update one or several of the upper limit value of the third target peak threshold range, the upper limit value of the third target average threshold range, and the bandwidth configuration of the target virtual port.

[0049] In response to the third target peak bandwidth being less than the lower limit value of the third target peak threshold range and / or the third bandwidth average being less than the lower limit value of the third target average threshold range, it is considered that the bandwidth utilization rate of the target virtual port is insufficient, which will cause waste of bandwidth resources. It is necessary to update one or several of the lower limit value of the third target peak threshold range, the lower limit value of the third target average threshold range, and the bandwidth configuration of the target virtual port.

[0050] In this application, by providing the judgment of business congestion and insufficient bandwidth utilization of the bandwidth application of the target virtual port under multiple time dimensions, the bandwidth configuration of the virtual port can be adjusted more meticulously, which is beneficial to the stability and reliability of the application bandwidth.

[0051] In this application, it is possible to obtain information such as the target bandwidth parameters and target threshold ranges of the virtual port in different time dimensions by performing real-time monitoring on the target virtual port and generating monitoring logs. Before performing real-time monitoring on the target virtual port, select the save address of the monitoring log of the target virtual port, the storage volume type, and the storage volume capacity. Subsequently, the data obtained by monitoring the target virtual port will be stored in real time in the storage volume corresponding to the save address.

[0052] Step 104: In response to the target bandwidth parameter being less than the lower limit value of the target threshold range, update the lower limit value of the target threshold range and / or reduce the bandwidth configuration of the target virtual port; in response to the target bandwidth parameter being greater than the upper limit value of the target threshold range, update the upper limit value of the target threshold range and / or increase the bandwidth configuration of the target virtual port.

[0053] When the utilization rate of the target virtual port in this application is insufficient, an insufficient utilization rate identifier of the target virtual port including the target bandwidth peak value and the target bandwidth average value will be generated and an exception will be reported to remind the user to adjust and update the bandwidth configuration of the target virtual port, that is, to repair the bandwidth configuration of the target virtual port. And it supports flexibly selecting to update the lower limit value of the target threshold range and / or reducing the bandwidth configuration of the target virtual port to repair the bandwidth configuration of the target virtual port.

[0054] Specifically, in response to the target bandwidth parameter being less than the lower limit value of the target threshold range, an insufficient utilization rate identifier of the target virtual port is generated and an exception is reported. The insufficient utilization rate identifier of the target virtual port includes the target bandwidth peak value and the target bandwidth average value; obtain the lower limit value of the target threshold range, and calculate the first difference between the target bandwidth parameter and the lower limit value of the target threshold range; calculate the first ratio of the first difference to the target bandwidth parameter; multiply the first ratio by the lower limit value of the target threshold range to obtain the updated lower limit value of the target threshold range.

[0055] By calculating the first difference between the target bandwidth parameter and the lower limit value of the target threshold range, the first difference reflects the unutilized bandwidth amount in the target virtual port, and calculate the first ratio of the unutilized bandwidth amount to the target bandwidth parameter, so as to multiply the first ratio by the lower limit value of the target threshold range to obtain the updated lower limit value of the target threshold range.

[0056] Among them, reducing the bandwidth configuration of the target virtual port includes: obtaining the highest actual bandwidth value of the target virtual port and the bandwidth amount corresponding to the lower limit value of the target threshold range; in response to the highest actual bandwidth value of the target virtual port being less than or equal to the bandwidth amount corresponding to the lower limit value of the target threshold range, use the bandwidth amount corresponding to the lower limit value of the target threshold range as the new bandwidth configuration amount of the target virtual port.

[0057] By using the highest actual bandwidth value of the target virtual port in actual application as the loan amount corresponding to the target lower limit value, it can reduce the bandwidth configuration amount of the target virtual port while meeting the actual bandwidth application needs, and maximize the bandwidth utilization rate of the target virtual port.

[0058] After updating the lower limit value of the target threshold range and / or reducing the bandwidth configuration of the target virtual port, it further includes: obtaining the updated lower limit value of the target threshold range; obtaining the target bandwidth average value from the insufficient utilization rate identifier of the target virtual port; in response to the updated lower limit value of the target threshold range being less than the target bandwidth average value, it is considered that the bandwidth configuration repair is completed, and the insufficient utilization rate identifier of the target virtual port is deleted.

[0059] A verification mechanism is also set up in this application. After updating the lower limit value of the target threshold range and / or reducing the bandwidth configuration of the target virtual port, it is possible to determine whether the bandwidth configuration repair is completed by judging whether the updated lower limit value of the target threshold range is less than the target bandwidth average value, which can improve the accuracy of bandwidth repair for the target virtual port.

[0060] When the service pressure of the target virtual port in this application is high, a target virtual port risk identifier including the target bandwidth peak value and the target bandwidth average value will be generated and an exception will be reported to remind the user to adjust and update the bandwidth configuration of the target virtual port, that is, to repair the bandwidth configuration of the target virtual port. And it supports flexible selection of ways to update the upper limit value of the target threshold range and / or increase the bandwidth configuration of the target virtual port to repair the bandwidth configuration of the target virtual port.

[0061] Specifically, in response to the target bandwidth parameter being greater than the upper limit value of the target threshold range, updating the upper limit value of the target threshold range includes: in response to the target bandwidth parameter being greater than the upper limit value of the target threshold range and no abnormal repair mark being detected, generating a target virtual port risk identifier and reporting an exception, where the target virtual port risk identifier includes the target bandwidth peak value and the target bandwidth average value; obtaining the upper limit value of the target threshold range, and taking the absolute value of the difference between the target bandwidth parameter and the upper limit value of the target threshold range as the second difference; calculating the second ratio of the second difference to the target bandwidth parameter; multiplying the second ratio by the upper limit value of the target threshold range to obtain the increased upper limit value difference, and performing an addition operation on the increased upper limit value difference and the upper limit value of the target threshold range to obtain the updated upper limit value of the target threshold range.

[0062] By calculating the absolute value of the difference between the target bandwidth parameter and the upper limit value of the target threshold range as the second difference, the second difference reflects the excess bandwidth amount in the target virtual port, calculating the proportion of the excess bandwidth amount in the target bandwidth parameter, multiplying the second ratio by the upper limit value of the target threshold range to obtain the increased upper limit value difference, and then performing an addition operation on the increased upper limit value difference and the upper limit value of the target threshold range to obtain the updated upper limit value of the target threshold range.

[0063] Increasing the bandwidth configuration of the target virtual port includes: determining whether the virtual port includes a standby port associated with the target virtual port; in response to the virtual port including a standby port associated with the target virtual port, obtaining the total bandwidth of the standby port associated with the target virtual port, and calculating the bandwidth carrying demand that the target virtual port needs to transfer; determining whether the total bandwidth of the standby port associated with the target virtual port meets the requirement of the bandwidth carrying demand that the target virtual port needs to transfer; in response to the total bandwidth of the standby port associated with the target virtual port meeting the requirement of the bandwidth carrying demand that the target virtual port needs to transfer, transferring the bandwidth carrying demand that the target virtual port needs to transfer to the standby port associated with the target virtual port; in response to the total bandwidth of the standby port associated with the target virtual port not meeting the requirement of the bandwidth carrying demand that the target virtual port needs to transfer, calculating the target difference between the bandwidth carrying demand that the target virtual port needs to transfer and the total bandwidth of the standby port associated with the target virtual port; and determining the additional bandwidth of the target virtual port according to the target difference.

[0064] When increasing the bandwidth configuration of the target virtual port, first determine whether there is a standby port associated with the target virtual port. The standby port associated with the target virtual port is a standby port dedicated to sharing the service pressure of the target virtual port.

[0065] If there is a standby port associated with the target virtual port, determine whether the total bandwidth of the standby port associated with the target virtual port can bear the bandwidth carrying demand (excess bandwidth) that the target virtual port needs to transfer. If the total bandwidth of the standby port associated with the target virtual port can bear the excess bandwidth, directly transfer the excess bandwidth to the standby port associated with the target virtual port.

[0066] If the total bandwidth of the standby port associated with the target virtual port cannot bear the bandwidth carrying demand that the target virtual port needs to transfer, first use the standby port associated with the target virtual port to bear part of the bandwidth carrying demand that the target virtual port needs to transfer, and then calculate the target difference between the bandwidth carrying demand that the target virtual port needs to transfer and the total bandwidth of the standby port associated with the target virtual port; determine the additional bandwidth of the target virtual port according to the target difference. Assume that the additional bandwidth is 10G, and 10 sub-bandwidth granularities of 1G can be added to the original total bandwidth of the target virtual port to expand the total bandwidth of the target virtual port.

[0067] If there is no standby port associated with the target virtual port, directly determine the additional bandwidth of the target virtual port based on the excess bandwidth. Assume that the excess bandwidth is 12G, and 12 sub-bandwidth granularities of 1G can be added to the original total bandwidth of the target virtual port to expand the total bandwidth of the target virtual port.

[0068] After updating the upper limit value of the target threshold range and / or increasing the bandwidth configuration of the target virtual port, it further includes: obtaining the updated upper limit value of the target threshold range; obtaining the target bandwidth peak value from the target virtual port risk identifier; in response to the updated upper limit value of the target threshold range being greater than the target bandwidth peak value, it is considered that the bandwidth configuration repair is completed, and the target virtual port risk identifier is deleted.

[0069] By setting that after updating the upper limit value of the target threshold range and / or increasing the bandwidth configuration of the target virtual port, it is possible to determine whether the updated upper limit value of the target threshold range is greater than the target bandwidth peak value to determine whether the bandwidth configuration repair is completed, which can improve the accuracy of bandwidth repair for the target virtual port.

[0070] In practical applications, there are multiple virtual ports corresponding to multiple services. Some of these virtual ports include virtual port risk identifiers, and some virtual ports include virtual port utilization deficiency identifiers. In a feasible implementation manner, it is possible to obtain the total configured bandwidth and the total actual applied bandwidth of the virtual ports corresponding to the virtual port utilization deficiency identifiers, and obtain the total configured bandwidth and the total actual applied bandwidth of the virtual ports corresponding to the virtual port risk identifiers; use the total configured bandwidth as the minuend and the total actual applied bandwidth as the subtrahend for subtraction operation, and use the obtained difference as the bandwidth amount to be allocated. Use the total actual applied bandwidth as the minuend and the total configured bandwidth as the subtrahend for subtraction operation, and use the obtained difference as the required bandwidth amount. In response to the required bandwidth amount being less than or equal to the bandwidth amount to be allocated, reduce the total bandwidth corresponding to multiple sub-bandwidth granularities matching the required bandwidth amount from the virtual ports corresponding to the virtual port utilization deficiency identifiers to obtain the adjusted total bandwidth of the virtual ports corresponding to the virtual port utilization deficiency identifiers. Increase the total bandwidth corresponding to multiple sub-bandwidth granularities matching the required bandwidth amount in the virtual ports corresponding to the virtual port risk identifiers to obtain the total bandwidth of the virtual ports corresponding to the virtual port risk identifiers. Based on the adjusted total bandwidth of the virtual ports corresponding to the utilization deficiency identifiers, re-allocate the total bandwidth of each virtual port corresponding to the virtual port utilization deficiency identifiers; based on the adjusted total bandwidth of the virtual ports corresponding to the virtual port risk identifiers, re-allocate the total bandwidth of each virtual port corresponding to the virtual port risk identifiers; and ensure that the total bandwidth to be allocated for each virtual port meets the requirements of the required bandwidth of each virtual port. In this way, it is possible to more fully plan the total bandwidth of multiple virtual ports corresponding to multiple services and improve the bandwidth utilization rate of the virtual ports corresponding to multiple services.

[0071] To better describe the bandwidth configuration method provided in this application, a specific example is used for illustration: Please refer toFigure 3 First, create a port resource pool for allocating the bandwidth resources of ports. The bandwidth in the port resource pool is the bandwidth of the target physical port. Divide all the bandwidth in the resource pool into 1G-sized granularities, and apply for bandwidth resources from the port resource pool to create virtual ports. For example, if a port bandwidth of 20G is required, apply for multiple sub-bandwidth granules of 20G granularity to create virtual ports.

[0072] After creating the virtual ports, the service type can be configured for the virtual ports, that is, the association between the virtual ports and the service attribute types is established. At the same time, the virtual ports are bound to the service data of the client, and the target threshold range corresponding to the target virtual ports is configured.

[0073] Enable port monitoring to monitor the target virtual ports and obtain monitoring log data. The monitoring log data includes the target bandwidth parameters of the target virtual ports corresponding to the target time dimension type. Store both the monitoring log and the target threshold range in the storage software, which can be a storage volume, to achieve data disk writing.

[0074] Specifically, the bandwidth data of the target virtual ports per second can be recorded in real time. The bandwidth peak and average value of each virtual port within a day can be calculated at 1:00 am every day and stored in the virtual port monitoring volume (daily storage policy). The peak and average values of the virtual ports on a weekly and monthly basis can be calculated at 2:00 am every Wednesday and at 3:00 am on the 15th of each month respectively and stored in the virtual port monitoring volume (weekly and monthly storage policies). The storage software system calculates the bandwidth peak, bandwidth average value, and the error between the configured bandwidth of the virtual ports at 1:00 am every day, 2:00 am every Monday, and 3:00 am on the 15th of each month respectively and stores them in the virtual port monitoring volume. The specific times corresponding to the storage policies here are only examples, and the specific times corresponding to the storage policies in this application are not limited.

[0075] In a specific example, set the daily virtual port bandwidth monitoring and data storage policy, record the real-time bandwidth data, and by default, calculate the average value and the highest peak value of the actual applied bandwidth of each virtual port yesterday at 1:00 am every day. Only retain the peak value and average value of yesterday and delete other real-time data of yesterday. The user can set the calculation time of the daily virtual port bandwidth peak value and average value (from 1 to 24 hours, with a precision of every ten minutes), support setting the storage policy for real-time data, and support storing the real-time virtual port bandwidth data for 1 to 7 days.

[0076] Set the weekly virtual port bandwidth monitoring and data saving policy, record the real-time bandwidth data. By default, at 2:00 am every Wednesday, calculate the average value and the highest peak value of the actual applied bandwidth of each virtual port in the previous week. Only retain the highest peak value and the average value of one week, and delete the peak values and average values of other days in that week. Users can set the calculation time (from Monday to Sunday, accurate to hours and minutes, with a minimum scale of ten minutes) for the weekly virtual port bandwidth peak value and average value, and support setting the saving policy for the weekly bandwidth peak value and average value data, and support saving the weekly virtual port bandwidth data for one to ten weeks. For weekly data across months, it is downward compatible, that is, regarded as data of the first week of the next month.

[0077] Set the monthly virtual port bandwidth monitoring and data saving policy, record the real-time bandwidth data. By default, at 3:00 am on the 15th of each month, calculate the average value and the highest peak value of the actual applied bandwidth of each virtual port in the previous month. Only retain the highest peak value and the average value of one month, and delete the peak values and average values of other weeks in the previous month. Users can set the calculation time (considering the fewer days in February, it can be set from the 1st to the 20th of each month, accurate to hours and minutes, with a minimum scale of ten minutes) for the monthly virtual port bandwidth peak value and average value, and support setting the saving policy for the monthly bandwidth peak value and average value data, and support saving the monthly virtual port bandwidth peak value and average value data for one to twelve months.

[0078] Obtain the capacity of the virtual port save table. That is, when the capacity usage reaches or exceeds the capacity threshold, report that the capacity usage is about to exceed and remind the user to expand the table capacity in time to ensure the saving of virtual port bandwidth data. The capacity threshold can be 80% of the port save table capacity. When the virtual port bandwidth data is first written and fails, automatically initiate a rewrite, and support rewriting a certain number of times. The certain number of times can be 5 times. After 5 failures, report that the virtual port bandwidth data writing fails. And the virtual port bandwidth data of this application supports migrating the data to other data disks for backup and supports real-time dumping.

[0079] Real-time monitor the bandwidth peak value and bandwidth average value of the target virtual port. If the bandwidth peak value exceeds the upper limit of the corresponding threshold range, immediately report the abnormality that the configured bandwidth of the target virtual port is at risk, and remind the user to supplement the bandwidth to prevent the occurrence of a business congestion scenario that causes the actual business to stop running. First, it can be judged whether there is a standby port associated with the target virtual port. The standby port will be enabled to share the business pressure of the target virtual port, and report that the configured bandwidth of the abnormally congested virtual port is insufficient, and the standby port has been temporarily enabled to share the business pressure. Please supplement the bandwidth of the target virtual port in time. When reporting the abnormality that the configured bandwidth of the virtual port is at risk, an abnormal event guide can be set to repair the abnormality by expanding the virtual port bandwidth, and record the peak abnormality repair completion mark on the virtual port monitoring volume for this abnormal record.

[0080] Please refer toFigure 4 Obtain the weekly bandwidth peak, weekly bandwidth average, lower limit of the weekly bandwidth peak threshold range, and lower limit of the average threshold range from the bandwidth data (port bandwidth data) of the target virtual port, and make a comparison. If the weekly bandwidth peak is less than the lower limit of the weekly bandwidth peak threshold range and / or the weekly bandwidth average is less than the lower limit of the average threshold range, pop up a window to remind the user that the bandwidth utilization rate of the weekly bandwidth peak or bandwidth average of the target virtual port is insufficient, and please optimize the bandwidth resource allocation strategy of the virtual port in a timely manner.

[0081] Obtain the upper limit of the weekly bandwidth peak threshold range, upper limit of the average threshold range, weekly bandwidth peak, and weekly bandwidth average from the bandwidth data (port bandwidth data) of the target virtual port, and make a comparison. If the weekly bandwidth peak is greater than the upper limit of the weekly bandwidth peak threshold range and / or the weekly bandwidth average is greater than the upper limit of the average threshold range, immediately report the anomaly that the configured bandwidth of the target virtual port per week is at risk, reminding the user to supplement the bandwidth to prevent business congestion scenarios and prevent the actual business from stopping. When there is an anomaly where the configured bandwidth of the virtual port last week is at risk, the anomaly can be repaired by expanding the virtual port bandwidth under the guidance of the anomaly event, and a peak anomaly repair completion mark is recorded on all the anomaly records of the target virtual port per week in the virtual port monitoring volume.

[0082] Obtain the monthly bandwidth peak, monthly bandwidth average, lower limit of the monthly bandwidth peak threshold range, and lower limit of the average threshold range from the bandwidth data (port bandwidth data) of the target virtual port, and make a comparison. If the monthly bandwidth peak is less than the lower limit of the monthly bandwidth peak threshold range and / or the monthly bandwidth average is less than the lower limit of the monthly average threshold range, pop up a window to remind the user that the bandwidth utilization rate of the monthly bandwidth peak or bandwidth average of the target virtual port is insufficient, and please optimize the bandwidth resource allocation strategy of the virtual port in a timely manner.

[0083] Obtain the upper limit of the monthly bandwidth peak threshold range, upper limit of the average threshold range, monthly bandwidth peak, and monthly bandwidth average from the bandwidth data (port bandwidth data) of the target virtual port, and make a comparison. If the monthly bandwidth peak is greater than the upper limit of the monthly bandwidth peak threshold range and / or the monthly bandwidth average is greater than the upper limit of the average threshold range, immediately report the anomaly that the configured bandwidth of the target virtual port per month is at risk (the scroll bar on the storage software scrolls in real time), reminding the user to supplement the bandwidth to prevent business congestion scenarios and prevent the actual business from stopping. When there is an anomaly where the configured bandwidth of the virtual port last month is at risk, the anomaly can be repaired by expanding the virtual port bandwidth under the guidance of the anomaly event, and a peak anomaly repair completion mark is recorded on all the anomaly records of this port last month in the virtual port monitoring volume.

[0084] Please refer to Figure 5 , it is possible to monitor the peak data A of the virtual port bandwidth in real time and compare it with the upper limit B of the virtual port bandwidth threshold. If it exceeds the bandwidth threshold upper limit, report the insufficient bandwidth and record it in the port report data (mark the insufficient bandwidth). It is possible to query the number C of the current backup attribute ports. If C>0, then modify the backup port to the sharing attribute, bind the virtual port with insufficient bandwidth, and reduce the total number of backup ports by one. If there is still insufficient virtual port bandwidth, the number of backup ports is insufficient, and report the insufficient number of backup ports. Further monitor the peak data M of the bandwidth of the reported port within one hour and the lower limit n of the port bandwidth threshold. If M<n, automatically repair the insufficient bandwidth report of the port and record it in the port report data (cancel the insufficient bandwidth mark). Obtain the number L of associated and sharing attribute ports of the reported port (the standby port of the virtual port dedicated to the reported port). If L>0, then cancel the port association, modify the sharing port data to backup, and reduce the number of associated and sharing attribute ports by one.

[0085] Please refer to Figure 6 , when the virtual port bandwidth is insufficient and reported in real time / daily / weekly / monthly (the target virtual port has high business pressure), manually repair it, support selecting to mark it as corrected, which is applicable when the customer believes that the current situation is special, the configuration is okay, and force the repair report & do not make changes. Support selecting to run the repair strategy to select the repair method, that is, select to modify the upper limit threshold of the virtual port and / or modify the bandwidth of the virtual port. Calculate the new bandwidth upper limit X and compare it with the reported recorded bandwidth peak Y. If X>Y, then the repair is completed; otherwise, prompt that the new bandwidth upper limit is insufficient, please reset it, and go back to running the repair strategy.

[0086] Please refer to Figure 7 , when the virtual port bandwidth utilization rate is insufficient and reported daily / weekly / monthly (the target virtual port has insufficient bandwidth utilization rate, which will cause waste of bandwidth resources), manually repair it, support selecting to mark it as corrected, which is applicable when the customer believes that the current situation is special, the configuration is okay, and force the repair report & do not make changes. Support selecting to run the repair strategy to select the repair method, that is, select to modify the lower limit threshold of the virtual port and / or modify the bandwidth of the virtual port. Calculate the new bandwidth lower limit V and compare it with the reported recorded bandwidth average value W. If V<W, then the repair is completed; otherwise, prompt that the new bandwidth lower limit is insufficient, please reset it, and go back to running the repair strategy.

[0087] In this application, by integrating the bandwidth resources of the target physical port, splitting and determining virtual ports and then binding them, the application service configuration of the bandwidth of all ports in the system is centrally planned. For the monitoring and analysis of the bandwidth of the target virtual port, the congestion and redundancy of the bandwidth application of the target virtual port are judged, and timely adjustment is made to rationally utilize the port bandwidth configuration to ensure high-speed and high-utilization applications. In the face of port damage or network congestion, the service processing is shared in a timely manner to improve the stability and reliability of the application bandwidth.

[0088] An embodiment of this application provides a bandwidth configuration device, and the bandwidth configuration device is specifically as Figure 8 shown. The bandwidth configuration device includes: a creation module 20, an acquisition module 21, a comparison module 22, and a configuration module 23.

[0089] The creation module 20 is used to divide the bandwidth of the target physical port in units of a preset granularity of the bandwidth to obtain a plurality of sub-bandwidth grains, and create virtual ports by using a plurality of sub-bandwidth grains that meet the requirements of the total demand bandwidth. The acquisition module 21 is used to acquire the target bandwidth parameter and the target threshold range of the target virtual port corresponding to the target time dimension type. The comparison module 22 is used to compare the target bandwidth parameter corresponding to the target time dimension type with the target threshold range. The configuration module 23 is used to, in response to the target bandwidth parameter being less than the lower limit value of the target threshold range, update the lower limit value of the target threshold range and / or reduce the bandwidth configuration of the target virtual port; in response to the target bandwidth parameter being greater than the upper limit value of the target threshold range, update the upper limit value of the target threshold range and / or increase the bandwidth configuration of the target virtual port.

[0090] As Figure 9 shown, an embodiment of this application also provides a computer device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any of the above bandwidth configuration method embodiments.

[0091] An embodiment of this application also provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps in any of the above bandwidth configuration method embodiments when running.

[0092] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: USB flash drives, read-only memories (ROM for short), random access memories (RAM for short), mobile hard disks, magnetic disks, or optical discs and other various media that can store computer programs.

[0093] Those skilled in the art may further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be determined to exceed the scope of this application.

[0094] The above has introduced in detail a bandwidth configuration method provided by this application. Specific examples are used herein to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application. It should be noted that for those of ordinary skill in the art in this technical field, without departing from the principle of this application, several improvements and modifications can be made to this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A bandwidth configuration method, characterized in that, The bandwidth configuration method includes: Dividing the bandwidth of the target physical port in units of a preset granularity of the bandwidth to obtain a plurality of sub-bandwidth grains, and creating a virtual port by using a plurality of sub-bandwidth grains that meet the requirements of the total demand bandwidth; Obtaining the target bandwidth parameter and the target threshold range of the target virtual port corresponding to the target time dimension type; Comparing the target bandwidth parameter corresponding to the target time dimension type with the target threshold range; In response to the target bandwidth parameter being less than the lower limit value of the target threshold range, updating the lower limit value of the target threshold range and / or reducing the bandwidth configuration of the target virtual port; in response to the target bandwidth parameter being greater than the upper limit value of the target threshold range, updating the upper limit value of the target threshold range and / or increasing the bandwidth configuration of the target virtual port.

2. The bandwidth configuration method according to claim 1, characterized in that The step of dividing the bandwidth of the target physical port in units of a preset granularity of the bandwidth to obtain a plurality of sub-bandwidth grains, and creating a virtual port by using a plurality of sub-bandwidth grains that meet the requirements of the total demand bandwidth includes: Obtaining the bandwidth of the target physical port, and dividing the bandwidth of the target physical port in units of a preset granularity of the bandwidth to obtain a plurality of sub-bandwidth grains; Selecting a plurality of sub-bandwidth grains corresponding to the total bandwidth that matches the total demand bandwidth to create a virtual port.

3. The bandwidth configuration method according to claim 1, wherein The target bandwidth parameter includes a target bandwidth peak value and a target bandwidth average value. The step of obtaining the target bandwidth parameter of the target virtual port corresponding to the target time dimension type includes: Obtaining the service type of the virtual port, where the service type includes an operational virtual port, a standby virtual port, and a fault-tolerant virtual port; Regarding the virtual port with the service type of the operational virtual port as the target virtual port; Performing a subtraction operation with the highest bandwidth value of the target virtual port in the target time dimension as the minuend and the lowest bandwidth value of the target virtual port in the target time dimension as the subtrahend to obtain a bandwidth difference, and the bandwidth difference is the target bandwidth peak value of the target virtual port in the target time dimension; Performing a division operation with the sum of the bandwidth values of the target virtual port in the target time dimension as the dividend and the total number of bandwidth values participating in the sum calculation of the bandwidth values as the divisor to obtain the target bandwidth average value of the target virtual port in the target time dimension.

4. The bandwidth configuration method according to claim 1, characterized in that The bandwidth configuration method further includes: obtaining the target threshold range, and the step of obtaining the target threshold range includes: Selecting the historical threshold range of the historical virtual port that matches the target time dimension type, the target total demand bandwidth, the target bandwidth peak value, and the target bandwidth average value of the target virtual port; Obtaining the bandwidth configuration plan corresponding to the historical threshold range within a preset time range and the service failure rate after adjustment based on the historical threshold range; the bandwidth configuration plan includes the number of adjustments of the historical threshold range after adjustment using the historical threshold range and the cost of updating the bandwidth configuration of the historical virtual port; Regarding the bandwidth configuration plan that meets the preset requirements and the historical threshold range of the service failure rate as the target threshold range.

5. The bandwidth configuration method according to claim 1, wherein The target time dimension type includes a first time dimension. The step of comparing the target bandwidth parameter corresponding to the target time dimension type with the target threshold range includes: Obtain the first target bandwidth peak value of the target virtual port corresponding to the first time dimension and the upper limit value of the first target peak threshold range; Compare the first target bandwidth peak value corresponding to the first time dimension with the upper limit value of the first target peak threshold range; In response to the first target bandwidth peak value being greater than the upper limit value of the first target peak threshold range, it is considered that the service pressure of the target virtual port is high, and it is necessary to update the upper limit value of the first target peak threshold range and / or the bandwidth configuration of the target virtual port.

6. The bandwidth configuration method according to claim 1, wherein The target time dimension type includes a second time dimension. The comparison of the target bandwidth parameter corresponding to the target time dimension type with the target threshold range includes: Obtain the second target bandwidth peak value, the second target bandwidth average value, the upper limit value of the second target peak threshold range, the lower limit value of the second target peak threshold range, the upper limit value of the second target average value threshold range, and the lower limit value of the second target average value threshold range of the target virtual port corresponding to the second time dimension; Compare the second target bandwidth peak value and the second bandwidth average value corresponding to the second time dimension with the upper limit value of the second target peak threshold range and the upper limit value of the second target average value threshold range respectively; In response to the second target bandwidth peak value being greater than the upper limit value of the second target peak threshold range and / or the second bandwidth average value being greater than the upper limit value of the second target average value threshold range, it is considered that the service pressure of the target virtual port is high, and it is necessary to update one or more of the upper limit value of the second target peak threshold range, the upper limit value of the second target average value threshold range, and the bandwidth configuration of the target virtual port; Compare the second target bandwidth peak value and the second bandwidth average value corresponding to the second time dimension with the lower limit value of the second target peak threshold range and the lower limit value of the second target average value threshold range respectively; In response to the second target bandwidth peak value being less than the lower limit value of the second target peak threshold range and / or the second bandwidth average value being less than the lower limit value of the second target average value threshold range, it is considered that the bandwidth utilization rate of the target virtual port is insufficient, and it is necessary to update one or more of the lower limit value of the second target peak threshold range, the lower limit value of the second target average value threshold range, and the bandwidth configuration of the target virtual port.

7. The bandwidth configuration method according to claim 1, wherein The time dimension type includes a third time dimension. The comparison of the target bandwidth parameter corresponding to the target time dimension type with the target threshold range includes: Obtain the third target bandwidth peak value, the third target bandwidth average value, the upper limit value of the third target peak threshold range, the lower limit value of the third target peak threshold range, the upper limit value of the third target average value threshold range, and the lower limit value of the third target average value threshold range of the target virtual port corresponding to the third time dimension; Compare the third target bandwidth peak value and the third bandwidth average value corresponding to the third time dimension with the upper limit value of the third target peak threshold range and the upper limit value of the third target average value threshold range respectively; If the third target bandwidth peak value is greater than the upper limit of the third target peak threshold range and / or the third bandwidth average value is greater than the upper limit of the third target average threshold range, it is considered that the service pressure of the target virtual port is high, and one or more of the upper limit of the third target peak threshold range, the upper limit of the third target average threshold range, and the bandwidth configuration of the target virtual port need to be updated; Compare the third target bandwidth peak value and the third bandwidth average value corresponding to the third time dimension with the lower limit of the third target peak threshold range and the lower limit of the third target average threshold range respectively; If the third target bandwidth peak value is less than the lower limit of the third target peak threshold range and / or the third bandwidth average value is less than the lower limit of the third target average threshold range, it is considered that the bandwidth utilization rate of the target virtual port is insufficient, and one or more of the lower limit of the third target peak threshold range, the lower limit of the third target average threshold range, and the bandwidth configuration of the target virtual port need to be updated.

8. The bandwidth configuration method according to claim 1, wherein The updating the lower limit of the target threshold range in response to the target bandwidth parameter being less than the lower limit of the target threshold range includes: In response to the target bandwidth parameter being less than the lower limit of the target threshold range, generate an insufficient utilization rate identifier for the target virtual port and report an exception. The insufficient utilization rate identifier for the target virtual port includes the target bandwidth peak value and the target bandwidth average value; Obtain the lower limit of the target threshold range, and calculate the first difference between the target bandwidth parameter and the lower limit of the target threshold range; Calculate the first ratio of the first difference to the target bandwidth parameter; Multiply the first ratio by the lower limit of the target threshold range to obtain the updated lower limit of the target threshold range.

9. The bandwidth configuration method according to claim 1, wherein The reducing the bandwidth configuration of the target virtual port includes: Obtain the highest actual bandwidth value of the target virtual port and the bandwidth amount corresponding to the lower limit of the target threshold range; In response to the highest actual bandwidth value of the target virtual port being less than or equal to the bandwidth amount corresponding to the lower limit of the target threshold range, use the bandwidth amount corresponding to the lower limit of the target threshold range as the new bandwidth configuration amount of the target virtual port.

10. The bandwidth configuration method according to claim 1, wherein The updating the upper limit of the target threshold range in response to the target bandwidth parameter being greater than the upper limit of the target threshold range includes: In response to the target bandwidth parameter being greater than the upper limit of the target threshold range and no abnormal repair mark is detected, generate a risk identifier for the target virtual port and report an exception. The risk identifier for the target virtual port includes the target bandwidth peak value and the target bandwidth average value; Obtain the upper limit of the target threshold range, and take the absolute value of the difference between the target bandwidth parameter and the upper limit of the target threshold range as the second difference; Calculate the second ratio of the second difference to the target bandwidth parameter; Multiply the second ratio by the upper limit of the target threshold range to obtain the increased upper limit difference, and perform an addition operation on the increased upper limit difference and the upper limit of the target threshold range to obtain the updated upper limit of the target threshold range.

11. The bandwidth configuration method according to claim 1, characterized in that The increasing the bandwidth configuration of the target virtual port includes: Determine whether the virtual port includes a standby port associated with the target virtual port; In response to the standby port associated with the target virtual port being included in the virtual port, obtain the total bandwidth of the standby port associated with the target virtual port, and calculate the bandwidth carrying demand that the target virtual port needs to transfer; Determine whether the total bandwidth of the standby port associated with the target virtual port meets the requirement of the bandwidth carrying demand that the target virtual port needs to transfer; In response to the total bandwidth of the standby port associated with the target virtual port meeting the requirement of the bandwidth carrying demand that the target virtual port needs to transfer, transfer the bandwidth carrying demand that the target virtual port needs to transfer to the standby port associated with the target virtual port; In response to the total bandwidth of the standby port associated with the target virtual port not meeting the requirement of the bandwidth carrying demand that the target virtual port needs to transfer, calculate the target difference between the bandwidth carrying demand that the target virtual port needs to transfer and the total bandwidth of the standby port associated with the target virtual port; Determine the additional bandwidth of the target virtual port according to the target difference.

12. The bandwidth configuration method according to claim 1, wherein After the step of updating the lower limit value of the target threshold range and / or reducing the bandwidth configuration of the target virtual port in response to the target bandwidth parameter being less than the lower limit value of the target threshold range, further includes: Obtain the updated lower limit value of the target threshold range; Obtain the target bandwidth average value from the target virtual port utilization insufficient identifier; In response to the updated lower limit value of the target threshold range being less than the target bandwidth average value, it is considered that the bandwidth configuration repair is completed, and the target virtual port utilization insufficient identifier is deleted.

13. The bandwidth configuration method according to claim 1, characterized in that After the step of updating the upper limit value of the target threshold range and / or increasing the bandwidth configuration of the target virtual port in response to the target bandwidth parameter being greater than the upper limit value of the target threshold range, further includes: Obtain the updated upper limit value of the target threshold range; Obtain the target bandwidth peak value from the target virtual port risk identifier; In response to the updated upper limit value of the target threshold range being greater than the target bandwidth peak value, it is considered that the bandwidth configuration repair is completed, and the target virtual port risk identifier is deleted.

14. A computer device, characterized in that, Includes: A memory for storing a computer program; A processor for implementing the steps of the bandwidth configuration method according to any one of claims 1 to 13 when executing the computer program.

15. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of the bandwidth configuration method according to any one of claims 1 to 13 when executed by a processor.

16. A computer program product, comprising a computer program, characterized in that, The computer program implements the steps of the bandwidth configuration method according to any one of claims 1 to 13 when executed by a processor.

Citation Information

Patent Citations

  • A link aggregation method and device

    CN101217528A

  • Method and device for realizing network bandwidth priority in virtualized switch

    CN109286582A

  • Bandwidth adjustment method and device, communication equipment and computer readable storage medium

    CN110858986A

  • Hierarchical queue shaping

    US20070153697A1