Network resource management method and device, storage medium and program product
By predicting the growth of users in the computer room and calculating the demand value of network cards, the problem of unreasonable investment in network resources is solved, and precise allocation and reasonable increase of network resources in various regions is achieved.
Patent Information
- Application Number
- CN202411981104.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2044-12-30
AI Technical Summary
How to reasonably increase network resources in each region to solve the problem of excessive or insufficient investment in network resources or inability to meet users' bandwidth upgrade needs.
By predicting the growth of the next cycle based on the cycle growth records of a type of users in the computer room, and combining the network card demand value of the computer room idle number of computer ports in this cycle, the overall network card demand value is further calculated based on the network card demand value of each computer room in the target region, and determining the increase in network resources.
It realizes accurate allocation of network resources in each region, avoids resource waste, ensures the rationality of the increase in network resources, and meets the bandwidth upgrade needs of users.
Smart Images

Figure CN119996205A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of network resource management, and specifically relates to a network resource management method, device, storage medium, and program product. Background Art
[0002] With the development and progress of the times, network broadband users have become popular, but with the development of computer technology, users have higher and higher requirements for network broadband bandwidth. In the face of users' growing bandwidth demand, network resource companies need to upgrade and increase network resources in old network rooms.
[0003] However, due to the different locations of computer rooms and different user demands, there is often over-investment in network resources, resulting in excess network resources, or under-investment in network resources, resulting in the inability to meet users' bandwidth upgrade needs after network resources are invested.
[0004] Therefore, how to reasonably increase the network resources in each region is a technical problem that needs to be solved urgently. Summary of the invention
[0005] The purpose of this application is to reasonably increase the network resources in each area.
[0006] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0007] According to one aspect of an embodiment of the present application, a method for managing network resources is provided, the method comprising:
[0008] According to the periodic growth record of a type of users in the computer room, a predicted growth amount of the type of users in the next period is obtained, wherein the type of users refers to users using the first network port;
[0009] Calculate the network card demand value of the computer room according to the predicted growth amount and the number of idle first network ports in this period, and the network card is provided with a set number of first network ports;
[0010] Calculating the overall network card demand value of the target region according to the network card demand values of each of the computer rooms in the target region;
[0011] The network resource increase amount of the target region is calculated according to the overall network card demand value.
[0012] According to one aspect of an embodiment of the present application, obtaining a predicted growth amount of a class of users in the next period according to a periodic growth record of a class of users in a computer room includes:
[0013] The predicted growth is calculated using the following formula:
[0014] Y t =μ1Y t-1 +μ2Y n-1
[0015] Among them, Y t refers to the predicted growth amount, Y t-1 Refers to the growth amount of this cycle, Y n-1 It refers to the growth amount of the previous adjacent large cycle in the same period, μ1 refers to the growth coefficient of the adjacent cycle, and μ2 refers to the growth coefficient of the adjacent large cycle in the same period. The large cycle is composed of multiple cycles.
[0016] According to one aspect of an embodiment of the present application, calculating the network card demand value of the computer room according to the predicted growth amount and the idle number of the first network port in this cycle includes:
[0017] According to the predicted growth amount and the usage ratio of the second network port in the second category of users, the number of replacement users in the predicted growth amount is calculated, wherein the replacement users refer to users who replace the second network port with the first network port, the bandwidth of the first category of users reaches the set standard, and the second category of users refers to users whose bandwidth does not reach the set standard;
[0018] According to the number of replaced users and the number of second network ports, the replacement quantity of the second network ports in the next period is calculated as the demand quantity of the first network ports of the computer room in the next period;
[0019] The network card demand value of the computer room is calculated according to the demand of the first network port and the idle amount of the first network port in this cycle.
[0020] According to one aspect of an embodiment of the present application, according to the predicted growth amount and the usage ratio of the second network port in the second type of users, calculating the number of replacement users in the predicted growth amount includes:
[0021] Obtaining a ratio of the number of second network ports used in this cycle to the number of the second type of users as a target ratio;
[0022] The product of the predicted growth amount and the target ratio is rounded to an integer, which is used as the number of replaced users.
[0023] According to one aspect of an embodiment of the present application, calculating the replacement amount of the second network port in the next period according to the number of replacement users and the number of second network ports includes:
[0024] According to the number of replacement users and the minimum number of service users of the first network port, the maximum replacement number of the second network port is calculated, and the replaceable number of the second network port in the computer room is obtained;
[0025] The smallest one of the maximum replacement quantity and the replaceable quantity is used as the replacement quantity of the second network port in the next cycle.
[0026] According to one aspect of an embodiment of the present application, calculating the network card demand value of the computer room according to the first network port demand includes:
[0027] The difference between the demand quantity of the first network port in the next cycle and the idle quantity of the first network port in the current cycle is taken as the target difference;
[0028] If the target difference is greater than or equal to zero, the network card demand value of the computer room is calculated according to the ratio of the target difference to the preset number of network card ports;
[0029] If the target difference is less than zero, the network card demand value of the computer room is zero.
[0030] According to one aspect of the embodiment of the present application, the method further includes:
[0031] If the target difference is less than zero, the first initial demand value of the network card in the next cycle is calculated according to the ratio of the target difference to the number of network card ports, and the opposite number of the number of completely idle boards in the computer room in this cycle is used as the second initial demand value of the network card;
[0032] The largest one of the first initial demand value of the network card and the second initial demand value of the network card is used as the network card demand value of the computer room.
[0033] According to one aspect of an embodiment of the present application, the present application provides a network resource management device, including a memory, a processor, and a readable program stored on the memory, and the processor executes the readable program to implement any of the methods described above.
[0034] According to one aspect of an embodiment of the present application, a readable storage medium is provided, on which a readable program / instruction is stored. When the readable program / instruction is executed by a processor, any of the methods described above is implemented.
[0035] According to one aspect of an embodiment of the present application, a program product is provided, including a readable program / instruction, and when the readable program / instruction is executed by a processor, any of the methods described above is implemented.
[0036] In the technical solution provided in the embodiment of the present application, first, based on the periodic growth record of a class of users in the computer room, the predicted growth amount of a class of users in the next period is obtained, and the class of users refers to users who use the first network port; based on the predicted growth amount and the idle number of the first network ports in this period, the network card demand value of the computer room is calculated, and a set number of first network ports are set on the network card; based on the network card demand values of each computer room in the target area, the overall network card demand value of the target area is calculated; and the increase in network resources in the target area is calculated based on the overall network card demand value. The increase in network resources in the target area can be accurately counted based on the demand value of the overall network card in the target area. Accurate network resource allocation is achieved for the target area based on the overall network card demand value of the target area. It will not lead to waste of resources, nor will it lead to lack of network resources due to less increase in network resources.
[0037] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0038] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 A flow chart of a method for managing network resources according to an embodiment of the present application is shown.
[0041] Figure 2 A flow chart showing the network card demand value of a computer room according to the predicted growth amount and the idle number of the first network port in this cycle according to one embodiment of the present application is shown.
[0042] Figure 3 A flow chart is shown for calculating the number of replacement users in the predicted growth amount according to the predicted growth amount and the usage ratio of the second network port in the second type of users according to an embodiment of the present application.
[0043] Figure 4 A flow chart of calculating the replacement amount of the second network port in the next cycle according to the number of replacement users and the number of second network ports according to an embodiment of the application is shown.
[0044] Figure 5A flow chart of the network card demand value of a computer room according to the demand of the first network port and the idle amount of the first network port in this cycle according to one embodiment of the present application is shown.
[0045] Figure 6 A flow chart of calculating a network card demand value if the target difference value is less than zero according to an embodiment of the present application is shown.
[0046] Figure 7 A block diagram of a computer system structure for implementing a method for managing network resources according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0047] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.
[0048] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the 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 may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0050] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0051] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0052] See also Figure 1 , Figure 1 A flowchart of a method for managing network resources according to an embodiment of the present application is shown. The present application embodiment provides a method for managing network resources, including:
[0053] Step S110, obtaining a predicted growth amount of a class of users in the next period according to a periodic growth record of a class of users in the computer room, where the class of users refers to users using the first network port;
[0054] Step S120, according to the predicted growth amount and the idle number of the first network ports in this period, and the network card demand value of the computer room, a set number of first network ports are set on the network card;
[0055] Step S130, calculating the overall network card demand value of the target region according to the network card demand values of each computer room in the target region;
[0056] Step S140, calculating the increase in network resources in the target region according to the overall network card demand value.
[0057] The above four steps are described in detail below.
[0058] It should be made clear in advance that in the embodiment of the present 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 computer room in the target area, the predicted growth amount of a class of users in the next period is calculated based on the periodic growth record of a class of users in the computer room. It should be clarified that the periodic growth record refers to the growth record of a class of users in each period. A period is a time unit. It can be a time span of one week, one month, one year, etc. It should be further clarified that a class of users refers to users using the first network port.
[0060] In some embodiments, a large cycle includes multiple cycles, such as one year as a cycle and ten years as a large cycle, one month as a cycle and one year as a large cycle.
[0061] In some embodiments, one period is one month.
[0062] Based on the periodic growth records of users in the computer room, the predicted growth amount of a category of users in the next period is predicted.
[0063] In some embodiments, the predicted growth amount is calculated by the following formula.
[0064] Y t =μ1Y t-1 +μ2Y n-1
[0065] Among them, Y t is the predicted growth amount, Y t-1 Refers to the growth amount of this cycle, Y n-1 It refers to the growth amount of the previous adjacent large cycle in the same period, μ1 refers to the growth coefficient of the adjacent cycle, μ2 refers to the growth coefficient of the adjacent large cycle in the same period, and 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 ). Among them, AVG represents the average, 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) is the current cycle, (t-2) is the previous cycle of the current cycle. (tx) is the (x-1) cycle before the current cycle, and t-(x+1) is the x cycle before the current cycle. If (x-1) = 0, it means it is the current cycle.
[0067] Y t-x Y is the growth amount of the previous (x-1) cycle of this cycle. t-(x+1) It is the growth amount of the previous x cycles in this cycle.
[0068] (n-1) is the same period of this cycle in this big cycle, that is, this cycle, and (n-2) is the same period of the previous big cycle of this cycle. If the cycle unit is month and the big cycle unit is year. If March is the current cycle, then the same period of the previous big cycle of this cycle is March of last year. (ny) is the same period of the previous (y-1) big cycle of this cycle, and n-(y+1) is the same period of the previous y big cycles of this cycle. If (y-1) = 0, it means that it is the current cycle of this big cycle, that is, this cycle.
[0069] Y n-yY is the user growth in the previous (y-1) cycle. n-(y+1) It is the user growth in the same period of the previous y large cycles of this cycle.
[0070] It should be noted that both x and y are positive integers.
[0071] In step S120, the idle number of the first network ports in the computer room in this cycle is counted, and the idle first network ports in this cycle can be used by new users in the next cycle. The network card demand value of the computer room in the next cycle is calculated based on the predicted growth amount and the idle number of the first network ports in this cycle.
[0072] Specifically, according to the predicted growth amount and the size of the idle number of the first network ports in this cycle, it can be known whether the computer room will need to add a new first network port in the next cycle, or whether there will be a surplus of first network ports. If necessary, the ratio of the number of newly added first network ports to the set number of first network ports on each network card is used as the network card demand value. If there is a surplus, the ratio of the opposite of the surplus number to the number of first network ports on the network card is used as the network card demand value. The network card demand value can be a positive number or a negative number. When the network card demand value is a positive number, it means that the computer room needs to install a new network card. When the network card demand value is a negative number, it means that there are network cards left in the computer room, which can be recycled by other computer rooms.
[0073] It should be clear that the network port is provided on the network card, and each network card is provided with a set number of network ports. In the embodiment of the present application, each network card is provided with a set number of first network ports.
[0074] If the network card demand value is a decimal, it will be rounded up. In other words, if the network card demand value is a decimal, the integer closest to itself and larger than itself will be taken to replace itself as the new network card demand value.
[0075] See also Figure 2 , Figure 2 A flowchart of the network card demand value of the computer room according to the predicted growth amount and the idle number of the first network port in this cycle according to one embodiment of the present application is shown. The embodiment of the present application provides a step S120 of calculating the network card demand value of the computer room according to the predicted growth amount and the idle number of the first network port in this cycle, including:
[0076] Step S121, according to the predicted growth amount and the usage ratio of the second network port in the second category of users, the number of replacement users in the predicted growth amount is calculated, where the replacement users refer to users who replace the second network port with the first network port, the bandwidth of the first category of users reaches the set standard, and the second category of users refers to users whose bandwidth does not reach the set standard;
[0077] Step S122, calculating the replacement quantity of the second network ports in the next cycle according to the number of replacement users and the number of second network ports, as the demand quantity of the first network ports in the computer room in the next cycle;
[0078] Step S123, the network card demand value of the computer room is calculated according to the demand of the first network port and the idle quantity of the first network port in this cycle.
[0079] The above three steps are described in detail below.
[0080] In step S121, 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 in the second type of users. The replacement user refers to a user who replaces the second network port with the first network port and whose bandwidth reaches the set standard, and the bandwidth of the first network port is greater than that of the second network port.
[0081] It should be noted that in some embodiments, the first category of users refers to users who use the first network interface and whose bandwidth reaches the set standard, and the second category of users refers to users whose bandwidth is less than the set standard. That is, the second category of users also includes those users 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 smaller than that of the first network port.
[0083] See also Figure 3 , Figure 3 A flowchart is shown for calculating the number of replacement users in the predicted growth amount according to the predicted growth amount and the usage ratio of the second network port in the second category of users according to an embodiment of the present application. The embodiment of the present application provides a step S121 for calculating the number of replacement users in the predicted growth amount according to the predicted growth amount and the usage ratio of the second network port in the second category of users, including:
[0084] Step S201, obtaining a ratio of the number of second network ports in use to the number of second-class users in this cycle as a target ratio;
[0085] Step S202, rounding the product of the predicted growth amount and the target ratio as the number of replaced users.
[0086] The above two steps are described in detail below.
[0087] In step S201, it is first necessary to clarify that the first type of user refers to the user who uses the first network port and whose bandwidth reaches the set standard. The second type of user refers to the user whose bandwidth does not reach the set standard. The bandwidth of the user is formed by two aspects, one is the network port used (only by using the first network port can the bandwidth of the user reach the set standard), and the other is the network service used by the user.
[0088] Therefore, there are two sources of the first category of users. The first category is users who originally used the second network port and replaced the second network port with the first network port and upgraded the bandwidth to the set standard. Because this type of user needs to replace the second network port with the first network port, this type of user is called a replacement user. The second category is users who originally used the first network port. Because the bandwidth service they used was relatively low-level, the overall bandwidth was low, so they only needed to upgrade the service. This second category of users can become first category users without port replacement. This type of user is called an upgraded user.
[0089] The predicted growth in new users includes upgrading users and replacement users. Since we only need to provide the first network port for replacement users, we need to calculate the number of replacement users to determine the number of replacement users.
[0090] The ratio of the number of second network ports used in this cycle to the number of second-class users is obtained as the target ratio. That is, the proportion of the number of second network ports currently used in the computer room among all second-class users, and this proportion is used as the target ratio. This calculates the proportion of users using the second network port among all second-class users, so the replacement users among the new users are also close to this proportion.
[0091] In step S202, the product of the predicted growth amount and the target ratio is rounded to an integer to be used as the number of replacement users, so as to determine the number of second network ports that need to be replaced with first network ports in the next cycle.
[0092] In the embodiment of the present application, by further calculating the newly added users in this way, the number of users who need to replace the second network port with the first network port in the next cycle is accurately known, so that in the next cycle, the demand for the first network port by the newly added users is more accurate, further ensuring the accurate calculation of the increase in the target area network resources.
[0093] In step S122, the replacement amount of the second network port in the next cycle is calculated according to the number of replacement users and the number of second network ports. In some embodiments, the number of Class II ports that can be replaced in the computer room is directly counted as the number of second network ports. The number of replacement users must be less than the number of second network ports, because the replacement users are users who use the second network port. Even if all users who use the second network port need to be replaced with the first network port, the number of replacement users is the same as the number of second network ports. According to the number of replacement users, the number of second network ports in the user's computer room that need to be replaced with the first network port is calculated, that is, the replacement amount of the second network port. Because port replacement requires the removal of the original second network port and the installation of the first network port. Therefore, the replacement amount of the second network port is the same as the demand for the first network port. The replacement amount of the second network port is directly used as the demand for the first network port in the next cycle.
[0094] See also Figure 4 , Figure 4 A flowchart of calculating the replacement amount of the second network port in the next cycle according to the number of replacement users and the number of second network ports according to an embodiment of the application is shown. The embodiment of the application provides a step S122 of calculating the replacement amount of the second network port in the next cycle according to the number of replacement users and the number of second network ports, including:
[0095] Step S301, calculating the maximum replacement quantity of the second network port according to the number of replacement users and the minimum service user number of the first network port, and obtaining the replaceable number of the second network port in the computer room;
[0096] Step S302: The smallest one of the maximum replacement quantity and the replaceable quantity is used as the replacement quantity of the second network port in the next cycle.
[0097] The above two steps are described in detail below.
[0098] In step S301, the maximum replacement number of the second network port is calculated based on the number of replaced users and the minimum number of service users of the first network port. The minimum number of service users of the first network port refers to the number of users that each first network port must at least connect to in order to fully utilize the first network interface. Therefore, even if the second network port is replaced with the first network port, each network port must at least connect to a certain number of users, that is, the minimum number of service users. In some embodiments, the minimum number of service users of the first network port is 4. It should be clarified 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 restriction on the specific number of connected users here, and different numbers of users can be connected according to technical support.
[0099] The ratio between the number of replaced users and the minimum number of users served by the first network port is used as the maximum demand for the first network port. Since each installation of a first network port means replacing a second network port, the maximum demand for the first network port is equal to the maximum replacement amount of the second network port required to satisfy the user replacement. If the ratio between the number of replaced users and the minimum number of users served by the first network port is not an integer, it is rounded up to the maximum replacement amount of the second network port.
[0100] It should be clarified that the maximum replacement quantity of the second network port refers to the maximum number of second network ports that can be replaced in the computer room based on full utilization of the network port. At the same time, the replaceable quantity of the second network ports in the computer room is counted.
[0101] In step S302, the maximum replacement amount of the second network port is compared with the replaceable amount of the second network port. If the maximum replacement amount of the second network port is smaller, it means that the computer room can meet the replacement of this number of second network ports. Therefore, the maximum replacement amount of the second network port is used as the replacement amount of the second network port in the next cycle.
[0102] If the replaceable amount of the second network port is small, it means that the computer room can replace a maximum of so many second network ports. Therefore, the replaceable amount of the second network port is used as the replacement amount of the second network port in the next cycle to upgrade all the second network ports in the computer room. While satisfying all replacement users, the first network port of all non-upgraded users is also replaced, paving the way for the bandwidth upgrade of non-upgraded users as hardware.
[0103] In step S123, according to the demand for the first network port in the next cycle and the idle quantity of the first network ports in the computer room in this cycle, the idle first network ports in the computer room in this cycle can be used by the users newly added in the next cycle. Therefore, according to the demand for the first network port in the next cycle and the idle quantity of the first network ports in the computer room in this cycle, the network card demand value can be calculated.
[0104] First of all, it should be made clear that the demand for the first network port mentioned above refers to the demand for the first network port by the users who will replace it in the next cycle. The network card demand value refers to how many network cards are needed in the computer room after all the first network ports have been used.
[0105] Specifically, according to the demand for the first network port in the next cycle and the idle amount of the first network port in this cycle, it can be known whether the computer room needs to add a new first network port or a remaining first network port in the next cycle. If a new first network port is needed, the ratio of the number of new first network ports to the number of first network ports on the network card is used as the network card demand value. If there is a surplus, the ratio of the opposite of the surplus number to the number of first network ports on the network card is used as the network card demand value. If the network card demand value is a decimal, round it up. That is, if the network card demand value is a decimal, take the integer closest to itself and larger than itself as the new network card demand value instead of itself.
[0106] See also Figure 5 , Figure 5 A flowchart of a network card demand value of a computer room according to a first network port demand and an idle amount of the first network port in this cycle according to an embodiment of the present application is shown. The present application embodiment provides a step S123 of calculating a network card demand value of a computer room according to a first network port demand and an idle amount of the first network port in this cycle, including:
[0107] Step S401, taking the difference between the demand quantity of the first network port in the next cycle and the idle quantity of the first network port in the current cycle as the target difference;
[0108] Step S402, if the target difference is greater than or equal to zero, then the network card demand value of the computer room is calculated according to 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, the network card demand 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 amount of the first network port in the next cycle and the idle amount of the first network port in the current cycle is used as the target difference;
[0112] In step S402, if the target difference is greater than or equal to zero, it means that the first network port is insufficient in the next cycle. Then, the network card demand value of the computer room is calculated 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 with the smallest difference from the ratio and greater than the ratio is obtained as the new ratio.
[0113] In step S403, if the target difference is less than zero, that is, the idle first network port in this cycle cannot be fully used by the replacement users in the next cycle, so the network card demand value of the computer room is zero.
[0114] See also Figure 6 , Figure 6The flowchart of calculating the network card demand value if the target difference is less than zero according to one embodiment of the present application is shown. The embodiment of the present application provides the steps of calculating the network card demand value if the target difference is less than zero, including:
[0115] Step S501, if the target difference is less than zero, then the first initial demand value of the network card in the next cycle of the computer room is calculated according to the ratio of the target difference to the number of network card ports, and the opposite number of the number of completely idle boards in the computer room in this cycle is used as the second initial demand value of the network card;
[0116] Step S502: The largest one of the first initial demand value of the network card and the second initial demand value of the network card is used as the network card demand value of the computer room.
[0117] The above two steps are described in detail below.
[0118] In step S501, if the target difference is less than zero, it means that there are still some network cards left after the replacement users have used them up in the next cycle. At this time, it is necessary to count how many network cards can be removed to be used in other computer rooms to make full use of the network cards.
[0119] According to the ratio of the target difference and the number of network card ports, the first initial demand value of the network card in the next cycle of the computer room is calculated. If the ratio is a decimal, it is rounded up. Also, the integer closest to itself and greater than itself is taken as the first initial demand value of the network card.
[0120] If the target difference is less than zero, the first initial demand value must also be less than zero, which means that there are surplus network cards. The opposite of the first initial demand value is the theoretical remaining number of network cards in the next cycle. The larger the first initial demand value, the fewer the number of completely idle boards in theory.
[0121] The opposite number of the number of completely idle boards in the computer room in this period is used as the second initial demand value of the network card. The larger the second initial demand value, the smaller the number of completely idle boards.
[0122] In step S502, considering that some network ports are distributed on different network cards, so that there are idle first network ports on multiple network cards, the actual number of completely idle network cards in the computer room will be less than the theoretical number. Therefore, if the first initial demand value is large, it means that the number of graphics cards remaining in the next cycle is small in theory, but in fact, the 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 and concentrate all the remaining first network ports on the same board for reuse.
[0123] If the second initial demand value is larger, it means that the number of completely idle network cards in this cycle is less than the theoretically idle network cards in the next cycle, that is, the first network ports scattered on the network cards that are not fully used in the computer room in this cycle are sufficient for the next cycle, then these completely idle graphics cards can be directly removed and used in other computer rooms in need. There is no need to adjust the first network port.
[0124] Therefore, the largest of the first initial demand value of the network card and the second initial demand value of the network card is used as the network card demand value of the computer room. In this embodiment, the network card demand value is less than zero, and the reverse number of the network card demand value is the number of network cards that can be removed and used in the computer room.
[0125] In step S130, the network card demand value of each computer room in the target area can be calculated by the above method. Since a network card demand value greater than zero indicates that the computer room needs to install a network card, and a network card demand value less than zero indicates that the computer room has remaining network cards that can be recycled, the network card demand values in each computer room are added together to obtain the overall network card demand value of the target area. If the overall demand value is less than zero, it means that the target area does not need to increase network resources, and if the overall demand value is greater than zero, it means that the target area needs to increase network resources.
[0126] In step S140, if the overall network card demand value of the target area is a positive number, the network resources that need to be added to the target area are calculated based on the network card demand value. If the overall network card demand value of the target area is a negative number, it means that there are still network cards in the target area, no more network resources need to be added, and the idle network cards can be transferred to other target areas that need network cards. Reduce the financial expenditure of other target areas.
[0127] According to the increase in network resources, the investment amount and the amount of reused resources in each target area can be determined. This helps network companies to have a clear understanding of the investment in each target area in the next cycle. It also helps network companies to make early investment arrangements in each target area based on the predicted growth, increase user attractiveness, and user satisfaction.
[0128] In the embodiment of the present application. According to the network card demand value of each computer room, the remaining number and the missing number of network cards in each computer room can be known. The network cards are removed from the computer room with the remaining network cards and moved to the computer room lacking the network cards. Therefore, when investing in the target area, the network resources are first adjusted and coordinated in the target area. On the one hand, the idle graphics cards in some computer rooms are fully utilized to reduce the investment required to expand network resources. On the other hand, based on the accurate network card demand value of the target area, the increase in network resources in the target area can be accurately calculated.
[0129] Figure 7A block diagram of a computer system structure for implementing a method for managing network resources according to an embodiment of the present application is shown.
[0130] It should be noted that Figure 7 The computer system 800 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0131] like Figure 7 As shown, the computer system 800 includes a central processing unit 801 (CPU), which can perform various appropriate actions and processes according to the program stored in the read-only memory 802 (ROM) or the program loaded from the storage part 808 to the random access memory 803 (RAM). Various programs and data required for system operation are also stored in the random access memory 803. The central processing unit 801, the read-only memory 802 and the random access memory 803 are connected to each other through a bus 804. The input / output interface 805 (Input / Output interface, i.e., 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, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; 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, a 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 magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.
[0133] In particular, according to an embodiment of the present application, the process described in each method flow chart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program contains a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the central processor 801, various functions defined in the system of the present application are executed.
[0134] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by an instruction execution system, device or device or used in combination with it. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer readable signal media may also be any computer readable medium other than computer readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0135] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the above-mentioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0136] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.
[0137] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation methods of the present application.
[0138] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.
[0139] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for managing network resources, characterized in that: The method comprises: According to the periodic growth record of a type of users in the computer room, a predicted growth amount of the type of users in the next period is obtained, wherein the type of users refers to users using the first network port; Calculate the network card demand value of the computer room according to the predicted growth amount and the number of idle first network ports in this period, and the network card is provided with a set number of first network ports; Calculating the overall network card demand value of the target region according to the network card demand values of each of the computer rooms in the target region; The network resource increase amount of the target region is calculated according to the overall network card demand value.
2. The method according to claim 1, characterized in that According to the periodic growth records of a type of users in the computer room, the predicted growth amount of a type of users in the next period is obtained, including: The predicted growth is calculated using the following formula: Y t =μ1Y t-1 +μ2Y n-1 Among them, Y t refers to the predicted growth amount, Y t-1 Refers to the growth amount of this cycle, Y n-1 It refers to the growth amount of the previous adjacent large cycle in the same period, μ1 refers to the growth coefficient of the adjacent cycle, and μ2 refers to the growth coefficient of the adjacent large cycle in the same period. The large cycle is composed of multiple cycles.
3. The method according to claim 1, characterized in that Calculating the network card demand value of the computer room according to the predicted growth amount and the idle number of the first network port in this period, including: According to the predicted growth amount and the usage ratio of the second network port in the second category of users, the number of replacement users in the predicted growth amount is calculated, wherein the replacement users refer to users who replace the second network port with the first network port, the bandwidth of the first category of users reaches the set standard, and the second category of users refers to users whose bandwidth does not reach the set standard; According to the number of replaced users and the number of second network ports, the replacement quantity of the second network ports in the next period is calculated as the demand quantity of the first network ports of the computer room in the next period; The network card demand value of the computer room is calculated according to the demand of the first network port and the idle amount of the first network port in this cycle.
4. The method according to claim 3, characterized in that According to the predicted growth amount and the usage ratio of the second network port in the second type of users, the number of replacement users in the predicted growth amount is calculated, including: Obtaining a ratio of the number of second network ports used in this cycle to the number of the second type of users as a target ratio; The product of the predicted growth amount and the target ratio is rounded to an integer, which is used as the number of replaced users.
5. The method according to claim 3, characterized in that: Calculating the replacement amount of the second network port in the next period according to the number of replacement users and the number of the second network ports includes: According to the number of replacement users and the minimum number of service users of the first network port, the maximum replacement number of the second network port is calculated, and the replaceable number of the second network port in the computer room is obtained; The smallest one of the maximum replacement quantity and the replaceable quantity is used as the replacement quantity of the second network port in the next cycle.
6. The method according to claim 3, characterized in that Calculating the network card demand value of the computer room according to the first network port demand, including: The difference between the demand quantity of the first network port in the next cycle and the idle quantity of the first network port in the current cycle is taken as the target difference; If the target difference is greater than or equal to zero, the network card demand value of the computer room is calculated according to the ratio of the target difference to the preset number of network card ports; If the target difference is less than zero, the network card demand value of the computer room is zero.
7. The method according to claim 6, characterized in that The method further comprises: If the target difference is less than zero, the first initial demand value of the network card in the next cycle is calculated according to the ratio of the target difference to the number of network card ports, and the opposite number of the number of completely idle boards in the computer room in this cycle is used as the second initial demand value of the network card; The largest one of the first initial demand value of the network card and the second initial demand value of the network card is used as the network card demand value of the computer room.
8. 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 according to any one of claims 1 to 7.
9. A readable storage medium having a readable program / instruction stored thereon, characterized in that: When the readable instructions / instructions are executed by a processor, the method described in any one of claims 1 to 7 is implemented.
10. A program product comprising a readable program / instruction, characterized in that When the readable program / instructions are executed by a processor, the method described in any one of claims 1 to 7 is implemented.
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
Demand prediction method and device based on Internet private line service
CN116866197A
Network card performance tuning method and device, electronic equipment and nonvolatile storage medium
CN118316802A
MQTT pressure measurement method, press machine, electronic equipment and storage medium
CN118842736A