Network resource management method and device, storage medium and program product

By analyzing the data center's user growth records and network port idle status, the network card demand value was accurately calculated, solving the problem of uneven investment in network resources and realizing the reasonable increase and efficient utilization of network resources.

CN119996205BActive Publication Date: 2025-11-18CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411981104.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-11-18
Estimated Expiration
2044-12-30

AI Technical Summary

Technical Problem

The current technology suffers from uneven investment in network resources in data centers across different regions, resulting in either over- or under-investment, which fails to meet users' bandwidth upgrade needs.

Method used

By analyzing the periodic growth records of a certain type of user in the computer room, the predicted growth amount is calculated. Combined with the number of idle network ports, the network card demand value is accurately calculated, thereby determining the increase in network resources.

Benefits of technology

It enables precise allocation of network resources, avoids resource waste and shortage, and improves the utilization efficiency of network resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119996205B_ABST
    Figure CN119996205B_ABST
Patent Text Reader

Abstract

The application discloses a network resource management method and device, a storage medium and a program product. The network resource management method comprises the following steps: acquiring a predicted growth amount of a first type of users in a next period according to a periodical growth record of the first type of users in a computer room, wherein the first type of users refer to users using a first network port; calculating a network card demand value of the computer room according to the predicted growth amount and an idle number of the first network port in the current period, wherein a set number of first network ports are arranged on the network card; calculating an overall network card demand value of a target region according to the network card demand values of the computer rooms in the target region; and calculating a network resource increase amount of the target region according to the overall network card demand value. The technical scheme realizes reasonable increase of network resources in each region.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of network resource management, and specifically relates to a method, device, storage medium, and program product for managing network resources. Background Technology

[0002] With the development and progress of the times, broadband internet users have become widespread. However, with the development of computer technology, users' bandwidth requirements are increasing. Faced with the ever-growing bandwidth demands of users, network resource companies need to upgrade and expand network resources in their old network data centers.

[0003] However, due to the different locations of data centers and varying user demands, there are frequent instances of over-investment in network resources, leading to a surplus of network resources. Conversely, there may be instances of under-investment in network resources, resulting in insufficient bandwidth upgrades to meet user needs even after the initial investment.

[0004] Therefore, how to reasonably increase network resources in various regions is a technical problem that urgently needs to be solved. Summary of the Invention

[0005] The purpose of this application is to reasonably increase network resources in various regions.

[0006] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.

[0007] According to one aspect of the embodiments of this application, a method for managing network resources is provided, the method comprising:

[0008] Based on the periodic growth records of a type of user in the computer room, the predicted growth of the type of user in the next period is obtained. The type of user refers to the user using the first network port.

[0009] Based on the predicted growth and the number of idle first network ports in this period, the network card demand value of the computer room is calculated, and the network card is equipped with a set number of first network ports;

[0010] Calculate the overall network interface card (NIC) requirement for the target region based on the NIC requirements of each of the aforementioned computer rooms within the target region;

[0011] Calculate the increase in network resources for the target region based on the overall network interface card (NIC) requirement.

[0012] According to one aspect of the embodiments of this application, obtaining the predicted growth amount of a certain type of user in the next period based on the periodic growth record of a certain type of user in the computer room includes:

[0013] The predicted growth amount is calculated using the following formula:

[0014] Y t =μ1Y t-1 +μ2Y n-1

[0015] Among them, Y t This refers to the predicted growth amount, Y t-1 This refers to the growth amount in this cycle, Y n-1 μ1 refers to the growth rate of the previous adjacent large cycle, μ2 refers to the growth coefficient of the adjacent cycle, and the large cycle consists of multiple cycles.

[0016] According to one aspect of the embodiments of this application, the network interface card (NIC) requirement value of the data center is calculated based on the predicted growth amount and the number of idle network ports in the current period, including:

[0017] Based on the predicted growth and the usage ratio of the second network port among the two types of users, the number of replacement users in the predicted growth is calculated. The replacement users refer to users who replace the second network port with the first network port. The bandwidth of the first type of users reaches the set standard, and the second type of users refer to users whose bandwidth does not reach the set standard.

[0018] Based on the number of users and the number of second network ports, calculate the replacement quantity of the second network ports in the next cycle, which will be used as the first network port demand of the data center in the next cycle.

[0019] The network card requirement for the computer room is calculated based on the demand for the first network port and the idle capacity of the first network port in this period.

[0020] According to one aspect of the embodiments of this application, the number of replacement users in the predicted growth is calculated based on the predicted growth amount and the usage ratio of the second network port among the two types of users, including:

[0021] The ratio of the number of second network ports used to the number of the two types of users in this period is used as the target ratio.

[0022] The product of the predicted growth and the target ratio is rounded down to the nearest integer, which is the number of replacement users.

[0023] According to one aspect of the embodiments of this application, calculating the second network port replacement quantity for the next cycle based on the number of replacement users and the number of second network ports includes:

[0024] Based on the number of replacement users and the minimum number of service users for the first network port, calculate the maximum number of replacements for the second network port, and obtain the number of replacementable second network ports in the computer room.

[0025] The smaller of the maximum number of replacements and the number of replaceables is used as the second network port replacement quantity for the next cycle.

[0026] According to one aspect of the embodiments of this application, calculating the network interface card (NIC) requirement value of the computer room based on the first network port requirement includes:

[0027] The difference between the demand for the first network port in the next cycle and the idle capacity of the first network port in the current cycle will be used as the target difference.

[0028] If the target difference is greater than or equal to zero, the network card requirement of the computer room is calculated based on the ratio of the target difference to the preset number of network card ports.

[0029] If the target difference is less than zero, then the network card requirement for the computer room is zero.

[0030] According to one aspect of the embodiments of this application, the method further includes:

[0031] If the target difference is less than zero, the first initial demand value for network cards in the data center for the next cycle is calculated based on the ratio of the target difference to the number of network card ports, and the opposite of the number of completely idle network cards in the data center for this cycle is used as the second initial demand value for network cards.

[0032] The larger of the first initial requirement value and the second initial requirement value of the network card is taken as the network card requirement value of the computer room.

[0033] According to one aspect of the embodiments of this application, this application provides a network resource management apparatus, including a memory, a processor, and a readable program stored in the memory, wherein the processor executes the readable program to implement the method described in any of the above-mentioned embodiments.

[0034] According to one aspect of the embodiments of this application, a readable storage medium is provided, on which a readable program / instruction is stored, which, when executed by a processor, implements the method described in any of the preceding claims.

[0035] According to one aspect of the embodiments of this application, a program product is provided, including a readable program / instruction that, when executed by a processor, implements the method described in any of the preceding claims.

[0036] In the technical solution provided in this application embodiment, firstly, based on the periodic growth record of a type of user in the computer room, the predicted growth amount of that type of user in the next period is obtained. A type of user refers to those using a first network port. Based on the predicted growth amount and the number of idle first network ports in the current period, the network card demand value of the computer room is calculated, and a predetermined number of first network ports are set on the network cards. Based on the network card demand values ​​of each computer room in the target region, the overall network card demand value of the target region is calculated. Based on the overall network card demand value, the increase in network resources in the target region is calculated. Based on the overall network card demand value in the target region, the increase in network resources in the target region can be accurately calculated. Precise network resource allocation in the target region is achieved based on the overall network card demand value. This avoids resource waste and prevents a lack of network resources due to a small increase in network resources.

[0037] Other features and advantages of this application will become apparent from the following detailed description, or may be learned in part from practice of this application.

[0038] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description

[0039] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application. It is obvious that the drawings described below are merely some embodiments of this application, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0040] Figure 1 A flowchart illustrating a method for managing network resources according to an embodiment of this application is shown.

[0041] Figure 2 A flowchart illustrating the network card demand value of a computer room based on the predicted growth rate and the number of idle network ports in the current period, according to one embodiment of this application, is shown.

[0042] Figure 3 A flowchart illustrating the calculation of the number of replacement users in the predicted growth based on the predicted growth and the usage ratio of the second network port among the two types of users, according to one embodiment of this application, is shown.

[0043] Figure 4 A flowchart illustrating the calculation of the second network port replacement quantity for the next cycle based on the number of replacement users and the number of second network ports, according to one embodiment of the application, is shown.

[0044] Figure 5A flowchart illustrating the network card demand value of a computer room based on the demand of a first network port and the idle capacity of the first network port in the current period, according to one embodiment of this application, is shown.

[0045] Figure 6 A flowchart illustrating the calculation of the network card requirement value if the target difference is less than zero, according to one embodiment of this application, is shown.

[0046] Figure 7 A computer system architecture block diagram is shown for implementing a method for managing network resources according to an embodiment of this application. Detailed Implementation

[0047] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this application more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art.

[0048] Furthermore, the described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. Numerous specific details are provided in the following description to give a thorough understanding of embodiments of this application. However, those skilled in the art will recognize that the technical solutions of this application can be practiced without one or more of the specific details, or other methods, components, apparatuses, steps, etc., can be employed. In other instances, well-known methods, apparatuses, implementations, or operations are not shown or described in detail to avoid obscuring various aspects of this application.

[0049] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0050] The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily have to be performed in the described order. For example, some operations / steps can be broken down, while others can be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0051] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0052] Please see Figure 1 , Figure 1 A flowchart illustrating a method for managing network resources according to an embodiment of this application is shown. This application provides a method for managing network resources, comprising the following steps:

[0053] Step S110: Based on the periodic growth record of a type of user in the computer room, obtain the predicted growth amount of a type of user in the next period. A type of user refers to a user using the first network port.

[0054] Step S120: Based on the predicted growth and the number of idle first network ports in this period, the network card demand value of the computer room, and the network cards are equipped with a set number of first network ports.

[0055] Step S130: Calculate the overall network card requirement of the target region based on the network card requirement of each computer room in the target region.

[0056] Step S140: Calculate the increase in network resources for the target region based on the overall network card demand value.

[0057] The above four steps are described in detail below.

[0058] It should be clarified beforehand that, in this embodiment of the application, the method for managing network resources takes a target area as an example. The target area includes at least one computer room.

[0059] In step S110, for any data center in the target area, the predicted growth rate of a certain type of user in the next period is calculated based on the periodic growth records of that user group within the data center. It should be clarified that the periodic growth records refer to the growth records of that user group across various periods. A period is a unit of time, which can be a week, a month, a year, etc. It should be further clarified that a certain type of user refers to users using the first network port.

[0060] In some embodiments, a large cycle includes multiple cycles. For example, a year may be a cycle and ten years may be a large cycle. Or a month may be a cycle and a year may be a large cycle.

[0061] In some embodiments, a cycle refers to one month.

[0062] Based on the periodic growth records of users in the data center, predict the expected growth of user type 1 in the next period.

[0063] In some embodiments, the predicted growth is calculated using the following formula.

[0064] Y t =μ1Y t-1 +μ2Y n-1

[0065] Among them, Y t This refers to the predicted growth rate, Y. t-1 This refers to the growth amount in this cycle, Y n-1 It refers to the same-period growth of the previous adjacent large cycle. μ1 refers to the growth coefficient of the adjacent cycle, and μ2 refers to the same-period growth coefficient of the adjacent large cycle. The large cycle is composed of multiple cycles.

[0066] In some embodiments, μ1 = AVG(R t-1 R t-2 R t-3 ), μ2=AVG(R n-1 R n-2 R n-3 Where AVG represents the mean, R t-x =(Y t-x -Y t-(x+1) ) / Y t-(x+1) Quantity; R n-y =(Y n-y -Y n-(y+1) ) / Y n-(y+1) (t-1) represents the current period, and (t-2) represents the previous period. (tx) represents the previous (x-1) periods of the current period, and t-(x+1) represents the previous x periods of the current period. If (x-1) = 0, then it indicates that it is the current period.

[0067] Y t-x This represents the growth amount in the previous (x-1) cycle. Y t-(x+1) This represents the growth amount of the previous x-cycle in this cycle.

[0068] (n-1) represents the same period within the larger cycle, i.e., the current cycle itself. (n-2) represents the same period within the previous larger cycle. If the cycle unit is a month and the larger cycle unit is a year, then the same period within the previous larger cycle would be March of last year. (ny) represents the same period within the previous (y-1) larger cycles, and n-(y+1) represents the same period within the previous y larger cycles. If (y-1) = 0, then it indicates the current cycle within the current larger cycle.

[0069] Y n-yThis represents the user growth during the same period of the previous (y-1) major cycle. n-(y+1) This represents the user growth during the same period of the previous y major cycles.

[0070] It should be noted that both x and y are positive integers.

[0071] In step S120, the number of idle first network ports in the data center for the current period is counted. The idle first network ports in the current period can be used by new users in the next period. Based on the predicted growth and the number of idle first network ports in the current period, the network card demand value of the data center in the next period is calculated.

[0072] Specifically, based on the predicted growth and the number of idle first network ports in the current cycle, it can be determined whether the data center will need to add new first network ports in the next cycle, or whether there will be surplus first network ports. If needed, the ratio of the number of new first network ports needed to the number of first network ports configured on each network card is used as the network card demand value. If there are surplus ports, the ratio of the negative of the surplus number to the number of first network ports on each network card is used as the network card demand value. The network card demand value can be positive or negative. A positive network card demand value indicates that the data center needs to install new network cards. A negative network card demand value indicates that there are still network cards remaining in the data center that can be recycled by other data centers.

[0073] It should be clarified that the network ports are located on the network interface card (NIC), and each NIC has a set number of network ports. In this embodiment, each NIC has a set number of first network ports.

[0074] If the network card requirement value is a decimal, it is rounded up. That is, if the network card requirement value is a decimal, the nearest integer that is larger than itself is taken as the new network card requirement value.

[0075] Please see Figure 2 , Figure 2 A flowchart illustrating the network interface card (NIC) demand value for a computer room based on the predicted growth rate and the number of idle first network ports in the current period, according to an embodiment of this application, is shown. The embodiment of this application provides step S120 for determining the NIC demand value for a computer room based on the predicted growth rate and the number of idle first network ports in the current period, including:

[0076] Step S121: Based on the predicted growth and the usage ratio of the second network port among the two types of users, calculate the number of replacement users in the predicted growth. Replacement users refer to users who replace the second network port with the first network port. The bandwidth of the first type of users reaches the set standard, and the bandwidth of the second type of users refers to users whose bandwidth does not reach the set standard.

[0077] Step S122: Calculate the replacement quantity of the second network port in the next cycle based on the number of replacement users and the number of second network ports, and use it as the first network port demand of the data center in the next cycle.

[0078] Step S123: Determine the network card demand value for the computer room based on the demand of the first network port and the idle capacity of the first network port in this period.

[0079] The above three steps are described in detail below.

[0080] In step S121, based on the predicted growth amount and the usage ratio of the second network port among the two types of users, the number of replacement users in the predicted growth amount is calculated. Replacement users refer to users who replace the second network port with the first network port and whose bandwidth reaches the set standard. The bandwidth of the first network port is greater than that of the second network port.

[0081] It should be clarified that, in some embodiments, one type of user refers to users who use the first network interface and whose bandwidth meets the set standard, while the other type of user refers to users whose bandwidth is less than the set standard. That is, the second type of user also includes those who use the first network interface but whose bandwidth is less than the set standard.

[0082] In some embodiments, the first network port refers to a gigabit network port, and the second network port refers to a network port with a bandwidth less than that of the first network port.

[0083] Please see Figure 3 , Figure 3 A flowchart illustrating the calculation of the number of replacement users in the predicted growth based on the predicted growth and the usage ratio of the second network port among the two types of users, according to an embodiment of this application, is shown. This embodiment provides step S121, which includes:

[0084] Step S201: Obtain the ratio of the number of second network ports used to the number of second-class users in this period as the target ratio;

[0085] Step S202: The product of the predicted growth and the target ratio is rounded down to the nearest integer and used as the number of replacement users.

[0086] The two steps described above are described in detail below.

[0087] In step S201, it is important to clarify that there are two types of users: one type is users who use the first network port and whose bandwidth meets the set standard; the other type is users whose bandwidth does not meet the set standard. A user's bandwidth is determined by two factors: the network port used (only by using the first network port can a user's bandwidth meet the set standard), and the network service used by the user.

[0088] Therefore, there are two types of users in this category. First, there are users who originally used the second network port and switched to the first network port, upgrading their bandwidth to the set standard. Because these users needed to switch from the second to the first network port, they are called "switched users." Second, there are users who originally used the first network port. Because their bandwidth service was lower-level, their overall bandwidth was also lower, so they only needed a service upgrade. These second-type users can become first-type users without switching ports; they are called "upgraded users."

[0089] The predicted growth in new users includes upgrade users and replacement users. Since we only need to provide the first network port to replacement users, we need to calculate the number of replacement users to determine the total number of replacement users.

[0090] The target ratio is the ratio of the number of users using the second network port to the number of Category II users during the current period. In other words, it represents the percentage of the computer room's current second network port usage among all Category II users, and this percentage is used as the target ratio. This calculates the percentage of users using the second network port among all Category II users, so replacing users among new users will also approximate this percentage.

[0091] In step S202, the product of the predicted growth rate and the target ratio is rounded down to determine the number of users to be replaced. This is used to determine the number of second network ports that need to be replaced with first network ports in the next cycle.

[0092] In this embodiment, by further calculating the number of new users in this way, the number of users who need to have their second network port replaced by the first network port in the next cycle can be accurately determined. This makes the demand for the first network port by new users in the next cycle more accurate, further ensuring accurate calculation of the increase in network resources in the target area.

[0093] In step S122, the replacement quantity of the second network port for the next period is calculated based on the number of users to be replaced and the number of second network ports. In some embodiments, the number of Class II ports that can be replaced in the data center is directly counted as the number of second network ports. The number of users to be replaced is necessarily less than the number of second network ports, because the users to be replaced are already users of the second network ports. Even if all users of the second network ports were to switch to the first network ports, the number of users to be replaced would still be the same as the number of second network ports. Based on the number of users to be replaced, the number of second network ports in the user's data center that need to be replaced with first network ports is calculated, which is the replacement quantity of the second network ports. Because port replacement requires removing the original second network ports and installing first network ports, the replacement quantity of the second network ports is the same as the demand for the first network ports. The replacement quantity of the second network ports is directly used as the demand for the first network ports for the next period.

[0094] Please see Figure 4 , Figure 4 A flowchart illustrating the calculation of the second network port replacement quantity for the next cycle based on the number of replaced users and the number of second network ports, according to one embodiment of the application, is shown. This application embodiment provides step S122 for calculating the second network port replacement quantity for the next cycle based on the number of replaced users and the number of second network ports, including:

[0095] Step S301: Based on the number of replacement users and the minimum number of service users of the first network port, calculate the maximum number of replacements for the second network port, and obtain the number of replacementable second network ports in the computer room.

[0096] Step S302: The smaller of the maximum number of replacements and the number of replaceables is used as the replacement quantity of the second network port in the next cycle.

[0097] The two steps described above are described in detail below.

[0098] In step S301, the maximum number of replacement users for the second network port is calculated based on the number of replacement users and the minimum number of users served by the first network port. The minimum number of users served by the first network port refers to the minimum number of users that each first network port must connect to in order to fully utilize the first network interface. Therefore, even if the second network port is replaced by the first network port, each network port must connect to at least a certain number of users, i.e., the minimum number of users served. In some embodiments, the minimum number of users served by the first network port is 4. It should be noted that each first network port can provide network services to a maximum of a preset number of users. For example, the first network port can connect to a maximum of 8 or 16 users. There is no specific limit to the number of users connected here; different numbers of users can be accommodated depending on technical support.

[0099] The ratio between the number of users to be replaced and the minimum number of users served by the first network port is taken as the maximum demand for the first network port. Since installing one first network port means replacing one second network port, the maximum demand for the first network port is equal to the maximum number of second network ports that need to be replaced to meet the user replacement needs. If the ratio between the number of users to be replaced and the minimum number of users served by the first network port is not an integer, it is rounded up to the nearest integer as the maximum replacement amount for the second network port.

[0100] It needs to be clarified that the maximum number of second network ports that can be replaced refers to the maximum number of second network ports that can be replaced within the data center, based on the full utilization of existing network ports. At the same time, the total number of second network ports that can be replaced within the data center should be statistically analyzed.

[0101] In step S302, the maximum replacement quantity of the second network port is compared with the available replacement quantity of the second network port. If the maximum replacement quantity of the second network port is smaller, it means that the computer room can meet the replacement requirements of this number of second network ports. Therefore, the maximum replacement quantity of the second network port is used as the replacement quantity of the second network port in the next cycle.

[0102] If the number of available replacement second network ports is limited, it means that the data center can only replace a maximum number of second network ports. Therefore, the number of available replacement second network ports is used as the replacement quantity for the next cycle to upgrade all second network ports in the data center. This satisfies all users who need replacement, while also replacing the first network ports for all users who haven't upgraded, thus laying the hardware groundwork for bandwidth upgrades for those users.

[0103] In step S123, based on the demand for the first network port in the next cycle and the number of idle first network ports in the data center in the current cycle, the idle first network ports in the data center in the current cycle can be used by new users in the next cycle. Therefore, the network card demand value can be calculated based on the demand for the first network port in the next cycle and the number of idle first network ports in the data center in the current cycle.

[0104] First, it needs to be clarified that the "first network port demand" mentioned above refers to the demand for the first network port from users in the next replacement cycle. The "network card demand" refers to how many network cards will be needed in the data center after all the first network ports have been used.

[0105] Specifically, based on the demand for the first network port in the next cycle and the idle capacity of the first network port in the current cycle, it can be determined whether the data center needs to add new first network ports or has existing first network ports in the next cycle. If new first network ports are needed, the ratio of the number of new first network ports needed to the number of first network ports on the network cards is used as the network card demand value. If there are remaining ports, the ratio of the opposite of the remaining number to the number of first network ports on the network cards is used as the network card demand value. If the network card demand value is a decimal, it is rounded up. That is, if the network card demand value is a decimal, the nearest integer that is larger than itself is used as the new network card demand value.

[0106] Please see Figure 5 , Figure 5 A flowchart illustrating the network card demand value of a computer room based on the demand of a first network port and the idle capacity of the first network port in the current period, according to an embodiment of this application, is shown. This embodiment provides step S123 for determining the network card demand value of a computer room based on the demand of the first network port and the idle capacity of the first network port in the current period, including:

[0107] Step S401: The difference between the demand for the first network port in the next cycle and the idle capacity of the first network port in the current cycle is taken as the target difference.

[0108] Step S402: If the target difference is greater than or equal to zero, then the network card requirement value of the computer room is determined based on the ratio of the target difference to the preset number of network card ports.

[0109] Step S403: If the target difference is less than zero, then the network card requirement value of the computer room is zero.

[0110] The above three steps are described in detail below.

[0111] In step S401, the difference between the demand for the first network port in the next cycle and the idle capacity of the first network port in the current cycle is taken as the target difference.

[0112] In step S402, if the target difference is greater than or equal to zero, it indicates that the first network port is insufficient for the next cycle. Then, the network card requirement for the computer room is determined based on the ratio of the target difference to the preset number of network card ports. If the ratio of the target difference to the preset number of network card ports is a decimal, it is rounded up. That is, the integer value that has the smallest difference from the target difference and is greater than the target difference is taken as the new ratio.

[0113] In step S403, if the target difference is less than zero, that is, the first network port that is idle in this cycle will not be fully used by the replacement users in the next cycle, so the network card demand value of the computer room is zero.

[0114] Please see Figure 6 , Figure 6A flowchart illustrating the calculation of network interface card (NIC) requirement values ​​according to an embodiment of this application is provided. The embodiment of this application provides steps for calculating NIC requirement values ​​if the target difference is less than zero, including:

[0115] Step S501: If the target difference is less than zero, calculate the first initial demand value of network cards in the data center for the next cycle based on the ratio of the target difference to the number of network card ports, and take the opposite of the number of completely idle network cards in the data center for the current cycle as the second initial demand value of network cards.

[0116] Step S502: Take the larger of the first initial requirement value and the second initial requirement value of the network card as the network card requirement value of the computer room.

[0117] The two steps described above are described in detail below.

[0118] In step S501, if the target difference is less than zero, it means that there will be some network cards remaining after the replacement users finish using them in the next cycle. At this time, it is necessary to count how many network cards can be removed and used in other data centers to make full use of the network cards.

[0119] Calculate the initial network card requirement for the data center in the next cycle based on the ratio of the target difference to the number of network card ports. If the ratio is a decimal, round it up. Alternatively, take the integer closest to and greater than itself as the initial network card requirement.

[0120] If the target difference is less than zero, the initial demand value will also be less than zero, indicating that there are spare network cards. The negative of the initial demand value is the theoretical number of network cards remaining in the next cycle. The larger the initial demand value, the fewer network cards will theoretically be completely idle.

[0121] The negative of the number of completely idle network cards in the data center during this period is used as the second initial demand value for network cards. The larger the second initial demand value, the fewer completely idle network cards there are.

[0122] In step S502, considering that some network ports may be distributed across different network cards, resulting in multiple network cards having idle first network ports, the actual number of completely idle network cards in the server room will be less than the theoretical number. Therefore, if the initial demand value is large, it means that the theoretical number of graphics cards remaining in the next cycle is small, and the actual number of completely idle graphics cards may not reach the theoretical number of graphics cards remaining in the next cycle. Therefore, it may be necessary to adjust the resources of the first network ports, concentrating all remaining first network ports onto the same board for reuse.

[0123] If the second initial demand value is large, it means that there are fewer network cards that are completely idle in this cycle than theoretically will be idle in the next cycle. In other words, the first network ports scattered across the various unused network cards in the data center in this cycle are sufficient for the next cycle. In this case, these completely idle network cards can be directly removed and used in other data centers where they are needed. There is no need to adjust the first network ports again.

[0124] Therefore, the larger of the first initial network card requirement value and the second initial network card requirement value is taken as the network card requirement value for the computer room. In this embodiment, the network card requirement value is less than zero, and the negative of the network card requirement value is the number of network cards that can be removed and used in the computer room.

[0125] In step S130, the network interface card (NIC) requirements for each server room within the target area can be calculated using the above method. Since a NIC requirement value greater than zero indicates that the server room needs additional NICs, and a NIC requirement value less than zero indicates that the server room has surplus NICs that can be recycled, the overall NIC requirement value for the target area is obtained by summing the NIC requirement values ​​for each server room. An overall requirement value less than zero indicates that the target area does not need additional network resources, while an overall requirement value greater than zero indicates that the target area needs additional network resources.

[0126] In step S140, if the overall network interface card (NIC) demand value for the target area is positive, the required additional network resources for the target area are calculated based on the NIC demand value. If the overall NIC demand value for the target area is negative, it indicates that there are still NICs available in the target area, and no further network resources are needed. The idle NICs can be transferred to other target areas that require NICs, thus reducing financial expenditure in other target areas.

[0127] Based on the increase in network resources, the investment amount and the amount of existing resources to be utilized in each target region can be determined. This allows network companies to have a clear understanding of the investment in each target region for the next cycle. It also enables network companies to plan their investments in each target region in advance based on predicted growth, increasing user appeal and satisfaction.

[0128] In this embodiment, based on the network interface card (NIC) requirements of each data center, the remaining and missing NICs in each data center can be determined. NICs with remaining capacity are removed from data centers and moved to data centers lacking NICs. This allows for prior network resource allocation and coordination within the target area before investment. On one hand, it fully utilizes idle graphics cards in some data centers, reducing the investment required to expand network resources. On the other hand, based on the precise NIC requirements of the target area, the amount of network resource increase required in the target area can be accurately calculated.

[0129] Figure 7A computer system architecture block diagram for implementing a method for managing network resources according to an embodiment of this application is shown.

[0130] It should be noted that, Figure 7 The computer system 800 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.

[0131] like Figure 7 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 802 or programs loaded from storage section 808 into random access memory (RAM). The random access memory 803 also stores various programs and data required for system operation. The CPU 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output interface 805 (I / O interface) is also connected to the bus 804.

[0132] The following components are connected to the input / output interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a local area network card, modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output interface 805 as needed. A removable medium 811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on the drive 810 as needed so that computer programs read from it can be installed into the storage section 808 as needed.

[0133] Specifically, according to embodiments of this application, the processes described in the various method flowcharts can be implemented as computer software programs. For example, embodiments of this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 809, and / or installed from removable medium 811. When the computer program is executed by central processing unit 801, it performs various functions defined in the system of this application.

[0134] It should be noted that the computer-readable medium shown in the embodiments of this application can be a computer-readable signal medium, a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this application, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such transmitted data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.

[0135] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0136] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to the embodiments of this application, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0137] Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, touch terminal, or network device, etc.) to execute the method according to the embodiments of this application.

[0138] Other embodiments of this application will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this application that follow the general principles of this application and include common knowledge or customary techniques in the art not disclosed herein.

[0139] It should be understood that this application is not limited to the precise structure described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is limited only by the appended claims.

Claims

1. A method for managing network resources, characterized in that, The method includes: Based on the periodic growth records of a type of user in the computer room, the predicted growth of the type of user in the next period is obtained. The type of user refers to the user using the first network port. Based on the predicted growth and the usage ratio of the second network port among the two types of users, the number of replacement users in the predicted growth is calculated. The replacement users refer to users who replace the second network port with the first network port. The bandwidth of the first type of users reaches the set standard, and the second type of users refer to users whose bandwidth does not reach the set standard. Based on the number of users and the number of second network ports, calculate the replacement quantity of the second network ports in the next cycle, which will be used as the first network port demand of the data center in the next cycle. Based on the demand for the first network port and the idle capacity of the first network port in this period, the network card demand value of the computer room is calculated, and the network card is equipped with a set number of first network ports. Calculate the overall network interface card (NIC) requirement for the target region based on the NIC requirements of each of the aforementioned computer rooms within the target region; Calculate the increase in network resources for the target region based on the overall network interface card (NIC) requirement.

2. The method according to claim 1, characterized in that, Based on the periodic growth records of a certain type of user in the data center, obtain the predicted growth amount of that type of user in the next period, including: The predicted growth amount is calculated using the following formula: Y t =μ1Y t-1 +μ2 Y n-1 Among them, Y t This refers to the predicted growth amount, Y t-1 This refers to the growth amount in this cycle, Y n-1 μ1 refers to the growth rate of the previous adjacent large cycle, μ2 refers to the growth coefficient of the adjacent cycle, and the large cycle consists of multiple cycles.

3. The method according to claim 1, characterized in that, Based on the predicted growth and the usage percentage of the second network port among the second type of users, the number of replacement users in the predicted growth is calculated, including: The ratio of the number of second network ports used to the number of the two types of users in this period is used as the target ratio. The product of the predicted growth and the target ratio is rounded down to the nearest integer, which is the number of replacement users.

4. The method according to claim 1, characterized in that, Based on the number of users being replaced and the number of second network ports, calculate the replacement quantity of the second network ports in the next cycle, including: Based on the number of replacement users and the minimum number of service users for the first network port, calculate the maximum number of replacements for the second network port, and obtain the number of replacementable second network ports in the computer room. The smaller of the maximum number of replacements and the number of replaceables is used as the second network port replacement quantity for the next cycle.

5. The method according to claim 1, characterized in that, Based on the demand for the first network port and the idle capacity of the first network port in this period, the network card demand value of the computer room is calculated, including: The difference between the demand for the first network port in the next cycle and the idle capacity of the first network port in the current cycle is used as the target difference. If the target difference is greater than or equal to zero, the network card requirement of the computer room is calculated based on the ratio of the target difference to the preset number of network card ports. If the target difference is less than zero, then the network card requirement for the computer room is zero.

6. The method according to claim 5, characterized in that, The method further includes: If the target difference is less than zero, the first initial demand value for network cards in the data center for the next cycle is calculated based on the ratio of the target difference to the number of network card ports, and the opposite of the number of completely idle network cards in the data center for this cycle is used as the second initial demand value for network cards. The larger of the first initial requirement value and the second initial requirement value of the network card is taken as the network card requirement value of the computer room.

7. A network resource management device, comprising a memory, a processor, and a readable program stored in the memory, characterized in that, The processor executes the readable program to implement the method of any one of claims 1-6.

8. A readable storage medium having a readable program / instruction stored thereon, characterized in that, When the readable program / instructions are executed by the processor, they implement the method described in any one of claims 1-6.

9. A program product comprising a readable program / instructions, characterized in that... When the readable program / instructions are executed by the processor, they implement the method described in any one of claims 1-6.

Citation Information

Patent Citations

  • Network topology structure of converter station, power conversion method of electric vehicle, and converter station

    CN111873844A

  • Multi-modal network test environment construction method and device combining internal field and external field

    CN116489064A