Resource adjustment method and device, network equipment and storage medium

By dynamically adjusting the traffic forwarding resources of network equipment, matching network traffic requirements based on the current traffic load rate, the problem of high power consumption of network equipment under low traffic load is solved, and the matching of power consumption and traffic load is reduced.

CN119583476APending Publication Date: 2025-03-07HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311161639.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-06
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

Under low flow load conditions, there are still a large number of heat dissipation requirements and power requirements in network equipment, resulting in high power consumption.

Method used

By obtaining the current traffic load rate of the target network entity, dynamically adjust the traffic forwarding resources in the network equipment, including the serial links of the switching network board and the interface board, to match the current network traffic requirements and reduce unnecessary resource opening.

Benefits of technology

The overall power consumption of network equipment changes with network traffic, reducing the power demand and heat dissipation demand under low traffic loads.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583476A_ABST
    Figure CN119583476A_ABST
Patent Text Reader

Abstract

The invention discloses a resource adjustment method and device, network equipment and a storage medium, and belongs to the field of communication. The method comprises: acquiring a current traffic load rate of a target network entity, the current traffic load rate indicating a load condition when the target network entity forwards a current network traffic, the target network entity being a plurality of interface boards, a plurality of switching network boards, or any one of the plurality of interface boards; based on the current traffic load rate, a resource adjustment strategy corresponding to the current network traffic is determined, the resource adjustment strategy indicates the adjustment condition of traffic forwarding resources in the network equipment when the current network traffic is forwarded, and the traffic forwarding resources comprise serial links of the switching network board and the interface board; and adjusting the traffic forwarding resource in the network equipment based on the resource adjustment strategy. According to the invention, the flow forwarding resources are dynamically adjusted, so that the overall power consumption of the network equipment is changed along with the change of the network flow, and the power demand and the heat dissipation demand of the network equipment under a low flow load are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communications, and in particular to a resource adjustment method, device, network equipment and storage medium. Background Art

[0002] Network equipment is used to forward network traffic in the network. Usually, network equipment includes multiple interface boards and multiple switching boards. Each interface board is connected to the switching board through multiple serial links to forward network traffic between different interface boards through the switching board. Therefore, the more switching boards a network device includes, the more network traffic the network device can forward; for any interface board, the more serial links the interface board has, the more network traffic the interface board can forward.

[0003] Theoretically, the more network traffic a network device forwards, the higher its traffic load rate is, and the more power the network device consumes; conversely, the less network traffic a network device forwards, the lower its traffic load rate is, and the less power the network device consumes. The traffic load rate indicates the load condition of a network device when forwarding network traffic.

[0004] However, in the case of extremely low traffic load, network devices may still have a large amount of heat dissipation and power requirements. Therefore, how to reduce the power consumption of network devices has become an urgent problem to be solved. Summary of the invention

[0005] The present application provides a resource adjustment method, apparatus, network device and storage medium, which can dynamically adjust the traffic forwarding resources in the network device based on the current traffic load rate of the target network entity, so that the overall power consumption of the network device changes with the change of network traffic, and reduces the power demand and heat dissipation demand of the network device under low traffic load. The technical solution is as follows.

[0006] In a first aspect, a resource adjustment method is provided, which is applied to a resource manager in a network device, wherein the network device also includes multiple interface boards and multiple switching network boards, and each interface board is connected to at least one switching network board via at least one serial link, and the switching network board is used to forward the network traffic of one interface board to another interface board; the method includes: obtaining a current traffic load rate of a target network entity, wherein the current traffic load rate indicates a load condition of the target network entity when forwarding the current network traffic, and the target network entity is the multiple interface boards, the multiple switching network boards, or any one of the multiple interface boards; based on the current traffic load rate, determining a resource adjustment strategy corresponding to the current network traffic, wherein the resource adjustment strategy indicates an adjustment condition of traffic forwarding resources in the network device when forwarding the current network traffic, and the traffic forwarding resources include the serial links of the switching network board and the interface board; based on the resource adjustment strategy, adjusting the traffic forwarding resources in the network device.

[0007] It can be seen that the resource manager determines the resource adjustment strategy corresponding to the current network traffic based on the current traffic load rate of the target network entity, and then adjusts the traffic forwarding resources in the network device used to forward the current network traffic based on the resource adjustment strategy. In this way, the traffic forwarding resources in the network device are dynamically adjusted according to the current traffic load rate of the target network entity, so that the overall power consumption of the network device can change with the change of the current network traffic. While meeting the current network traffic forwarding requirements, it avoids running a large number of traffic forwarding resources under low traffic load, reducing the power demand and heat dissipation demand of the network device under low traffic load.

[0008] Optionally, the target network entity includes the multiple interface boards or the multiple switching network boards, and the resource adjustment strategy includes a first adjustment strategy and a second adjustment strategy, the first adjustment strategy indicates reducing the number of enabled switching network boards in the network device, and the second adjustment strategy indicates increasing the number of enabled switching network boards in the network device; determining the resource adjustment strategy corresponding to the current network traffic based on the current traffic load rate includes: obtaining a first historical traffic load rate of the target network entity; if the current traffic load rate is less than the first historical traffic load rate, determining that the resource adjustment policy is the first adjustment strategy; if the current traffic load rate is greater than the first historical traffic load rate, determining that the resource adjustment policy is the second adjustment strategy.

[0009] Optionally, based on the resource adjustment strategy, the traffic forwarding resources in the network device are adjusted, including: if the resource adjustment strategy is the first adjustment strategy, determining a first single board load rate interval corresponding to the current traffic load rate from multiple single board load rate intervals, the multiple single board load rate intervals respectively corresponding to a number of network boards; according to the first number of network boards corresponding to the first single board load rate interval, shutting down at least one switching network board in the network device that is in an turned-on state, so that the number of switching network boards that have not been shut down in the network device is equal to the first number of network boards.

[0010] Optionally, based on the resource adjustment strategy, the traffic forwarding resources in the network device are adjusted, including: if the resource adjustment policy is the second adjustment strategy, determining a second single board load rate interval corresponding to the current traffic load rate from multiple single board load rate intervals, the multiple single board load rate intervals respectively corresponding to a number of network boards; according to the second number of network boards corresponding to the second single board load rate interval, at least one switching network board in the network device that is in a closed state is turned on, so that the number of switching network boards in the network device that are in an turned-on state is equal to the number of the second network boards.

[0011] Optionally, the multiple single-board load rate intervals are obtained based on the overall ability of the multiple interface boards to process network traffic, or the multiple single-board load rate intervals are obtained based on the overall ability of the multiple switching network boards to process network traffic; wherein the division granularity of the multiple single-board load rate intervals is greater than the reference granularity.

[0012] It can be seen that when the target network entity includes multiple interface boards or multiple switching boards, the resource manager can dynamically adjust the number of enabled switching boards in the network device based on the changing trend of the current traffic load rate of the target network entity. While meeting the current network traffic forwarding requirements, the overall power consumption of the network device is reduced from the dimension of the switching boards.

[0013] Optionally, the interface board includes at least one interface chip, the switching network board includes at least one switching network chip, and the switching network chip is used to forward the network traffic of one interface chip to another interface chip; the target network entity includes the multiple interface boards or the multiple switching network boards, and the resource adjustment strategy includes a third adjustment strategy and a fourth adjustment strategy, the third adjustment strategy indicates to reduce the number of enabled switching network chips in the network device, and the fourth adjustment strategy indicates to increase the number of enabled switching network chips in the network device; based on the current traffic load rate, determining the resource adjustment strategy corresponding to the current network traffic includes: obtaining a first historical traffic load rate of the target network entity; if the current traffic load rate is less than the first historical traffic load rate, determining that the resource adjustment strategy is the third adjustment strategy; if the current traffic load rate is greater than the first historical traffic load rate, determining that the resource adjustment strategy is the fourth adjustment strategy.

[0014] Optionally, based on the resource adjustment strategy, the traffic forwarding resources in the network device are adjusted, including: if the resource adjustment strategy is the third adjustment strategy, determining a first chip load rate interval corresponding to the current traffic load rate from multiple chip load rate intervals, and the multiple chip load rate intervals respectively correspond to a chip quantity; according to the first chip quantity corresponding to the first chip load rate interval, at least one switching network chip in the network device that is in an turned-on state is turned off, so that the number of switching network chips in the network device that are in an turned-on state is equal to the first chip quantity.

[0015] Optionally, based on the resource adjustment strategy, the traffic forwarding resources in the network device are adjusted, including: if the resource adjustment strategy is the fourth adjustment strategy, determining a second chip load rate interval corresponding to the current traffic load rate from multiple chip load rate intervals, and the multiple chip load rate intervals respectively correspond to a chip quantity; according to the second chip quantity corresponding to the second chip load rate interval, at least one switching network chip in a closed state in the network device is turned on, so that the number of switching network chips in an turned-on state in the network device is equal to the second chip quantity.

[0016] Optionally, the multiple chip load rate intervals are obtained based on the capabilities of the interface chips included in the multiple interface boards to process network traffic, or the multiple chip load rate intervals are obtained based on the capabilities of the switching network chips included in the multiple switching network boards to process network traffic; wherein the division granularity of the chip load rate intervals is smaller than the reference granularity.

[0017] It can be seen that when the target network entity includes multiple interface boards or multiple switching network boards, the resource manager dynamically adjusts the number of enabled switching network chips in the network device based on the changing trend of the current traffic load rate of the target network entity. While meeting the current network traffic forwarding requirements, the overall power consumption of the network device is reduced from the dimension of the switching network chip.

[0018] It should be noted that there is a correlation between adjusting the number of enabled switching network boards and adjusting the number of enabled switching network chips, that is, the number of enabled switching network boards in the network device can be dynamically adjusted by dynamically adjusting the number of enabled switching network chips. Turning on a switching network board means turning on at least one switching network chip in the switching network board; and turning off a switching network board means turning off all switching network chips in the switching network board. Compared with adjusting resources in the dimension of switching network boards, adjusting resources in the dimension of switching network chips has a finer granularity.

[0019] Optionally, the method also includes: obtaining service level agreement SLA information corresponding to the current network traffic; if the SLA information meets the SLA requirements corresponding to the current network traffic, executing the step of adjusting the traffic forwarding resources in the network device based on the resource adjustment policy.

[0020] That is, whether to adjust the number of enabled switching boards or switching chips in the network device also requires judging whether the current network traffic meets the SLA requirements, and then when the SLA information of the current network traffic meets the corresponding SLA requirements, the number of enabled switching boards or switching chips in the network device is adjusted according to the resource adjustment strategy determined above. In this way, while adjusting the traffic forwarding resources of the network device, the normal forwarding of the service traffic can be guaranteed.

[0021] Optionally, the method further includes: if the SLA information does not meet the SLA requirement corresponding to the current network traffic, opening at least one switching network board or switching network chip in the network device that is in a closed state according to the target unit opening amount.

[0022] That is, when the SLA information of the current network traffic does not meet the corresponding SLA requirements, the number of enabled switching boards or switching chips in the network device is dynamically adjusted according to the target unit enable quantity, so that the network device can meet the SLA requirements when forwarding the current network traffic.

[0023] Optionally, the target network entity includes a target interface board, and the target interface board is any one of the multiple interface boards. The resource adjustment strategy includes a fifth adjustment strategy and a sixth adjustment strategy, and the fifth adjustment strategy indicates to reduce the number of serial links of the target interface board that are enabled, and the sixth adjustment strategy indicates to increase the number of serial links of the target interface board that are enabled; determining the resource adjustment strategy corresponding to the current network traffic based on the current traffic load rate includes: obtaining a second historical traffic load rate of the target network entity; if the current traffic load rate is less than the second historical traffic load rate, determining that the resource adjustment policy is the fifth adjustment strategy; if the current traffic load rate is greater than the second historical traffic load rate, determining that the resource adjustment policy is the sixth adjustment strategy.

[0024] Optionally, based on the resource adjustment strategy, adjusting the traffic forwarding resources in the network device includes: if the resource adjustment strategy is the fifth adjustment strategy, determining a first link load rate interval corresponding to the current traffic load rate from multiple link load rate intervals, the multiple link load rate intervals respectively corresponding to a link number; according to the first link number corresponding to the first link load rate interval, closing at least one serial link in the target interface board that is in an open state, so that the number of serial links in the target interface board that are in an open state is equal to the first link number.

[0025] Optionally, based on the resource adjustment strategy, adjusting the traffic forwarding resources in the network device includes: if the resource adjustment strategy is the sixth adjustment strategy, determining a second link load rate interval corresponding to the current traffic load rate from multiple link load rate intervals, the multiple link load rate intervals respectively corresponding to a link number; according to the second link number corresponding to the second link load rate interval, opening at least one serial link in the target interface board that is in a closed state, so that the number of serial links in the target interface board that are in an opened state is equal to the second link number.

[0026] Optionally, the multiple link load rate intervals are obtained based on the capability of the target interface board to process network traffic.

[0027] It can be seen that when the target network entity includes a target interface board, the resource manager dynamically adjusts the number of open serial links of the target interface board based on the changing trend of the current traffic load rate of the target interface board, so that the serial links in the open state can meet the resource requirements of the target interface board when forwarding the current network traffic, and at the same time reduces the overall power consumption of the network equipment from the dimension of the interface board.

[0028] In a second aspect, a resource adjustment device is provided, wherein the resource adjustment device has the function of implementing the resource adjustment method in the first aspect. The resource adjustment device includes at least one module, and the at least one module is used to implement the resource adjustment method provided in the first aspect.

[0029] In a third aspect, a network device is provided, the network device comprising a resource manager, a main control board, a plurality of interface boards and a plurality of switching network boards, each interface board being connected to at least one switching network board via at least one serial link, the switching network board being used to forward network traffic of one interface board to another interface board;

[0030] The resource manager is arranged on the main control board or at least one interface board among the plurality of interface boards, and is used to implement the resource adjustment method described in the first aspect above.

[0031] In a fourth aspect, a computer-readable storage medium is provided, wherein the storage medium stores a computer program, and when the computer program runs on the network device, the network device executes the resource adjustment method described in the first aspect.

[0032] In a fifth aspect, a computer program product comprising instructions is provided. When the instructions are executed on a network device, the network device executes the resource adjustment method described in the first aspect.

[0033] The technical effects obtained by the above-mentioned second, third, fourth and fifth aspects are similar to the technical effects obtained by the corresponding technical means in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 It is a structural diagram of a network device provided in an embodiment of the present application;

[0035] Figure 2 is a schematic diagram of the structure of another network device provided in an embodiment of the present application;

[0036] Figure 3 It is a flowchart of a resource adjustment method provided in an embodiment of the present application;

[0037] Figure 4 This is a schematic diagram of the oscillation of network traffic at different time scales provided by an embodiment of the present application;

[0038] Figure 5 It is a structural diagram of a resource adjustment device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0040] Before explaining the resource adjustment method provided in the embodiment of the present application, the application scenario and implementation environment of the embodiment of the present application are first introduced.

[0041] Network devices are used to forward network traffic in the network. Network devices can be switches, routers and other devices. In theory, when the network traffic flowing through the network device is large, the overall load of the network device is high and the power consumed is more. When the network traffic flowing through the network device is small, the overall load of the network device is low and the power consumed is less. However, in actual applications, since the main control board, multiple interface boards and switching boards in the network device are all in operation, the power consumption fluctuation rate of the network device is even less than 10% when the network traffic is large or small, that is, in the two extreme cases of 0 traffic and full traffic, the power change of the network device is less than 10%. In other words, when the network traffic is small, since there are still a large number of devices in the network device that are turned on, a large amount of heat dissipation and power requirements are caused.

[0042] Based on this, an embodiment of the present application provides a resource adjustment method, which dynamically adjusts the traffic forwarding resources in the network device by detecting the current traffic load rate of the target network entity in the network device, so that the overall power consumption of the network device changes with the change of network traffic, avoiding the operation of a large number of traffic forwarding resources under low traffic load conditions, and reducing the power demand and heat dissipation requirements of the network device under low traffic loads.

[0043] Please refer to Figure 1 , Figure 1 It is a structural diagram of a network device provided in an embodiment of the present application, and the network device 100 includes a main control board 110, multiple interface boards 120, multiple switching network boards 130, and a resource manager 140. Each interface board (also called a line card or a service board) is connected to at least one switching network board through at least one serial link (Serdes), and the switching network board is used to forward the network traffic of one interface board to another interface board.

[0044] Among them, the main control board completes system management, equipment maintenance, protocol processing and other functions; multiple interface boards are used to provide various service interfaces, such as POS (packet over SONET / SDH, a technology that uses the high-speed transmission channel provided by synchronous optical networking (SONET) or synchronous digital hierarchy (SDH) to directly transmit IP data packets) interface, gigabit Ethernet (GE) interface, asynchronous transfer mode (ATM) interface, etc., and realize network traffic forwarding; multiple switching network boards are used to complete traffic forwarding between various interface boards internally. The control plane is composed of various control units on the main control board and control units on multiple interface boards. There are mainly three types of functional units on the main control board: system management control unit, system clock unit and system maintenance unit. The main control board, interface board, interface boards, switching network boards, and switching network boards are all connected to the system backplane through the system bus to achieve intercommunication.

[0045] In some embodiments, the interface board includes one or more processors for controlling and managing the interface board, communicating with the central processor on the main control board, and forwarding network traffic. The interface board also includes one or more memories for storing forwarding table entries so that the processor forwards network traffic by searching the forwarding table entries. The interface board also includes one or more network interfaces for receiving data streams or information sent by other devices, and processing these data streams or information according to the instructions of the processor.

[0046] It should be understood that if Figure 1 As shown, in the embodiment of the present application, the network device includes multiple interface boards, and a distributed forwarding mechanism is adopted. Under this mechanism, the operations on each interface board are basically similar, and for the sake of brevity, they are not repeated. In addition, the processor in the interface board can be a dedicated hardware or chip, such as a network processor or an application-specific integrated circuit (ASIC) to implement the above functions. This implementation method is what is commonly referred to as the forwarding plane using dedicated hardware or chip processing. Of course, the processor can also use a general-purpose processor, such as a general-purpose central processing unit (CPU) to implement the functions described above, and the embodiment of the present application does not limit this.

[0047] In some embodiments, the resource manager can be set in the main control board, can be set in any interface board, or can be set separately, and the embodiments of the present application do not limit this. Figure 1 The resource manager setting in the main control board is only taken as an example, and does not constitute a limitation on its setting location.

[0048] Based on this structure, when executing the resource adjustment method provided in the embodiment of the present application, the resource manager obtains the current traffic load rate of the target network entity, and determines the resource adjustment strategy corresponding to the current network traffic based on the current traffic load rate, and then adjusts the traffic forwarding resources in the network device based on the resource adjustment strategy. Wherein, the target network entity is a plurality of interface boards, a plurality of switching network boards, or any one of a plurality of interface boards in the network device, and the traffic forwarding resources include the switching network boards and serial links of the interface boards in the network device.

[0049] That is, the resource manager determines the resource adjustment strategy for processing the current network traffic by analyzing the current traffic load rate of multiple interface boards as a whole, the current traffic load rate of multiple switching boards as a whole, or the current traffic load rate of any one interface board, and then dynamically adjusts the number of enabled switching boards in the network device or the number of enabled serial links of at least one interface board in the network device according to the resource adjustment strategy.

[0050] It should be noted that Figure 1 Only the example of a network device 100 including 1 main control board, m interface boards and n switching network boards is taken. In practical applications, the network device 100 may also include multiple main control boards, that is, the network device may include a main main control board and a standby main control board. Of course, the network device 100 may also include more or fewer interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. In the case of including multiple interface boards, multiple interface boards communicate with each other through at least one switching network board to jointly realize load sharing and redundant backup. Under the centralized forwarding architecture, the network device may not need a switching network board, and multiple interface boards may bear the data processing function of the entire system. Under the distributed forwarding architecture, the network device includes multiple interface boards, and realizes data exchange between multiple interface boards through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the network device with a distributed architecture are greater than those of the network device with a centralized architecture. Which architecture is specifically adopted depends on the specific networking deployment scenario, and no limitation is made here.

[0051] based on Figure 1 The network devices shown are shown in Figure 2 When implementing data reception, forwarding and processing, each interface board includes at least one interface chip, and each switching network board includes at least one switching network chip, which is used to forward the network traffic of one interface chip to another interface chip.

[0052] Among them, an interface chip is connected to a switching network chip through a serial link to achieve the transmission of network traffic. Therefore, the number of interface chips and the number of serial links connected to the interface board determine the ability of the interface board to process network traffic. Similarly, the number of switching network chips and the number of serial links connected to the switching network board determine the ability of the switching network board to forward network traffic.

[0053] Based on this structure, when executing the resource adjustment method provided in the embodiment of the present application, the resource manager determines the resource adjustment strategy for processing the previous network traffic by analyzing the current traffic load rate of multiple interface boards as a whole, the current traffic load rate of multiple switching network boards as a whole, or the current traffic load rate of any interface board, and then dynamically adjusts the number of enabled switching network chips in the network device according to the resource adjustment strategy. This method has a finer granularity for adjusting traffic forwarding resources.

[0054] It should be understood that the structure of the network device in the above example is to more clearly illustrate the technical solution of the embodiment of the present application, and does not constitute a limitation on the network device and the technical solution provided by the embodiment of the present application. A person of ordinary skill in the art will know that with the emergence of new network devices, the technical solution provided by the embodiment of the present application is also applicable to similar technical problems.

[0055] Please refer to Figure 3 , Figure 3 is a flow chart of a resource adjustment method provided in an embodiment of the present application, the method is applied to Figure 1 or Figure 2 In the resource manager 140 shown, the method includes the following steps.

[0056] Step 301: Obtain the current traffic load rate of the target network entity, where the current traffic load rate indicates the load condition of the target network entity when forwarding the current network traffic. The target network entity is multiple interface boards, multiple switching network boards, or any one of multiple interface boards.

[0057] In other words, the current traffic load rate is the load rate of the target network entity when the target network entity forwards the current network traffic. The load rate is the ratio of the network resources occupied by the target network entity when processing the current network traffic to the total network resources of the target network entity. The load rate can reflect the ability of the target network entity to carry network traffic.

[0058] See also Figure 4For the network traffic forwarded by network devices, when observing the network traffic from a microscopic granularity, such as microseconds (us), its changes are rapid and oscillating. However, when observing the network traffic from a macroscopic granularity, such as seconds or even ten seconds, its changes are relatively stable. Moreover, when the network device processes the network traffic, its overall load rate is also low, and in most cases it maintains a low link load rate level. Therefore, the current traffic load rate of the target network traffic can be obtained based on the statistical granularity of seconds or ten seconds, and the traffic forwarding resources of the network device can be adjusted accordingly.

[0059] In some embodiments, although the second-level characteristics of network traffic are relatively stable, when network traffic exhibits abnormal jitters, the network device needs to quickly start the corresponding traffic forwarding resources. Therefore, if the second-level characteristics of network traffic are directly used as the basis for adjusting traffic forwarding resources, the delay in the statistics of the traffic load rate of network traffic may cause the duration of the network device wake-up process to not meet the actual processing requirements of network traffic. Therefore, in order to ensure that the network device can process network traffic in a timely and effective manner when adjusting traffic forwarding resources, the traffic load rate of the target network entity can be obtained based on the millisecond statistical granularity, and used as the basis for dynamically adjusting traffic forwarding resources, so as to achieve the effect of dynamically adjusting the power consumption of the network device.

[0060] Based on this, the actual process of the above step 301 can be: based on the millisecond-level traffic detection results, obtain the current traffic load rate of multiple interface boards as a whole, the current traffic load rate of multiple switching network boards as a whole, or the current traffic load rate of any interface board in the network device.

[0061] It should be noted that the traffic load rate is continuously counted at a statistical granularity of milliseconds, and the resource adjustment period for dynamically adjusting the traffic forwarding resources can also be at the millisecond level. When adjusting resources, timely detection and timely adjustment can be performed; continuous detection and periodic adjustment can also be performed, and the embodiments of the present application do not limit this. For example, the traffic load rate of the target network entity is obtained at a statistical granularity of 1 millisecond, and the statistical results of the traffic load rate are stored, and then the resource adjustment method provided in the embodiments of the present application is executed according to the resource adjustment period of 10 milliseconds, 100 milliseconds, etc.

[0062] Step 302: Based on the current traffic load rate, determine the resource adjustment strategy corresponding to the current network traffic. The resource adjustment strategy indicates the adjustment of traffic forwarding resources in the network device when forwarding the current network traffic. The traffic forwarding resources include serial links of the switching network board and the interface board.

[0063] It should be understood that network traffic usually flows into or out of a network device from multiple interface boards, and is forwarded internally through multiple switching boards in the network device. Therefore, the current traffic load rate of multiple interface boards as a whole can reflect the load situation when multiple switching boards forward network traffic, that is, the current traffic load rate of multiple interface boards as a whole is positively correlated with the number of enabled switching boards in the network device, and the number of enabled switching boards in the network device can be dynamically adjusted according to the current traffic load rate of multiple interface boards. Similarly, the ability of the switching board inside the network device to forward network traffic is positively correlated with the number of enabled switching boards in the network device. Therefore, the load situation of the network device forwarding the current network traffic can also be judged according to the current traffic load rate of multiple switching boards, so as to dynamically adjust the number of enabled switching boards in the network device. For a single interface board, its ability to process network traffic is positively correlated with the number of enabled serial links, so the load situation of the interface board processing the current network traffic can be judged based on the current traffic load rate of a single interface board, so as to dynamically adjust the number of enabled serial links of the interface board.

[0064] Since the target network entity is a plurality of interface boards, a plurality of switching network boards, or any one of the plurality of interface boards, the implementation methods of determining the resource adjustment strategy corresponding to the current network traffic based on the current traffic load rate of the target network entity are also different when the target network entity is different. They are introduced below respectively.

[0065] In the first implementation, the target network entity includes multiple interface boards or multiple switching network boards. In this case, the resource adjustment strategy includes a first adjustment strategy and a second adjustment strategy. The first adjustment strategy indicates to reduce the number of enabled switching network boards in the network device, and the second adjustment strategy indicates to increase the number of enabled switching network boards in the network device. Based on this, the implementation process of the above step 302 can be: obtaining the first historical traffic load rate of the target network entity; if the current traffic load rate is less than the first historical traffic load rate, determining that the resource adjustment strategy is the first adjustment strategy; if the current traffic load rate is greater than the first historical traffic load rate, determining that the resource adjustment strategy is the second adjustment strategy.

[0066] The first historical traffic load rate may be the traffic load rate of the target network entity last counted, or may be the average value of the traffic load rate of the target network entity in the last resource adjustment period, which is not limited in this embodiment of the present application.

[0067] For the target network entity, if the current traffic load rate is less than the first historical traffic load rate, it means that after the last resource adjustment, the switching network boards in the network device that are turned on may have excess resources while meeting the forwarding resource requirements of the current network traffic. Therefore, in order to improve the resource utilization of the network device and reduce the overall power consumption of the network device, the number of switched network boards turned on in the network device can be reduced. Similarly, if the current traffic load rate is greater than the first historical traffic load rate, it means that after the last resource adjustment, the switching network boards in the network device that are turned on may not be able to meet the forwarding resource requirements of the current network traffic. Therefore, it is necessary to increase the number of switched network boards turned on in the network device so that the switched network boards in the network device that are turned on can forward the current network traffic normally.

[0068] That is, the first historical traffic load rate is used as a reference to determine the change trend of the current traffic load rate of the target network entity, so as to determine whether it is necessary to increase the number of enabled switching network boards in the network device.

[0069] It should be noted that if the current traffic load rate of the target network entity is equal to the first historical traffic load rate, it means that the switching network boards in the network device that are turned on can meet the forwarding resource requirements of the current network traffic. In this case, the number of switched network boards in the network device that are turned on does not need to be adjusted.

[0070] In some embodiments, in order to ensure the normal forwarding of network traffic and avoid large fluctuations in network traffic during the current resource adjustment cycle, which may cause the switching network board in the turned-on state to be unable to meet the forwarding resource requirements of the actual network traffic, it is also possible to determine that the resource adjustment strategy is the second adjustment strategy when the current traffic load rate is equal to the first historical traffic load rate.

[0071] In this implementation, the resource manager dynamically adjusts the number of enabled switching boards in the network device based on the changing trend of the current traffic load rate of the target network entity. While meeting the current network traffic forwarding requirements, the overall power consumption of the network device is reduced from the dimension of the switching boards.

[0072] In the second implementation, the target network entity includes multiple interface boards or multiple switching network boards, the interface board includes at least one interface chip, the switching network board includes at least one switching network chip, and the switching network chip is used to forward the network traffic of one interface chip to another interface chip. At this time, the resource adjustment strategy includes a third adjustment strategy and a fourth adjustment strategy, the third adjustment strategy indicates to reduce the number of enabled switching network chips in the network device, and the fourth adjustment strategy indicates to increase the number of enabled switching network chips in the network device. Based on this, the implementation process of the above step 302 can be: obtaining the first historical traffic load rate of the target network entity; if the current traffic load rate is less than the first historical traffic load rate, determining that the resource adjustment strategy is the third adjustment strategy; if the current traffic load rate is greater than the first historical traffic load rate, determining that the resource adjustment strategy is the fourth adjustment strategy.

[0073] The first historical traffic load rate may be the traffic load rate of the target network entity last counted, or may be the average value of the traffic load rate of the target network entity in the last resource adjustment period, which is not limited in this embodiment of the present application.

[0074] For the target network entity, if the current traffic load rate is less than the first historical traffic load rate, it means that after the last resource adjustment, the switching network chip in the network device that is turned on may have excess resources while meeting the forwarding resource requirements of the current network traffic. Therefore, in order to improve the resource utilization of the network device and reduce the overall power consumption of the network device, the number of switched network chips turned on in the network device can be reduced. Similarly, if the current traffic load rate is greater than the first historical traffic load rate, it means that after the last resource adjustment, the switching network chip in the network device that is turned on may not be able to meet the forwarding resource requirements of the current network traffic. Therefore, it is necessary to increase the number of switched network chips turned on in the network device so that the switched network chips in the network device that are turned on can forward the current network traffic normally.

[0075] That is, the first historical traffic load rate is used as a reference to determine the change trend of the current traffic load rate of the target network entity, so as to determine whether it is necessary to increase the number of enabled switching network chips in the network device.

[0076] It should be noted that if the current traffic load rate of the target network entity is equal to the first historical traffic load rate, it means that the switching network chip in the network device that is turned on can meet the forwarding resource requirements of the current network traffic. In this case, the number of switched network chips turned on in the network device does not need to be adjusted.

[0077] In some embodiments, in order to ensure the normal forwarding of network traffic and avoid large fluctuations in network traffic during the current resource adjustment cycle, which may cause the switching network chip in the turned-on state to be unable to meet the forwarding resource requirements of the actual network traffic, it is also possible to determine that the resource adjustment strategy is the fourth adjustment strategy when the current traffic load rate is equal to the first historical traffic load rate.

[0078] It should be noted that there is a correlation between adjusting the number of enabled switching network boards and adjusting the number of enabled switching network chips, that is, the number of enabled switching network boards in the network device can be dynamically adjusted by dynamically adjusting the number of enabled switching network chips. Turning on a switching network board means turning on at least one switching network chip in the switching network board; and turning off a switching network board means turning off all switching network chips in the switching network board. That is, the first implementation method mentioned above is to adjust resources in the dimension of switching network boards, while the second implementation method is to adjust resources in the dimension of switching network chips. Compared with the first implementation method, the second implementation method has a finer granularity in adjusting traffic forwarding resources.

[0079] In this implementation, the resource manager dynamically adjusts the number of enabled switching network chips in the network device based on the changing trend of the current traffic load rate of the target network entity. While meeting the current network traffic forwarding requirements, the overall power consumption of the network device is reduced from the dimension of the switching network chip.

[0080] In a third implementation, the target network entity includes a target interface board, and the target interface board is any one of a plurality of interface boards. In this case, the resource adjustment strategy includes a fifth adjustment strategy and a sixth adjustment strategy, and the fifth adjustment strategy indicates to reduce the number of serial links opened by the target interface board, and the sixth adjustment strategy indicates to increase the number of serial links opened by the target interface board. Based on this, the implementation process of the above step 302 can be: obtaining the second historical traffic load rate of the target network entity; if the current traffic load rate is less than the second historical traffic load rate, determining that the resource adjustment strategy is the fifth adjustment strategy; if the current traffic load rate is greater than the second historical traffic load rate, determining that the resource adjustment strategy is the sixth adjustment strategy.

[0081] The second historical traffic load rate may be the traffic load rate of the target interface board counted last time, or may be the average value of the traffic load rate of the target interface board in the last resource adjustment cycle, and this embodiment of the present application does not impose any limitation on this.

[0082] For the target interface board, if the current traffic load rate is less than the second historical traffic load rate, it means that after the last resource adjustment, the serial link in the target interface board that is in an open state may have excess resources while meeting the forwarding resource requirements of the current network traffic. Therefore, in order to improve the resource utilization of the target interface board and reduce the overall power consumption of the target interface board, the number of open serial links in the target interface board can be reduced. Similarly, if the current traffic load rate is greater than the second historical traffic load rate, it means that after the last resource adjustment, the serial link in the target interface board that is in an open state may not be able to meet the forwarding resource requirements of the current network traffic. Therefore, it is necessary to increase the number of open serial links in the target interface board so that the serial link in the target interface board that is in an open state can forward the current network traffic normally.

[0083] That is, the second historical traffic load rate is used as a reference to determine the change trend of the current traffic load rate of the target interface board, so as to determine whether the number of enabled serial links in the target interface board needs to be increased.

[0084] It should be noted that if the current traffic load rate of the target interface board is equal to the second historical traffic load rate, it means that the serial link in the target interface board that is in the open state can meet the forwarding resource requirements of the current network traffic. In this case, the number of open serial links of the target interface board does not need to be adjusted.

[0085] In some embodiments, in order to ensure that the target interface board can process network traffic normally and avoid large fluctuations in network traffic during the current resource adjustment cycle, resulting in the serial link in the open state being unable to meet the forwarding resource requirements of the actual network traffic, it is also possible to determine that the resource adjustment strategy is the sixth adjustment strategy when the current traffic load rate is equal to the second historical traffic load rate.

[0086] In this implementation, the resource manager dynamically adjusts the number of open serial links of the target interface board based on the changing trend of the current traffic load rate of the target interface board, so that the serial links in the open state can meet the resource requirements of the target interface board when forwarding the current network traffic, while reducing the overall power consumption of the network device from the dimension of the interface board.

[0087] In some embodiments, according to the third implementation method described above, the number of enabled serial links of each interface board in the network device may be dynamically adjusted to reduce the overall power consumption of the network device from the dimension of the interface board.

[0088] Step 303: Based on the resource adjustment policy, adjust the traffic forwarding resources in the network device.

[0089] Referring to the explanation of step 302 above, when the target network entity is different, the determined resource adjustment strategy is different, so based on different resource adjustment strategies, the implementation methods of adjusting the traffic forwarding resources are also different. They are introduced below respectively.

[0090] Corresponding to the first implementation method illustrated in the above step 302, the resource manager can dynamically adjust the number of enabled switching boards in the network device based on the current traffic load rate of multiple interface boards or multiple switching boards. At this time, the implementation method of step 303 includes the following first and second cases.

[0091] In the first case, if the resource adjustment strategy is the first adjustment strategy, the first single board load rate interval corresponding to the current traffic load rate is determined from multiple single board load rate intervals, and the multiple single board load rate intervals respectively correspond to a number of network boards; according to the first number of network boards corresponding to the first single board load rate interval, at least one switching network board in the network device that is in an turned-on state is shut down, so that the number of switching network boards that have not been shut down in the network device is equal to the number of first network boards.

[0092] It should be noted that, in order to distinguish it from the shutdown process of the switching network chip, the switching network board that has not been shut down here refers to a switching network board in which at least one switching network chip is in an on state. For a switching network board in a network device, if there is at least one switching network chip in an on state, the switching network board is considered to be in an on state. Therefore, when the number of switching network boards that have not been shut down in the network device is equal to the number of first network boards, the switching network chips in the switching network board that has not been shut down may all be in an on state, or may be partially in an on state, and the embodiments of the present application do not limit this.

[0093] In a possible implementation, when shutting down the switching network board, the switching network board may be shut down by powering off, clock gating, or frequency reduction. The embodiment of the present application does not limit the specific shutting down method.

[0094] Optionally, when the requirements for fast wake-up of the service are met, the serial link, media access control address (MAC) interface module (also called MAG interface module), switch buffer (SWB) module, etc. of the switching network chip in the switching network board can also be selectively shut down when the switching network board is shut down. The embodiments of the present application do not limit this.

[0095] In the second case, if the resource adjustment strategy is the second adjustment strategy, the second single board load rate interval corresponding to the current traffic load rate is determined from multiple single board load rate intervals, and the multiple single board load rate intervals respectively correspond to a number of network boards; according to the second number of network boards corresponding to the second single board load rate interval, at least one switching network board in the network device that is in a closed state is turned on, so that the number of switching network boards in the network device that are in an turned-on state is equal to the number of second network boards.

[0096] Similarly, in order to distinguish it from the startup process of the switching network chip, if there is at least one switching network chip in the startup state, the switching network board is considered to be in the startup state. The embodiment of the present application does not limit the number of switching network chips turned on in the switching network board in the startup state.

[0097] In a possible implementation, when the switching network board is turned on, the switching network board can be turned on by powering on, releasing clock gating, or releasing frequency reduction. The embodiment of the present application does not limit the specific turning-on method.

[0098] Optionally, when the switching network board is turned on, the serial link, MAG interface module, SWB module, etc. of the switching network chip in the switching network board can be turned on. Specifically, the function modules turned off during the turn-off process correspond to the function modules turned on during the turn-on process.

[0099] It should be noted that the above-mentioned multiple single-board load rate intervals are obtained based on the overall ability of multiple interface boards to process network traffic, or the multiple single-board load rate intervals are obtained based on the overall ability of multiple switching network boards to process network traffic; wherein the division granularity of the multiple single-board load rate intervals is greater than the reference granularity.

[0100] When the target network entity is a plurality of interface boards, multiple single board load rate intervals and the number of network boards corresponding to each single board load rate interval are determined based on the overall processing capacity of the plurality of interface boards for network traffic. When the target network entity is a plurality of switching network boards, multiple single board load rate intervals and the number of network boards corresponding to each single board load rate interval are determined based on the overall processing capacity of the plurality of switching network boards for network traffic.

[0101] Combining the above two situations, when the target network entity includes multiple interface boards or multiple switching network boards, based on the current traffic load rate of the target network entity, first determine a single board load rate interval in which the current traffic load rate is located from multiple single board load rate intervals, and then use the number of network boards corresponding to the single board load rate interval as the target adjustment value to adjust the number of switched network boards in the network device.

[0102] As an example, the implementation process of determining multiple single board load rate intervals and the number of network boards corresponding to each single board load rate interval can be: based on the overall ability of multiple interface boards to process network traffic, or the overall ability of multiple switching network boards to process network traffic, multiple traffic load ratio intervals are divided to determine multiple single board load rate intervals; and an on / off network board ratio value is configured for each single board load rate interval to determine the number of network boards corresponding to each single board load rate interval. Table 1 shows a corresponding relationship between a single board load rate interval and the number of network boards.

[0103] Table 1

[0104] Single board load rate range Number of stencils (0%,56%) 60% / 40% (56%,75%) 80% / 20% (75%,100%) 100%

[0105] It should be understood that Table 1 only uses three single board load rate intervals as examples, and does not constitute a limitation on the number of divided single board load rate intervals.

[0106] Referring to Table 1, if the current traffic load rate of the target network entity is 68%, since the current traffic load rate is within the single board load rate range of (56%, 75%), the number of switched-on switching boards in the network device is adjusted according to the on / off board ratio of 80% / 20%, so that the ratio of the number of switched-on switching boards in the network device to the total number of switched-on switching boards is 80%.

[0107] Based on the above Table 1, when it is known that the network device includes 5 interface boards and 5 switching network boards, and the overall traffic processing rate of the 5 interface boards is 12.8 Tbps, and the capacity of each switching network board to process network traffic is 2.56 Tbps, 12.8 Tbps can be divided into three traffic load intervals, thereby determining three single-board load rate intervals, each single-board load rate interval corresponds to a traffic load interval; and a network board opening number is configured for each single-board load rate interval. Table 2 shows another correspondence between single-board load rate intervals and network board numbers.

[0108] Table 2

[0109] Single board load rate range Number of stencils (0Tbps, 7.2Mbps) 3 (7.2Mbps, 9.6Mbps) 4 (9.6Mbps, 12.8Tbps) 5

[0110] Referring to Table 2, if the current traffic load rate of the target network entity is 68% and the total capacity of the target network entity is 12.8Tbps, it is determined that the current traffic load of the target network entity is approximately 8.7Mbps. Since the current traffic load is within the single-board load rate range of (7.2Mbps, 9.6Mbps), the number of enabled switching boards in the network device is adjusted to 4.

[0111] Referring to Table 1 or Table 2 above, if the current traffic load rate of the target network entity is the same as the endpoint value of a certain single board load rate interval, the number of switched-on switching boards in the network device can be dynamically adjusted according to the number of boards corresponding to the single board load rate interval, or the operation of adjusting the number of switched-on switching boards in the network device may not be performed. The embodiments of the present application are not limited to this.

[0112] It should be understood that the above Tables 1 and 2 are only examples of the single board load rate interval and the number of mesh panels. In actual application, the correspondence between the single board load rate interval and the number of mesh panels can also be set in other ways, and the embodiments of the present application do not limit this.

[0113] Corresponding to the second implementation method illustrated in the above step 302, the resource manager can dynamically adjust the number of enabled switching network chips in the network device based on the current traffic load rate of multiple interface boards or multiple switching network boards. At this time, the implementation methods of step 303 include the following third and fourth cases.

[0114] In the third case, if the resource adjustment strategy is the third adjustment strategy, the first chip load rate interval corresponding to the current traffic load rate is determined from multiple chip load rate intervals, and the multiple chip load rate intervals respectively correspond to a chip quantity; according to the first chip quantity corresponding to the first chip load rate interval, at least one switching network chip in the network device that is in an turned-on state is shut down, so that the number of switching network chips in the network device that are in an turned-on state is equal to the first chip quantity.

[0115] In one possible implementation, when the service fast wake-up requirements are met, the serial link, MAG interface module, SWB module, etc. of the switching network chip can also be selectively shut down when the switching network chip is shut down. The embodiment of the present application does not limit this.

[0116] In the fourth case, if the resource adjustment strategy is the fourth adjustment strategy, the second chip load rate interval corresponding to the current traffic load rate is determined from multiple chip load rate intervals, and the multiple chip load rate intervals respectively correspond to a chip quantity; according to the second chip quantity corresponding to the second chip load rate interval, at least one switching network chip in the closed state in the network device is turned on, so that the number of switching network chips in the turned-on state in the network device is equal to the second chip quantity.

[0117] In a possible implementation, when the switching network chip is turned on, the serial link, MAG interface module, SWB module, etc. of the switching network chip may be turned on. For example, which functional modules are turned off during the turn-on process, and which functional modules are turned on during the turn-on process. This embodiment of the application does not limit this.

[0118] It should be noted that the above-mentioned multiple chip load rate intervals are obtained based on the ability of interface chips included in multiple interface boards to process network traffic, or the multiple chip load rate intervals are obtained based on the ability of switching network chips included in multiple switching network boards to process network traffic; wherein the division granularity of the chip load rate intervals is smaller than the reference granularity.

[0119] That is, the division granularity of the chip load rate interval is smaller than the division granularity of the single board load rate interval in the previous text, so the traffic forwarding resources in the network device can be dynamically adjusted at a finer granularity.

[0120] When the target network entity is a plurality of interface boards, based on the ability of the interface chips included in the plurality of interface boards to process network traffic, a plurality of chip load rate intervals and the number of chips corresponding to each chip load rate interval are determined. When the target network entity is a plurality of switching network boards, based on the ability of the switching network chips included in the plurality of switching network boards to process network traffic, a plurality of chip load rate intervals and the number of chips corresponding to each chip load rate interval are determined.

[0121] Combining the above two situations, when the target network entity includes multiple interface boards or multiple switching network boards, based on the current traffic load rate of the target network entity, first determine a chip load rate interval in which the current traffic load rate is located from multiple chip load rate intervals, and then use the number of chips corresponding to the chip load rate interval as the target adjustment value to adjust the number of enabled switching network chips in the network device.

[0122] As an example, the implementation process of determining multiple chip load rate intervals and the number of chips corresponding to each chip load rate interval can be: based on the overall ability of multiple interface boards to process network traffic, or the overall ability of multiple switching network boards to process network traffic, multiple traffic load ratio intervals are divided to determine multiple chip load rate intervals; and an on / off chip ratio value is configured for each chip load rate interval to determine the number of chips corresponding to each chip load rate interval. Table 3 shows a corresponding relationship between a chip load rate interval and the number of chips.

[0123] Table 3

[0124] Chip load rate range Number of chips (0,20%) 60% / 40% (20%,40%) 70% / 30% (40%,60%) 80% / 20% (60%,80%) 90% / 10% (80%,100%) 100%

[0125] It should be understood that Table 3 only uses five chip load rate intervals as examples, and does not constitute a limitation on the number of divided chip load rate intervals.

[0126] Referring to Table 3, if the current traffic load rate of the target network entity is 70%, since the current traffic load rate is in the chip load rate range of (60%, 80%), the number of switched network chips in the network device is adjusted according to the on / off chip ratio of 90% / 10%, so that the ratio of the number of switched network chips in the network device that are on to the total number of switched network chips is 90%.

[0127] Based on the above Table 3, if the network device includes 5 interface boards and 5 switching network boards, the overall traffic processing rate of the 5 interface boards is 12.8 Tbps, the capacity of each switching network board to process network traffic is 2.56 Tbps, and one switching network board includes two switching network chips, that is, the network device includes 10 switching network chips, and the processing capacity of each switching network chip is 1.28 Tbps.

[0128] At this time, 12.8 Tbps can be divided into five traffic load intervals, thereby determining five chip load rate intervals, each chip load rate interval corresponds to a traffic load interval; and a chip enable quantity is configured for each chip load rate interval. Table 4 shows another correspondence between chip load rate intervals and chip quantities.

[0129] Table 4

[0130] Chip load rate range Number of chips (0Tbps, 2.56Mbps) 6 (2.56Mbps, 5.12Mbps) 7 (5.12Mbps, 7.68Mbps) 8 (7.68Mbps, 10.2Mbps) 9 (10.2Mbps, 12.8Mbps) 10

[0131] Referring to Table 4, if the current traffic load rate of the target network entity is 70% and the total capacity of the target network entity is 12.8Tbps, it can be determined that the current traffic load of the target network entity is approximately 8.96Mbps. Since the current traffic load is within the chip load rate range of (7.68Mbps, 10.2Mbps), the number of enabled switching network chips in the network device is adjusted to 9.

[0132] Referring to Table 3 or Table 4 above, if the current traffic load rate of the target network entity is the same as the endpoint value of a chip load rate interval, the number of enabled switching network chips in the network device can be dynamically adjusted according to the number of chips corresponding to the chip load rate interval, or the operation of adjusting the number of enabled switching network chips in the network device may not be performed. The embodiments of the present application are not limited to this.

[0133] It should be understood that the above Tables 3 and 4 are only examples of the expression of chip load rate intervals and chip quantities. In actual applications, the correspondence between the chip load rate intervals and the chip quantities can also be set in other ways, and the embodiments of the present application do not limit this.

[0134] In some embodiments, when adjusting the number of enabled switching network chips in a network device, at least one switching network chip can be selected from the switching network chips included in the network device for shutdown processing or startup processing according to a certain chip selection strategy.

[0135] Among them, the chip selection strategy is to select the switching network chips to be shut down from the switching network boards where some switching network chips have been shut down; similarly, to select the switching network chips to be turned on from the switching network boards where some switching network chips have been turned on. That is, the switching network chips in a certain switching network board are shut down or turned on as concentratedly as possible.

[0136] In a possible implementation, based on the switch states of the switching network chips in multiple switching network boards and the number of first chips, a target chip that needs to be shut down is determined from at least one switching network chip in an on state in a network device, and the target chip is shut down. Similarly, based on the switch states of the switching network chips in multiple switching network boards and the number of second chips, a target chip that needs to be turned on is determined from at least one switching network chip in a off state in a network device, and the target chip is turned on.

[0137] As an example, the network device includes 5 switching network boards, each switching network board includes 3 switching network chips, and the enabling status of the switching network chips in the 5 switching network boards is shown in Table 5 below.

[0138] Table 5

[0139]

[0140] It can be seen that all the switching network chips in the No. 2 switching network board in the network device are in the off state, and all the switching network chips in the No. 4 switching network board are in the on state. In the No. 1 switching network board, the No. 3 switching network board, and the No. 5 switching network board, there are both on-state switching network chips and off-state switching network chips.

[0141] When the number of the first chips is 3, three switching network chips need to be selected from the switching network chips in the network device that are in the turned-on state for shutdown processing. Considering that some switching network chips in the switching network board No. 1, the switching network board No. 3, and the switching network board No. 5 are already in the turned-off state, therefore, three switching network chips are selected as target chips from the switching network chips No. 1.1, No. 1.3, No. 3.2, and No. 5.1 that are in the turned-on state, and are shut down.

[0142] When the second chip quantity is 5, five switching network chips need to be selected from the switching network chips in the closed state in the network device for opening. Similarly, considering that some switching network chips in the No. 1 switching network board, the No. 3 switching network board, and the No. 5 switching network board are already in the open state, the No. 1.2 switching network chip, the No. 3.1 switching network chip, the No. 3.3 switching network chip, the No. 5.2 switching network chip, and the No. 5.3 switching network chip in the closed state are used as target chips and are opened.

[0143] In addition, before executing the above step 303, whether to adjust the number of enabled switching network boards or switching network chips in the network device also requires judging whether the current network traffic meets the SLA requirement.

[0144] In some embodiments, the resource manager obtains service level agreement (SLA) information corresponding to the current network traffic; if the SLA information meets the SLA requirements corresponding to the current network traffic, the above step 303 is executed.

[0145] The SLA information of the current network traffic includes at least one SLA parameter, and the at least one SLA parameter includes one or more of a packet loss rate, a bit error rate, and a delay, etc. Correspondingly, the SLA requirement of the current network traffic includes at least one requirement information, and the at least one requirement information includes one or more of a packet loss rate requirement, a bit error rate requirement, and a delay requirement, etc. Each SLA parameter corresponds to one requirement information.

[0146] In a possible implementation, when each SLA parameter of the current network traffic satisfies corresponding demand information respectively, it is determined that the SLA information of the current network traffic meets the SLA demand of the current network traffic.

[0147] In some embodiments, if the SLA information of the current network traffic does not meet the SLA requirements corresponding to the current network traffic, at least one switching network board or switching network chip in a closed state in the network device is turned on according to the target unit opening amount.

[0148] In a possible implementation, for multiple SLA parameters of the current network traffic, if there is an SLA parameter that does not meet the corresponding requirement information, then the SLA information of the current network traffic does not meet the SLA requirement of the current network traffic.

[0149] The target unit opening quantity can be set to any value, such as 1, 2, 3, etc. For example, the target unit opening quantity is 1, that is, when the SLA information of the current network traffic does not meet the SLA requirement corresponding to the current network traffic, a switching network board or a switching network chip in the network device that is in a closed state is opened.

[0150] Corresponding to the third implementation method illustrated in the above step 302, the resource manager can dynamically adjust the number of opened serial links of the target interface board based on the current traffic load rate of the target interface board. At this time, the implementation methods of step 303 include the following fifth and sixth cases.

[0151] In the fifth case, if the resource adjustment strategy is the fifth adjustment strategy, the first link load rate interval corresponding to the current traffic load rate is determined from multiple link load rate intervals, and the multiple link load rate intervals respectively correspond to a link quantity; according to the first link quantity corresponding to the first link load rate interval, at least one serial link in the target interface board that is in an open state is closed, so that the number of serial links in the target interface board that are in an open state is equal to the first link quantity.

[0152] It should be noted that since the interface board is involved in the forwarding service, a certain interface board cannot be directly shut down. Therefore, when shutting down the serial link of the target interface board, clock control or frequency reduction can be used to shut it down, and the embodiment of the present application does not limit this.

[0153] In some embodiments, it is also possible to determine whether to close the serial link of the target interface board according to the support of the interface chip in the target interface board. Under the premise of ensuring that the traffic forwarding service and the interface chip function normally, the serial link of the target interface board can be closed according to the first link quantity.

[0154] Optionally, on the basis of closing the serial link, sub-modules, sub-planes, etc. inside the target interface board may also be closed, which is not limited in the embodiment of the present application.

[0155] In the sixth case, if the resource adjustment strategy is the sixth adjustment strategy, the second link load rate interval corresponding to the current traffic load rate is determined from multiple link load rate intervals, and the multiple link load rate intervals respectively correspond to a link quantity; according to the second link quantity corresponding to the second link load rate interval, at least one serial link in the target interface board that is in a closed state is opened, so that the number of serial links in the target interface board that are in an opened state is equal to the second link quantity.

[0156] In some embodiments, when the serial link is turned on, the sub-modules, sub-planes, etc. that are closed inside the template interface board can also be turned on. The specific turning on method can be to release the clock, cancel the frequency reduction, etc., and may also include table item sending, module wake-up and other operation processes until the target interface board works normally.

[0157] It should be noted that the multiple link load rate intervals are obtained based on the capability of the target interface board to process network traffic.

[0158] In summary, in the embodiment of the present application, the resource manager determines the resource adjustment strategy corresponding to the current network traffic based on the current traffic load rate of the target network entity, and then adjusts the traffic forwarding resources in the network device for forwarding the current network traffic based on the resource adjustment strategy. In this way, according to the current traffic load rate of the target network entity, the traffic forwarding resources in the network device are dynamically adjusted, so that the overall power consumption of the network device can change with the change of the current network traffic. While meeting the current network traffic forwarding requirements, it avoids running a large number of traffic forwarding resources under low traffic load, thereby reducing the power demand and heat dissipation demand of the network device under low traffic load.

[0159] See also Figure 5 , Figure 5 is a schematic diagram of a resource adjustment device provided in an embodiment of the present application. The resource adjustment device can be implemented by software, hardware or a combination of both. Figure 1 or Figure 2 The resource adjustment device 500 includes: a load rate acquisition module 501, a strategy determination module 502 and a resource adjustment module 503.

[0160] The load rate acquisition module 501 is used to obtain the current traffic load rate of the target network entity. The current traffic load rate indicates the load condition of the target network entity when forwarding the current network traffic. The target network entity is multiple interface boards, multiple switching network boards, or any one of multiple interface boards. For the detailed implementation process, please refer to the relevant content in the above step 301, which will not be repeated here.

[0161] The policy determination module 502 is used to determine the resource adjustment policy corresponding to the current network traffic based on the current traffic load rate. The resource adjustment policy indicates the adjustment of the traffic forwarding resources in the network device when forwarding the current network traffic. The traffic forwarding resources include the serial links of the switching network board and the interface board. For the detailed implementation process, please refer to the relevant content in the above step 302, which will not be repeated here.

[0162] The resource adjustment module 503 is used to adjust the traffic forwarding resources in the network device based on the resource adjustment policy. Please refer to the relevant content in the above step 303 for the detailed implementation process, which will not be repeated here.

[0163] Optionally, the target network entity includes multiple interface boards or multiple switching network boards, and the resource adjustment strategy includes a first adjustment strategy and a second adjustment strategy, the first adjustment strategy indicates reducing the number of enabled switching network boards in the network device, and the second adjustment strategy indicates increasing the number of enabled switching network boards in the network device;

[0164] The strategy determination module 502 is specifically configured to:

[0165] Obtaining a first historical traffic load rate of a target network entity;

[0166] If the current traffic load rate is less than the first historical traffic load rate, determining the resource adjustment strategy to be the first adjustment strategy;

[0167] If the current traffic load rate is greater than the first historical traffic load rate, the resource adjustment strategy is determined to be the second adjustment strategy.

[0168] Optionally, the resource adjustment module 503 is specifically configured to:

[0169] If the resource adjustment strategy is the first adjustment strategy, determining a first single board load rate interval corresponding to the current traffic load rate from multiple single board load rate intervals, wherein the multiple single board load rate intervals respectively correspond to one network board quantity;

[0170] According to the first network board quantity corresponding to the first single board load rate interval, at least one switching network board in the network device that is in an enabled state is shut down, so that the number of switching network boards that are not shut down in the network device is equal to the number of first network boards.

[0171] Optionally, the resource adjustment module 503 is specifically configured to:

[0172] If the resource adjustment strategy is the second adjustment strategy, determining a second single board load rate interval corresponding to the current traffic load rate from a plurality of single board load rate intervals, wherein the plurality of single board load rate intervals respectively correspond to a number of network boards;

[0173] According to the number of second network boards corresponding to the second single board load rate interval, at least one switching network board in the network device that is in a closed state is turned on, so that the number of switching network boards in the network device that are in an turned-on state is equal to the number of second network boards.

[0174] Optionally, multiple single-board load rate intervals are obtained based on the overall ability of multiple interface boards to process network traffic, or multiple single-board load rate intervals are obtained based on the overall ability of multiple switching network boards to process network traffic; wherein the division granularity of the multiple single-board load rate intervals is greater than the reference granularity.

[0175] Optionally, the interface board includes at least one interface chip, the switching network board includes at least one switching network chip, and the switching network chip is used to forward network traffic of one interface chip to another interface chip; the target network entity includes multiple interface boards or multiple switching network boards, and the resource adjustment strategy includes a third adjustment strategy and a fourth adjustment strategy, the third adjustment strategy indicates to reduce the number of enabled switching network chips in the network device, and the fourth adjustment strategy indicates to increase the number of enabled switching network chips in the network device;

[0176] The strategy determination module 502 is specifically configured to:

[0177] Obtaining a first historical traffic load rate of a target network entity;

[0178] If the current traffic load rate is less than the first historical traffic load rate, determining the resource adjustment strategy to be the third adjustment strategy;

[0179] If the current traffic load rate is greater than the first historical traffic load rate, the resource adjustment strategy is determined to be the fourth adjustment strategy.

[0180] Optionally, the resource adjustment module 503 is specifically configured to:

[0181] If the resource adjustment strategy is the third adjustment strategy, determining a first chip load rate interval corresponding to the current traffic load rate from a plurality of chip load rate intervals, wherein the plurality of chip load rate intervals respectively correspond to a chip quantity;

[0182] According to the first chip quantity corresponding to the first chip load rate interval, at least one switching network chip in the network device that is in an enabled state is shut down so that the number of switching network chips in the network device that are in an enabled state is equal to the first chip quantity.

[0183] Optionally, the resource adjustment module 503 is specifically configured to:

[0184] If the resource adjustment strategy is the fourth adjustment strategy, determining a second chip load rate interval corresponding to the current traffic load rate from a plurality of chip load rate intervals, wherein the plurality of chip load rate intervals respectively correspond to a chip quantity;

[0185] According to the second chip quantity corresponding to the second chip load rate interval, at least one switching network chip in the network device that is in a closed state is turned on, so that the number of switching network chips in the network device that are in an opened state is equal to the second chip quantity.

[0186] Optionally, multiple chip load rate intervals are obtained based on the ability of interface chips included in multiple interface boards to process network traffic, or multiple chip load rate intervals are obtained based on the ability of switching network chips included in multiple switching network boards to process network traffic; wherein the division granularity of the chip load rate intervals is smaller than the reference granularity.

[0187] Optionally, the resource adjustment device 500 further includes:

[0188] An information acquisition module is used to obtain the service level agreement SLA information corresponding to the current network traffic;

[0189] The resource adjustment module is also used to execute the step of adjusting the traffic forwarding resources in the network device based on the resource adjustment strategy if the SLA information meets the SLA requirements corresponding to the current network traffic.

[0190] Optionally, the resource adjustment module is further used to enable at least one switching network board or switching network chip in a closed state in the network device according to the target unit enable amount if the SLA information does not meet the SLA requirement corresponding to the current network traffic.

[0191] Optionally, the target network entity includes a target interface board, the target interface board is any one of a plurality of interface boards, the resource adjustment strategy includes a fifth adjustment strategy and a sixth adjustment strategy, the fifth adjustment strategy indicates reducing the number of enabled serial links of the target interface board, and the sixth adjustment strategy indicates increasing the number of enabled serial links of the target interface board;

[0192] The strategy determination module 502 is specifically configured to:

[0193] Obtaining a second historical traffic load rate of the target network entity;

[0194] If the current traffic load rate is less than the second historical traffic load rate, determining the resource adjustment strategy to be the fifth adjustment strategy;

[0195] If the current traffic load rate is greater than the second historical traffic load rate, the resource adjustment strategy is determined to be the sixth adjustment strategy.

[0196] Optionally, the resource adjustment module 503 is specifically configured to:

[0197] If the resource adjustment strategy is the fifth adjustment strategy, determining a first link load rate interval corresponding to the current traffic load rate from a plurality of link load rate intervals, wherein the plurality of link load rate intervals respectively correspond to a link quantity;

[0198] At least one serial link in the target interface board that is in an open state is closed according to the first link quantity corresponding to the first link load rate interval, so that the number of serial links in the target interface board that are in an open state is equal to the first link quantity.

[0199] Optionally, the resource adjustment module 503 is specifically configured to:

[0200] If the resource adjustment strategy is the sixth adjustment strategy, determining a second link load rate interval corresponding to the current traffic load rate from a plurality of link load rate intervals, wherein the plurality of link load rate intervals respectively correspond to a link quantity;

[0201] At least one closed serial link in the target interface board is opened according to the second link quantity corresponding to the second link load rate interval, so that the number of opened serial links in the target interface board is equal to the second link quantity.

[0202] Optionally, the multiple link load rate intervals are obtained based on the capability of the target interface board to process network traffic.

[0203] In the embodiment of the present application, the resource adjustment device determines the resource adjustment strategy corresponding to the current network traffic based on the current traffic load rate of the target network entity, and then adjusts the traffic forwarding resources in the network device for forwarding the current network traffic based on the resource adjustment strategy. In this way, according to the current traffic load rate of the target network entity, the traffic forwarding resources in the network device are dynamically adjusted, so that the overall power consumption of the network device can change with the change of the current network traffic. While meeting the current network traffic forwarding requirements, it is avoided to run a large number of traffic forwarding resources under low traffic load, thereby reducing the power demand and heat dissipation demand of the network device under low traffic load.

[0204] It should be noted that: the resource adjustment device provided in the above embodiment only uses the division of the above functional modules as an example when dynamically adjusting the traffic forwarding resources in the network device. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the resource adjustment device provided in the above embodiment and the resource adjustment method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0205] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program runs on a network device, the network device executes the steps of the above-mentioned resource adjustment method.

[0206] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program runs on a network device, the network device executes the steps of the above-mentioned resource adjustment method.

[0207] In the above embodiments, the resource adjustment method can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on the network device, the process or function according to the embodiment of the present application is generated in whole or in part. The network device can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. Among them, the computer program can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer program can be transmitted from a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (for example: infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer, or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. It is worth noting that the computer-readable storage medium mentioned in the embodiments of the present application may be a non-volatile storage medium, in other words, a non-transient storage medium.

[0208] It should be understood that the "multiple" mentioned herein refers to two or more. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of the embodiments of the present application, in the embodiments of the present application, the words "first", "second" and the like are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first", "second" and the like do not limit the quantity and execution order, and the words "first", "second" and the like do not limit them to be necessarily different.

[0209] It should be noted that the information (including but not limited to the business type of network traffic, business information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.) and signals involved in the embodiments of the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0210] The above-mentioned embodiments are provided for the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A resource adjustment method, characterized in that: A resource manager applied to a network device, wherein the network device further comprises a plurality of interface boards and a plurality of switching network boards, and each interface board is connected to at least one switching network board via at least one serial link, and the switching network board is used to forward network traffic of one interface board to another interface board; the method comprises: Acquire a current traffic load rate of a target network entity, where the current traffic load rate indicates a load condition of the target network entity when forwarding current network traffic, and the target network entity is the multiple interface boards, the multiple switching network boards, or any one of the multiple interface boards; Based on the current traffic load rate, determine a resource adjustment strategy corresponding to the current network traffic, the resource adjustment strategy indicating an adjustment of traffic forwarding resources in the network device when forwarding the current network traffic, the traffic forwarding resources including serial links of the switching network board and the interface board; Based on the resource adjustment policy, the traffic forwarding resources in the network device are adjusted.

2. The method according to claim 1, characterized in that The target network entity includes the multiple interface boards or the multiple switching network boards, the resource adjustment strategy includes a first adjustment strategy and a second adjustment strategy, the first adjustment strategy indicates to reduce the number of enabled switching network boards in the network device, and the second adjustment strategy indicates to increase the number of enabled switching network boards in the network device; The determining, based on the current traffic load rate, a resource adjustment strategy corresponding to the current network traffic includes: Obtaining a first historical traffic load rate of the target network entity; If the current traffic load rate is less than the first historical traffic load rate, determining that the resource adjustment strategy is the first adjustment strategy; If the current traffic load rate is greater than the first historical traffic load rate, the resource adjustment strategy is determined to be the second adjustment strategy.

3. The method according to claim 2, characterized in that The adjusting the traffic forwarding resources in the network device based on the resource adjustment policy includes: If the resource adjustment strategy is the first adjustment strategy, determining a first single board load rate interval corresponding to the current traffic load rate from a plurality of single board load rate intervals, wherein the plurality of single board load rate intervals respectively correspond to a number of network boards; According to the first network board quantity corresponding to the first single board load rate interval, at least one switching network board in the network device that is in an enabled state is shut down, so that the number of switching network boards that have not been shut down in the network device is equal to the first network board quantity.

4. The method according to claim 2, characterized in that The adjusting the traffic forwarding resources in the network device based on the resource adjustment policy includes: If the resource adjustment strategy is the second adjustment strategy, determining the second single board load rate interval corresponding to the current traffic load rate from a plurality of single board load rate intervals, wherein the plurality of single board load rate intervals respectively correspond to a number of network boards; According to the number of second network boards corresponding to the second single-board load rate interval, at least one switching network board in the closed state in the network device is turned on, so that the number of switching network boards in the opened state in the network device is equal to the number of second network boards.

5. The method according to claim 3 or 4, characterized in that The multiple single-board load rate intervals are obtained based on the overall ability of the multiple interface boards to process network traffic, or the multiple single-board load rate intervals are obtained based on the overall ability of the multiple switching network boards to process network traffic; wherein the division granularity of the multiple single-board load rate intervals is greater than the reference granularity.

6. The method according to claim 1, characterized in that The interface board includes at least one interface chip, the switching network board includes at least one switching network chip, and the switching network chip is used to forward network traffic of one interface chip to another interface chip; the target network entity includes the multiple interface boards or the multiple switching network boards, the resource adjustment strategy includes a third adjustment strategy and a fourth adjustment strategy, the third adjustment strategy indicates to reduce the number of enabled switching network chips in the network device, and the fourth adjustment strategy indicates to increase the number of enabled switching network chips in the network device; The determining, based on the current traffic load rate, a resource adjustment strategy corresponding to the current network traffic includes: Obtaining a first historical traffic load rate of the target network entity; If the current traffic load rate is less than the first historical traffic load rate, determining that the resource adjustment strategy is the third adjustment strategy; If the current traffic load rate is greater than the first historical traffic load rate, the resource adjustment strategy is determined to be the fourth adjustment strategy.

7. The method according to claim 6, characterized in that The adjusting the traffic forwarding resources in the network device based on the resource adjustment policy includes: If the resource adjustment strategy is the third adjustment strategy, determining a first chip load rate interval corresponding to the current traffic load rate from a plurality of chip load rate intervals, wherein the plurality of chip load rate intervals respectively correspond to a chip quantity; According to the first chip quantity corresponding to the first chip load rate interval, at least one switching network chip in the network device that is in an enabled state is shut down so that the number of switching network chips in the network device that are in an enabled state is equal to the first chip quantity.

8. The method according to claim 6, characterized in that The adjusting the traffic forwarding resources in the network device based on the resource adjustment policy includes: If the resource adjustment strategy is the fourth adjustment strategy, determining a second chip load rate interval corresponding to the current traffic load rate from a plurality of chip load rate intervals, wherein the plurality of chip load rate intervals respectively correspond to a number of chips; According to the second chip quantity corresponding to the second chip load rate interval, at least one switching network chip in the network device that is in a closed state is turned on, so that the number of switching network chips in the network device that are in an opened state is equal to the second chip quantity.

9. The method according to claim 7 or 8, characterized in that The multiple chip load rate intervals are obtained based on the capabilities of the interface chips included in the multiple interface boards to process network traffic, or the multiple chip load rate intervals are obtained based on the capabilities of the switching network chips included in the multiple switching network boards to process network traffic; wherein the division granularity of the chip load rate intervals is smaller than the reference granularity.

10. The method according to any one of claims 1 to 9, characterized in that: The method further comprises: Obtaining service level agreement (SLA) information corresponding to the current network traffic; If the SLA information meets the SLA requirement corresponding to the current network traffic, the step of adjusting the traffic forwarding resources in the network device based on the resource adjustment policy is performed.

11. The method according to claim 10, characterized in that The method further comprises: If the SLA information does not meet the SLA requirement corresponding to the current network traffic, at least one switching network board or switching network chip in the network device that is in a closed state is turned on according to the target unit turn-on amount.

12. The method according to claim 1, characterized in that The target network entity includes a target interface board, the target interface board is any one of the multiple interface boards, the resource adjustment strategy includes a fifth adjustment strategy and a sixth adjustment strategy, the fifth adjustment strategy indicates to reduce the number of enabled serial links of the target interface board, and the sixth adjustment strategy indicates to increase the number of enabled serial links of the target interface board; The determining, based on the current traffic load rate, a resource adjustment strategy corresponding to the current network traffic includes: Acquire a second historical traffic load rate of the target network entity; If the current traffic load rate is less than the second historical traffic load rate, determining that the resource adjustment strategy is the fifth adjustment strategy; If the current traffic load rate is greater than the second historical traffic load rate, the resource adjustment strategy is determined to be the sixth adjustment strategy.

13. The method according to claim 12, characterized in that The adjusting the traffic forwarding resources in the network device based on the resource adjustment policy includes: If the resource adjustment strategy is the fifth adjustment strategy, determining a first link load rate interval corresponding to the current traffic load rate from a plurality of link load rate intervals, wherein the plurality of link load rate intervals respectively correspond to a link quantity; According to the first link quantity corresponding to the first link load rate interval, at least one serial link in the target interface board that is in an open state is closed so that the number of serial links in the target interface board that are in an open state is equal to the first link quantity.

14. The method according to claim 12, characterized in that The adjusting the traffic forwarding resources in the network device based on the resource adjustment policy includes: If the resource adjustment strategy is the sixth adjustment strategy, determining a second link load rate interval corresponding to the current traffic load rate from a plurality of link load rate intervals, wherein the plurality of link load rate intervals respectively correspond to a link quantity; According to the second link quantity corresponding to the second link load rate interval, at least one serial link in the target interface board that is in a closed state is opened, so that the number of serial links in the target interface board that are in an opened state is equal to the second link quantity.

15. The method according to claim 13 or 14, characterized in that The multiple link load rate intervals are obtained based on the ability of the target interface board to process network traffic.

16. A resource adjustment device, characterized in that: A resource manager included in a network device, the network device further comprising a plurality of interface boards and a plurality of switching network boards, each interface board being connected to at least one switching network board via at least one serial link, the switching network board being used to forward network traffic of one interface board to another interface board; The resource adjustment device comprises: A load rate acquisition module, used to acquire a current traffic load rate of a target network entity, wherein the current traffic load rate indicates a load condition of the target network entity when forwarding current network traffic, wherein the target network entity is the multiple interface boards, the multiple switching network boards, or any one of the multiple interface boards; A policy determination module, configured to determine a resource adjustment policy corresponding to the current network traffic based on the current traffic load rate, wherein the resource adjustment policy indicates an adjustment of traffic forwarding resources in the network device when forwarding the current network traffic, wherein the traffic forwarding resources include serial links of the switching network board and the interface board; The resource adjustment module is used to adjust the traffic forwarding resources in the network device based on the resource adjustment policy.

17. A network device, characterized in that: The network device includes a resource manager, a main control board, multiple interface boards and multiple switching network boards, each interface board is connected to at least one switching network board through at least one serial link, and the switching network board is used to forward the network traffic of one interface board to another interface board; Wherein, the resource manager is arranged on the main control board or at least one interface board among the multiple interface boards, and is used to execute the method described in any one of claims 1 to 15 above.

18. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, and when the computer program runs on the network device, the network device executes the method according to any one of claims 1 to 15.

Citation Information

Cited By

  • Resource adjustment method and apparatus, network device, and storage medium

    EP4761184A1

  • Resource adjustment method and apparatus, network device, and storage medium

    WO2025051034A1