Channel state control method and device

By dynamically adjusting the number of channels based on ingress and egress traffic using a controller, the high power consumption problem caused by excessive channels between communication devices is solved, resulting in reduced power consumption and improved service reliability.

CN121509331APending Publication Date: 2026-02-10HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411095465.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2026-02-10

AI Technical Summary

Technical Problem

In communication networks, power consumption is high when there are multiple channels between communication devices.

Method used

The controller determines the inlet and outlet flow rates and dynamically adjusts the number of channels between the first and third devices to match the flow rates, thereby controlling the switching state of the channels and reducing power consumption.

Benefits of technology

It effectively reduces the power consumption of communication devices, avoids unnecessary power waste, and improves service reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121509331A_ABST
    Figure CN121509331A_ABST
Patent Text Reader

Abstract

The invention provides a channel state control method. The controller determines an inlet flow of the first device, the inlet flow of the first device being a flow sent to the first device by the second device. The controller determines, according to the inlet flow, the number of channels that remain open among a plurality of first channels between the first device and the third device, the plurality of first channels being used by the first device to send flow to the third device. Further, the controller can control the on-off state of the plurality of first channels based on the determined number of channels kept open. Therefore, in the application, the number of the channels which are kept open in the plurality of first channels can be determined according to the inlet flow, and the on-off states of the plurality of first channels are controlled based on the number of the channels which are kept open; therefore, the number of the channels kept open in the multiple first channels is matched with the inlet flow, and the power consumption of the first device and the third device is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communications, and in particular to a channel state control method and apparatus. Background Technology

[0002] In a communication network, communication devices can provide traffic forwarding functionality. Multiple channels can exist between communication devices, and these channels can be used to transmit traffic. For example, communication device 1 and communication device 2 have multiple channels, and traffic can be transmitted between them through these multiple channels.

[0003] Currently, in scenarios where there are multiple channels between communication devices, the power consumption of the communication devices is relatively high.

[0004] Therefore, a solution is urgently needed to address the above problems. Summary of the Invention

[0005] This application provides a channel state control method and apparatus that can reduce the power consumption of communication devices.

[0006] Firstly, this application provides a channel state control method applied to a controller. The controller can determine the inlet flow of a first device, which refers to the flow sent from a second device to the first device. After determining the inlet flow of the first device, the controller can determine the number of channels that remain open among multiple first channels between the first device and the third device, wherein these multiple first channels are used by the first device to send flow to the third device; that is, the first device can send flow from the second device to the third device through the first channels. Further, the controller can control the switching state of the multiple first channels based on the determined number of channels that remain open. Therefore, in this application, unlike conventional technologies where all multiple first channels between the first and third devices remain open, the number of channels that remain open among the multiple first channels is determined based on the aforementioned inlet flow, and the switching state of the multiple first channels is controlled based on the number of channels that remain open, thereby matching the number of channels that remain open with the aforementioned inlet flow, thus reducing the power consumption of the first and third devices.

[0007] In one possible implementation, the first device and the third device belong to a target device employing a multi-layer network configuration. The first device is located at the i-th layer of the multi-layer network configuration, and the third device is located at the (i+1)-th layer of the multi-layer network configuration, where i is an integer greater than or equal to 1. In this case, this solution can effectively reduce the power consumption of the target device.

[0008] In one possible implementation, when i equals 1, the second device is an upstream device of the target device. In this scenario, the first device can receive traffic from the second device and forward that traffic to the third device through a first channel.

[0009] In one possible implementation, when i is greater than 1, the second device also belongs to the target device; specifically, the second device is located at layer i-1 in the multi-layer network configuration. In this scenario, the flow of traffic within the target device can be as follows: the second device sends traffic to the first device, and the first device forwards the traffic to the third device through the first channel.

[0010] In one possible implementation, for example, in a scenario where the traffic received by the first device from the second device is forwarded only to a third device, the ingress traffic can be the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth used by the first device to send traffic to the third device.

[0011] In one possible implementation, considering that in some scenarios, the first device may need to process traffic received from the second device, and in other scenarios, to ensure the first device has sufficient bandwidth to forward traffic from the second device to the third device, the bandwidth actually available for the first device to send traffic to the third device can be greater than the bandwidth available for the second device to send traffic to the first device, thereby improving service reliability. Considering these two scenarios, in one example, the ingress traffic can be the sum of a first bandwidth ratio and a first bandwidth cost ratio. The first bandwidth ratio is the ratio of the bandwidth occupied by traffic sent from the second device to the first device to the total bandwidth used by the first device to send traffic to the third device. The first bandwidth cost ratio is the proportion of bandwidth that the first device needs to reserve to process the traffic sent from the second device to the first device.

[0012] In one possible implementation, if the first device and the third device belong to a target device employing a multi-layer network configuration, then the ingress traffic can be the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth of the traffic sent by the first device to the (i+1)th layer device, wherein the (i+1)th layer device includes at least two third devices. The total bandwidth used by the first device to send traffic to the (i+1)th layer device can be the sum of the bandwidths used by the first device to send traffic to each of the third devices.

[0013] In one possible implementation, considering that in some scenarios, after receiving traffic from the second device, the first device may need to process the traffic accordingly, and the processed traffic may occupy more bandwidth than the traffic received by the first device from the second device. In other scenarios, to ensure that the first device has sufficient bandwidth to forward the traffic from the second device to the third device, the bandwidth that the first device can actually use to send traffic to the third device can be greater than the bandwidth that the second device sends traffic to the first device, thereby improving service reliability. Therefore, in one example, the ingress traffic can be the sum of a second bandwidth ratio and a second bandwidth cost ratio, where: the second bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth of the traffic sent by the first device to the (i+1)th layer device; the second bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent by the second device to the first device; and the (i+1)th layer device includes at least two of the third devices.

[0014] In one possible implementation, the controller determines the number of channels that remain open among the multiple first channels between the first device and the third device based on the ingress traffic. Specifically, the controller can determine the total number of channels that remain open among the multiple first channels used by the first device to send traffic to the (i+1)th layer device based on the ingress traffic and the total number of first channels between the first device and the (i+1)th layer device. Further, the controller can determine the number of channels that remain open among the multiple first channels between the first device and the third device based on the total number.

[0015] In one possible implementation, if the number of first channels between the first device and each of the third devices in the (i+1)th layer is the same, the controller determines the number of channels that remain open among the multiple first channels between the first device and the third device based on the inlet flow. In a specific implementation, the controller can determine the number of channels that remain open among the multiple first channels between the first device and the third device based on the inlet flow and the number of first channels between the first device and the third device.

[0016] In one possible implementation, the controller can receive the ingress traffic configured by the user to obtain the ingress traffic, so as to subsequently determine the number of channels to keep the first channel open based on the ingress traffic, and further control the on / off state of the first channel based on the number of channels to keep the first channel open.

[0017] In one possible implementation, the controller can determine the ingress traffic based on the historical traffic sent from the second device to the first device, so as to subsequently determine the number of channels to keep the first channel open based on the ingress traffic, and further control the on / off state of the first channel based on the number of channels to keep the first channel open.

[0018] In one possible implementation, the first device may support multiple channel configuration options, which indicate the on / off state of multiple first channels through which the first device sends traffic to the third device. Alternatively, the channel configuration options indicate the number of first channels that remain active, and / or the number of first channels that remain closed (or dormant). In this scenario, after determining the number of channels that remain active, the controller can select a first channel configuration option from the multiple channel configuration options supported by the first device that matches the number of channels that remain active, wherein the number of first channels in the active state indicated by the first channel configuration selection is greater than or equal to the number of channels that remain active as determined by the controller. Accordingly, the controller can control the on / off state of the multiple first channels according to the first channel configuration options.

[0019] Secondly, this application provides a channel state control method applied to a controller. The controller can determine the output flow of a first device, which refers to the flow sent from the first device to a second device. After determining the output flow of the first device, the controller can determine the number of channels that remain open among multiple second channels between the first device and the third device, based on the output flow. These multiple second channels are used by the third device to send flow to the first device; that is, the first device can send flow received through the second channels to the second device. Further, the controller can control the switching state of the multiple second channels based on the determined number of channels that remain open. Therefore, unlike conventional technologies where all multiple second channels between the first and third devices remain open, this application determines the number of channels that remain open based on the aforementioned output flow and controls the switching state of the multiple second channels based on this number, thereby matching the number of channels that remain open with the aforementioned output flow, thus reducing the power consumption of the first and third devices.

[0020] In one possible implementation, the first device and the third device belong to a target device employing a multi-layer network configuration. The first device is located at the i-th layer of the multi-layer network configuration, and the third device is located at the (i+1)-th layer of the multi-layer network configuration, where i is an integer greater than or equal to 1. In this case, this solution can effectively reduce the power consumption of the target device.

[0021] In one possible implementation, when i equals 1, the second device is a downstream device of the target device. In this scenario, the first device can receive traffic from the third device via the second channel and forward that traffic to the second device.

[0022] In one possible implementation, when i is greater than 1, the second device also belongs to the target device; specifically, the second device is located at layer i-1 in the multi-layer network configuration. In this scenario, the flow of traffic within the target device can be as follows: the third device sends traffic to the first device through the second channel, and the first device forwards the traffic to the second device.

[0023] In one possible implementation, for example, in a scenario where the traffic sent from the first device to the second device originates only from a third device, the outgoing traffic can be the ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth used by the third device to send traffic to the first device.

[0024] In one possible implementation, to ensure the first device has sufficient bandwidth to receive traffic from the third device, the bandwidth actually available for the third device to send traffic to the first device can be greater than the bandwidth available for the first device to send traffic to the second device, thereby improving service reliability. In one example, the outgoing traffic can be the sum of a third bandwidth ratio and a third bandwidth cost ratio. The third bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth of the traffic sent from the third device to the first device. The third bandwidth cost ratio is the proportion of bandwidth that the first device needs to reserve to process the traffic sent from the third device to the first device.

[0025] In one possible implementation, if the first device and the third device belong to a target device employing a multi-layer network configuration, then the outgoing traffic can be the ratio of the bandwidth occupied by the traffic sent by the first device to the second device to the total bandwidth of the traffic sent by the (i+1)th layer devices to the first device, wherein the (i+1)th layer devices include at least two third devices. The total bandwidth of the traffic sent by the (i+1)th layer devices to the first device can be the sum of the bandwidths used by each third device to send traffic to the first device.

[0026] In one possible implementation, to ensure the first device has sufficient bandwidth to receive traffic from the third device, the bandwidth actually available for the third device to send traffic to the first device can be greater than the bandwidth available for the first device to send traffic to the second device, thereby improving service reliability. Therefore, the outgoing traffic can be the sum of a fourth bandwidth ratio and a fourth bandwidth cost ratio. The fourth bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth occupied by the traffic sent from the (i+1)th layer device to the first device. The fourth bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent from the (i+1)th layer device to the first device. The (i+1)th layer device includes at least two of the third devices.

[0027] In one possible implementation, the controller determines the number of channels that remain open among the multiple second channels between the first device and the third device based on the outflow rate. Specifically, the controller can determine the total number of channels that remain open among the multiple second channels between the first device and the (i+1)th layer device based on the outflow rate and the total number of second channels. Further, the controller can determine the number of channels that remain open among the multiple second channels between the first device and the third device based on the total number.

[0028] In one possible implementation, if the number of second channels between the first device and each of the third devices in the (i+1)th layer is the same, then the controller determines the number of channels that remain open among the multiple second channels between the first device and the third device based on the outflow rate. In a specific implementation, the controller can determine the number of channels that remain open among the multiple second channels between the first device and the third device based on the outflow rate and the number of second channels between the first device and the third device.

[0029] In one possible implementation, the controller can receive the outgoing traffic configured by the user to obtain the outgoing traffic, so as to subsequently determine the number of channels of the second channel to be kept open based on the outgoing traffic, and further control the switching state of the second channel based on the number of channels of the second channel to be kept open.

[0030] In one possible implementation, the controller determines the outgoing flow based on the historical flow sent from the first device to the second device, so as to subsequently determine the number of channels to keep the second channel open based on the outgoing flow, and further control the switching state of the second channel based on the number of channels to keep the second channel open.

[0031] In one possible implementation, the first device may support multiple channel configuration options that indicate the on / off state of multiple second channels through which the third device sends traffic to the first device. Alternatively, the channel configuration options indicate the number of second channels that remain active, and / or the number of second channels that remain closed (or dormant). In this scenario, after determining the number of channels that remain active, the controller can select a second channel configuration option from the multiple channel configuration options supported by the first device that matches the number of channels that remain active, wherein the number of second channels in the active state indicated by the second channel configuration selection is greater than or equal to the number of channels that remain active as determined by the controller. Accordingly, the controller can control the on / off state of the multiple second channels according to the second channel configuration options.

[0032] Thirdly, this application provides a channel state control device applied to a controller. The device includes: a determining unit, configured to determine the inlet flow of a first device, wherein the inlet flow is the flow sent from a second device to the first device; and, based on the inlet flow, determine the number of channels that remain open among multiple first channels between the first device and a third device, wherein the multiple first channels are used by the first device to send flow to the third device; and a control unit, configured to control the on / off state of the multiple first channels based on the number of channels that remain open.

[0033] In one possible implementation, the first device and the third device belong to a target device with a multi-layer network configuration. The first device is located at the i-th layer of the multi-layer network configuration, and the third device is located at the (i+1)-th layer of the multi-layer network configuration, where i is an integer greater than or equal to 1.

[0034] In one possible implementation, when i equals 1, the second device is the upstream device of the target device, and when i is greater than 1, the second device is located at the (i-1)th layer in the multi-layer networking configuration.

[0035] In one possible implementation, the ingress traffic includes the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth used by the first device to send traffic to the third device.

[0036] In one possible implementation, the ingress traffic includes: the sum of a first bandwidth ratio and a first bandwidth cost ratio, wherein the first bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth used by the first device to send traffic to the third device, and the first bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve for processing the traffic sent by the second device to the first device.

[0037] In one possible implementation, the ingress traffic includes: the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth of the traffic sent by the first device to the (i+1)th layer device, wherein the (i+1)th layer device includes at least two of the third devices.

[0038] In one possible implementation, the ingress traffic includes: the sum of a second bandwidth ratio and a second bandwidth cost ratio, wherein the second bandwidth ratio is: the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth of the traffic sent by the first device to the (i+1)th layer device, and the second bandwidth cost ratio is: the bandwidth cost ratio that the first device needs to reserve for processing the traffic sent by the second device to the first device, wherein the (i+1)th layer device includes at least two of the third devices.

[0039] In one possible implementation, the determining unit is configured to: determine, based on the ingress traffic and the total number of first channels between the first device and the (i+1)th layer device, the total number of channels that remain open among the multiple first channels through which the first device sends traffic to the (i+1)th layer device; and determine, based on the total number, the number of channels that remain open among the multiple first channels between the first device and the third device.

[0040] In one possible implementation, the number of first channels between the first device and each of the third devices in the (i+1)th layer device is the same, and the determining unit is configured to: determine the number of channels that remain open among the multiple first channels between the first device and the third device based on the inlet flow rate and the number of first channels between the first device and the third device.

[0041] In one possible implementation, the determining unit is configured to: receive the ingress traffic configured by the user; or determine the ingress traffic based on the historical traffic sent by the second device to the first device.

[0042] In one possible implementation, the apparatus further includes: a processing unit, configured to select a first channel configuration option matching the number of channels kept open from a plurality of channel configuration options supported by the first apparatus, wherein the channel configuration option is used to indicate the on / off state of a plurality of first channels through which the first apparatus sends traffic to the third apparatus; and a control unit, configured to control the on / off state of the plurality of first channels according to the first channel configuration option.

[0043] Fourthly, this application provides a channel state control device applied to a controller. The device includes: a determining unit, configured to determine the outflow of a first device, the outflow being the flow sent from the first device to a second device; and, based on the outflow, determine the number of channels that remain open among a plurality of second channels between the first device and a third device, the plurality of second channels being used by the third device to send flow to the first device; and a control unit, configured to control the switching state of the plurality of second channels based on the number of channels that remain open.

[0044] In one possible implementation, the first device and the third device belong to a target device with a multi-layer network configuration. The first device is located at the i-th layer of the multi-layer network configuration, and the third device is located at the (i+1)-th layer of the multi-layer network configuration, where i is an integer greater than or equal to 1.

[0045] In one possible implementation, when i equals 1, the second device is a downstream device of the target device, and when i is greater than 1, the second device is located at the (i-1)th layer in the multi-layer networking configuration.

[0046] In one possible implementation, the outgoing traffic includes the ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth of the traffic sent from the third device to the first device.

[0047] In one possible implementation, the outgoing traffic includes: the sum of a third bandwidth ratio and a third bandwidth cost ratio, wherein the third bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent by the first device to the second device to the total bandwidth of the traffic sent by the third device to the first device, and the third bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent by the third device to the first device.

[0048] In one possible implementation, the outgoing traffic includes: the ratio of the bandwidth occupied by the traffic sent by the first device to the second device to the total bandwidth of the traffic sent by the (i+1)th layer device to the first device, wherein the (i+1)th layer device includes at least two of the third devices.

[0049] In one possible implementation, the outgoing traffic includes: the sum of a fourth bandwidth ratio and a fourth bandwidth cost ratio, wherein the fourth bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth occupied by the traffic sent from the (i+1)th layer device to the first device, and the fourth bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent from the (i+1)th layer device to the first device, wherein the (i+1)th layer device includes at least two of the third devices.

[0050] In one possible implementation, the determining unit is configured to: determine, based on the outlet flow rate and the total number of second channels between the first device and the (i+1)th layer device, the total number of channels that remain open among the multiple second channels; and determine, based on the total number, the number of channels that remain open among the multiple second channels between the first device and the third device.

[0051] In one possible implementation, the number of second channels between the first device and each of the third devices in the (i+1)th layer device is the same, and the determining unit is configured to: determine the number of channels that remain open among the multiple second channels between the first device and the third device based on the outlet flow rate and the number of second channels between the first device and the third device.

[0052] In one possible implementation, the determining unit is configured to: receive the outgoing traffic configured by the user; or determine the outgoing traffic based on the historical traffic sent by the first device to the second device.

[0053] In one possible implementation, the apparatus further includes: a selection unit, configured to select a second channel configuration option matching the number of channels kept open from a plurality of channel configuration options supported by the first apparatus, the channel configuration option indicating the on / off state of a plurality of second channels used by the third apparatus to send traffic to the first apparatus; and a control unit, configured to: control the on / off state of the plurality of second channels according to the second channel configuration option.

[0054] Fifthly, embodiments of this application provide an apparatus, including: a processor and a memory; the memory being used to store instructions or computer programs; the processor being used to execute the instructions or computer programs to perform the methods described in the first aspect above and any one of the first aspects above; or, the processor being used to execute the instructions or computer programs to perform the methods described in the second aspect above and any one of the second aspects above.

[0055] Sixthly, embodiments of this application provide a computer-readable storage medium, including instructions or a computer program that, when run on a computer, causes the computer to perform the methods described in the first aspect and any one of the first aspects above, or, when run on a computer, causes the computer to perform the methods described in the second aspect and any one of the second aspects above.

[0056] In a seventh aspect, embodiments of this application provide a computer program product comprising instructions or a computer program, which, when run on a computer, causes the computer to perform the methods described in the first aspect and any one of the first aspects above, or, when run on a computer, causes the computer to perform the methods described in the second aspect and any one of the second aspects above. Attached Figure Description

[0057] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0058] Figure 1 A schematic diagram of a communication device employing a two-layer networking configuration is shown.

[0059] Figure 2 A flowchart illustrating a channel state control method provided in an embodiment of this application;

[0060] Figure 3a This is a schematic diagram illustrating an exemplary application scenario provided in an embodiment of this application;

[0061] Figure 3b This application provides another exemplary application scenario diagram;

[0062] Figure 4 A flowchart illustrating another channel state control method provided in this application embodiment;

[0063] Figure 5a This is a schematic diagram illustrating an exemplary application scenario provided in an embodiment of this application;

[0064] Figure 5b This application provides another exemplary application scenario diagram;

[0065] Figure 6 This is a schematic diagram of the structure of a channel status control device provided in an embodiment of this application;

[0066] Figure 7This is a schematic diagram of the structure of a device provided in an embodiment of this application. Detailed Implementation

[0067] This application provides a channel state control method and apparatus, which can reduce the power consumption of communication devices and avoid unnecessary power waste.

[0068] Communication devices can have multiple channels. In some scenarios, to expand the network scale, communication devices can adopt a multi-layered network configuration. For example, chassis switches and chassis routers can be used in a multi-layered network configuration. (See reference...) Figure 1 To understand, Figure 1 A schematic diagram of a communication device employing a two-layer networking configuration is shown. Figure 1 The communication device shown includes M layer 1 (L1) devices and N layer 2 (L2) devices.

[0069] Each device in L1 can have multiple links with each device in L2. Figure 1 For ease of understanding, it is shown that there are k links between device 1 of L1 and each device of L2, and there are k links between device M of L1 and each device of L2, where k is an integer greater than or equal to 1.

[0070] The connection between device 1 of L1 and each device of L2 mentioned here includes k links. This can be understood as k sets of transmit and receive links between device 1 of L1 and each device of L2, or in other words, k transmit channels and k receive channels between device 1 of L1 and each device of L2. Wherein:

[0071] The transmission channel between device 1 of L1 and a device (e.g., device 1) of L2 refers to the channel obtained by connecting the transmitting unit of device 1 of L1 to the receiving unit of device 1 of L2. The receiving channel between device 1 of L1 and device 1 of L2 refers to the channel obtained by connecting the receiving unit of device 1 of L1 to the transmitting unit of device 1 of L2.

[0072] Similarly, the connection between device M of L1 and each device of L2 mentioned here includes k links, which can be understood as the connection between device M of L1 and each device of L2 including k sets of transmit and receive links, or in other words, the connection between device M of L1 and each device of L2 includes k transmit channels and k receive channels respectively.

[0073] In one example, for any traffic exchanged between devices across L1, the L1 device receiving the traffic load-balancedly distributes the traffic to the various devices in L2, and the L2 devices forward the traffic to the L1 device where the destination port is located, thus completing the forwarding process.

[0074] Currently, in scenarios where communication devices have multiple channels, for example, in Figure 1 In the scenario shown, where multiple links exist between each device in L1 and each device in L2, all these links are active. When a link is active, the associated transmitting and receiving units are also active, resulting in power consumption. Because all the links between the devices in L1 and L2 are active, the power consumption of both devices in L1 and L2 is relatively high.

[0075] In one example Figure 1 The communication device shown can be a chassis switch or a chassis router. In this scenario, L1 can correspond to a line card board, and L2 can correspond to a switching network board. Accordingly, the device for L1 can be a processing unit on the line card board, and the device for L2 can be a switching unit on the switching network board.

[0076] In yet another example, Figure 1 The communication device shown can be a regular switch or a regular router. In this scenario, L1 can correspond to a forwarding chip, and L2 can correspond to a switching chip. Accordingly, the device for L1 can be a forwarding chip or a forwarding die, and the device for L2 can be a switching module (e.g., a switching chip).

[0077] It should be noted that, Figure 1 This illustration is provided for ease of understanding of the scenario and does not constitute a limitation on the embodiments of this application. In practical applications, multi-layer networking may include L3, L4, and even more layers in addition to L1 and L2. Accordingly, each device in layer j may have multiple links with each device in layer j+1, and all of these links are active, resulting in higher power consumption for both the devices in layer j and layer j+1. Here, j is an integer greater than or equal to 2.

[0078] To reduce the power consumption of communication devices, this application provides a channel state control method, which can be applied to, but is not limited to, [various applications]. Figure 1 The scenario is shown below. Next, with reference to the accompanying drawings, the channel state control method will be introduced.

[0079] The channel state control method provided in this application can be applied to a controller. In one example, the controller can be a control board, for example, in... Figure 1 In the scenario depicting a communication device corresponding to a chassis switch or chassis router, the controller can be a control board. In yet another example, the controller can be a central processing unit (CPU). For example, in... Figure 1 In scenarios where the communication device shown corresponds to a regular switch or router, the controller can be a CPU.

[0080] The channel state control method provided in this application embodiment can perform initialization control on the first device when the first device or the third device is powered on, or refresh the switch state of the channel (such as the first channel and the second channel mentioned below) between the first device and the third device during the operation of the first device or the third device. This application embodiment does not make specific limitations.

[0081] Before introducing the channel state control method provided in the embodiments of this application, it should be noted that:

[0082] The devices mentioned in the embodiments of this application (such as the first device, the second device, and the third device) may be network devices such as switches and routers, or they may be components of network devices, such as single boards or line cards on network devices, or they may be functional modules or chips on network devices. The embodiments of this application do not make specific limitations.

[0083] In one example, if the solution provided in this application is applied to a scenario where the communication device adopts a multi-layer network configuration, then both the first device and the third device can belong to the target device adopting the multi-layer network configuration. Accordingly, the first device is located at the i-th layer in the multi-layer network configuration, and the third device is located at the (i+1)-th layer in the multi-layer network configuration. i is an integer greater than or equal to 1.

[0084] As before Figure 1 As can be seen from the description of the communication device shown, the target device can be a chassis switch or a chassis router. The target device can also be a regular switch or a regular router.

[0085] In one example, if the value of i is 1, then the second device is connected to other devices connected to the target device.

[0086] As a concrete example, in a scenario where a first device receives traffic from a second device and forwards that traffic to a third device via a first channel, the second device is either an upstream router or an upstream switch of the target device, or a component of the upstream router or a component of the upstream switch. The first channel mentioned here refers to the channel between the first and third devices; specifically, it is the channel used by the first device to send traffic to the third device.

[0087] As another concrete example, in a scenario where a first device receives traffic from a third device via a second channel and forwards the traffic from the third device to a second device, the second device is a downstream router or downstream switch of the target device, or, the second device is a component of the downstream router, or, the second device is a component of the downstream switch. The second channel mentioned here refers to the channel between the first and third devices; specifically, it is the channel used by the third device to send traffic to the first device.

[0088] In the scenario where i is 1, regarding the first and third devices, please refer to the previous section on... Figure 1 The descriptions of the devices L1 and L2 shown are not repeated here.

[0089] In another example, if the value of i is greater than 1, then the second device is located at layer (i-1) of the multi-layer network configuration. In one example, the second device includes all devices at layer (i-1) that have traffic interaction with the first device.

[0090] In this application, the first device can receive traffic from the second device and forward the traffic received from the second device to the third device through a first channel. The first device can also receive traffic from the third device through a second channel and forward the traffic received from the third device to the second device. Firstly, in conjunction with... Figure 2 The state control method for the first channel will be introduced. Figure 2 This is a flowchart illustrating a channel state control method provided in an embodiment of this application. Figure 2 The method shown may include the following steps S101-S103.

[0091] S101: The controller determines the inlet flow of the first device, which is the flow sent from the second device to the first device.

[0092] In one example, the controller can determine the ingress traffic based on the historical traffic sent by the second device to the first device. For instance, the controller can summarize the pattern of traffic sent by the second device to the first device in different time periods based on the historical traffic sent by the second device to the first device, and then estimate the ingress traffic based on this pattern.

[0093] In another example, the ingress traffic can also be manually configured. For instance, if the user has a clear understanding of the ingress traffic of the first device, the user can configure the ingress traffic in this scenario. In this case, the controller can receive the ingress traffic configured by the user.

[0094] In some embodiments, for example, in a scenario where traffic received by the first device from the second device is forwarded only to a third device, the ingress traffic can be the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth used by the first device to send traffic to the third device. Here, multiple first channels may exist between the first and third devices, and these multiple first channels are used by the first device to send traffic to the third device. In other words, the first device can send traffic to the third device through the multiple first channels. A first channel is a transmission channel through which the first device sends traffic to the third device. In this scenario, the total bandwidth used by the first device to send traffic to the third device can be the total bandwidth of the aforementioned multiple first channels. Assuming that the bandwidth of each first channel is s, and there are k first channels between the first and third devices, then the total bandwidth of the multiple first channels is B1 = s * k. In this scenario, assuming that the bandwidth occupied by the traffic sent by the second device to the first device is b1, then the ingress traffic can be b1 / B1. For ease of description, in the following description, the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth used by the first device to send traffic to the third device will be referred to as the "first bandwidth ratio".

[0095] In some scenarios, considering that the first device may need to process the traffic received from the second device, such as further encapsulating the traffic according to the communication protocol used to forward it, the processed traffic may occupy more bandwidth than the traffic received by the first device from the second device. In other scenarios, to ensure that the first device has sufficient bandwidth to forward the traffic from the second device to the third device, the bandwidth that the first device can actually use to send traffic to the third device can be greater than the bandwidth that the second device can use to send traffic to the first device, thereby improving service reliability. Considering these two scenarios, in one example, the ingress traffic may include not only the aforementioned first bandwidth ratio but also a first bandwidth cost ratio. The first bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve for processing the traffic sent from the second device to the first device. This first bandwidth cost ratio can be a value less than 1, such as 5%. Specifically, in this scenario, the ingress traffic can be the sum of the first bandwidth ratio and the first bandwidth cost ratio.

[0096] In one example, if the first device and the third device belong to a multi-layer network configuration, the ingress traffic can be the ratio of the bandwidth occupied by the traffic sent from the second device to the first device to the total bandwidth of the traffic sent from the first device to the (i+1)th layer device, where the (i+1)th layer device includes at least two third devices. Multiple first channels can exist between the first device and each third device, and these multiple first channels are used by the first device to send traffic to the third devices. In this scenario, the total bandwidth used by the first device to send traffic to the (i+1)th layer device can be the sum of the bandwidths used by the first device to send traffic to each third device. Assuming the bandwidth of each first channel is s, there are k first channels between the first device and each third device, and the (i+1)th layer device includes N third devices, then the total bandwidth B2 of the traffic sent from the first device to the (i+1)th layer device is B2 = s * k * N. In this scenario, assuming the bandwidth occupied by the traffic sent from the second device to the first device is b2, the ingress traffic can be b2 / B2. It should be noted that, for ease of understanding, this example uses the case where the number of first channels between the first device and each third device is k. However, this does not constitute a limitation on the embodiments of this application, and the number of first channels between the first device and each third device may also be different. For ease of description, in the following description, the "ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth of the traffic sent by the first device to the (i+1)th layer device" is referred to as the "second bandwidth ratio".

[0097] As mentioned earlier, in some scenarios, after receiving traffic from the second device, the first device may need to process the traffic accordingly. Consequently, the processed traffic may occupy more bandwidth than the traffic received by the first device from the second device. In other scenarios, to ensure that the first device has sufficient bandwidth to forward the traffic from the second device to the third device, the bandwidth that the first device can actually use to send traffic to the third device can be greater than the bandwidth that the second device uses to send traffic to the first device, thereby improving service reliability. Therefore, in one example, the ingress traffic may include not only the aforementioned second bandwidth ratio but also a second bandwidth cost ratio. The second bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve for processing the traffic sent from the second device to the first device. This second bandwidth cost ratio can be a value less than 1, such as 5%. Specifically, in this scenario, the ingress traffic can be the sum of the second bandwidth ratio and the second bandwidth cost ratio.

[0098] S102: The controller determines the number of channels that remain open among the multiple first channels between the first device and the third device based on the inlet traffic. The multiple first channels are used by the first device to send traffic to the third device.

[0099] After the controller obtains the ingress traffic, it can determine the number of channels that remain open among the multiple first channels between the first device and the third device based on the ingress traffic, so that the number of channels that remain open is sufficient to forward the traffic sent by the second device to the first device. In other words, the number of channels that remain open matches the aforementioned ingress traffic.

[0100] In one example, such as in the scenario where the traffic received by the first device from the second device is forwarded only to a third device, the ingress traffic is a first bandwidth percentage or the sum of the first bandwidth percentage and the first bandwidth cost percentage. In this case: S102, in a specific implementation, can, for example, determine the number of channels to keep open based on the ingress traffic and the number of first channels between the first and third devices. Assuming the ingress traffic is m%, and the number of first channels between the first and third devices is k, then the number of channels to keep open can be ceiling(m%*k, a), where ceiling(m%*k, a) represents rounding the parameter m%*k upwards in the direction of increasing absolute value to obtain the nearest multiple of a. In this application, a is an integer greater than or equal to 1. As an example, the value of a can be 1. For instance, assuming the ingress traffic is 55%, the value of k is 8, and the value of a is 1, then the number of channels to keep open can be determined as: ceiling(55%*8, 1) = 5.

[0101] In another example, for instance, in a scenario where both the first and third devices are target devices, the ingress traffic is the second bandwidth ratio or the sum of the second bandwidth ratio and the second bandwidth cost ratio. In this case, S102 can be implemented in several ways; two possible implementations are described below.

[0102] Implementation method 1:

[0103] The controller can first determine the total number of first channels between the first device and the (i+1)th layer device. This total number refers to the sum of the number of first channels between the first device and each of the third devices in the (i+1)th layer. After determining this total number, the controller can determine the total number of channels that remain open among the multiple first channels used by the first device to send traffic to the (i+1)th layer device, based on the aforementioned inflow rate and the total number. Assuming the inflow rate is m% and the total number is p, the number of channels that remain open can be ceiling(m%*p, a). For details on the ceiling function and the value of a, please refer to the previous description of ceiling(m%*k, a), which will not be repeated here.

[0104] After determining the total number, the controller can determine the number of channels that remain open in the multiple first channels between the first device and each third device based on the total number. In a specific example, the first device can determine the number of channels that remain open in the multiple first channels between the first device and each third device based on the principle that "the sum of the number of channels that remain open in the multiple first channels between the first device and each third device is greater than or equal to the total number". The number of channels that remain open between the first device and each third device can be the same or different; this application embodiment does not specifically limit this. If the number of channels that remain open between the first device and each third device is the same, then the interconnection capability between the first device and each third device is balanced. If the number of channels that remain open between the first device and each third device is not exactly the same or is completely different, then the interconnection capability between the first device and each third device is unbalanced.

[0105] Implementation Method 2: If the number of first channels between the first device and each of the third devices in the (i+1)th layer is the same, for example, the number of first channels between the first device and each third device is k, then the controller can determine the number of channels that remain open among the multiple first channels between the first device and the third devices based on the inlet flow and the number of first channels between the first device and the third devices. Assuming the inlet flow is m%, the number of channels that remain open can be ceiling(m%*k, a). For example, assuming the inlet flow is 55%, k is 8, and a is 1, then the number of channels that remain open can be determined as ceiling(55%*8, 1) = 5. That is, in this scenario, the number of first channels that remain open between the first device and each of the third devices can be determined to be 5. Since the number of first channels that remain open between the first device and each of the third devices is the same, the interconnection capability between the first device and each of the third devices is balanced.

[0106] S103: The controller controls the switching state of the multiple first channels based on the number of channels that remain open.

[0107] After determining the number of channels that remain open, the controller can control the switching state of the multiple first channels based on the number of channels that remain open.

[0108] In one example, the controller can keep a certain number of the multiple first channels open and keep the other first channels closed or in a dormant state. For example, if there are k first channels between the first device and the third device, and the number of channels kept open is s, then the controller can keep s first channels open and keep (ks) first channels closed or in a dormant state.

[0109] In another example, the first device may support multiple channel configuration options that indicate the on / off state of multiple first channels through which the first device sends traffic to the third device. Alternatively, the channel configuration options indicate the number of first channels that remain active, and / or the number of first channels that remain closed (or dormant). In this scenario, after determining the number of channels that remain active, the controller can select a first channel configuration option from the multiple channel configuration options supported by the first device that matches the number of channels that remain active, wherein the number of first channels in the active state indicated by the first channel configuration selection is greater than or equal to the number of channels that remain active as determined by the controller.

[0110] For example, the first device and the third device include eight first channels. The first device supports three channel configuration options: Channel configuration option 1 indicates that two first channels remain on and six first channels remain off; Channel configuration option 2 indicates that five first channels remain on and three first channels remain off; Channel configuration option 3 indicates that eight first channels remain on and zero first channels remain off. Assuming the controller determines that the number of channels to remain on is five, then the first channel configuration option can be determined as channel configuration option 2. Furthermore, the controller can control the on / off state of the multiple first channels according to the first channel configuration option. That is, the controller can control five first channels to remain on and control three first channels to remain off or in a dormant state.

[0111] In this application, keeping the first channel in an on state can mean controlling the transmitting unit associated with the first channel in the first device and the receiving unit associated with the first channel in the third device to be in an operational state. Correspondingly, keeping the first channel in a off state can mean controlling the transmitting unit associated with the first channel in the first device and the receiving unit associated with the first channel in the third device to be in a closed state. Keeping the first channel in a sleep state can mean controlling the transmitting unit associated with the first channel in the first device and the receiving unit associated with the first channel in the third device to be in a sleep state.

[0112] As can be seen from the above description, the solution using the embodiments of this application does not keep all the multiple first channels between the first device and the third device open as in the conventional technology. Instead, it determines the number of channels that remain open among the multiple first channels based on the aforementioned inlet flow rate, and controls the switching state of the multiple first channels based on the number of channels that remain open, thereby matching the number of channels that remain open among the multiple first channels with the aforementioned inlet flow rate, thereby reducing the power consumption of the first device and the third device.

[0113] The above describes the state control method for the first channel. Next, we will combine... Figure 3a and Figure 3b The technical effects of applying this solution will be explained.

[0114] See Figure 3a This figure is a schematic diagram of an exemplary application scenario provided by an embodiment of this application.

[0115] Figure 3a The diagram illustrates a communication device employing a two-layer networking configuration. For details regarding the networking configuration of this communication device, please refer to the section above. Figure 1 The description of that section will not be repeated here.

[0116] In one example, devices 1 to M of L1 can be respectively used as the aforementioned first device to perform... Figure 2 The method is illustrated. In one example, assume that the inlet flow from device 1 to device M-2 of L1 is small, while the inlet flow from device M-1 and device M of L1 is large. Taking device 1 and device M of L1 as examples, the following steps are performed for device 1 and device M of L1. Figure 2 Following the method shown, the number of first channels that remain open between device 1 of L1 and each device of L2, and the number of first channels that remain open between device M of L1 and each device of L2, are as follows: Figure 3a As shown:

[0117] The number of first channels that remain open between device 1 of L1 and each device of L2 is c, and the number of first channels that remain open between device M of L1 and each device of L2 is k, where c is less than k. Using this method, compared to conventional techniques, the power consumption of device 1 of L1 can be reduced, as can the power consumption of each device of L2.

[0118] In one example Figure 3a In the scenario shown, the number of channels that remain open in the multiple first channels between device 1 of L1 and each device of L2 can be calculated based on the aforementioned "Implementation Method 2".

[0119] It should be noted that, Figure 3a This is shown only for the purpose of facilitating understanding of the present solution and does not constitute a limitation on the embodiments of this application. For example, the number of channels that remain open between device M of L1 and each device of L2 may also be less than k.

[0120] See Figure 3b This figure is a schematic diagram of another exemplary application scenario provided by the embodiments of this application.

[0121] Figure 3b The diagram illustrates a communication device employing a two-layer networking configuration. For details regarding the networking configuration of this communication device, please refer to the section above. Figure 1 The description of that section will not be repeated here.

[0122] In one example, devices 1 to M of L1 can be respectively used as the aforementioned first device to perform... Figure 2 The method is shown. In one example, assuming the inlet flow from device 1 to device M-2 of L1 is small, while the inlet flow from device M-1 and device M of L1 is large, taking device 1 and device M of L1 as examples, the following steps are performed for device 1 and device M of L1. Figure 2Following the method shown, the number of first channels that remain open between device 1 of L1 and each device of L2, and the number of first channels that remain open between device M of L1 and each device of L2, are as follows: Figure 3b As shown:

[0123] The number of first channels that remain active between device 1 of L1 and devices 1 through N-1 of L2 is d, and the number of first channels that remain active between device 1 of L1 and device N of L2 is 0, where d is less than or equal to k. The number of first channels that remain active between device M of L1 and each device of L2 is k. Using this method, compared to conventional technology, the power consumption of device 1 of L1 can be reduced, as can the power consumption of each device in L2.

[0124] In one example Figure 3b In the scenario shown, the number of channels that remain open in the multiple first channels between device 1 of L1 and each device of L2 can be calculated based on the aforementioned "Implementation Method 1".

[0125] It should be noted that, Figure 3b This is shown only for the purpose of understanding the present solution and does not constitute a limitation on the embodiments of this application. For example, the number of channels in the first channel that is kept open between device M of L1 and each device of L2 may also be less than k.

[0126] Next, combined Figure 4 The state control method for the second channel will be introduced. Figure 4 This is a flowchart illustrating another channel state control method provided in an embodiment of this application.

[0127] Figure 4 The method shown may include the following steps S201-S203.

[0128] S201: The controller determines the output flow of the first device, which is the flow sent by the first device to the second device.

[0129] In one example, the controller can determine the outgoing traffic based on the historical traffic sent from the first device to the second device. For instance, the controller can summarize the pattern of traffic sent from the first device to the second device at different times based on the historical traffic sent from the first device to the second device, and then estimate the outgoing traffic based on this pattern.

[0130] In another example, the outgoing traffic can also be manually configured. For instance, if the user has a clear understanding of the outgoing traffic of the first device, the user can configure the outgoing traffic in this scenario. In this case, the controller can receive the outgoing traffic configured by the user.

[0131] In some embodiments, for example, in a scenario where the traffic sent from the first device to the second device originates from only one third device, the outgoing traffic can be the ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth used by the third device to send traffic to the first device. Multiple second channels may exist between the first and third devices, and these multiple second channels are used by the third device to send traffic to the first device. In other words, the first device can receive traffic sent by the third device through these multiple second channels. A second channel is a receiving channel for the first device to receive traffic sent from the third device. In this scenario, the total bandwidth used by the third device to send traffic to the first device can be the total bandwidth of the aforementioned multiple second channels. Assuming the bandwidth of each second channel is s, and there are k second channels between the first and third devices, then the total bandwidth of the multiple second channels is B3 = s * k. In this scenario, assuming the bandwidth occupied by the traffic sent from the first device to the second device is b3, then the outgoing traffic can be b3 / B3. For ease of description, in the following description, the ratio of the bandwidth occupied by the traffic sent by the first device to the second device to the total bandwidth used by the third device to send traffic to the first device will be referred to as the "third bandwidth ratio". The total bandwidth used by the third device to send traffic to the first device is also the total bandwidth used by the first device to receive traffic from the third device.

[0132] In some scenarios, to ensure that the first device has sufficient bandwidth to receive traffic from the third device, the bandwidth that the third device can actually use to send traffic to the first device can be greater than the bandwidth that the first device can use to send traffic to the second device, thereby improving service reliability. In one example, the outgoing traffic may include not only the aforementioned third bandwidth ratio but also a third bandwidth cost ratio. The third bandwidth cost ratio is the proportion of bandwidth that the first device needs to reserve to process the traffic sent from the third device to the first device. This third bandwidth cost ratio can be a value less than 1, such as 5%. Specifically, in this scenario, the outgoing traffic can be the sum of the third bandwidth ratio and the third bandwidth cost ratio.

[0133] In one example, if the first device and the third device belong to a target device in a multi-layer network configuration, the outgoing traffic can be the ratio of the bandwidth occupied by the traffic sent by the first device to the second device to the total bandwidth of the traffic sent by the (i+1)th layer device to the first device, wherein the (i+1)th layer device includes at least two third devices. Multiple second channels can exist between the first device and each third device, and these multiple second channels are used by the third devices to send traffic to the first device. In this scenario, the total bandwidth of the traffic sent by the (i+1)th layer device to the first device can be the sum of the bandwidths used by each third device to send traffic to the first device. Assuming that the bandwidth of each second channel is s, there are k second channels between the first device and each third device, and the (i+1)th layer device includes N third devices, then the total bandwidth B4 of the traffic sent by the (i+1)th layer device to the first device is B4 = s * k * N. In this scenario, assuming that the bandwidth occupied by the traffic sent by the first device to the second device is b4, the outgoing traffic can be b4 / B4. It should be noted that, for ease of understanding, this example uses the case where the number of second channels between the first device and each third device is k. However, this does not constitute a limitation on the embodiments of this application, and the number of second channels between the first device and each third device may also be different. For ease of description, in the following description, the ratio of "the bandwidth occupied by the traffic sent by the first device to the second device to the total bandwidth of the traffic sent by the (i+1)th layer device to the first device" is referred to as the "fourth bandwidth ratio".

[0134] As mentioned earlier, in some scenarios, to ensure that the first device has sufficient bandwidth to receive traffic from the third device, the bandwidth that the third device can actually use to send traffic to the first device can be greater than the bandwidth that the first device can use to send traffic to the second device, thereby improving service reliability. Therefore, in one example, the outgoing traffic may include not only the aforementioned fourth bandwidth ratio but also a fourth bandwidth cost ratio. The fourth bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent from the third device to the first device. This fourth bandwidth cost ratio can be a value less than 1, such as 5%. Specifically, in this scenario, the outgoing traffic can be the sum of the fourth bandwidth ratio and the fourth bandwidth cost ratio.

[0135] S202: The controller determines, based on the outflow, the number of channels that remain open among the multiple second channels between the first device and the third device, and the multiple second channels are used by the third device to send traffic to the first device.

[0136] After the controller obtains the outgoing traffic, it can determine the number of channels that remain open among the multiple second channels between the first device and the third device based on the outgoing traffic, so that the number of channels that remain open is sufficient to receive the traffic sent from the third device to the first device. In other words, the number of channels that remain open matches the aforementioned outgoing traffic.

[0137] In one example, such as in a scenario where the traffic sent from the first device to the second device originates only from a third device, the outgoing traffic is the third bandwidth percentage or the sum of the third bandwidth percentage and the third bandwidth cost percentage. In this case, in a specific implementation, S202 can, for example, determine the number of channels to remain open based on the outgoing traffic and the number of second channels between the first and third devices. Assuming the outgoing traffic is m%, and the number of second channels between the first and third devices is k, then the number of channels to remain open can be ceiling(m%*k, a). For example, assuming the outgoing traffic is 55%, k is 8, and a is 1, then the number of channels to remain open can be: ceiling(55%*8, 1) = 5.

[0138] In another example, for instance, in a scenario where both the first and third devices mentioned above are target devices, the outgoing traffic is the fourth bandwidth ratio or the sum of the fourth bandwidth ratio and the fourth bandwidth cost ratio. In this case, S202 can be implemented in several ways; two possible implementations are described below.

[0139] Implementation method 1:

[0140] The controller can first determine the total number of second channels between the first device and the (i+1)th layer device, where the total number of second channels refers to the sum of the number of second channels between the first device and each of the third devices in the (i+1)th layer. After determining the total number, the controller can determine the total number of channels that remain open among the multiple second channels used by the first device to receive traffic from the (i+1)th layer device, based on the aforementioned outgoing traffic and the total number. Assuming the outgoing traffic is m%, and the total number is p, then the number of channels that remain open can be ceiling(m%*p, a).

[0141] After determining the total number, the controller can determine the number of channels that remain open in the multiple second channels between the first device and each third device based on the total number. In a specific example, the first device can determine the number of channels that remain open in the multiple second channels between the first device and each third device based on the principle that "the sum of the number of channels that remain open in the multiple second channels between the first device and each third device is greater than or equal to the total number". The number of open second channels between the first device and each third device can be the same or different; this application embodiment does not impose a specific limitation. If the number of open second channels between the first device and each third device is the same, then the interconnection capability between the first device and each third device is balanced. If the number of open second channels between the first device and each third device is not exactly the same or completely different, then the interconnection capability between the first device and each third device is unbalanced.

[0142] Implementation Method 2: If the number of second channels between the first device and each of the third devices in the (i+1)th layer is the same, for example, the number of second channels between the first device and each third device is k, then the controller can determine the number of channels that remain open among the multiple second channels between the first device and the third devices based on the outflow rate and the number of second channels between the first device and the third devices. Assuming the outflow rate is m%, the number of channels that remain open can be ceiling(m%*k, a). For example, assuming the outflow rate is 55%, k is 8, and a is 1, then the number of channels that remain open can be determined as ceiling(55%*8, 1) = 5. That is, in this scenario, the number of second channels that remain open between the first device and each of the third devices can be determined to be 5. Since the number of second channels that remain open between the first device and each of the third devices is the same, the interconnection capability between the first device and each of the third devices is balanced.

[0143] S203: The controller controls the switching state of the multiple second channels based on the number of channels that remain open.

[0144] After determining the number of channels that remain open, the controller can control the switching state of the multiple second channels based on the number of channels that remain open.

[0145] In one example, the controller can keep a certain number of the multiple second channels open and keep the other second channels closed or in a dormant state. For example, if there are k second channels between the first device and the third device, and the number of channels kept open is s, then the controller can keep s second channels open and keep (ks) second channels closed or in a dormant state.

[0146] In another example, the first device may support multiple channel configuration options that indicate the on / off state of multiple second channels through which the third device sends traffic to the first device. Alternatively, the channel configuration options indicate the number of second channels that remain active, and / or the number of second channels that remain closed (or dormant). In this scenario, after determining the number of channels that remain active, the controller can select a second channel configuration option from the multiple channel configuration options supported by the first device that matches the number of channels that remain active, wherein the number of second channels in the active state indicated by the second channel configuration selection is greater than or equal to the number of channels that remain active as determined by the controller.

[0147] For example, the first device and the third device include eight second channels. The first device supports three channel configuration options: Channel configuration option 1 indicates that two second channels remain on and six second channels remain off; Channel configuration option 2 indicates that five second channels remain on and three second channels remain off; Channel configuration option 3 indicates that eight second channels remain on and zero second channels remain off. Assuming the controller determines that the number of channels remaining on is five, then the second channel configuration option can be determined as channel configuration option 2. Furthermore, the controller can control the on / off state of the multiple second channels according to the second channel configuration option. That is, the controller can control five second channels to remain on and control three second channels to remain off or in a dormant state.

[0148] In this application, keeping the second channel in an on state can be achieved by controlling the receiving unit associated with the second channel in the first device and the transmitting unit associated with the second channel in the third device to be in an operational state. Similarly, keeping the second channel in a off state can be achieved by controlling the receiving unit associated with the second channel in the first device and the transmitting unit associated with the second channel in the third device to be in a closed state. Keeping the second channel in a sleep state can be achieved by controlling the receiving unit associated with the second channel in the first device and the transmitting unit associated with the second channel in the third device to be in a sleep state.

[0149] As can be seen from the above description, the solution using the embodiments of this application does not keep all the multiple second channels between the first device and the third device open as in the conventional technology. Instead, it determines the number of channels that remain open among the multiple second channels based on the aforementioned outflow rate, and controls the switching state of the multiple second channels based on the number of channels that remain open, thereby matching the number of channels that remain open among the multiple second channels with the aforementioned outflow rate, thereby reducing the power consumption of the first device and the third device.

[0150] The above describes the state control method for the second channel. Next, we will combine... Figure 5a and Figure 5b The technical effects of applying this solution will be explained.

[0151] See Figure 5a This figure is a schematic diagram of an exemplary application scenario provided by an embodiment of this application.

[0152] Figure 5a The diagram illustrates a communication device employing a two-layer networking configuration. For details regarding the networking configuration of this communication device, please refer to the section above. Figure 1 The description of that section will not be repeated here.

[0153] In one example, devices 1 to M of L1 can be respectively used as the aforementioned first device to perform... Figure 4 The method is illustrated. In one example, assume that the outlet flow of device 1 to device M-2 in L1 is small, while the outlet flow of devices M-1 and M in L1 is large. Taking device 1 and device M in L1 as examples, the following steps are performed for device 1 and device M in L1. Figure 4 Following the method shown, the number of second channels that remain open between device 1 of L1 and each device of L2, and the number of second channels that remain open between device M of L1 and each device of L2, are as follows: Figure 5a As shown:

[0154] The number of second channels that remain open between device 1 of L1 and each device of L2 is c, and the number of second channels that remain open between device M of L1 and each device of L2 is k, where c is less than k. Using this method, compared to conventional techniques, the power consumption of device 1 of L1 can be reduced, as can the power consumption of each device of L2.

[0155] In one example Figure 5a In the scenario shown, the number of channels that remain open in the multiple second channels between device 1 of L1 and each device of L2 can be calculated based on the aforementioned "Implementation Method 2".

[0156] It should be noted that, Figure 5a This is shown only for the purpose of facilitating understanding of the present solution and does not constitute a limitation on the embodiments of this application. For example, the number of channels that remain open between device M of L1 and each device of L2 may also be less than k.

[0157] See Figure 5b This figure is a schematic diagram of another exemplary application scenario provided by the embodiments of this application.

[0158] Figure 5b The diagram illustrates a communication device employing a two-layer networking configuration. For details regarding the networking configuration of this communication device, please refer to the section above. Figure 1 The description of that section will not be repeated here.

[0159] In one example, devices 1 to M of L1 can be respectively used as the aforementioned first device to perform... Figure 4 The method is shown. In one example, assuming the outflow from device 1 to device M-2 of L1 is small, while the outflow from device M-1 and device M of L1 is large, taking device 1 and device M of L1 as examples, the following steps are performed for device 1 and device M of L1. Figure 4 Following the method shown, the number of second channels that remain open between device 1 of L1 and each device of L2, and the number of second channels that remain open between device M of L1 and each device of L2, are as follows: Figure 5b As shown:

[0160] The number of second channels that remain active between device 1 of L1 and devices 1 through N-1 of L2 is d, and the number of second channels that remain active between device 1 of L1 and device N of L2 is 0, where d is less than or equal to k. The number of second channels that remain active between device M of L1 and each device of L2 is k. Using this method, compared to conventional technology, the power consumption of device 1 of L1 can be reduced, as can the power consumption of each device in L2.

[0161] In one example Figure 5b In the scenario shown, the number of channels that remain open in the multiple second channels between device 1 of L1 and each device of L2 can be calculated based on the aforementioned "Implementation Method 1".

[0162] It should be noted that, Figure 5b This is shown only for the purpose of understanding the present solution and does not constitute a limitation on the embodiments of this application. For example, the number of channels in the second channel that is kept open between device M of L1 and each device of L2 may also be less than k.

[0163] This application also provides a channel state control device, which can be applied to a controller to execute the channel state control method provided in the above method embodiments. The channel state control device will now be described in conjunction with the accompanying drawings.

[0164] See Figure 6 The figure is a schematic diagram of the structure of a channel status control device provided in an embodiment of this application. Figure 6 The channel state control device 600 shown is used to execute the channel state control method executed by the controller provided in the above method embodiments.

[0165] like Figure 6 As shown, the channel status control device 600 includes: a determination unit 601 and a control unit 602.

[0166] In a specific example, the device 600 can be used to perform the methods provided in the above embodiments. Figure 2 The corresponding channel state control method. For this situation:

[0167] The determining unit 601 is used to determine the inlet flow of the first device, which is the flow sent from the second device to the first device; based on the inlet flow, it determines the number of channels that remain open among the multiple first channels between the first device and the third device, which are used by the first device to send flow to the third device.

[0168] The control unit 602 is used to control the switching state of the plurality of first channels based on the number of channels that remain open.

[0169] In one possible implementation, the first device and the third device belong to a target device with a multi-layer network configuration. The first device is located at the i-th layer of the multi-layer network configuration, and the third device is located at the (i+1)-th layer of the multi-layer network configuration, where i is an integer greater than or equal to 1.

[0170] In one possible implementation, when i equals 1, the second device is the upstream device of the target device, and when i is greater than 1, the second device is located at the (i-1)th layer in the multi-layer networking configuration.

[0171] In one possible implementation, the ingress traffic includes the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth used by the first device to send traffic to the third device.

[0172] In one possible implementation, the ingress traffic includes: the sum of a first bandwidth ratio and a first bandwidth cost ratio, wherein the first bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth used by the first device to send traffic to the third device, and the first bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve for processing the traffic sent by the second device to the first device.

[0173] In one possible implementation, the ingress traffic includes: the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth of the traffic sent by the first device to the (i+1)th layer device, wherein the (i+1)th layer device includes at least two of the third devices.

[0174] In one possible implementation, the ingress traffic includes: the sum of a second bandwidth ratio and a second bandwidth cost ratio, wherein the second bandwidth ratio is: the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth of the traffic sent by the first device to the (i+1)th layer device, and the second bandwidth cost ratio is: the bandwidth cost ratio that the first device needs to reserve for processing the traffic sent by the second device to the first device, wherein the (i+1)th layer device includes at least two of the third devices.

[0175] In one possible implementation, the determining unit 601 is configured to: determine, based on the ingress traffic and the total number of first channels between the first device and the (i+1)th layer device, the total number of channels that remain open among the multiple first channels used by the first device to send traffic to the (i+1)th layer device; and determine, based on the total number, the number of channels that remain open among the multiple first channels between the first device and the third device.

[0176] In one possible implementation, the number of first channels between the first device and each of the third devices in the (i+1)th layer device is the same, and the determining unit 601 is used to: determine the number of channels that remain open among the multiple first channels between the first device and the third device based on the inlet flow rate and the number of first channels between the first device and the third device.

[0177] In one possible implementation, the determining unit 601 is configured to: receive the ingress traffic configured by the user; or determine the ingress traffic based on the historical traffic sent by the second device to the first device.

[0178] In one possible implementation, the apparatus further includes: a processing unit, configured to select a first channel configuration option matching the number of channels kept active from a plurality of channel configuration options supported by the first apparatus, wherein the channel configuration option is used to indicate the on / off state of a plurality of first channels through which the first apparatus sends traffic to the third apparatus. The control unit 602 is configured to: control the on / off state of the plurality of first channels according to the first channel configuration option.

[0179] In another specific example, the device 600 can be used to perform the methods provided in the above embodiments. Figure 2 The corresponding channel state control method. For this situation:

[0180] The determining unit 601 is used to determine the output flow of the first device, which is the flow sent by the first device to the second device; and based on the output flow, to determine the number of channels that remain open among the multiple second channels between the first device and the third device, which are used by the third device to send flow to the first device.

[0181] The control unit 602 is used to control the switching state of the plurality of second channels based on the number of channels that remain open.

[0182] In one possible implementation, the first device and the third device belong to a target device with a multi-layer network configuration. The first device is located at the i-th layer of the multi-layer network configuration, and the third device is located at the (i+1)-th layer of the multi-layer network configuration, where i is an integer greater than or equal to 1.

[0183] In one possible implementation, when i equals 1, the second device is a downstream device of the target device, and when i is greater than 1, the second device is located at the (i-1)th layer in the multi-layer networking configuration.

[0184] In one possible implementation, the outgoing traffic includes the ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth of the traffic sent from the third device to the first device.

[0185] In one possible implementation, the outgoing traffic includes: the sum of a third bandwidth ratio and a third bandwidth cost ratio, wherein the third bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent by the first device to the second device to the total bandwidth of the traffic sent by the third device to the first device, and the third bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent by the third device to the first device.

[0186] In one possible implementation, the outgoing traffic includes: the ratio of the bandwidth occupied by the traffic sent by the first device to the second device to the total bandwidth of the traffic sent by the (i+1)th layer device to the first device, wherein the (i+1)th layer device includes at least two of the third devices.

[0187] In one possible implementation, the outgoing traffic includes: the sum of a fourth bandwidth ratio and a fourth bandwidth cost ratio, wherein the fourth bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth occupied by the traffic sent from the (i+1)th layer device to the first device, and the fourth bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent from the (i+1)th layer device to the first device, wherein the (i+1)th layer device includes at least two of the third devices.

[0188] In one possible implementation, the determining unit 601 is configured to: determine the total number of channels that remain open among the multiple second channels between the first device and the (i+1)th layer device based on the outlet flow rate and the total number of second channels between the first device and the (i+1)th layer device; and determine the number of channels that remain open among the multiple second channels between the first device and the third device based on the total number.

[0189] In one possible implementation, the number of second channels between the first device and each of the third devices in the (i+1)th layer device is the same, and the determining unit 601 is used to: determine the number of channels that remain open among the multiple second channels between the first device and the third device based on the outlet flow rate and the number of second channels between the first device and the third device.

[0190] In one possible implementation, the determining unit 601 is configured to: receive the outgoing traffic configured by the user; or determine the outgoing traffic based on the historical traffic sent by the first device to the second device.

[0191] In one possible implementation, the apparatus further includes: a selection unit, configured to select a second channel configuration option matching the number of channels kept active from a plurality of channel configuration options supported by the first apparatus, wherein the channel configuration option indicates the on / off state of a plurality of second channels used by the third apparatus to send traffic to the first apparatus. The control unit 602 is configured to: control the on / off state of the plurality of second channels according to the second channel configuration option.

[0192] For details on the specific implementation of each unit of the device 600, please refer to the previous description of the channel state control method executed by the controller, which will not be repeated here.

[0193] Please see Figure 7 As shown, device 700 includes: processor 710, communication interface 720, and memory 730. The number of processors 710 in device 700 can be one or more. Figure 7 Taking a processor as an example. In this embodiment, the processor 710, communication interface 720, and memory 730 can be connected via a bus system or other means, wherein, Figure 7 Taking the connection between China and Israel via the 740 bus system as an example.

[0194] Processor 710 may be a CPU, NP, or a combination of CPU and NP. Processor 710 may further include hardware chips. The aforementioned hardware chips may be ASICs, programmable logic devices (PLDs), or combinations thereof. The aforementioned PLDs may be complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), generic array logic (GALs), or any combination thereof.

[0195] The memory 730 may include volatile memory, such as random-access memory (RAM); the memory 730 may also include non-volatile memory, such as flash memory, hard disk drive (HDD), or solid-state drive (SSD); the memory 730 may also include a combination of the above types of memory.

[0196] Optionally, the memory 730 stores an operating system and programs, executable modules, or data structures, or subsets thereof, or extended sets thereof. The programs may include various operation instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks. The processor 710 can read the programs from the memory 730 to implement the methods provided in the embodiments of this application (e.g., the aforementioned methods). Figure 2 and / or Figure 4 (The method shown).

[0197] The bus system 740 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus system 740 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0198] This application provides a computer-readable storage medium, including instructions or a computer program, which, when run on a computer, causes the computer to perform the methods described in the above method embodiments.

[0199] This application provides a computer program product containing instructions or computer programs, which, when run on a computer, causes the computer to perform the methods described in the above method embodiments.

[0200] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0201] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.

[0202] In the embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical business division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection between apparatuses or units, and may be electrical, mechanical, or other forms.

[0203] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0204] Furthermore, the various business units in the embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software business unit.

[0205] If the integrated unit is implemented as a software business unit and sold or used as a separate product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0206] Those skilled in the art will recognize that, in one or more of the examples above, the services described in this invention can be implemented using hardware, software, firmware, or any combination thereof. When implemented in software, these services can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transmission of computer programs from one place to another. Storage media can be any available medium accessible to general-purpose or special-purpose computers.

[0207] The above specific embodiments further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above are merely specific embodiments of the present invention.

[0208] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A channel state control method, characterized in that, Applied to a controller, the method includes: The controller determines the inbound flow of the first device, which is the flow sent from the second device to the first device; The controller determines the number of channels that remain open among the multiple first channels between the first device and the third device based on the inlet traffic. The multiple first channels are used by the first device to send traffic to the third device. The controller controls the switching state of the multiple first channels based on the number of channels that remain open.

2. The method according to claim 1, characterized in that, The first device and the third device are target devices that adopt a multi-layer network configuration. The first device is located at the i-th layer of the multi-layer network configuration, and the third device is located at the (i+1)-th layer of the multi-layer network configuration, where i is an integer greater than or equal to 1.

3. The method according to claim 2, characterized in that, When i equals 1, the second device is the upstream device of the target device; when i is greater than 1, the second device is located in the (i-1)th layer of the multi-layer network configuration.

4. The method according to any one of claims 1-3, characterized in that, The inbound traffic includes: The ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth used by the first device to send traffic to the third device.

5. The method according to any one of claims 1-3, characterized in that, The inbound traffic includes: The first bandwidth ratio is the sum of the first bandwidth cost ratio and the first bandwidth cost ratio. The first bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent from the second device to the first device to the total bandwidth used by the first device to send traffic to the third device. The first bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent from the second device to the first device.

6. The method according to claim 2 or 3, characterized in that, The inbound traffic includes: The ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth of the traffic sent by the first device to the (i+1)th layer device, wherein the (i+1)th layer device includes at least two of the third devices.

7. The method according to claim 2 or 3, characterized in that, The inbound traffic includes: The second bandwidth ratio is the sum of the second bandwidth cost ratio and the second bandwidth cost ratio. The second bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent by the second device to the first device to the total bandwidth of the traffic sent by the first device to the (i+1)th layer device. The second bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent by the second device to the first device. The (i+1)th layer device includes at least two of the third devices.

8. The method according to claim 6 or 7, characterized in that, The controller determines, based on the inflow rate, the number of channels that remain open among the multiple first channels between the first device and the third device, including: The controller determines, based on the inflow rate and the total number of first channels between the first device and the (i+1)th layer device, the total number of channels that remain open among the multiple first channels used by the first device to send traffic to the (i+1)th layer device. The controller determines, based on the total number, the number of channels that remain open among the multiple first channels between the first device and the third device.

9. The method according to claim 6 or 7, characterized in that, The number of first channels between the first device and each of the third devices in the (i+1)th layer is the same. The controller determines the number of channels that remain open among the multiple first channels between the first device and the third device based on the inlet flow rate, including: The controller determines the number of channels that remain open among the multiple first channels between the first device and the third device based on the inlet flow rate and the number of first channels between the first device and the third device.

10. The method according to any one of claims 1-9, characterized in that, The controller determines the inlet flow of the first device, including: The controller receives the inbound traffic configured by the user; or, The controller determines the inbound traffic based on the historical traffic sent from the second device to the first device.

11. The method according to any one of claims 1-10, characterized in that, The method further includes: The controller selects a first channel configuration option that matches the number of channels that remain open from a plurality of channel configuration options supported by the first device. The channel configuration option is used to indicate the on / off status of a plurality of first channels through which the first device sends traffic to the third device. The controller controls the switching state of the plurality of first channels based on the number of channels that remain open, including: The controller controls the switching status of the plurality of first channels according to the configuration options of the first channel.

12. A channel state control method, characterized in that, Applied to a controller, the method includes: The controller determines the outflow of the first device, which is the flow sent from the first device to the second device; The controller determines the number of channels that remain open among the multiple second channels between the first device and the third device based on the outflow rate. The multiple second channels are used by the third device to send traffic to the first device. The controller controls the switching state of the multiple second channels based on the number of channels that remain open.

13. The method according to claim 12, characterized in that, The first device and the third device are target devices that adopt a multi-layer network configuration. The first device is located at the i-th layer of the multi-layer network configuration, and the third device is located at the (i+1)-th layer of the multi-layer network configuration, where i is an integer greater than or equal to 1.

14. The method according to claim 13, characterized in that, When i equals 1, the second device is a downstream device of the target device; when i is greater than 1, the second device is located at the (i-1)th layer in the multi-layer network configuration.

15. The method according to any one of claims 12-14, characterized in that, The outflow includes: The ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth of the traffic sent from the third device to the first device.

16. The method according to any one of claims 12-14, characterized in that, The outflow includes: The third bandwidth ratio is the sum of the third bandwidth cost ratio, whereby the third bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth of the traffic sent from the third device to the first device, and the third bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent from the third device to the first device.

17. The method according to claim 13 or 14, characterized in that, The outflow includes: The ratio of the bandwidth occupied by the traffic sent by the first device to the second device to the total bandwidth of the traffic sent by the (i+1)th layer device to the first device, wherein the (i+1)th layer device includes at least two of the third devices.

18. The method according to claim 13 or 14, characterized in that, The outflow includes: The fourth bandwidth ratio is the sum of the fourth bandwidth cost ratio. The fourth bandwidth ratio is the ratio of the bandwidth occupied by the traffic sent from the first device to the second device to the total bandwidth occupied by the traffic sent from the (i+1)th layer device to the first device. The fourth bandwidth cost ratio is the bandwidth cost ratio that the first device needs to reserve to process the traffic sent from the (i+1)th layer device to the first device. The (i+1)th layer device includes at least two of the third devices.

19. The method according to claim 17 or 18, characterized in that, The controller determines, based on the outflow rate, the number of channels that remain open among the multiple second channels between the first and third devices, including: The controller determines the total number of channels that remain open among the multiple second channels between the first device and the (i+1)th layer device based on the outlet flow rate and the total number of second channels between the first device and the (i+1)th layer device. The controller determines, based on the total number, the number of channels that remain open among the multiple second channels between the first device and the third device.

20. The method according to claim 17 or 18, characterized in that, The number of second channels between the first device and each of the third devices in the (i+1)th layer is the same. The controller determines the number of channels that remain open among the multiple second channels between the first device and the third device based on the outflow rate, including: The controller determines the number of channels that remain open among the multiple second channels between the first device and the third device based on the outflow rate and the number of second channels between the first device and the third device.

21. The method according to any one of claims 12-20, characterized in that, The controller determines the outlet flow rate of the first device, including: The controller receives the outbound traffic configured by the user; or, The controller determines the outgoing flow based on the historical flow sent from the first device to the second device.

22. The method according to any one of claims 12-21, characterized in that, The method further includes: The controller selects a second channel configuration option that matches the number of channels that remain open from a plurality of channel configuration options supported by the first device. The channel configuration option is used to indicate the on / off status of a plurality of second channels used by the third device to send traffic to the first device. The controller controls the switching state of the plurality of second channels based on the number of channels that remain open, including: The controller controls the switching state of the plurality of second channels according to the second channel configuration options.

23. A channel status control device, characterized in that, Applied to a controller, the device includes: A determining unit is configured to determine the inlet flow of a first device, wherein the inlet flow is the flow sent from a second device to the first device; and based on the inlet flow, determine the number of channels that remain open among multiple first channels between the first device and the third device, wherein the multiple first channels are used by the first device to send flow to the third device; A control unit is used to control the switching state of the plurality of first channels based on the number of channels that remain open.

24. A channel status control device, characterized in that, Applied to a controller, the device includes: A determining unit is configured to determine the outflow rate of a first device, the outflow rate being the flow rate sent from the first device to a second device; and based on the outflow rate, determine the number of channels that remain open among multiple second channels between the first device and the third device, the multiple second channels being used by the third device to send flow rate to the first device; The control unit is used to control the switching state of the plurality of second channels based on the number of channels that remain open.

25. A device, characterized in that, include: Processor and memory; The memory is used to store instructions or computer programs; The processor is configured to execute the instructions or computer program to perform the method described in any one of claims 1-22.

26. A computer-readable storage medium, characterized in that, This includes instructions or computer programs that, when run on a computer, cause the computer to perform the method described in any one of claims 1-22.