Method, device and storage medium for adjusting physical bandwidth of outbound interface

By obtaining the maximum cache space queue length in the router and adjusting the outgoing interface bandwidth, the problem of power consumption and SLA performance balance of network equipment is solved, and the power consumption reduction and SLA performance guarantee is achieved.

CN115118600BActive Publication Date: 2025-08-08HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110291914.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-18
Publication Date
2025-08-08
Estimated Expiration
2041-03-18

AI Technical Summary

Technical Problem

How to ensure that the service level protocol (SLA) performance of network traffic is not affected while reducing power consumption of network equipment, especially in the router to adjust the physical bandwidth of the outgoing interface to balance cache space usage capacity and bandwidth usage.

Method used

By obtaining the maximum queue length in the network device cache space, adjusting the physical bandwidth of the outgoing interface based on this value to achieve the balance between cache space usage capacity and bandwidth usage, and optimizing bandwidth adjustments with SLA information to ensure the satisfaction of SLA performance.

Benefits of technology

It effectively reduces the overall power consumption of network equipment, while ensuring the SLA performance of network traffic, and avoids performance fluctuations caused by simply adjusting bandwidth or using cache space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115118600B_ABST
    Figure CN115118600B_ABST
Patent Text Reader

Abstract

The present application discloses a method, apparatus, and storage medium for adjusting the physical bandwidth of an outbound interface, belonging to the field of communications. The method comprises: obtaining a first queue length, where the first queue length is the maximum queue length cached in a cache space of a network device within a first cycle, where the cache space is used to cache network traffic received by the network device; and adjusting the physical bandwidth of the outbound interface of the network device based on the first queue length, where the outbound interface is used to transmit the network traffic. The present application can reduce the power consumption of network devices.
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 method, device, and storage medium for adjusting the physical bandwidth of an outbound interface. Background Art

[0002] Network devices are used to forward network traffic within a network. Network devices can be routers or switches. For example, a router receives upstream network traffic through one interface and sends it through another interface. Alternatively, a router receives downstream network traffic through one interface and sends it through another interface.

[0003] Network devices consume energy when forwarding network traffic. The greater the power consumption of a network device, the greater the energy consumed. The lower the power consumption of a network device, the less energy consumed. Therefore, in order to reduce energy consumption, how to lower the power consumption of network devices is a current and pressing issue. Summary of the Invention

[0004] This application provides a method, apparatus, and storage medium for adjusting the physical bandwidth of an outbound interface to reduce power consumption of network devices. The technical solution is as follows:

[0005] In a first aspect, the present application provides a method for adjusting the physical bandwidth of an outbound interface. In the method, a first queue length is obtained, where the first queue length is the maximum queue length cached in a cache space of a network device during a first period, the cache space being used to cache network traffic received by the network device. The physical bandwidth of an outbound interface of the network device, used to transmit the network traffic, is adjusted based on the first queue length.

[0006] Because the first queue length is the maximum queue length cached in the network device's cache space during the first cycle, the first queue length can be used to reflect changes in the cache space usage and network traffic during the first cycle. Therefore, the physical bandwidth of the network device's outbound interface is adjusted based on the first queue length to achieve a balance between the cache space usage and the outbound interface's physical bandwidth. This prevents a significant decrease in the outbound interface's physical bandwidth from significantly increasing the cache space usage, nor does it significantly increase the outbound interface's physical bandwidth, thereby reducing the overall power consumption of the network device.

[0007] In one possible implementation, in response to the first queue length being within a first length interval, the physical bandwidth of the outbound interface of the network device is adjusted from a first bandwidth to a second bandwidth, where the second bandwidth is greater than the first bandwidth, and the first bandwidth is the physical bandwidth of the outbound interface for sending the network traffic before the adjustment.

[0008] Since the first queue length is in the first length interval, it means that the capacity of the cache space used is large. At this time, the data volume of the network traffic may be large and / or the physical bandwidth of the outbound interface may be small. Therefore, increasing the physical bandwidth of the outbound interface can effectively reduce the capacity of the cache space used, so that the capacity of the cache space used is balanced with the physical bandwidth of the outbound interface.

[0009] In another possible implementation, first service level agreement (SLA) information corresponding to network traffic is obtained, the first SLA information indicating a measured value of the SLA performance of the network traffic when transmitted on a transmission link, to which the outbound interface is connected; and a determination is made as to whether the first SLA information satisfies SLA requirements. Due to obtaining the first SLA information and determining whether the first SLA information satisfies SLA requirements, the physical bandwidth of the outbound interface can be adjusted based on the determination result to ensure that the SLA for the network traffic is met.

[0010] In another possible implementation, in response to the first SLA information not meeting the SLA requirement, the physical bandwidth of the outbound interface is increased to a third bandwidth. By continuing to increase the physical bandwidth of the outbound interface, it is possible to ensure that the SLA information of the network traffic meets the SLA requirement.

[0011] In another possible implementation, in response to the first SLA information satisfying the SLA requirement, a determination is made as to whether the first SLA information reaches an SLA threshold, where performance indicated by the SLA threshold is better than performance indicated by the SLA requirement. In response to the first SLA information reaching the SLA threshold, the physical bandwidth of the outbound interface is adjusted down to a fourth bandwidth, where the fourth bandwidth is greater than the physical bandwidth before the physical bandwidth of the outbound interface was adjusted based on the first queue length.

[0012] Since the performance indicated by the SLA threshold is better than the performance indicated by the SLA requirement, the first SLA information reaches the SLA threshold, indicating that the physical bandwidth of the outbound interface is increased too much. By reducing the physical bandwidth of the outbound interface, the power consumption of the network device is reduced.

[0013] In another possible implementation, the SLA performance of the network traffic when transmitted on the transmission link is measured to obtain the first SLA information. Since the SLA performance of the network traffic is directly measured, the accuracy of obtaining the first SLA information can be improved.

[0014] In another possible implementation, the SLA performance of the network traffic when transmitted on the transmission link is calculated based on the physical bandwidth of the outbound interface to obtain the first SLA information. Since the first SLA information is calculated based on the physical bandwidth of the outbound interface, the first SLA information can be obtained quickly, thereby improving the efficiency of obtaining the first SLA information.

[0015] In another possible implementation, first SLA information is received from a next-hop device of the network device. The first SLA information is obtained by the next-hop device by measuring the SLA performance of the network traffic when transmitted over the transmission link. The next-hop device is connected to the outbound interface via the transmission link. Directly measuring the SLA performance of the network traffic improves the accuracy of the first SLA information. Furthermore, since the first SLA information is measured by the next-hop device, the burden on the network device is reduced.

[0016] In another possible implementation, the output interface of the network device includes a first sub-output interface in an open state and a second sub-output interface in a closed state, the first sub-output interface communicates with at least one first channel, the physical bandwidth of the first sub-output interface is the first bandwidth, and the first bandwidth is equal to the total bandwidth of the at least one first channel, the second sub-output interface communicates with at least one second channel, the physical bandwidth of the second sub-output interface is the second bandwidth, and the second bandwidth is equal to the total bandwidth of the at least one second channel. The first sub-output interface is closed and the second sub-output interface is opened. After closing the first sub-output interface and opening the second sub-output interface, the network traffic in the cache space is switched from the first sub-output interface to the second sub-output interface, so that the physical bandwidth of the output interface is adjusted by switching the sub-output interface, thereby improving the adjustment efficiency.

[0017] In another possible implementation, an outbound interface of a network device communicates with M channels, where M is an integer greater than or equal to 1, and the physical bandwidth of the outbound interface is the total bandwidth of the M channels, which is equal to the first bandwidth. The outbound interface is revoked, and an outbound interface that communicates with N channels is configured in the network device. The physical bandwidth of the configured outbound interface is equal to the total bandwidth of the N channels, which is the second bandwidth, and N is an integer greater than or equal to 1. After revoking the original outbound interface and configuring the outbound interface, the network traffic in the cache space is switched from the original outbound interface to the reconfigured outbound interface, thereby adjusting the physical bandwidth of the outbound interface by reconfiguring the outbound interface.

[0018] In another possible implementation, in response to the first queue length being within the second length interval, the physical bandwidth of the outbound interface of the network device is adjusted from the first bandwidth to a fifth bandwidth, where the fifth bandwidth is smaller than the first bandwidth. The first bandwidth is the physical bandwidth used by the outbound interface to transmit the network traffic before the adjustment. Since the first queue length is within the second length interval, indicating that the utilized cache capacity is relatively small, the network traffic volume may be relatively small and / or the physical bandwidth of the outbound interface may be relatively large. Therefore, reducing the physical bandwidth of the outbound interface can effectively increase the utilized cache capacity, thereby achieving a balance between the utilized cache capacity and the physical bandwidth of the outbound interface.

[0019] In another possible implementation, second SLA information is obtained, and the second SLA information indicates a measured value of the SLA performance of the network traffic when it is transmitted on a transmission path when the physical bandwidth of the outbound interface of the network device is the fifth bandwidth, and the transmission path is connected to the outbound interface. In response to the second SLA information satisfying the SLA requirement, the physical bandwidth of the outbound interface of the network device is adjusted from the first bandwidth to the fifth bandwidth. Because the SLA information of the network traffic after the physical bandwidth is reduced is obtained before reducing the physical bandwidth of the outbound interface, that is, the second SLA information is obtained, the physical bandwidth of the outbound interface is reduced only when the second SLA information meets the SLA requirement, thereby ensuring that the SLA of the network traffic sent after the physical bandwidth is adjusted is met. In addition, it avoids the situation where the SLA of the network traffic is not met after the physical bandwidth of the outbound interface is reduced, and the physical bandwidth of the outbound interface needs to be increased, thereby avoiding adjustment oscillations caused by repeated adjustments.

[0020] In another possible implementation, the second SLA information is calculated based on the fifth bandwidth. Since the second SLA information is calculated based on the fifth bandwidth, the second SLA information can be quickly obtained before reducing the physical bandwidth. This not only improves the efficiency of obtaining the second SLA information, but also avoids the situation where the network traffic SLA is not met after reducing the physical bandwidth of the outbound interface.

[0021] In another possible implementation, the output interface of the network device includes a first sub-output interface in an open state and a third sub-output interface in a closed state, the first sub-output interface communicates with at least one first channel, the physical bandwidth of the first sub-output interface is a first bandwidth, and the first bandwidth is equal to the total bandwidth of the at least one first channel, the third sub-output interface communicates with at least one third channel, the physical bandwidth of the third sub-output interface is a fourth bandwidth, and the fifth bandwidth is equal to the total bandwidth of the at least one third channel. The first sub-output interface is closed and the third sub-output interface is opened. After closing the first sub-output interface and opening the third sub-output interface, the network traffic in the cache space is switched from the first sub-output interface to the third sub-output interface, so that the physical bandwidth of the output interface is adjusted by switching the sub-output interface, thereby improving the adjustment efficiency.

[0022] In another possible implementation, an outbound interface of a network device communicates with M channels, where M is an integer greater than or equal to 1, and the physical bandwidth of the outbound interface is the total bandwidth of the M channels, which is equal to the first bandwidth. The outbound interface is revoked, and an outbound interface that communicates with Z channels is configured in the network device. The physical bandwidth of the configured outbound interface is equal to the total bandwidth of the Z channels, which is a fifth bandwidth, and Z is an integer greater than or equal to 1. After the original outbound interface is revoked and the outbound interface is configured, the network traffic in the cache space is switched from the original outbound interface to the reconfigured outbound interface, thereby adjusting the physical bandwidth of the outbound interface by reconfiguring the outbound interface.

[0023] In a second aspect, the present application provides an apparatus for adjusting the physical bandwidth of an outbound interface, configured to execute the method of the first aspect or any possible implementation of the first aspect. Specifically, the apparatus includes a unit for executing the method of the first aspect or any possible implementation of the first aspect.

[0024] In a third aspect, the present application provides a network device comprising a communication interface, a processor, and a memory. The communication interface, the processor, and the memory may be connected via an internal connection. The memory is configured to store programs, and the processor is configured to execute the programs in the memory and cooperate with the communication interface, so that the device performs the method of the first aspect or any possible implementation of the first aspect.

[0025] In a fourth aspect, the present application provides a computer program product, which includes a computer program stored in a computer-readable storage medium, and the computer program is loaded through a device to implement instructions of the method of the above-mentioned first aspect or any possible implementation method of the first aspect.

[0026] In a fifth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program is loaded through a device to execute instructions of the method of the above-mentioned first aspect or any possible implementation of the first aspect.

[0027] In a sixth aspect, the present application provides a chip comprising a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call and run the computer instructions from the memory to execute the method in the above-mentioned first aspect and any possible implementation of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 This is a schematic diagram of a network architecture provided by an embodiment of the present application;

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

[0030] Figure 3 This is a schematic diagram of queue length oscillation provided by an embodiment of the present application;

[0031] Figure 4 This is a flow chart of a method for adjusting the physical bandwidth of an outbound interface provided by an embodiment of the present application;

[0032] Figure 5 This is a schematic diagram of the structure of a device for adjusting the physical bandwidth of an outbound interface provided by an embodiment of the present application;

[0033] Figure 6 This is a schematic diagram of the structure of another device for adjusting the physical bandwidth of an outbound interface provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The embodiments of the present application will be described in further detail below with reference to the accompanying drawings.

[0035] See also Figure 1 , the present application provides a network architecture 10, including:

[0036] At least one network device 100, wherein any two adjacent network devices in the at least one network device 100 can communicate with each other. For example, the two adjacent network devices are connected via a transmission link, and the transmission link between the two adjacent network devices carries multiple channels, and the two adjacent network devices communicate via some or all of the multiple channels. Of course, there are other ways to achieve communication between the two adjacent network devices, which are not listed here.

[0037] In some embodiments, the at least one network device 100 includes one or more of a router, a switch, a gateway, a network chip, and the like.

[0038] See also Figure 2 For any of the above network devices 100, the network device 100 includes an inbound interface 101, an outbound interface 102, and a cache space 103. The inbound interface 101, the outbound interface 102, and the cache space 103 are connected via an internal connection 104. The network device 100 receives at least one network flow through the inbound interface 101, caches the at least one network flow in the cache space 103, and sends the network flow cached in the cache space 103 through the outbound interface 102, thereby forwarding the network flow.

[0039] In some embodiments, the outbound interface 102 includes a flexible Ethernet (FlexE) interface and / or an Interlaken interface, etc. The Interlaken interface is an Ethernet interface technology.

[0040] For each network flow in the at least one network flow, the cache space 103 includes a queue corresponding to the network flow, and the queue corresponding to the network flow is used to cache the network flow. In the cache space 103, the queue length corresponding to the network flow is greater than or equal to the amount of data cached in the queue for the network flow.

[0041] The queue length corresponding to the network traffic may change in real time. When the data of the network traffic cached by the queue increases, the length of the queue increases accordingly. When the data of the network traffic cached by the queue decreases, the length of the queue decreases accordingly.

[0042] The used capacity of the cache space 103 is proportional to the queue length cached in the cache space 103, that is, the larger the queue length cached in the cache space 103, the larger the used capacity of the cache space 103, and conversely, the smaller the queue length cached in the cache space 103, the smaller the used capacity of the cache space 103.

[0043] In some embodiments, the queue length may be the total length of queues cached in the buffer space 103, or the total length of at least one designated queue cached in the buffer space 103. The total length of queues cached in the buffer space 103 is equal to the cumulative value of the lengths of each queue cached in the buffer space 103. The total length of at least one designated queue is equal to the cumulative value of the length of each queue in the at least one designated queue.

[0044] The network traffic cached in a designated queue often has a large data volume. For example, the network traffic cached in a designated queue may include video traffic, download traffic, and / or gaming traffic. This type of network traffic often has a large data volume and occupies a large amount of the capacity of cache space 103. Cache space 103 caching this network traffic consumes a large portion of the power consumption of cache space 103. The traffic type corresponding to the designated queue is the type of network traffic cached by the designated queue, so the designated queue is the queue corresponding to the designated traffic type.

[0045] In some embodiments, see Figure 2 The network device 100 further includes a first register 105, which is used to store the maximum value of the queue length cached in the cache space within a cycle.

[0046] The network device 100 consumes energy when forwarding network traffic. The greater the power consumption of the network device 100, the more energy it consumes. The power consumption of the network device 100 is related to the physical bandwidth of the outbound interface 102 of the network device 100 and the used capacity of the cache space 103.

[0047] Regarding the physical bandwidth of the outbound interface 102 of the network device 100, the greater the physical bandwidth of the outbound interface 102 of the network device 100, the greater the power consumption of the network device 100; and the smaller the physical bandwidth of the outbound interface 102 of the network device 100, the smaller the power consumption of the network device 100. Regarding the used capacity of the cache space 103 of the network device 100, the greater the used capacity of the cache space 103, the greater the power consumption of the network device 100; and the smaller the used capacity of the cache space 103, the smaller the power consumption of the network device 100.

[0048] However, when the physical bandwidth of the outbound interface 102 of the network device 100 is smaller, the rate at which the network device 100 sends network traffic is lower, which may result in more data of the received network traffic being cached in the buffer space 103, resulting in a larger queue length for the cache in the buffer space 103, and thus a larger capacity of the cache 103 being used. Conversely, when the physical bandwidth of the outbound interface 102 of the network device 100 is larger, the rate at which the network device 100 sends network traffic is higher, which may result in less data of the received network traffic being cached in the buffer space 103, resulting in a smaller queue length for the cache in the buffer space 103, and thus a smaller capacity of the cache 103 being used.

[0049] Therefore, simply reducing the physical bandwidth of the outbound interface 102 of the network device 100 or reducing the used capacity of the cache space 103 of the network device 100 cannot achieve the purpose of reducing the power consumption of the network device 100. Therefore, it is necessary to simultaneously adjust the physical bandwidth of the outbound interface 102 of the network device 100 and the used capacity of the cache space 103 to achieve a balance between the physical bandwidth of the outbound interface 102 of the network device 100 and the used capacity of the cache space 103, so as to truly achieve the purpose of reducing the power consumption of the network device 100.

[0050] See also Figure 3 As shown in FIG. 1 , the queue length cached in the cache space 103 changes. The queue length cached in the cache space 103 fluctuates frequently. Figure 3 Each peak in the graph represents the maximum value of the queue length in cache space 103 over a period of time. Although the queue length in cache space 103 fluctuates significantly, the maximum value of the queue length in cache space 103 changes relatively steadily. The maximum value of the queue length in cache space 103 reflects not only the used capacity of cache space 103 but also the current network traffic changes. The current network traffic changes reflect the current physical bandwidth required for the outbound interface to transmit the network traffic cached in cache space 103.

[0051] Therefore, for the maximum queue length stored in the cache space within the first cycle, stored in first register 105, the first cycle is a historical period. For ease of explanation, this maximum value is referred to as the first queue length. The first queue length reflects not only the used capacity of cache space 103 but also the required physical bandwidth. Based on the first queue length, the physical bandwidth of outbound interface 102 of network device 100 can be adjusted to achieve a balance between the used capacity of cache space 103 and the physical bandwidth of outbound interface 102, thereby reducing the overall power consumption of network device 100.

[0052] In some embodiments, the operation of adjusting the physical bandwidth of the outbound interface 102 is: determining at least one length interval based on the current length threshold of the network device 100, and adjusting the physical bandwidth of the outbound interface 102 of the network device 100 based on the interval length in which the first queue length is located.

[0053] In some embodiments, the network device 100 includes multiple length thresholds, and the current length threshold is one of the multiple length thresholds.

[0054] In some embodiments, see Figure 2 The network device 100 further includes a second register 106, which is configured to store a current length threshold. For ease of explanation, the current length threshold is referred to as a first length threshold. The at least one length interval includes an interval greater than the first length threshold and / or an interval less than a second length threshold. The second length threshold is a length threshold less than the first length threshold.

[0055] In some embodiments, the second length threshold is smaller than the first length threshold and has a minimum difference with the first length threshold.

[0056] For example, assuming that the total capacity of the cache space 103 of the network device 100 is 10G, and the network device 100 includes five length thresholds, namely 6G, 7G, 8G, 9G, and 10G. Assuming that the first length threshold stored in the second register 106 is 7G, the second length threshold can be determined to be 6G, and the at least one length interval includes an interval greater than 7G and / or an interval less than 6G.

[0057] In some embodiments, the network device 100 includes multiple bandwidth thresholds, and the adjusted physical bandwidth of the outbound interface 102 of the network device 100 is equal to a certain bandwidth threshold. For example, assume that the total physical bandwidth of the network device 100 is 100 Gbps, and the network device 100 includes five bandwidth thresholds, namely 20 Gbps, 40 Gbps, 60 Gbps, 80 Gbps, and 100 Gbps. The adjusted physical bandwidth of the outbound interface 102 of the network device 100 is equal to one of the five bandwidth thresholds.

[0058] In some embodiments, the network device 100 further includes a correspondence between length intervals and bandwidth thresholds. Thus, the operation of adjusting the physical bandwidth of the outbound interface 102 may include: determining the length interval in which the first queue length is located from the correspondence, and adjusting the physical bandwidth of the outbound interface 102 of the network device 100 to be equal to the bandwidth threshold corresponding to the length interval.

[0059] Each record in the corresponding relationship includes a length interval and a bandwidth threshold. The record indicates that when the used capacity of the cache space 103 of the network device 100 is within the length interval, the physical bandwidth of the output interface 102 of the network device 100 can be adjusted to the bandwidth threshold. This not only ensures that the used capacity of the cache space 103 is balanced with the physical bandwidth of the output interface 102 of the network device 100, but also ensures that the actual service level agreement (SLA) information of the network traffic sent through the output interface 102 meets the SLA requirements of the network traffic.

[0060] For example, see Table 1 below showing the correspondence between length intervals and bandwidth thresholds for network device 100. For the first record in this correspondence, the first record includes a length interval of "greater than 0 and less than 6G" and a bandwidth threshold of "20Gbps." This record indicates that when the used capacity of cache space 103 of network device 100 is greater than 0 and less than 6G, the physical bandwidth of outbound interface 102 of network device 100 can be adjusted to 20Gbps, so that the used capacity of cache space 103 is balanced with the physical bandwidth of outbound interface 102 of network device 100. For another example, for the second record in the corresponding relationship, the second record includes a length interval of "greater than or equal to 6G and less than 7G" and a bandwidth threshold of "40Gbps". The second record indicates that when the used capacity of the cache space 103 of the network device 100 is greater than or equal to 6G and less than 7G, the physical bandwidth of the output interface 102 of the network device 100 can be adjusted to 40Gbps, so that the used capacity of the cache space 103 is balanced with the physical bandwidth of the output interface 102 of the network device 100.

[0061] For example, assuming the first queue length is 6.5G, the first queue length is determined to be in a length interval of "greater than or equal to 6G and less than 7G," and the bandwidth threshold corresponding to this length interval is "40Gbps." Therefore, the physical bandwidth of outbound interface 102 of network device 100 is adjusted to 40Gbps. This balances the used capacity of cache space 103 with the physical bandwidth of outbound interface 102 of network device 100, thereby reducing the overall power consumption of network device 100.

[0062] Table 1

[0063] Serial number Length interval Bandwidth threshold 1 Greater than 0 and less than 6G 20Gbps 2 Greater than or equal to 6G and less than 7G 40Gbps 3 Greater than or equal to 7G and less than 8G 60Gpbs 4 Greater than or equal to 8G and less than 9G 80Gbps 5 Greater than or equal to 9G and less than or equal to 10G 100Gbps

[0064] The above process of adjusting the physical bandwidth of the outbound interface 102 of the network device 100 will be described in detail through any of the following embodiments.

[0065] See also Figure 4The present application provides a method 40 for adjusting the physical bandwidth of an outbound interface, wherein the method 40 is applied Figure 1 In the network architecture 10 shown, the execution subject of the method 40 may be a network device in the network architecture 10. The method 40 is used to adjust the physical bandwidth of the outbound interface of the network device, including:

[0066] Step 401: Obtain a first queue length, where the first queue length is the maximum queue length cached in a cache space of a network device within a first cycle. The cache space is used to cache network traffic received by the network device.

[0067] In some embodiments, the first cycle is a complete cycle before the current time. The operation of step 401 is performed at or after the end time of the first cycle.

[0068] In step 401, at the start time of a first cycle, the queue length cached in the cache space of the network device is obtained and stored. Thereafter, the queue length cached in the cache space is obtained in real time during the first cycle. If the obtained queue length is greater than the stored queue length, the stored queue length is updated to the obtained queue length. At the end time of the first cycle, the stored queue length is used as the maximum queue length cached in the cache space of the network device during the first cycle. Thus, the stored queue length becomes the first queue length.

[0069] In some embodiments, the network device includes a first register, and for the above-mentioned queue length, the queue length is stored in the first register.

[0070] In some embodiments, the first queue length may be the maximum total length of queues cached in the cache space in the first cycle, or may be the maximum total length of at least one specified queue cached in the cache space in the first cycle.

[0071] It should be noted that the first queue length may be within the first length interval, the second length interval, or the third length interval. The third length interval is the length interval within which the second queue length is located. The second queue length is the maximum queue length cached in the cache space during the second period, which is earlier than the first period. The first length interval is greater than the third length interval, and the second length interval is less than the third length interval.

[0072] In addition, for the sake of convenience, the physical bandwidth of the outbound interface of the network device in the first period is referred to as the first bandwidth.

[0073] The first length interval, the second length interval and the third length interval are length intervals included in the correspondence between the length interval and the bandwidth threshold, or the first length interval, the second length interval and the third length interval are intervals determined based on the current length threshold of the network device.

[0074] In the case where the first length interval, the second length interval and the third length interval are intervals determined based on the current length threshold of the network device, for the sake of convenience, the current length threshold of the network device is referred to as the first length threshold, the first length interval is an interval greater than the first length threshold, the second length interval is an interval less than the second length threshold, the second length threshold is less than the first length threshold, and the third length interval is an interval greater than or equal to the second length threshold and less than or equal to the first length threshold.

[0075] In some embodiments, the network device includes multiple length thresholds, a second length threshold being smaller than the first length threshold, and the second length threshold being the length threshold with the smallest difference from the first length threshold among the multiple length thresholds. Alternatively, the network device may include length steps instead of multiple length thresholds, with the second length threshold being smaller than the first length threshold by one or more length steps.

[0076] In some embodiments, the first bandwidth may be the bandwidth threshold corresponding to the third length interval, or may not be the bandwidth threshold corresponding to the third length interval.

[0077] In some embodiments, the network device includes a second register storing a first length threshold, wherein the first length threshold is obtained from the second register, and the first length interval, the second length interval, and the third length interval are determined based on the first length threshold.

[0078] For example, assume that the current length threshold stored in the second register included in the network device is 7G, that is, the first length threshold is 7G, and the length thresholds included in the network device are 6G, 7G, 8G, 9G, and 10G, respectively. The second length threshold obtained based on the first length threshold is 6G. Therefore, the first length interval determined based on the first length threshold "7G" is the "interval greater than 7G", the second length interval is the "interval less than 6G", and the third length interval is the "interval greater than or equal to 6G and less than or equal to 7G". During the first cycle, the physical bandwidth of the network device's outbound interface may be the bandwidth threshold "40Gbps" corresponding to the third length interval, that is, the first bandwidth may be equal to "40Gbps".

[0079] When the first queue length is within the first length interval, the method of the embodiment of the present application performs the following step 402 operation; when the first queue length is within the second length interval, the method of the embodiment of the present application performs the following step 403 operation.

[0080] Step 402: In response to the first queue length being within the first length interval, the physical bandwidth of the outbound interface of the network device is adjusted from the first bandwidth to a second bandwidth, where the second bandwidth is greater than the first bandwidth.

[0081] The first queue length is in the first length interval, indicating that the capacity of the cache space used is large. At this time, the data volume of the network traffic may be large and / or the physical bandwidth of the outbound interface may be small. Therefore, increasing the physical bandwidth of the outbound interface can effectively reduce the capacity of the cache space used, so that the capacity of the cache space used is balanced with the physical bandwidth of the outbound interface.

[0082] There are two types of first length intervals: Type 1 and Type 2. The following describes in detail the first length intervals of Type 1 and Type 2. Of course, there may be other types of first length intervals, which are not listed here.

[0083] Type 1: The first length interval is a length interval included in the correspondence between the length interval of the network device and the bandwidth threshold.

[0084] In some embodiments, the operation of step 402 is: from each length interval included in the correspondence between the length interval and the bandwidth threshold, determine the first length interval in which the first queue length is located, and from the correspondence between the length interval and the bandwidth threshold, obtain the bandwidth threshold corresponding to the first length interval as the second bandwidth, and adjust the physical bandwidth of the output interface of the network device from the first bandwidth to the second bandwidth.

[0085] For example, assuming the first queue length is 7.5G, the first queue length is determined to be within the first length interval from the length intervals included in the correspondence between length intervals and bandwidth thresholds shown in Table 1. The first length interval is "greater than or equal to 7G and less than 8G." From the correspondence between length intervals and bandwidth thresholds shown in Table 1, the bandwidth threshold corresponding to the first length interval is 60Gbps, indicating a second bandwidth of 60Gbps. The physical bandwidth of the outbound interface of the network device is adjusted from the first bandwidth to the second bandwidth, resulting in a physical bandwidth of 60Gbps for the adjusted outbound interface.

[0086] Type 2: The first length interval is an interval determined based on the current length threshold (also called the first length threshold) of the network device, wherein the first length interval is an interval greater than the first length threshold.

[0087] In some embodiments, the first length threshold is stored in a second register of the network device, and the operation of step 402 is: in response to the first queue length being greater than the first length threshold in the second register, determining a second bandwidth greater than the first bandwidth, and adjusting the physical bandwidth of the outbound interface of the network device from the first bandwidth to the second bandwidth.

[0088] In some embodiments, the network device includes multiple bandwidth thresholds, and a bandwidth threshold greater than the first bandwidth is selected from the multiple bandwidth thresholds as the second bandwidth. The first bandwidth and the second bandwidth may not be separated by other bandwidth thresholds, or the first bandwidth and the second bandwidth may be separated by at least one other bandwidth threshold. Alternatively, the network device includes a bandwidth step size, and the network device adds one or more bandwidth steps to the first bandwidth to obtain the second bandwidth.

[0089] For example, assume that the first queue length is 7.5G, the first length threshold stored in the second register of the network device is "7G," and the first bandwidth of the outbound interface of the network device is equal to "40Gbps." The network device includes five bandwidth thresholds: 20Gbps, 40Gbps, 60Gbps, 8Gbps, and 100Gbps. The first queue length is greater than the first length threshold stored in the second register. In response to the first queue length being greater than the first length threshold, a bandwidth threshold greater than the first bandwidth is selected from the five bandwidth thresholds as the second bandwidth. Assume that the selected bandwidth threshold is "60Gbps," i.e., the second bandwidth is "60Gbps." Alternatively, assume that the network device includes a bandwidth step size of 20Gbps. The network device adds one bandwidth step size to the first bandwidth, resulting in a second bandwidth of "60Gbps." The physical bandwidth of the outbound interface of the network device is adjusted from the first bandwidth to the second bandwidth, i.e., the adjusted physical bandwidth of the outbound interface is 60Gbps.

[0090] In some embodiments, when the length of the first queue is greater than the first length threshold, the current length threshold of the network device is increased from the first length threshold to a third length threshold, and the third length threshold is greater than the first length threshold.

[0091] In some embodiments, a second register of the network device stores a first length threshold, and an operation of increasing the first length threshold is as follows: if the network device includes multiple length thresholds, a third length threshold greater than the first length threshold is selected from the multiple length thresholds of the network device, and the first length threshold stored in the second register is updated to the third length threshold. Alternatively, if the network device includes a length step, the first length threshold is increased by one or more length steps to obtain the third length threshold.

[0092] In some embodiments, the third length threshold is a length threshold among the multiple length thresholds that is greater than the first length threshold and has the smallest difference with the first length threshold.

[0093] When adjusting the physical bandwidth of the outbound interface of a network device, the SLA for the network traffic cached in the cache space can be referenced. This ensures that the SLA for the network traffic meets the SLA requirements after adjusting the physical bandwidth of the outbound interface. This can be achieved by performing the following operations 4021 to 4025.

[0094] 4021: Obtain first SLA information corresponding to network traffic, where the first SLA information indicates a measured value of the SLA performance of the network traffic when the network traffic is transmitted on a transmission link, an outbound interface of a network device is connected to the transmission link, and the network traffic is network traffic cached in a cache space of the network device.

[0095] The first SLA information includes SLA information of at least one network flow, and the at least one network flow may include part or all of the network flow cached in the cache space.

[0096] In some embodiments, the at least one network flow includes designated network flow cached in the cache space. The designated network flow may be network flow with a higher SLA requirement, for example, the designated network flow includes network flow of a very important person (VIP) user.

[0097] The first SLA information includes one or more of packet loss rate, bit error rate, and delay.

[0098] In some embodiments, the first SLA information is obtained before the physical bandwidth of the outbound interface of the network device is adjusted to the second bandwidth; or the first SLA information is obtained after the physical bandwidth of the outbound interface of the network device is adjusted to the second bandwidth.

[0099] In 4021, the operation of obtaining the first SLA information may include the following implementation methods:

[0100] In some embodiments, the SLA performance of the network traffic when transmitted on the transmission link is calculated based on the physical bandwidth of the outbound interface to obtain the first SLA information.

[0101] The physical bandwidth of the outbound interface may be the first bandwidth or the second bandwidth.

[0102] In some embodiments, the SLA performance of the network traffic when being transmitted on the transmission link is measured to obtain first SLA information.

[0103] In some embodiments, first SLA information is received from a next-hop device of a network device. The first SLA information is obtained by the next-hop device measuring the SLA performance of the network traffic when it is transmitted on the transmission link. The next-hop device is connected to the output interface of the network device through the transmission link.

[0104] 4022: Determine whether the first SLA information meets the SLA requirement.

[0105] Network devices include a mapping between traffic types and SLA requirements. Each record in this mapping includes the traffic type of network traffic and the SLA requirement for that network traffic. For example, referring to the mapping between traffic types and SLA requirements shown in Table 2 below, the first record in this mapping includes the traffic type of network traffic being "Protocol and Control Messages," the latency requirement of this network traffic being "less than 100 microseconds," and the packet loss requirement of "0." For another example, the second record in this mapping includes the traffic type of network traffic being "Management Messages," the latency requirement of this network traffic being "less than 500 microseconds," and the packet loss requirement of "0."

[0106] Table 2

[0107]

[0108] The first SLA information includes SLA information for at least one network flow. Therefore, in 4022, based on the traffic type of each network flow in the at least one network flow, the SLA requirement for each network flow is obtained from the correspondence between the traffic type and the SLA requirement. If the SLA information for each network flow included in the first SLA information satisfies the SLA requirement for each network flow, it is determined that the first SLA information satisfies the SLA requirement.

[0109] In some embodiments, the first SLA information includes one or more of packet loss rate, latency, and bit error rate, and when the SLA information of each network flow included in the first SLA information is less than the SLA requirement of each network flow, it is determined that the first SLA information meets the SLA requirement.

[0110] For each network flow in the at least one network flow, the SLA information of the network flow includes at least one SLA parameter, where the at least one SLA parameter includes one or more of a packet loss rate, a bit error rate, and a latency. The SLA requirement of the network flow includes at least one piece of requirement information, where the at least one piece of requirement information includes one or more of a packet loss rate requirement, a bit error rate requirement, and a latency requirement. Each SLA parameter of the network flow corresponds to a piece of requirement information. When each SLA parameter of the network flow satisfies the requirement information corresponding to each SLA parameter, it is determined that the SLA information of the network flow satisfies the SLA requirement of the network flow.

[0111] In some embodiments, the SLA parameters of the network traffic include one or more of packet loss rate, delay, and bit error rate. When each SLA parameter of the network traffic is less than the requirement information corresponding to each SLA parameter, it is determined that the SLA information of the network traffic meets the SLA requirement of the network traffic.

[0112] For example, assume that the SLA information of the network traffic includes packet loss rate, bit error rate and delay. The SLA requirements of the network traffic include packet loss rate requirements, bit error rate requirements and delay requirements. When the packet loss rate meets the packet loss rate requirement, the bit error rate meets the bit error rate requirement, and the delay meets the delay requirement, it is determined that the SLA information of the network traffic meets the SLA requirements of the network traffic. Next, a specific example is given. Assuming that the network traffic is a network traffic of the "protocol and control message" type, referring to Table 2 above, the SLA requirements of the network traffic of "protocol and control message" include a delay requirement of "less than 100 microseconds" and a packet loss rate requirement of "0". When the delay of the network traffic of "protocol and control message" is less than 100 microseconds and the packet loss rate is 0, it is determined that the SLA information of the network traffic of "protocol and control message" meets the SLA requirements of the network traffic of "protocol and control message".

[0113] 4023: In response to the first SLA information not meeting the SLA requirement, increase the physical bandwidth of the outbound interface of the network device to a third bandwidth.

[0114] If the first SLA information does not meet the SLA requirement, it means that the physical bandwidth of the outbound interface of the network device is insufficient to meet the requirement of sending the network traffic, and therefore the physical bandwidth of the outbound interface needs to be increased.

[0115] When the first SLA information is obtained after the physical bandwidth of the outbound interface of the network device is adjusted to the second bandwidth, the physical bandwidth of the outbound interface of the network device is the second bandwidth, and the third bandwidth is greater than the second bandwidth.

[0116] In this case, a bandwidth threshold greater than the second bandwidth is selected from multiple bandwidth thresholds included in the network device as the third bandwidth. The difference between the third bandwidth and the second bandwidth may be greater than, equal to, or less than the difference between the second bandwidth and the first bandwidth. Alternatively, the third bandwidth may be obtained by increasing the second bandwidth by one or more bandwidth steps.

[0117] There may not be any other bandwidth threshold between the second bandwidth and the third bandwidth, or there may be at least one other bandwidth threshold between the second bandwidth and the third bandwidth.

[0118] When the first SLA information is obtained before the physical bandwidth of the outbound interface of the network device is adjusted to the second bandwidth, the physical bandwidth of the outbound interface of the network device is the first bandwidth, and the third bandwidth is greater than the first bandwidth.

[0119] In this case, a bandwidth threshold greater than the first bandwidth is selected from multiple bandwidth thresholds included in the network device as the third bandwidth. Alternatively, the first bandwidth is increased by one or more bandwidth steps to obtain the third bandwidth.

[0120] There may not be any other bandwidth threshold between the first bandwidth and the third bandwidth, or there may be at least one other bandwidth threshold between the first bandwidth and the third bandwidth.

[0121] When the first SLA information meets the SLA requirement, the physical bandwidth of the outbound interface of the network device can be stopped from being adjusted. When the next cycle after the first cycle ends, the method of the embodiment of the present application is continued from step 401 above.

[0122] In some embodiments, when the first SLA information is obtained after the physical bandwidth of the outbound interface of the network device is adjusted to the second bandwidth, if the first SLA information meets the SLA requirement, it is further determined whether the physical bandwidth of the outbound interface has been increased excessively. If so, the physical bandwidth of the outbound interface may be reduced to reduce the power consumption of the network device. In implementation, this may be achieved through the following operations 4024 to 4025:

[0123] 4024: In response to the first SLA information satisfying the SLA requirement, determining whether the first SLA information reaches an SLA threshold, where the performance indicated by the SLA threshold is better than the performance indicated by the SLA requirement.

[0124] In some embodiments, the network device includes a correspondence between traffic types and SLA thresholds, and each record in the correspondence includes a traffic type of network traffic and an SLA threshold of the network traffic.

[0125] The first SLA information includes SLA information for at least one network flow. Therefore, in step 4024, based on the traffic type of each network flow in the at least one network flow, the SLA threshold for each network flow is obtained from the correspondence between the traffic type and the SLA threshold. If the SLA information for each network flow included in the first SLA information satisfies the SLA threshold for each network flow, it is determined that the first SLA information meets the SLA threshold.

[0126] For each of the at least one network flows, the SLA information of the network flows includes at least one SLA parameter. The SLA threshold of the network flows includes at least one threshold, and the at least one threshold includes one or more of a packet loss rate threshold, a bit error rate threshold, and a latency threshold. Each SLA parameter of the network flows corresponds to a threshold. When each SLA parameter of the network flows satisfies the threshold corresponding to each SLA parameter, it is determined that the SLA information of the network flows meets the SLA threshold of the network flows.

[0127] In some embodiments, the SLA parameters of the network traffic include one or more of packet loss rate, latency, and bit error rate, and the SLA threshold of the network traffic is less than the SLA requirement of the network traffic, such that the performance indicated by the SLA threshold is better than the performance indicated by the SLA requirement. Furthermore, when each SLA parameter of the network traffic is less than or equal to the threshold corresponding to each SLA parameter, it is determined that the SLA information of the network traffic meets the SLA threshold of the network traffic.

[0128] 4025: In response to the first SLA information reaching the SLA threshold, reduce the physical bandwidth of the outbound interface of the network device to a fourth bandwidth, where the fourth bandwidth is greater than the first bandwidth.

[0129] Before executing 4025, a fourth bandwidth is obtained. In implementation, a bandwidth threshold smaller than the third bandwidth and larger than the first bandwidth is selected from multiple bandwidth thresholds included in the network device as the fourth bandwidth. Alternatively, the third bandwidth is reduced by one or more bandwidth steps to obtain the fourth bandwidth.

[0130] It should be noted that the outbound interface of the network device communicates with at least one channel, and adjusting the physical bandwidth of the outbound interface of the network device can be achieved by adjusting the number of the channels. This can be achieved in the following two ways.

[0131] Method 1: The outbound interface of the network device includes a first sub-outbound interface in an enabled state and a second sub-outbound interface in a disabled state. The first sub-outbound interface communicates with at least one first channel, and the physical bandwidth of the first sub-outbound interface is a first bandwidth, which is equal to the total bandwidth of the at least one first channel. The second sub-outbound interface communicates with at least one second channel, and the physical bandwidth of the second sub-outbound interface is a second bandwidth, which is equal to the total bandwidth of the at least one second channel. The first sub-outbound interface is disabled and the second sub-outbound interface is enabled to adjust the physical bandwidth of the outbound interface of the network device from the first bandwidth to the second bandwidth.

[0132] After closing the first sub-interface and opening the second sub-interface, the network device switches the network traffic cached in the cache space from the first sub-interface to the second sub-interface, that is, stops sending the network traffic cached in the cache space through the first sub-interface, and instead sends the network traffic cached in the cache space through the second sub-interface.

[0133] The outbound interface of the network device may include other sub-outbound interfaces in addition to the first sub-outbound interface and the second sub-outbound interface. The bandwidth of each sub-outbound interface included in the outbound interface of the network device is different.

[0134] The above operation of adjusting the physical bandwidth of the outbound interface to the third bandwidth or the fourth bandwidth is also achieved by shutting down the currently enabled sub-outbound interface and enabling other sub-outbound interfaces.

[0135] Method 2: An outbound interface of a network device communicates with M channels, where M is an integer greater than or equal to 1. The physical bandwidth of the outbound interface is the total bandwidth of the M channels, which is equal to the first bandwidth. This outbound interface is revoked, and an outbound interface is configured in the network device to communicate with N channels. The physical bandwidth of the configured outbound interface is equal to the total bandwidth of the N channels, which is the second bandwidth, where N is an integer greater than or equal to 1. This adjusts the physical bandwidth of the outbound interface of the network device from the first bandwidth to the second bandwidth.

[0136] After the outgoing interface is cancelled, the network device stops sending the network traffic buffered in the buffer space through the outgoing interface. After the outgoing interface for communicating with the N channels is configured on the network device, the network device sends the network traffic buffered in the buffer space through the configured outgoing interface.

[0137] The operation of adjusting the physical bandwidth of the outbound interface to the third bandwidth or the fourth bandwidth is achieved by configuring outbound interfaces with different bandwidths.

[0138] Step 403: In response to the first queue length being within the second length interval, the physical bandwidth of the outbound interface of the network device is adjusted from the first bandwidth to a fifth bandwidth, where the fifth bandwidth is smaller than the first bandwidth.

[0139] The first queue length is in the second length interval, indicating that the used capacity of the cache space is small. At this time, the data volume of the network traffic may be small and / or the physical bandwidth of the outbound interface may be large. Therefore, reducing the physical bandwidth of the outbound interface can effectively increase the used capacity of the cache space, so that the used capacity of the cache space is balanced with the physical bandwidth of the outbound interface.

[0140] There are two types of second length intervals: Type 1 and Type 2. Type 1 and Type 2 second length intervals are described in detail below. Of course, there may be other types of second length intervals, which are not listed here.

[0141] Type 1: The second length interval is a length interval included in the correspondence between the length interval of the network device and the bandwidth threshold.

[0142] In some embodiments, the operation of step 403 is: from each length interval included in the correspondence between the length interval and the bandwidth threshold, determine the second length interval in which the first queue length is located, and from the correspondence between the length interval and the bandwidth threshold, obtain the bandwidth threshold corresponding to the second length interval as the fifth bandwidth, and adjust the physical bandwidth of the output interface of the network device from the first bandwidth to the fifth bandwidth.

[0143] For example, assuming the first queue length is 5.5G, the first queue length is located in a second length interval from the length intervals included in the correspondence between length intervals and bandwidth thresholds shown in Table 1. The second length interval is "less than 6G." From the correspondence between length intervals and bandwidth thresholds shown in Table 1, the bandwidth threshold corresponding to the second length interval is 20Gbps, meaning the fifth bandwidth is 20Gbps. The physical bandwidth of the outbound interface of the network device is adjusted from the first bandwidth to the fifth bandwidth, meaning the adjusted physical bandwidth of the outbound interface is 20Gbps.

[0144] Type 2: The second length interval is determined based on the current length threshold of the network device. That is, the second length interval is an interval smaller than the second length threshold, the second length threshold is smaller than the first length threshold, and the first length threshold is the current threshold of the network device.

[0145] In some embodiments, the first length threshold is stored in a second register of the network device, and the operation of step 403 is: determining the second length threshold based on the first length threshold in the second register, determining a fifth bandwidth that is less than the first bandwidth in response to the first queue length being less than the second length threshold, and adjusting the physical bandwidth of the outbound interface of the network device from the first bandwidth to the fifth bandwidth.

[0146] In some embodiments, the network device includes multiple length thresholds, and the second length threshold is a length threshold in the network device, wherein the second length threshold is smaller than the first length threshold and has the smallest difference with the first length threshold. Alternatively, the second length threshold is obtained by reducing the first length threshold by one or more length steps.

[0147] In some embodiments, the network device includes multiple bandwidth thresholds, and a bandwidth threshold smaller than the first bandwidth is selected from the multiple bandwidth thresholds as the fifth bandwidth. There may be no other bandwidth thresholds between the first bandwidth and the fifth bandwidth, or there may be at least one other bandwidth threshold between the first bandwidth and the fifth bandwidth. Or,

[0148] In some embodiments, the network device includes a bandwidth step, and the network device reduces the first bandwidth by one or more bandwidth steps to obtain the fifth bandwidth.

[0149] For example, assume the first queue length is 5.5G, the first length threshold stored in the second register of the network device is 7G, and the first bandwidth of the outbound interface of the network device is 40Gbps. The network device includes five bandwidth thresholds: 20Gbps, 40Gbps, 60Gbps, 8Gbps, and 100Gbps. The second length threshold is determined based on the first length threshold stored in the second register, and the second length threshold is 6G. In response to the first queue length being less than the second length threshold, a bandwidth threshold smaller than the first bandwidth is selected from the five bandwidth thresholds as the fifth bandwidth. Assuming the selected bandwidth threshold is 20Gbps, the fifth bandwidth is 20Gbps. Alternatively, assume the network device includes a bandwidth step size of 20Gbps. In response to the first queue length being less than the second length threshold, the first bandwidth is reduced by one bandwidth step size to obtain a fifth bandwidth of 20Gbps. The physical bandwidth of the outbound interface of the network device is adjusted from the first bandwidth to the fifth bandwidth, and the adjusted physical bandwidth of the outbound interface is 20Gbps.

[0150] In some embodiments, when the length of the first queue is less than the second length threshold, the current length threshold of the network device is reduced from the first length threshold to the second length threshold. In implementation, when a second register of the network device is used to store the first length threshold, the first length threshold stored in the second register is updated to the second length threshold to reduce the current length threshold of the network device from the first length threshold to the second length threshold.

[0151] Before adjusting the physical bandwidth of the outbound interface of the network device, the SLA of the network traffic cached in the buffer space can be referenced to ensure that the SLA of the network traffic meets the SLA requirements after adjusting the physical bandwidth of the outbound interface. This can also be achieved through the following operations 4031 to 4033.

[0152] 4031: Obtain second SLA information, where the second SLA information indicates a measured value of the SLA performance when the network traffic is transmitted on the transmission path when the physical bandwidth of the outbound interface of the network device is the fifth bandwidth.

[0153] In 4031 , second SLA information is calculated based on the fifth bandwidth.

[0154] Before adjusting the physical bandwidth of the outbound interface of the network device to the fifth bandwidth, second SLA information is obtained. The second SLA information includes SLA information of at least one network flow, which may include part or all of the network flow cached in the cache space.

[0155] 4032: Determine whether the second SLA information meets the SLA requirement.

[0156] The network device includes a correspondence between traffic types and SLA requirements, and the second SLA information includes SLA information for at least one network flow. Therefore, in 4032, based on the traffic type of each network flow in the at least one network flow, the SLA requirement for each network flow is obtained from the correspondence between the traffic type and the SLA requirement. If the SLA information for each network flow included in the second SLA information satisfies the SLA requirement for each network flow, it is determined that the second SLA information satisfies the SLA requirement.

[0157] 4033: In response to the second SLA information satisfying the SLA requirement, adjust the physical bandwidth of the outbound interface of the network device from the first bandwidth to the fifth bandwidth.

[0158] Since the second SLA information meets the SLA requirement, after the physical bandwidth of the outbound interface of the network device is reduced to the fifth bandwidth, it is ensured that the actual SLA of the network traffic in the sending buffer space meets the SLA requirement.

[0159] In some embodiments, before executing 4031, third SLA information is obtained, where the third SLA information indicates a measured value of the SLA performance of the network traffic in the buffer space when it is currently transmitted on the transmission link. If the third SLA information meets the SLA requirement, operation 4031 is executed. If the third SLA information does not meet the SLA requirement and the difference between the third SLA information and the SLA requirement exceeds a specified threshold, the physical bandwidth of the outbound interface of the network device is increased from the first bandwidth to the sixth bandwidth.

[0160] When the third SLA information does not meet the SLA requirement and the difference between the third SLA information and the SLA requirement exceeds a specified threshold, it indicates that the current physical bandwidth of the outbound interface is insufficient, and therefore the physical bandwidth of the outbound interface needs to be increased so that the SLA information of the network traffic meets the SLA requirement.

[0161] In some embodiments, a bandwidth threshold greater than the first bandwidth can be selected from multiple bandwidth thresholds included in the network device and the selected bandwidth threshold can be used as the sixth bandwidth, or the first bandwidth can be increased by one or more bandwidth steps to obtain the sixth bandwidth.

[0162] In step 4031, the operation of obtaining the third SLA information may include the following implementation methods:

[0163] In some embodiments, the SLA performance of the network traffic when transmitted on the transmission link is calculated based on the first bandwidth to obtain third SLA information.

[0164] In some embodiments, the SLA performance of the network traffic when transmitted on the transmission link is measured to obtain third SLA information.

[0165] In some embodiments, the third SLA information sent by the next-hop device of the receiving network device is obtained by measuring the SLA performance of the network traffic when the next-hop device is transmitted on the transmission link.

[0166] It should be noted that, in step 403, the physical bandwidth of the outbound interface of the network device can be adjusted by adjusting the number of channels.

[0167] In mode 1, the outbound interface of the network device includes a first sub-outbound interface in an enabled state and a third sub-outbound interface in a disabled state. The first sub-outbound interface communicates with at least one first channel, and the physical bandwidth of the first sub-outbound interface is a first bandwidth, which is equal to the total bandwidth of the at least one first channel. The third sub-outbound interface communicates with at least one third channel, and the physical bandwidth of the third sub-outbound interface is a fifth bandwidth, which is equal to the total bandwidth of the at least one third channel. The first sub-outbound interface is disabled and the third sub-outbound interface is enabled to adjust the physical bandwidth of the outbound interface of the network device from the first bandwidth to the third bandwidth.

[0168] After closing the first sub-interface and opening the second sub-interface, the network device switches the network traffic cached in the cache space from the first sub-interface to the second sub-interface, that is, stops sending the network traffic cached in the cache space through the first sub-interface, and instead sends the network traffic cached in the cache space through the second sub-interface.

[0169] In addition to the first and third sub-outbound interfaces, the network device's outbound interfaces may also include other sub-outbound interfaces. Each sub-outbound interface of the network device's outbound interface may have a different bandwidth. Adjusting the physical bandwidth of the outbound interface to the sixth bandwidth is also accomplished by shutting down the currently enabled sub-outbound interface and enabling other sub-outbound interfaces.

[0170] In mode 2, an outbound interface of the network device communicates with M channels, where M is an integer greater than or equal to 1. The physical bandwidth of this outbound interface is the total bandwidth of the M channels, which is equal to the first bandwidth. This outbound interface is revoked, and an outbound interface is configured on the network device to communicate with Z channels. The physical bandwidth of this configured outbound interface is equal to the total bandwidth of the Z channels, which is equal to the fifth bandwidth, where Z is an integer greater than or equal to 1.

[0171] After the outgoing interface is cancelled, the network device stops sending the network traffic buffered in the buffer space through the outgoing interface. After the outgoing interface for communicating with the Z channels is configured on the network device, the network device sends the network traffic buffered in the buffer space through the configured outgoing interface.

[0172] The above operation of adjusting the physical bandwidth of the outbound interface to the sixth bandwidth is also achieved by configuring outbound interfaces with different bandwidths.

[0173] After adjusting the physical bandwidth of the outbound interface of the network device, the network device receives network traffic through the inbound interface and buffers it in the buffer space, and then transmits the network traffic in the buffer space through the outbound interface. At the end of the third cycle, operations 401 to 403 are continued to adjust the physical bandwidth of the outbound interface. The third cycle occurs after the first cycle.

[0174] In an embodiment of the present application, the maximum queue length cached in the network device's cache space during a first cycle is obtained, i.e., the first queue length is obtained. The first queue length reflects the current cache space usage and also reflects the physical bandwidth demand for the current network traffic being sent. Therefore, the length interval in which the first queue length is located may be a first length interval greater than a third length interval, or a second length interval less than the third length interval. The third length interval is the interval in which the second queue length is located. The second queue length is the maximum queue length cached in the network device's cache space during the second cycle, which is earlier than the first cycle. In response to the first queue length being within the first length interval, the physical bandwidth of the network device's outbound interface is increased from the current first bandwidth to the second bandwidth. The fact that the first queue length is within the first length interval indicates that the current cache space usage is large and the outbound interface's physical bandwidth may be insufficient. Thus, by increasing the physical bandwidth, the cache space usage is reduced, thereby achieving a balance between the cache space usage and the outbound interface's physical bandwidth. In response to the first queue length being within the second length interval, the physical bandwidth of the outbound interface of the network device is reduced from the current first bandwidth to a fifth bandwidth. The first queue length being within the second length interval indicates that the currently used capacity of the cache space is relatively small, and the physical bandwidth of the outbound interface may be relatively large. By reducing the physical bandwidth, the used capacity of the cache space and the physical bandwidth of the outbound interface are balanced. By achieving a balance between the used capacity of the space and the physical bandwidth of the outbound interface, the overall power consumption of the network device can be reduced.

[0175] See also Figure 5 The embodiment of the present application provides a device 500 for adjusting the physical bandwidth of an outbound interface, which can be deployed in the above Figure 1 The network devices or Figure 4 The network device in the method 40 includes:

[0176] An acquiring unit 501 is configured to acquire a first queue length, where the first queue length is a maximum queue length cached in a cache space of the apparatus 500 during a first cycle, where the cache space is used to cache network traffic received by the apparatus 500;

[0177] The processing unit 502 is configured to adjust the physical bandwidth of an outbound interface of the apparatus 500 based on the first queue length, where the outbound interface is used to send the network traffic.

[0178] Optionally, the detailed implementation process of obtaining the first queue length by the obtaining unit 501 can be found in Figure 4 The relevant contents in step 401 of the method 40 are not described in detail here.

[0179] Optionally, the detailed implementation process of the processing unit 502 adjusting the physical bandwidth of the outbound interface can be found in Figure 4 The relevant contents in steps 402 and 403 of the method 40 are not described in detail here.

[0180] Optionally, the processing unit 502 is configured to:

[0181] In response to the first queue length being within the first length interval, the physical bandwidth of the outbound interface of the device 500 is adjusted from the first bandwidth to the second bandwidth, where the second bandwidth is greater than the first bandwidth. The first bandwidth is the physical bandwidth of the outbound interface for sending the network traffic before the adjustment.

[0182] Optionally, the detailed implementation process of the processing unit 502 adjusting the physical bandwidth of the outbound interface from the first bandwidth to the second bandwidth can be found in Figure 4 The relevant contents in step 402 of the method 40 are not described in detail here.

[0183] Optionally, the acquiring unit 501 is further configured to acquire first service level agreement (SLA) information corresponding to the network traffic, the first SLA information indicating a measured value of SLA performance of the network traffic when the network traffic is transmitted on a transmission link, and the outbound interface is connected to the transmission link;

[0184] The processing unit 502 is further configured to determine whether the first SLA information meets the SLA requirement.

[0185] Optionally, the detailed implementation process of the processing unit 502 determining whether the first SLA information meets the SLA requirement can be found in Figure 4 The relevant contents in operation 4022 of the method 40 are not described in detail here.

[0186] Optionally, the processing unit 502 is further configured to:

[0187] In response to the first SLA information not meeting the SLA requirement, the physical bandwidth of the outbound interface is increased to a third bandwidth.

[0188] Optionally, the detailed implementation process of the processing unit 502 increasing the physical bandwidth of the outbound interface to the third bandwidth can be found in Figure 4 The relevant contents in operation 4023 of the method 40 are not described in detail here.

[0189] Optionally, the processing unit 502 is further configured to:

[0190] In response to the first SLA information satisfying the SLA requirement, determining whether the first SLA information reaches an SLA threshold, the performance indicated by the SLA threshold being better than the performance indicated by the SLA requirement;

[0191] In response to the first SLA information reaching the SLA threshold, the physical bandwidth of the outbound interface is adjusted down to a fourth bandwidth, where the fourth bandwidth is greater than the physical bandwidth of the outbound interface before the physical bandwidth is adjusted based on the first queue length.

[0192] Optionally, the detailed implementation process of the processing unit 502 lowering the physical bandwidth of the outbound interface to the fourth bandwidth can be found in Figure 4 The relevant contents in operation 4025 of the method 40 are not described in detail here.

[0193] Optionally, the processing unit 502 is configured to calculate the SLA performance of the network traffic when it is transmitted on the transmission link based on the physical bandwidth of the outbound interface to obtain first SLA information.

[0194] Optionally, the processing unit 502 is configured to measure the SLA performance of the network traffic when it is transmitted on the transmission link to obtain the first SLA information; or

[0195] Optionally, the apparatus 500 further includes a receiving unit 503,

[0196] The receiving unit 503 is used to receive the first SLA information sent by the next-hop device of the device 500. The first SLA information is obtained by the next-hop device measuring the SLA performance of the network traffic when it is transmitted on the transmission link. The next-hop device is connected to the output interface through the transmission link.

[0197] Optionally, the outbound interface of the device 500 includes a first sub-outbound interface in an open state and a second sub-outbound interface in a closed state, the first sub-outbound interface communicates with at least one first channel, the physical bandwidth of the first sub-outbound interface is a first bandwidth, and the first bandwidth is equal to the total bandwidth of the at least one first channel, the second sub-outbound interface communicates with at least one second channel, the physical bandwidth of the second sub-outbound interface is a second bandwidth, and the second bandwidth is equal to the total bandwidth of the at least one second channel;

[0198] The processing unit 502 is configured to shut down the first sub-outbound interface and enable the second sub-outbound interface.

[0199] Optionally, the outbound interface of the apparatus 500 communicates with M channels, where M is an integer greater than or equal to 1, and the physical bandwidth of the outbound interface is the total bandwidth of the M channels, and the total bandwidth is equal to the first bandwidth;

[0200] The processing unit 502 is used to cancel the outbound interface and configure an outbound interface for communicating with N channels in the device, where the physical bandwidth of the configured outbound interface is equal to the total bandwidth of the N channels, the total bandwidth of the N channels is the second bandwidth, and N is an integer greater than or equal to 1.

[0201] Optionally, the processing unit 502 is configured to:

[0202] In response to the first queue length being within the second length interval, the physical bandwidth of the outbound interface of the device 500 is adjusted from the first bandwidth to the fifth bandwidth, where the fifth bandwidth is smaller than the first bandwidth. The first bandwidth is the physical bandwidth of the outbound interface for sending the network traffic before the adjustment.

[0203] Optionally, the detailed implementation process of the processing unit 502 adjusting the physical bandwidth of the outbound interface from the first bandwidth to the fifth bandwidth can be found in Figure 4 The relevant contents in step 403 of the method 40 are not described in detail here.

[0204] Optionally, the acquiring unit 501 is further configured to:

[0205] Obtaining second SLA information, the second SLA information indicating a measured value of SLA performance when the network traffic is transmitted on a transmission path when the physical bandwidth of the outbound interface of the apparatus 500 is a fifth bandwidth, the transmission path being connected to the outbound interface;

[0206] The processing unit 502 is configured to adjust the physical bandwidth of the outbound interface of the apparatus 500 from the first bandwidth to the fifth bandwidth in response to the second SLA information satisfying the SLA requirement.

[0207] Optionally, the acquiring unit 501 is configured to calculate second SLA information based on the fifth bandwidth.

[0208] Optionally, the outbound interface of the device 500 includes a first sub-outbound interface in an open state and a third sub-outbound interface in a closed state, the first sub-outbound interface communicates with at least one first channel, the physical bandwidth of the first sub-outbound interface is a first bandwidth, and the first bandwidth is equal to the total bandwidth of the at least one first channel, the third sub-outbound interface communicates with at least one third channel, the physical bandwidth of the third sub-outbound interface is a fourth bandwidth, and the fifth bandwidth is equal to the total bandwidth of the at least one third channel;

[0209] The processing unit 502 is configured to shut down the first sub-outbound interface and enable the third sub-outbound interface.

[0210] Optionally, the outbound interface of the apparatus 500 communicates with M channels, where M is an integer greater than or equal to 1, and the physical bandwidth of the outbound interface is the total bandwidth of the M channels, and the total bandwidth is equal to the first bandwidth;

[0211] The processing unit 502 is used to cancel the outbound interface and configure an outbound interface for communicating with Z channels in the device 500, where the physical bandwidth of the configured outbound interface is equal to the total bandwidth of the Z channels, the total bandwidth of the Z channels is the fifth bandwidth, and Z is an integer greater than or equal to 1.

[0212] In an embodiment of the present application, an acquisition unit acquires a first queue length. Since the first queue length is the maximum queue length cached in the cache space of the device during a first cycle, the first queue length can be used to reflect changes in the capacity of the cache space used and network traffic during the first cycle. Therefore, the processing unit adjusts the physical bandwidth of the outbound interface of the device based on the first queue length so that the capacity of the cache space used and the physical bandwidth of the outbound interface are balanced, thereby preventing a significant decrease in the physical bandwidth of the outbound interface from significantly increasing the capacity of the cache space used, nor a significant decrease in the capacity of the cache space from significantly increasing the physical bandwidth of the outbound interface, thereby achieving the purpose of reducing the overall power consumption of the device.

[0213] See also Figure 6 , the embodiment of the present application provides a schematic diagram of a device 600 for adjusting the physical bandwidth of an outbound interface. The device 600 may be the above Figure 1 The network devices or Figure 4 The network device in the method 400 is shown. The apparatus 600 includes at least one processor 601 , internal connections 602 , a memory 603 and at least one communication interface 604 .

[0214] The device 600 is a hardware structure device that can be used to implement Figure 5 The functional modules in the device 500 are as follows. For example, those skilled in the art may think of Figure 5 The acquisition unit 501 and the processing unit 502 in the device 500 shown can be implemented by the at least one processor 601 calling the code in the memory 603. Figure 5 The receiving unit 503 in the illustrated apparatus 500 may be implemented by the at least one communication interface 604 .

[0215] Optionally, the device 600 may also be used to implement the functions of the network device in any of the above embodiments.

[0216] Optionally, the device 600 may be Figure 2 The network device 100 shown in FIG. 1 includes at least one communication interface 604 including the inbound interface 101 and / or the outbound interface 102 in the network device 100 . The memory 603 includes the buffer space 103 , the first register 105 , and / or the second register 106 in the network device 100 .

[0217] Optionally, the processor 601 may be a general-purpose central processing unit (CPU), a network processor (NP), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0218] The internal connection 602 may include a path for transmitting information between the components. Optionally, the internal connection 602 is a single board or a bus.

[0219] The at least one communication interface 604 is used to communicate with other devices or communication networks.

[0220] The above-mentioned memory 603 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. The memory can exist independently and be connected to the processor through a bus. The memory can also be integrated with the processor.

[0221] The memory 603 is used to store application code for executing the solution of the present application, and the execution is controlled by the processor 601. The processor 601 is used to execute the application code stored in the memory 603 and cooperate with at least one communication interface 604, so that the device 600 can implement the functions of the method of the present invention.

[0222] In a specific implementation, as an embodiment, the processor 601 may include one or more CPUs, such as Figure 6 CPU0 and CPU1 in.

[0223] In a specific implementation, as an embodiment, the apparatus 600 may include multiple processors, such as Figure 66 and 607. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0224] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

[0225] The above description is merely an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for adjusting the physical bandwidth of an outbound interface, characterized in that: The method comprises: Obtaining a first queue length, where the first queue length is a maximum queue length cached in a cache space of a network device within a first period, the cache space being used to cache network traffic received by the network device, a current length threshold of the network device being the first length threshold, a first length interval and a second length interval of the network device being determined based on the first length threshold, the first length interval being an interval greater than the first length threshold, the second length interval being an interval less than the second length threshold, and the second length threshold being less than the first length threshold; In response to the first queue length being within the first length interval, adjusting the physical bandwidth of the outbound interface of the network device from a first bandwidth to a second bandwidth, where the second bandwidth is greater than the first bandwidth, and the first bandwidth is the physical bandwidth of the outbound interface for sending the network traffic before the adjustment, and increasing the current length threshold of the network device from the first length threshold to a third length threshold; or In response to the first queue length being within the second length interval, the physical bandwidth of the outbound interface of the network device is adjusted from the first bandwidth to a fifth bandwidth, the fifth bandwidth being smaller than the first bandwidth, and the current length threshold of the network device is reduced from the first length threshold to the second length threshold.

2. The method according to claim 1, wherein The first queue length is within the first length interval, and the method further includes: Obtaining first service level agreement (SLA) information corresponding to the network traffic, the first SLA information indicating a measured value of SLA performance when the network traffic is transmitted on a transmission link, the outbound interface being connected to the transmission link; Determine whether the first SLA information meets SLA requirements.

3. The method according to claim 2, wherein The method further comprises: In response to the first SLA information not meeting the SLA requirement, the physical bandwidth of the outbound interface is increased to a third bandwidth.

4. The method according to claim 2, wherein The method further comprises: In response to the first SLA information satisfying the SLA requirement, determining whether the first SLA information reaches an SLA threshold, the performance indicated by the SLA threshold being better than the performance indicated by the SLA requirement; In response to the first SLA information reaching an SLA threshold, the physical bandwidth of the outbound interface is adjusted down to a fourth bandwidth, where the fourth bandwidth is greater than the physical bandwidth of the outbound interface before the physical bandwidth is adjusted based on the first queue length.

5. The method according to any one of claims 2 to 4, characterized in that The obtaining of first service level agreement (SLA) information corresponding to the network traffic includes: Calculating the SLA performance of the network traffic when it is transmitted on the transmission link based on the physical bandwidth of the outbound interface to obtain the first SLA information; or measuring the SLA performance of the network traffic when being transmitted on the transmission link to obtain the first SLA information; or, Receive the first SLA information sent by the next-hop device of the network device, where the first SLA information is obtained by the next-hop device measuring the SLA performance of the network traffic when it is transmitted on the transmission link, and the next-hop device is connected to the outbound interface through the transmission link.

6. The method according to claim 1, wherein The first queue length is within the first length interval, the outbound interface of the network device includes a first sub-outbound interface in an enabled state and a second sub-outbound interface in a disabled state, the first sub-outbound interface communicates with at least one first channel, a physical bandwidth of the first sub-outbound interface is a first bandwidth, and the first bandwidth is equal to the total bandwidth of the at least one first channel, the second sub-outbound interface communicates with at least one second channel, the physical bandwidth of the second sub-outbound interface is a second bandwidth, and the second bandwidth is equal to the total bandwidth of the at least one second channel; The adjusting the physical bandwidth of the outbound interface of the network device from the first bandwidth to the second bandwidth includes: Close the first sub-outbound interface and open the second sub-outbound interface.

7. The method according to claim 1, wherein The first queue length is within the first length interval, the outbound interface of the network device communicates with M channels, where M is an integer greater than or equal to 1, and the physical bandwidth of the outbound interface is the total bandwidth of the M channels, which is equal to the first bandwidth; The adjusting the physical bandwidth of the outbound interface of the network device from the first bandwidth to the second bandwidth includes: The outbound interface is revoked, and an outbound interface for communicating with N channels is configured in the network device, where the physical bandwidth of the configured outbound interface is equal to the total bandwidth of the N channels, the total bandwidth of the N channels is the second bandwidth, and N is an integer greater than or equal to 1.

8. The method according to claim 1, wherein The first queue length is within the second length interval, and the method further includes: obtaining second SLA information, where the second SLA information indicates a measured value of SLA performance when the network traffic is transmitted on a transmission path connected to the outbound interface when the physical bandwidth of the outbound interface of the network device is a fifth bandwidth; The adjusting the physical bandwidth of the outbound interface of the network device from the first bandwidth to the fifth bandwidth includes: In response to the second SLA information satisfying the SLA requirement, the physical bandwidth of the outbound interface of the network device is adjusted from the first bandwidth to a fifth bandwidth.

9. The method according to claim 8, wherein The obtaining of the second SLA information includes: The second SLA information is calculated based on the fifth bandwidth.

10. The method according to claim 8 or 9, characterized in that The outbound interface of the network device includes a first sub-outbound interface in an open state and a third sub-outbound interface in a closed state, the first sub-outbound interface communicates with at least one first channel, the physical bandwidth of the first sub-outbound interface is a first bandwidth, and the first bandwidth is equal to the total bandwidth of the at least one first channel, the third sub-outbound interface communicates with at least one third channel, the physical bandwidth of the third sub-outbound interface is a fourth bandwidth, and the fifth bandwidth is equal to the total bandwidth of the at least one third channel; The adjusting the physical bandwidth of the outbound interface of the network device from the first bandwidth to the fifth bandwidth includes: The first sub-outbound interface is closed and the third sub-outbound interface is opened.

11. The method according to claim 8 or 9, characterized in that The outbound interface of the network device communicates with M channels, where M is an integer greater than or equal to 1, and the physical bandwidth of the outbound interface is the total bandwidth of the M channels, and the total bandwidth is equal to the first bandwidth; The adjusting the physical bandwidth of the outbound interface of the network device from the first bandwidth to the fifth bandwidth includes: The outbound interface is revoked, and an outbound interface for communicating with Z channels is configured in the network device, where the physical bandwidth of the configured outbound interface is equal to the total bandwidth of the Z channels, the total bandwidth of the Z channels is the fifth bandwidth, and Z is an integer greater than or equal to 1.

12. A device for adjusting the physical bandwidth of an outbound interface, characterized in that: The device comprises: an acquiring unit, configured to acquire a first queue length, where the first queue length is a maximum queue length cached in a cache space of the device within a first period, the cache space being used to cache network traffic received by the device, a current length threshold of the network device being the first length threshold, a first length interval and a second length interval of the network device being determined based on the first length threshold, the first length interval being an interval greater than the first length threshold, the second length interval being an interval less than the second length threshold, and the second length threshold being less than the first length threshold; A processing unit is configured to adjust, in response to the first queue length being within the first length interval, the physical bandwidth of the outbound interface of the network device from a first bandwidth to a second bandwidth, the second bandwidth being greater than the first bandwidth, the first bandwidth being the physical bandwidth of the outbound interface for sending the network traffic before adjustment, and to increase the current length threshold of the network device from the first length threshold to a third length threshold; or, in response to the first queue length being within the second length interval, adjust the physical bandwidth of the outbound interface of the network device from the first bandwidth to a fifth bandwidth, the fifth bandwidth being less than the first bandwidth, and to reduce the current length threshold of the network device from the first length threshold to the second length threshold.

13. The device according to claim 12, wherein The first queue length is within the first length interval, The acquiring unit is further configured to acquire first service level agreement (SLA) information corresponding to the network traffic, the first SLA information indicating a measured value of SLA performance of the network traffic when the network traffic is transmitted on a transmission link, the outbound interface being connected to the transmission link; The processing unit is further configured to determine whether the first SLA information meets SLA requirements.

14. The device according to claim 13, wherein The processing unit is further configured to: In response to the first SLA information not meeting the SLA requirement, the physical bandwidth of the outbound interface is increased to a third bandwidth.

15. The device according to claim 13, wherein The processing unit is further configured to: In response to the first SLA information satisfying the SLA requirement, determining whether the first SLA information reaches an SLA threshold, the performance indicated by the SLA threshold being better than the performance indicated by the SLA requirement; In response to the first SLA information reaching an SLA threshold, the physical bandwidth of the outbound interface is adjusted down to a fourth bandwidth, where the fourth bandwidth is greater than the physical bandwidth of the outbound interface before the physical bandwidth is adjusted based on the first queue length.

16. The device according to any one of claims 13 to 15, characterized in that The processing unit is configured to: Calculating the SLA performance of the network traffic when it is transmitted on the transmission link based on the physical bandwidth of the outbound interface to obtain the first SLA information; or, The SLA performance of the network traffic when being transmitted on the transmission link is measured to obtain the first SLA information.

17. The device according to any one of claims 13 to 15, characterized in that The device further comprises: A receiving unit is used to receive the first SLA information sent by the next-hop device of the device, where the first SLA information is obtained by the next-hop device measuring the SLA performance of the network traffic when it is transmitted on the transmission link, and the next-hop device is connected to the output interface through the transmission link.

18. The device according to claim 12, wherein The first queue length is within the first length interval, the outbound interface of the device includes a first sub-outbound interface in an open state and a second sub-outbound interface in a closed state, the first sub-outbound interface communicates with at least one first channel, the physical bandwidth of the first sub-outbound interface is a first bandwidth, and the first bandwidth is equal to the total bandwidth of the at least one first channel, the second sub-outbound interface communicates with at least one second channel, the physical bandwidth of the second sub-outbound interface is a second bandwidth, and the second bandwidth is equal to the total bandwidth of the at least one second channel; The processing unit is configured to close the first sub-outbound interface and open the second sub-outbound interface.

19. The device according to claim 12, wherein The first queue length is within the first length interval, the outbound interface of the device communicates with M channels, where M is an integer greater than or equal to 1, and the physical bandwidth of the outbound interface is the total bandwidth of the M channels, which is equal to the first bandwidth; The processing unit is used to cancel the outbound interface and configure an outbound interface for communicating with N channels in the device, where the physical bandwidth of the configured outbound interface is equal to the total bandwidth of the N channels, the total bandwidth of the N channels is the second bandwidth, and N is an integer greater than or equal to 1.

20. The device according to claim 12, wherein The first queue length is within the second length interval, and the acquiring unit is further configured to: obtaining second SLA information, the second SLA information indicating a measured value of SLA performance when the network traffic is transmitted on a transmission path connected to the outbound interface when the physical bandwidth of the outbound interface of the device is a fifth bandwidth; The processing unit is configured to adjust the physical bandwidth of the outbound interface of the device from the first bandwidth to the fifth bandwidth in response to the second SLA information satisfying the SLA requirement.

21. The device according to claim 20, characterized in that The acquiring unit is configured to calculate the second SLA information based on the fifth bandwidth.

22. The device according to claim 20 or 21, characterized in that The outbound interface of the device includes a first sub-outbound interface in an open state and a third sub-outbound interface in a closed state, the first sub-outbound interface communicates with at least one first channel, a physical bandwidth of the first sub-outbound interface is a first bandwidth, and the first bandwidth is equal to the total bandwidth of the at least one first channel, the third sub-outbound interface communicates with at least one third channel, the physical bandwidth of the third sub-outbound interface is a fourth bandwidth, and the fifth bandwidth is equal to the total bandwidth of the at least one third channel; The processing unit is configured to close the first sub-outbound interface and open the third sub-outbound interface.

23. The device according to claim 20 or 21, characterized in that The outbound interface of the device communicates with M channels, where M is an integer greater than or equal to 1, and the physical bandwidth of the outbound interface is the total bandwidth of the M channels, and the total bandwidth is equal to the first bandwidth; The processing unit is used to cancel the outbound interface and configure an outbound interface in the device that communicates with Z channels, where the physical bandwidth of the configured outbound interface is equal to the total bandwidth of the Z channels, the total bandwidth of the Z channels is the fifth bandwidth, and Z is an integer greater than or equal to 1.

24. A network device, characterized in that: The network device comprises a processor and a memory, wherein the memory is used to store a computer program, and when the processor executes the computer program, the network device implements the method according to any one of claims 1 to 11.

25. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a computer, the method according to any one of claims 1 to 11 is implemented.

26. A computer program product, characterized in that The method comprises a computer program, which, when executed by a computer, implements the method according to any one of claims 1 to 11.

Citation Information

Patent Citations

  • Message processing method and device

    CN111404839A

  • Bandwidth allocation system of virtual path in communication network of asynchronous transfer mode

    US20030026290A1