CN114363180A - Energy-saving control method, device, terminal and storage medium for aggregated link flow - Google Patents
Energy-saving control method, device, terminal and storage medium for aggregated link flow Download PDFInfo
- Publication number
- CN114363180A CN114363180A CN202111548266.6A CN202111548266A CN114363180A CN 114363180 A CN114363180 A CN 114363180A CN 202111548266 A CN202111548266 A CN 202111548266A CN 114363180 A CN114363180 A CN 114363180A
- Authority
- CN
- China
- Prior art keywords
- bandwidth utilization
- utilization rate
- opened
- link
- aggregation link
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000002776 aggregation Effects 0.000 claims abstract description 132
- 238000004220 aggregation Methods 0.000 claims abstract description 132
- 238000012544 monitoring process Methods 0.000 claims abstract description 30
- 230000008569 process Effects 0.000 claims abstract description 13
- 238000012545 processing Methods 0.000 claims description 11
- 238000004134 energy conservation Methods 0.000 claims 1
- 238000005265 energy consumption Methods 0.000 abstract description 14
- 102100021984 C-C motif chemokine 4-like Human genes 0.000 description 16
- 101000777471 Homo sapiens C-C motif chemokine 4 Proteins 0.000 description 16
- 101000737602 Homo sapiens Ceramide synthase 1 Proteins 0.000 description 16
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 7
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 102100021186 Granulysin Human genes 0.000 description 2
- 101001040751 Homo sapiens Granulysin Proteins 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 230000004931 aggregating effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention relates to the field of aggregated link flow energy-saving control, and particularly discloses an aggregated link flow energy-saving control method, an aggregated link flow energy-saving control device, a terminal and a storage medium, wherein the aggregated link flow energy-saving control method, the aggregated link flow energy-saving control device, the aggregated link flow energy-saving control terminal and the storage medium are used for monitoring the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate of an aggregated link in real time, and when the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate are both smaller than a low threshold value, the number of opened member ports in the aggregated link is reduced; and when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, increasing the number of the opened member ports in the aggregation link. Under the condition of monitoring low flow, the invention closes redundant member ports in link aggregation to save energy consumption; and under the condition that the flow is monitored to be increased, restoring the member port of the previously closed aggregation link to ensure data forwarding. In the long-time use process of the network equipment, especially in the long-time low-flow scene, the energy consumption of the equipment can be effectively reduced.
Description
Technical Field
The invention relates to the field of aggregated link flow energy-saving control, in particular to an aggregated link flow energy-saving control method, an aggregated link flow energy-saving control device, a terminal and a storage medium.
Background
The link aggregation refers to aggregating a plurality of physical ports together to form a logical port so as to realize load sharing of the throughput of the ingress/egress traffic on each member port, and the switch determines which member port the network packet is sent to the switch of the opposite end according to a port load sharing policy configured by a user. When the exchanger detects that the link of one member port has fault, it stops sending package on the port, and recalculates the sending port of message in the rest links according to the load sharing strategy, and the fault port is recovered and then acts as the receiving/sending port again. Link aggregation is an important technology in terms of increasing link bandwidth, implementing link transmission resilience, engineering redundancy, and the like.
With the development of communication networks, in order to improve the connection reliability and meet the normal forwarding of traffic in a traffic peak period in the network building process, network equipment interconnection uses a large number of link aggregation modes. However, the current aggregation link operates in a manner that all member ports are open, both at peak traffic and at low peak traffic, and participate in data forwarding and protocol interactions. However, in many cases, the traffic in the aggregated link is not full, even very low, and the current operation mode of the aggregated link causes energy waste.
Disclosure of Invention
In order to solve the above problems, the present invention provides a method, an apparatus, a terminal and a storage medium for controlling aggregation link traffic, which dynamically adjust a link aggregation state according to a traffic monitoring result, and adjust a member port opening amount to save energy consumption.
In a first aspect, a technical solution of the present invention provides an energy-saving control method for aggregated link traffic, including the following steps,
monitoring the bandwidth utilization rate of an incoming direction and the bandwidth utilization rate of an outgoing direction of the aggregation link in real time;
when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, the number of opened member ports in the aggregation link is reduced;
and when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, increasing the number of the opened member ports in the aggregation link.
Further, when both the bandwidth utilization rate in the ingress direction and the bandwidth utilization rate in the egress direction are less than the low threshold, reducing the number of the opened member ports in the aggregation link, specifically including:
when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, judging whether only one member port is left in the number of the opened member ports in the aggregation link;
if only one member port is left in the aggregation link, the method does not process the residual member port, and continues to monitor the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time;
if the number of the opened member ports in the aggregation link is more than one, closing one member port, and then continuously judging whether the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than the low threshold value, if so, closing one member port again when the number of the opened member ports is more than one, and so on until the bandwidth utilization rate of the incoming direction and/or the bandwidth utilization rate of the outgoing direction is not smaller than the low threshold value, or until only one member port is left to be opened.
Further, when both the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate are smaller than the low threshold value, the member port with the smallest sum of the incoming flows is selected each time to be closed.
Further, when the bandwidth utilization rate in the ingress direction or the bandwidth utilization rate in the egress direction is greater than the high threshold, increasing the number of the opened member ports in the aggregation link, specifically including:
when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than a high threshold value, judging whether all member ports in the aggregation link are opened or not;
if all member ports in the aggregation link are opened, processing is not carried out, and the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link are continuously monitored in real time;
if the aggregation link has member ports which are not opened, selecting one of the closed member ports to open, and then continuously judging whether the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, if so, selecting one member port to open again when the member ports are not opened, and so on until the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both less than the high threshold value, or all the member ports are opened.
In a second aspect, an embodiment of the present invention provides an energy-saving control device for aggregated link traffic, including,
a flow monitoring module: monitoring the bandwidth utilization rate of an incoming direction and the bandwidth utilization rate of an outgoing direction of the aggregation link in real time;
a member port closing module: when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, the number of opened member ports in the aggregation link is reduced;
a member port opening module: and when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, increasing the number of the opened member ports in the aggregation link.
Further, when both the bandwidth utilization rate in the ingress direction and the bandwidth utilization rate in the egress direction are less than the low threshold, the member port closing module reduces the number of the opened member ports in the aggregation link, and specifically includes:
when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, judging whether only one member port is left in the number of the opened member ports in the aggregation link;
if only one member port is left in the aggregation link, the flow monitoring module continues to monitor the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time without processing;
if the number of the opened member ports in the aggregated link is more than one, closing one member port, and then continuing to judge whether the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate are both smaller than the low threshold value by the traffic monitoring module, if so, closing one member port again by the member port closing module when the number of the opened member ports is more than one, and so on until the incoming direction bandwidth utilization rate and/or the outgoing direction bandwidth utilization rate are not smaller than the low threshold value, or until only one member port is left to be opened.
Further, when both the bandwidth utilization rate in the ingress direction and the bandwidth utilization rate in the egress direction are less than the low threshold, the member port with the smallest sum of the ingress traffic is selected each time to be closed.
Further, when the bandwidth utilization rate in the ingress direction or the bandwidth utilization rate in the egress direction is greater than the high threshold, the member port opening module increases the number of the opened member ports in the aggregation link, and specifically includes:
when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than a high threshold value, judging whether all member ports in the aggregation link are opened or not;
if all member ports in the aggregation link are opened, processing is not carried out, and the traffic monitoring module continues to monitor the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time;
if there is a member port not opened in the aggregation link, selecting one of the closed member ports to open, and then continuing to judge whether the incoming direction bandwidth utilization rate or the outgoing direction bandwidth utilization rate is greater than the high threshold value by the flow monitoring module, if so, selecting one member port again to open when there is a member port not opened by the member port opening module, and so on until the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate are both less than the high threshold value, or until all the member ports are opened.
In a third aspect, a technical solution of the present invention provides a terminal, including:
the memory is used for storing an aggregation link flow energy-saving control program;
a processor, configured to implement the steps of the aggregation link traffic energy saving control method according to any one of the above descriptions when executing the aggregation link traffic energy saving control program.
In a fourth aspect, an aspect of the present invention provides a computer-readable storage medium, where an aggregation link traffic energy saving control program is stored, and when executed by a processor, the computer-readable storage medium implements the steps of the aggregation link traffic energy saving control method according to any one of the above.
Compared with the prior art, the aggregation link flow energy-saving control method, the aggregation link flow energy-saving control device, the aggregation link flow energy-saving control terminal and the storage medium have the following beneficial effects: under the condition that low flow is monitored, redundant member ports in link aggregation are closed to save energy consumption; and under the condition that the flow is monitored to be increased, restoring the member port of the previously closed aggregation link to ensure data forwarding. In the long-time use process of the network equipment, especially in the long-time low-flow scene, the energy consumption of the equipment can be effectively reduced.
Drawings
For a clearer explanation of the embodiments or technical solutions of the prior art of the present application, the drawings needed for the description of the embodiments or prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flow chart of an energy-saving control method for aggregated link traffic according to the present invention.
Fig. 2 is a schematic flow chart of a method for controlling aggregated link traffic according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of network device interconnection in a link aggregation scenario.
Fig. 4 is a schematic diagram of network device interconnection after link aggregation power saving.
Fig. 5 is a schematic structural diagram of an energy-saving control device for aggregated link traffic according to the present invention.
Fig. 6 is a schematic structural diagram of a terminal according to a third embodiment of the present invention.
Detailed Description
The technical idea of the invention is to provide an energy-saving control scheme for aggregated link flow, aiming at the problem that energy waste is caused by the fact that all member ports are opened no matter under high-peak flow or low-peak flow in the current operation mode of the aggregated link and participate in data forwarding and protocol interaction, the energy-saving control scheme monitors the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate of the aggregated link in real time, and closes the member ports when the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate are both smaller than a low threshold value, thereby reducing the number of the opened member ports in the aggregated link to save energy consumption. And when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold, opening the previously closed member ports, and increasing the number of the opened member ports in the aggregation link to ensure data forwarding. In the long-time use process of the network equipment, especially in the long-time low-flow scene, the energy consumption of the equipment can be effectively reduced.
In order that those skilled in the art will better understand the disclosure, the following detailed description will be given with reference to the accompanying drawings. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
In the energy-saving control method for aggregated link traffic provided by this embodiment, when low traffic in link aggregation is detected and fewer member ports can satisfy normal traffic forwarding, part of the member ports of link aggregation are dynamically closed to reduce energy consumption of devices; when detecting that the flow in the link aggregation is increased and the bandwidth needs to be increased, dynamically opening part of member ports of the link aggregation to meet the normal forwarding requirement of the flow.
As shown in fig. 1, the method specifically includes the following steps.
S101, monitoring the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time.
It should be noted that the bandwidth utilization refers to a ratio of the total traffic of all the member ports to the total bandwidth of all the member ports.
During specific implementation, the flow of each member port in-out direction in the aggregation link is detected, and then the bandwidth utilization rate of the in-out direction is calculated.
And S102, when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than the low threshold value, reducing the number of the opened member ports in the aggregation link.
And S103, when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, increasing the number of the opened member ports in the aggregation link.
It can be understood that, in the ingress direction bandwidth utilization and the egress direction bandwidth utilization, any utilization greater than the high threshold increases the number of open member ports in the aggregation link.
In the energy-saving control method for aggregated link traffic provided by this embodiment, when low traffic is monitored, redundant member ports in link aggregation are closed to save energy consumption; and under the condition that the flow is monitored to be increased, restoring the member port of the previously closed aggregation link to ensure data forwarding. In the long-time use process of the network equipment, especially in the long-time low-flow scene, the energy consumption of the equipment can be effectively reduced.
It can be understood that, when closing and opening the member port, it needs to adjust based on the current opening amount of the member port, at least one member port of the aggregation link needs to be ensured to be active in the case of low traffic, and at most all member ports are opened by increasing the active ports in the aggregation link in the case of high traffic.
Additionally, in some embodiments, when closing and opening member ports, one member port is opened or closed at a time until the ingress bandwidth utilization meets the threshold requirement.
Specifically, in some specific embodiments, in step S102, when both the ingress bandwidth utilization and the egress bandwidth utilization are smaller than the low threshold, the number of open member ports in the aggregated link is reduced, which specifically includes the following procedures.
1) And when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than the low threshold value, judging whether only one member port is left in the number of the opened member ports in the aggregation link.
2) And if only one member port is left in the aggregation link, the method does not process the remaining member ports, and continuously monitors the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time.
3) If the number of the opened member ports in the aggregation link is more than one, closing one member port, and then continuously judging whether the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than the low threshold value, if so, closing one member port again when the number of the opened member ports is more than one, and so on until the bandwidth utilization rate of the incoming direction and/or the bandwidth utilization rate of the outgoing direction is not smaller than the low threshold value, or until only one member port is left to be opened.
And when the member port is closed each time, selecting the member port with the minimum sum of the incoming flows to close.
Specifically, in some specific embodiments, when the ingress bandwidth utilization or the egress bandwidth utilization is greater than the high threshold in step S103, the number of the opened member ports in the aggregated link is increased, which specifically includes the following procedures.
1) And when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold, judging whether all member ports in the aggregation link are opened or not.
2) And if all member ports in the aggregation link are opened, processing is not carried out, and the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link are continuously monitored in real time.
3) If the aggregation link has member ports which are not opened, selecting one of the closed member ports to open, and then continuously judging whether the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, if so, selecting one member port to open again when the member ports are not opened, and so on until the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both less than the high threshold value, or all the member ports are opened.
It will be appreciated that the unopened member port is a previously closed member port, which reopens as the flow increases.
To further illustrate the present invention, an embodiment is provided below based on the principles of the present invention and the above steps, and includes the following steps, as shown in FIG. 2.
SS1, sets a high threshold HT and a low threshold LT.
And the SS2 dynamically monitors the incoming and outgoing direction traffic, the incoming direction bandwidth utilization LAG _ IN and the outgoing direction bandwidth utilization LAG _ OUT of all the member ports of the link aggregation.
SS3, determining whether LAG _ IN < LT and LAG _ OUT < LT, if yes, executing step SS4, otherwise executing step SS 6.
And the SS4 judges whether the link aggregation has only the last member port, if so, the step is returned to the SS2, and if not, the step SS5 is executed.
SS5, dynamically closes a member port with the least total traffic in and out of the link aggregation, and then returns to step SS 2.
And SS6, judging whether LAG _ IN > HT or LAG _ OUT > HT, if yes, executing step SS7, otherwise, returning to step SS 2.
And the SS7 judges whether all the member ports of the link aggregation are opened, if so, the step is returned to the SS2, and if not, the step SS8 is executed.
SS8 dynamically opens a previously closed member port in the link aggregation, and then returns to step SS 2.
The following illustrates the implementation of the above embodiment.
As shown in fig. 3, which is a schematic diagram of network device interconnection in a link aggregation scenario, the S1 device and the S2 device are interconnected by using 1 aggregation link LAG1, where there are 4 member ports; the S1 device is interconnected with the S3 device using 1 aggregated link LAG2, with 4 member ports; without the application of the scheme of the present invention, all ports are up both in peak traffic and in low peak traffic, and participate in data forwarding and protocol interaction.
The bandwidth utilization of the aggregated link is set to a high threshold and a low threshold respectively, for example, the low threshold is 20% and the high threshold is 80%. 4. The equipment starts the flow monitoring energy-saving function.
Assuming that traffic is low, the large value of the current LAG1 ingress and egress traffic accounts for 6% of the current LAG1 bandwidth (total bandwidth of 4 member ports).
a) When the control program detects that the bandwidth utilization rate of the LAG1 is less than 20% of the set low threshold, the control program will actively close the member port with the smallest sum of the ingress and egress traffic in the aggregated link.
b) At this time, LAG1 has 3 member ports left, and the bandwidth utilization rate rises to 8%. At this point the bandwidth utilization of LAG1 is still below the device's low threshold of 20%, the control program will again actively shut down the one member port in the aggregated link that has the least traffic.
c) At this time, LAG1 has 2 member ports left, and the bandwidth utilization will rise to 12%. At this point the bandwidth utilization of LAG1 is still below the device's low threshold of 20%, the control program will again actively shut down the one member port in the aggregated link that has the least traffic.
d) At this time, LAG1 has 1 member port left, and the bandwidth utilization will rise to 24%. At this point the LAG1 bandwidth utilization is 20% above the device low threshold and 80% below the device high threshold, the control program does not act.
e) When 1 member port is left in the LAG1, if the traffic is reduced again at this time, the bandwidth utilization rate is reduced to below 20%, but since only the last member port is left in the LAG1, the control program cannot close the last member port any more, as shown in fig. 4, which is a schematic diagram of the interconnection of network devices after link aggregation energy saving.
When the flow rate is continuously increased, the control is as follows:
a) the control program detects that the bandwidth utilization of LAG1 has risen until 80% above the set high threshold, and the control program will actively open the previously closed member port in one of the aggregated links.
b) At this time, the LAG1 has 2 member ports, and the bandwidth utilization drops to 40%. If the traffic continues to increase until 80% above the set high threshold, the control program will again actively open the previously closed member port in one of the aggregated links.
c) At this point, LAG1 has 3 member ports and bandwidth utilization drops to 53%. If the traffic continues to increase until 80% above the set high threshold, the control program will again actively open the previously closed member port in one of the aggregated links.
d) At this point, the LAG1 has 4 member ports and the bandwidth utilization drops to 60%. If the flow continues to increase until 80% above the set high threshold, the control program will report an alarm that the flow is about to reach the upper limit and log because there are no member ports that the control program has closed.
The same effect is also achieved by the traffic monitoring of the LAG2, and different aggregation links are independently detected and do not affect each other.
Example two
The second embodiment provides an energy-saving control device for aggregated link traffic, which is used to implement the aforementioned energy-saving control method for aggregated link traffic.
As shown in fig. 5, the second embodiment provides an energy-saving control device for aggregated link traffic, which includes the following functional modules.
A flow monitoring module: and monitoring the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time.
A member port closing module: and when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than the low threshold value, reducing the number of the opened member ports in the aggregation link.
A member port opening module: and when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, increasing the number of the opened member ports in the aggregation link.
When both the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are less than the low threshold, the member port closing module reduces the number of the opened member ports in the aggregation link, and specifically includes the following processes:
when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, judging whether only one member port is left in the number of the opened member ports in the aggregation link;
if only one member port is left in the aggregation link, the flow monitoring module continues to monitor the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time without processing;
if the number of the opened member ports in the aggregated link is more than one, closing one member port, and then continuing to judge whether the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate are both smaller than the low threshold value by the traffic monitoring module, if so, closing one member port again by the member port closing module when the number of the opened member ports is more than one, and so on until the incoming direction bandwidth utilization rate and/or the outgoing direction bandwidth utilization rate are not smaller than the low threshold value, or until only one member port is left to be opened.
It should be noted that, when both the bandwidth utilization rate in the ingress direction and the bandwidth utilization rate in the egress direction are smaller than the low threshold, the member port closing module selects the member port with the smallest sum of the ingress traffic each time to close the member port.
When the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold, the member port opening module increases the number of the opened member ports in the aggregation link, and specifically includes the following processes:
when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than a high threshold value, judging whether all member ports in the aggregation link are opened or not;
if all member ports in the aggregation link are opened, processing is not carried out, and the traffic monitoring module continues to monitor the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time;
if there is a member port not opened in the aggregation link, selecting one of the closed member ports to open, and then continuing to judge whether the incoming direction bandwidth utilization rate or the outgoing direction bandwidth utilization rate is greater than the high threshold value by the flow monitoring module, if so, selecting one member port again to open when there is a member port not opened by the member port opening module, and so on until the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate are both less than the high threshold value, or until all the member ports are opened.
The aggregation link traffic energy-saving control device of this embodiment is used to implement the foregoing aggregation link traffic energy-saving control method, and therefore, the specific implementation in the device may be seen in the foregoing embodiment section of the aggregation link traffic energy-saving control method, and therefore, the specific implementation thereof may refer to the description of the corresponding respective section embodiments, and will not be further described herein.
In addition, since the aggregation link traffic energy saving control apparatus of this embodiment is used to implement the aforementioned aggregation link traffic energy saving control method, its role corresponds to that of the aforementioned method, and is not described herein again.
EXAMPLE III
Fig. 6 is a schematic structural diagram of a terminal device 600 according to an embodiment of the present invention, including: a processor 610, a memory 620, and a communication unit 630. The processor 610 is configured to implement the aggregation link traffic energy saving control program stored in the memory 620, and implement the following steps:
monitoring the bandwidth utilization rate of an incoming direction and the bandwidth utilization rate of an outgoing direction of the aggregation link in real time;
when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, the number of opened member ports in the aggregation link is reduced;
and when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, increasing the number of the opened member ports in the aggregation link.
Under the condition of monitoring low flow, the invention closes redundant member ports in link aggregation to save energy consumption; and under the condition that the flow is monitored to be increased, restoring the member port of the previously closed aggregation link to ensure data forwarding. In the long-time use process of the network equipment, especially in the long-time low-flow scene, the energy consumption of the equipment can be effectively reduced.
The terminal apparatus 600 includes a processor 610, a memory 620, and a communication unit 630. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not intended to be limiting, and may be a bus architecture, a star architecture, a combination of more or less components than those shown, or a different arrangement of components.
The memory 620 may be used for storing instructions executed by the processor 610, and the memory 620 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions in memory 620, when executed by processor 610, enable terminal 600 to perform some or all of the steps in the method embodiments described below.
The processor 610 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in the memory 620 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, the processor 610 may include only a Central Processing Unit (CPU). In the embodiment of the present invention, the CPU may be a single operation core, or may include multiple operation cores.
A communication unit 630, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
Example four
The present invention also provides a computer storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
A computer storage medium stores an aggregated link traffic energy-saving control program that when executed by a processor implements the steps of:
monitoring the bandwidth utilization rate of an incoming direction and the bandwidth utilization rate of an outgoing direction of the aggregation link in real time;
when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, the number of opened member ports in the aggregation link is reduced;
and when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, increasing the number of the opened member ports in the aggregation link.
Under the condition of monitoring low flow, the invention closes redundant member ports in link aggregation to save energy consumption; and under the condition that the flow is monitored to be increased, restoring the member port of the previously closed aggregation link to ensure data forwarding. In the long-time use process of the network equipment, especially in the long-time low-flow scene, the energy consumption of the equipment can be effectively reduced.
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The above disclosure is only for the preferred embodiments of the present invention, but the present invention is not limited thereto, and any non-inventive changes that can be made by those skilled in the art and several modifications and amendments made without departing from the principle of the present invention shall fall within the protection scope of the present invention.
Claims (10)
1. An energy-saving control method for aggregated link flow is characterized by comprising the following steps,
monitoring the bandwidth utilization rate of an incoming direction and the bandwidth utilization rate of an outgoing direction of the aggregation link in real time;
when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, the number of opened member ports in the aggregation link is reduced;
and when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, increasing the number of the opened member ports in the aggregation link.
2. The method according to claim 1, wherein when both the ingress bandwidth utilization and the egress bandwidth utilization are smaller than the low threshold, reducing the number of the opened member ports in the aggregation link, specifically comprises:
when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, judging whether only one member port is left in the number of the opened member ports in the aggregation link;
if only one member port is left in the aggregation link, the method does not process the residual member port, and continues to monitor the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time;
if the number of the opened member ports in the aggregation link is more than one, closing one member port, and then continuously judging whether the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than the low threshold value, if so, closing one member port again when the number of the opened member ports is more than one, and so on until the bandwidth utilization rate of the incoming direction and/or the bandwidth utilization rate of the outgoing direction is not smaller than the low threshold value, or until only one member port is left to be opened.
3. The method according to claim 2, wherein when both the ingress bandwidth utilization and the egress bandwidth utilization are smaller than the low threshold and the member port is closed, the member port with the smallest sum of ingress traffic is selected each time and closed.
4. The method according to claim 3, wherein when the ingress bandwidth utilization or the egress bandwidth utilization is greater than the high threshold, increasing the number of the opened member ports in the aggregation link includes:
when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than a high threshold value, judging whether all member ports in the aggregation link are opened or not;
if all member ports in the aggregation link are opened, processing is not carried out, and the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link are continuously monitored in real time;
if the aggregation link has member ports which are not opened, selecting one of the closed member ports to open, and then continuously judging whether the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, if so, selecting one member port to open again when the member ports are not opened, and so on until the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both less than the high threshold value, or all the member ports are opened.
5. The device for controlling the flow energy conservation of the aggregation link is characterized by comprising,
a flow monitoring module: monitoring the bandwidth utilization rate of an incoming direction and the bandwidth utilization rate of an outgoing direction of the aggregation link in real time;
a member port closing module: when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, the number of opened member ports in the aggregation link is reduced;
a member port opening module: and when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than the high threshold value, increasing the number of the opened member ports in the aggregation link.
6. The apparatus according to claim 5, wherein the member port closing module reduces the number of the member ports opened in the aggregation link when both the ingress bandwidth utilization and the egress bandwidth utilization are smaller than the low threshold, and specifically includes:
when the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction are both smaller than a low threshold value, judging whether only one member port is left in the number of the opened member ports in the aggregation link;
if only one member port is left in the aggregation link, the flow monitoring module continues to monitor the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time without processing;
if the number of the opened member ports in the aggregated link is more than one, closing one member port, and then continuing to judge whether the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate are both smaller than the low threshold value by the traffic monitoring module, if so, closing one member port again by the member port closing module when the number of the opened member ports is more than one, and so on until the incoming direction bandwidth utilization rate and/or the outgoing direction bandwidth utilization rate are not smaller than the low threshold value, or until only one member port is left to be opened.
7. The apparatus according to claim 6, wherein the member port closing module selects the member port with the smallest sum of the incoming flows each time to close the member port when both the incoming bandwidth utilization rate and the outgoing bandwidth utilization rate are smaller than the low threshold.
8. The apparatus according to claim 7, wherein the member port opening module increases the number of the member ports opened in the aggregation link when the ingress bandwidth utilization rate or the egress bandwidth utilization rate is greater than the high threshold, and specifically includes:
when the bandwidth utilization rate of the incoming direction or the bandwidth utilization rate of the outgoing direction is greater than a high threshold value, judging whether all member ports in the aggregation link are opened or not;
if all member ports in the aggregation link are opened, processing is not carried out, and the traffic monitoring module continues to monitor the bandwidth utilization rate of the incoming direction and the bandwidth utilization rate of the outgoing direction of the aggregation link in real time;
if there is a member port not opened in the aggregation link, selecting one of the closed member ports to open, and then continuing to judge whether the incoming direction bandwidth utilization rate or the outgoing direction bandwidth utilization rate is greater than the high threshold value by the flow monitoring module, if so, selecting one member port again to open when there is a member port not opened by the member port opening module, and so on until the incoming direction bandwidth utilization rate and the outgoing direction bandwidth utilization rate are both less than the high threshold value, or until all the member ports are opened.
9. A terminal, comprising:
the memory is used for storing an aggregation link flow energy-saving control program;
a processor for implementing the steps of the aggregated link traffic energy saving control method according to any of claims 1-4 when executing the aggregated link traffic energy saving control program.
10. A computer-readable storage medium, having stored thereon an aggregated link traffic energy saving control program, which when executed by a processor, performs the steps of the aggregated link traffic energy saving control method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111548266.6A CN114363180A (en) | 2021-12-17 | 2021-12-17 | Energy-saving control method, device, terminal and storage medium for aggregated link flow |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111548266.6A CN114363180A (en) | 2021-12-17 | 2021-12-17 | Energy-saving control method, device, terminal and storage medium for aggregated link flow |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114363180A true CN114363180A (en) | 2022-04-15 |
Family
ID=81100102
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111548266.6A Withdrawn CN114363180A (en) | 2021-12-17 | 2021-12-17 | Energy-saving control method, device, terminal and storage medium for aggregated link flow |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114363180A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114826950A (en) * | 2022-05-30 | 2022-07-29 | 中国联合网络通信集团有限公司 | Port number prediction method, device and storage medium |
CN115022260A (en) * | 2022-05-31 | 2022-09-06 | 苏州浪潮智能科技有限公司 | Energy-saving control method and equipment for white box switch and storage medium |
-
2021
- 2021-12-17 CN CN202111548266.6A patent/CN114363180A/en not_active Withdrawn
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114826950A (en) * | 2022-05-30 | 2022-07-29 | 中国联合网络通信集团有限公司 | Port number prediction method, device and storage medium |
CN114826950B (en) * | 2022-05-30 | 2023-06-30 | 中国联合网络通信集团有限公司 | Port number prediction method, device and storage medium |
CN115022260A (en) * | 2022-05-31 | 2022-09-06 | 苏州浪潮智能科技有限公司 | Energy-saving control method and equipment for white box switch and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114363180A (en) | Energy-saving control method, device, terminal and storage medium for aggregated link flow | |
US8438307B2 (en) | Method and device of load-sharing in IRF stack | |
US6373840B1 (en) | Stackable networking device and method having a switch control circuit | |
CN101554002B (en) | Method and system for monitoring link aggregation links | |
CN112491700B (en) | Network path adjustment method, system, device, electronic equipment and storage medium | |
CN105515912B (en) | Linkage availability detection and processing method between a kind of multinode | |
CN105721191B (en) | A kind of link failure processing method, system and wireless backup gateway | |
CN101330404A (en) | Method, system and equipment for managing network appliance port state | |
CN105049238A (en) | Redundancy backup method and equipment for LTE (Long Term Evolution) gateway equipment exchange subsystem | |
CN112054490A (en) | Method and device for exiting third station fault in multi-terminal direct-current single-pole metal operation mode | |
CN115208822B (en) | Message forwarding method, device, equipment and computer readable storage medium | |
CN110995607A (en) | Method, device, network equipment and storage medium for transmitting flow | |
CN114039907A (en) | Method for improving link stability based on network card binding | |
CN107196862B (en) | Flow congestion control method and system | |
CN114610562A (en) | Server power consumption control method, system, terminal and storage medium | |
CN114070803B (en) | Data stream transmission method and device, storage medium and electronic device | |
CN111416726B (en) | Resource management method, sending end equipment and receiving end equipment | |
CN115408199A (en) | Disaster tolerance processing method and device for edge computing node | |
CN112859578A (en) | Backup redundant industrial personal computer based on Ethernet bus scheme | |
CN111131095A (en) | Message forwarding method and device | |
CN101483527B (en) | Dual engine switch device and engine switching method | |
CN112383471A (en) | Method, device and equipment for managing knife box link and machine readable storage medium | |
CN105208023A (en) | Central controller protection method, device and system | |
CN114070803A (en) | Data stream transmission method and device, storage medium and electronic device | |
WO2022199033A1 (en) | Network device, inter-board communication method, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20220415 |