CN116668207A - Method, device, system and storage medium for determining configuration parameters - Google Patents
Method, device, system and storage medium for determining configuration parameters Download PDFInfo
- Publication number
- CN116668207A CN116668207A CN202210158607.7A CN202210158607A CN116668207A CN 116668207 A CN116668207 A CN 116668207A CN 202210158607 A CN202210158607 A CN 202210158607A CN 116668207 A CN116668207 A CN 116668207A
- Authority
- CN
- China
- Prior art keywords
- constraint
- parameter
- flow
- configuration information
- state
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 96
- 238000005265 energy consumption Methods 0.000 claims abstract description 109
- 238000012545 processing Methods 0.000 claims description 234
- 230000017525 heat dissipation Effects 0.000 claims description 93
- 230000008569 process Effects 0.000 claims description 30
- 238000004590 computer program Methods 0.000 claims description 8
- 230000006870 function Effects 0.000 description 23
- 238000013461 design Methods 0.000 description 20
- 238000004891 communication Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 9
- 239000004744 fabric Substances 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 4
- 230000020169 heat generation Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 230000000306 recurrent effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000001816 cooling Methods 0.000 description 1
- 238000013136 deep learning model Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000010438 heat treatment Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/12—Arrangements for remote connection or disconnection of substations or of equipment thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
-
- 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
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a method, a device, a system and a storage medium for determining configuration parameters, which aim to balance the performance and energy consumption of a network system, so that the energy consumption of the network system is reduced under the condition of keeping normal forwarding of traffic. The method for determining the configuration parameters comprises the following steps: obtaining a first constraint, wherein the first constraint comprises a first flow constraint, and the first flow constraint is used for constraining a flow parameter of a port of first equipment in a first time period, and the first time period is later than the current moment; obtaining a second constraint, wherein the second constraint indicates a constraint of a second device on configuration parameters of the first device, and the second device is adjacent to the first device; and determining first configuration information according to the first constraint and the second constraint, wherein the first configuration information comprises at least one configuration parameter and a value corresponding to each configuration parameter, and the energy consumption value of the first device configured according to the first configuration information meets energy consumption requirements.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a system, and a storage medium for determining a configuration parameter.
Background
The network system includes a plurality of network devices for transmitting traffic in the network system. The energy consumption cost of the network system is a major proportion of the operation cost of the network system. The energy consumption cost of the network system depends on the energy consumption cost of each network device in the network system, and the energy consumption cost of the network device refers to the cost caused by the consumption of electric energy in the working process of the network device.
In order to reduce the operation cost of the network system, it is necessary to reduce the total energy consumption of the network system.
Disclosure of Invention
The application provides a method, a device, a system and a storage medium for determining configuration parameters, which aim to balance the performance and energy consumption of a network system, so that the energy consumption of the network system is reduced under the condition of keeping normal forwarding of traffic.
In a first aspect, the present application provides a method of determining a configuration parameter. The method is applied to any one network device in the network system or to the control device of the network system. The device applying the method obtains the first constraint and the second constraint, and determines the first configuration information according to the first constraint and the second constraint. The first constraint is a constraint on configuration parameters of the first device to ensure that the first device is operating properly for a first period of time. The first time period is a time period later than the current time. The first constraint includes a first flow constraint for constraining a flow parameter of the ports of the first device over a first period of time, such as may be used to constrain a total throughput of all ports of the first device over the first period of time. The second constraint is a constraint on the configuration parameters of the first device to ensure that the second device is operating properly for the first period of time, i.e. the second constraint indicates a constraint of the second device on the configuration parameters of the first device. The second device is adjacent to the first device. The first configuration information includes at least one configuration parameter, and a value for each of the at least one configuration parameter. The first configuration is for configuring the first device. The first device configured according to the first configuration information is capable of operating normally for a first period of time. The first device configured according to the first configuration information meets the condition that the second device works normally in the first time period. The energy consumption value of the first device configured according to the first configuration information meets the energy consumption requirement. In this way, the first device is configured according to the first configuration parameter, so that the first device can work normally in the first time period, and the second device adjacent to the first device can work normally in the first time period. Under the condition of ensuring the normal operation of the first equipment and the second equipment, the energy consumption of the first equipment is reduced. Thus, the working conditions of a plurality of network devices can be balanced, and the energy consumption of the network system is reduced under the condition of maintaining the normal forwarding of the traffic.
In one possible design, an apparatus applying the method determines a third constraint based on the first constraint and the second constraint, and determines configuration information based on the third constraint. Specifically, the device applying the method may use a constraint condition with a higher degree of constraint on the configuration parameter in the first constraint and the second constraint as a constraint condition in the third constraint. That is, the third constraint limits the configuration parameters of the first device to a greater extent than either the first constraint or the second constraint limits the configuration parameters of the first device. For example, assuming that the second constraint further includes a second flow constraint, a third flow constraint may be determined from the first flow constraint and the second flow constraint. The third flow constraint is used for constraining the flow parameters of the port of the first device in the first time period, and the flow parameters corresponding to the third flow constraint are not smaller than the flow parameters corresponding to the first flow constraint and are not smaller than the flow parameters corresponding to the second flow constraint.
In one possible design, the network devices may advertise respective constraints to each other. That is, if the method of determining a configuration parameter provided by the present application is performed by the first device, the first device may transmit the third constraint to the neighbor network device of the first device, so that the neighbor network device of the first device determines the constraint of the first device. In particular, the first device may send the third constraint to the third device. The third device is a network device adjacent to the first device. Alternatively, the third device and the second device may be the same network device.
In one possible design, the third flow constraint is determined based on the flow constraint of the first flow constraint on a port and the flow constraint of the second flow constraint on the port corresponding to the port. Specifically, if the first device includes a first port, the second device includes a second port, and the first port is connected to the second port. In determining the third flow constraint, a flow parameter in the second flow constraint used to constrain the second port in the first time period may be compared with a flow parameter in the first flow constraint used to constrain the first port in the first time period. If the flow parameter in the second flow constraint used to constrain the second port in the first time period is greater than the flow parameter in the first flow constraint used to constrain the first port in the first time period, the flow parameter in the third flow constraint used to constrain the first port in the first time period may be determined from the flow parameter in the second flow constraint used to constrain the second port in the first time period. That is, if the flow of the second port in the first period of time required by the second flow constraint is greater than the flow of the first port in the first period of time required by the first flow constraint, a third flow constraint is determined based on the flow required by the second flow constraint. That is, when the flow parameter corresponding to the second flow constraint is greater than the flow parameter corresponding to the first flow constraint, a third flow constraint is determined from the second flow constraint, the flow parameter corresponding to the third flow constraint matching the flow parameter corresponding to the second flow constraint. Therefore, the flow parameters corresponding to the third flow constraint can be ensured, and the requirement of the second equipment for normal operation in the first time period can be met.
In one possible design, the third constraint is also used to constrain the state of the port. Specifically, the first constraint includes a first state constraint for constraining a state of the first port within a first time period to be a first state. The second constraint includes a second state constraint for constraining a state of the second port during the first time period to be a second state. In determining the third constraint, it may be determined whether the first state and the second state are the same, and whether the first state and the second state include an operational state. If the first state and the second state are different and the operating state is included in the second state and the second state, a third state constraint may be determined based on the operating state. The third state constraint is used for constraining the state of the first port in the first time period to be an operating state. In this way, the requirements of the first device and the second device for normal operation during the first period of time can be met.
In one possible design, the third constraint further includes a processing constraint and/or a forwarding constraint. The processing constraint is used for constraining data processing parameters of the data processing device in the first time period, and the heat dissipation constraint is used for constraining heat dissipation capacity of the heat dissipation device in the first time period.
In one possible design, when the third constraint includes a process constraint, the process constraint may be determined based on the third flow constraint. Specifically, the target processing parameter may be determined first according to the third flow constraint and the processing parameter correspondence. The processing parameter correspondence includes a correspondence between a flow parameter of a port of the first device and a data processing parameter required by a data processing device of the first device to forward a flow corresponding to the flow parameter. The target processing parameter indicates a data processing parameter that the data processing means of the first device needs to provide in order to process the flow corresponding to the third flow constraint within the first time period. The data processing parameters embody the processing capabilities of the data processing device. Then, a processing constraint may be determined based on the target processing parameter, the processing constraint being used to constrain the data processing device of the first apparatus to provide data processing parameters not less than the target processing parameter for the first period of time.
In one possible design, when the third constraint includes a heat dissipation constraint, the heat dissipation constraint may be determined based on a processing constraint in the third flow constraint. Specifically, a target heat parameter is determined according to a corresponding relationship between the target processing parameter and heat. The heat corresponding relation comprises a corresponding relation between data processing parameters of the data processing device and heat generated by the data processing device when the data processing device processes data according to the data processing parameters. The target heat parameter is indicative of a heating of the data processing device of the first apparatus during the first time period in order to forward the flow corresponding to the third flow constraint. In order to maintain the temperature of the first device in a reasonable range, a target heat dissipation parameter may be determined according to the target heat dissipation correspondence. The heat dissipation correspondence includes correspondence between the heat and the operating parameters required by the heat dissipation device when the heat needs to be dissipated. Accordingly, the target heat dissipation parameter represents: in order to reduce the heat emitted by the data processing device of the first device during the first period of time from affecting the normal operation of the first device, the heat dissipating device of the first device needs to provide heat dissipating capability. After determining the target heat dissipation parameter, a heat dissipation constraint may be determined based on the target heat dissipation parameter.
In one possible design, the energy consumption requirement indicates that the first configuration information is the configuration information with the smallest energy consumption value among the configuration information satisfying the third constraint. Then, when determining the first configuration information according to the third constraint, a set of configuration information may be determined first, the set of configuration information including at least one set of configuration information satisfying the third constraint, each set of configuration information including at least one configuration parameter and a value corresponding to each configuration parameter. Then, according to the configuration information set and the energy consumption corresponding relation, the energy consumption value corresponding to each group of configuration information in the configuration information can be determined, and the energy consumption corresponding relation represents the corresponding relation between the value of the configuration parameter of the first device and the energy consumption value of the first device. After determining the energy consumption value corresponding to each set of configuration information, the configuration information with the smallest energy consumption value may be determined as the first configuration information. Therefore, on the premise of ensuring the normal operation of the first equipment and the second equipment, the energy consumption of the first equipment is further reduced.
In one possible design, the configuration parameters of the first device may be adjusted after a change in port traffic of the first device. That is, the traffic of the port of the first device over the first period of time may be determined prior to acquiring the first constraint. And judging whether the flow of the port of the first device in the first time period meets the configuration adjustment condition. If yes, executing the method for determining the configuration parameters.
In one possible design, the configuration parameters of the first device may be adjusted by issuing energy consumption constraint triggers. That is, an energy consumption constraint may be acquired prior to acquiring the first constraint, the energy consumption constraint being used to constrain the energy consumption value of the first device during the first time period to be less than an energy consumption threshold. Accordingly, the energy consumption value of the first device configured according to the first configuration parameter is less than the energy consumption threshold in the first period of time.
In a second aspect, the present application provides an apparatus for determining configuration parameters. The device comprises an acquisition unit and a processing unit. The acquisition unit is used for acquiring the first constraint and the second constraint. The first constraint includes a first flow constraint. The first flow constraint is used to constrain a flow parameter of a port of the first device over a first period of time. The first time period is later than the current time. The second constraint indicates a constraint of the second device on a configuration parameter of the first device. The second device is adjacent to the first device. The processing unit is used for determining first configuration information according to the first constraint and the second constraint. The first configuration information includes at least one configuration parameter and a value corresponding to each configuration parameter. And the energy consumption value of the first equipment configured according to the first configuration information meets the energy consumption requirement.
In one possible design, the processing unit is configured to determine a third constraint based on the first constraint and the second constraint, and determine the first configuration information based on the third constraint. The third constraint includes a third flow constraint. The third flow constraint is used to constrain a flow parameter of the port of the first device over the first period of time.
In one possible design, the apparatus further comprises a transmitting unit. The transmitting unit is configured to transmit the third constraint to the third device. The third device is adjacent to the first device.
In one possible design, the first device includes a first port through which the first device is connected with a second port of the second device, and the second constraint includes a second flow constraint for constraining a flow parameter of the second port over the first period of time. The processing unit is used for determining a third flow constraint according to the second flow constraint when the flow parameter corresponding to the second flow constraint is larger than the flow parameter corresponding to the first flow constraint. The flow parameters corresponding to the third flow constraint are matched with the flow parameters corresponding to the second flow constraint.
In one possible design, the first constraint further includes a first state constraint that is used to constrain the state of the first port during the first time period to be a first state, and the second constraint that is used to constrain the state of the second port during the first time period to be a second state. And the processing unit is used for determining a third state constraint according to the working state when the first state is different from the second state and the working state is included in the first state and the second state. The third constraint includes a third state constraint. The third state constraint is used for constraining the state of the first port in the first time period to be an operating state.
In one possible design, the third constraint further includes a processing constraint and/or a heat dissipation constraint. The processing constraint is used to constrain data processing parameters of a data processing device in the first apparatus over a first period of time. The heat dissipation constraint is used to constrain a heat dissipation capacity of the heat dissipation device in the first apparatus over a first period of time.
In one possible design, when the third constraint includes a processing constraint, the processing unit is further configured to determine a target processing parameter according to the third flow constraint and the processing parameter correspondence, and determine the processing constraint according to the target processing parameter. The processing parameter correspondence includes a correspondence between a flow parameter of a port of the first device and a data processing parameter required by a data processing device of the first device to forward a flow corresponding to the flow parameter.
In one possible design, when the third constraint further includes a heat dissipation constraint, the processing unit is further configured to determine a target heat parameter according to the target process parameter and the heat correspondence, determine a target heat dissipation parameter according to the target heat parameter and the heat dissipation correspondence, and determine the heat dissipation constraint according to the target heat dissipation parameter. The heat correspondence relationship includes a correspondence relationship between a data processing parameter of the data processing device and heat generated by the data processing device when processing data according to the data processing parameter. The heat dissipation correspondence includes correspondence between the heat and the operating parameters required by the heat dissipation device when the heat needs to be dissipated.
In one possible design, the energy consumption requirement indicates that the first configuration information is the configuration information with the smallest energy consumption value among the configuration information satisfying the third constraint. And the processing unit is used for determining the configuration information set. The set of configuration information includes at least one set of configuration information that satisfies a third constraint. Each set of configuration information includes at least one configuration parameter and a value corresponding to each configuration parameter. The processing unit is further configured to determine, according to the energy consumption correspondence, an energy consumption value corresponding to each set of configuration information in at least one set of configuration information, and determine, as the first configuration information, configuration information with a minimum corresponding energy consumption value in the at least one set of configuration information. The energy consumption correspondence relationship represents a correspondence relationship between a value of a configuration parameter of the first device and an energy consumption value of the first device.
In one possible design, the processing unit is further configured to determine that the traffic of the port of the first device over the first period of time satisfies the configuration adjustment condition.
In one possible design, the acquisition unit is further configured to acquire the energy consumption constraint. The energy consumption constraint is used for constraining the energy consumption value of the first device in the first time period to be smaller than the energy consumption threshold.
In a third aspect, the present application provides a network device. The network device includes a memory and a processor. The memory is used for storing instructions. The processor is configured to execute instructions stored in the memory to cause the communication device to perform a method of determining configuration parameters as implemented in the first aspect or any one of the possible implementations of the first aspect.
In a fourth aspect, the present application provides a network system. The network system comprises a plurality of network devices, at least one of which is adapted to implement the method of determining configuration parameters as implemented in the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, the present application provides a computer-readable storage medium. The computer readable storage medium has a computer program stored therein. The computer program, when executed by a processor, implements a method of determining configuration parameters as implemented in the first aspect or any one of the possible implementations of the first aspect.
In a sixth aspect, the present application provides a computer program product. The computer program product comprises a program or code which, when run on a computer, implements the method of determining configuration parameters as described in the first aspect or any one of the possible implementations of the first aspect.
Drawings
FIG. 1-A is a schematic diagram of a system according to an embodiment of the present application;
FIG. 1-B is a schematic diagram of another system according to an embodiment of the present application;
FIG. 2 is a flow chart of a method for determining configuration parameters according to an embodiment of the present application;
FIG. 3 is a schematic diagram of yet another system according to an embodiment of the present application;
FIG. 4 is a flowchart of a method for determining configuration parameters according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus 500 for determining configuration parameters according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an apparatus 600 according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an apparatus 700 according to an embodiment of the present application.
Detailed Description
The technical scheme provided by the embodiment of the application is described below with reference to the accompanying drawings.
To reduce the overall energy consumption of the network system, the network device may shut down part of the functional components. In this way, the closed functional device does not consume electric energy any more, and the total energy consumption of the network system is reduced, so that the operation cost of the network system can be saved. In the embodiment of the application, the energy consumption of the network device refers to the situation that the network device consumes electric energy. The power consumption value of the network device may include a total power consumption of the network device over a period of time, and may also include an average power consumption of the network device over a period of time.
Specifically, the network device may reduce the configuration of the functional device or turn off the functional device according to the load of the network device. For example, if the network device includes a plurality of processors, the network device may periodically obtain the load of each of the plurality of processors. The network device may reduce the operating frequency of a certain processor in the network device if the load of that processor is lower than the actual processing power of that processor. The network device may shut down the processor or shut down the processor cores in the processor if the processor has been operating at the lowest operating frequency. Therefore, the energy consumption of the processor can be reduced no matter the working frequency of the processor is reduced, or the processor core is shut down, so that the energy consumption of the network equipment is reduced, and the running cost of the network system is reduced.
The following detailed description refers to the accompanying drawings. Referring to fig. 1-a, a schematic diagram of a system according to an embodiment of the present application is shown. The system 100 shown in fig. 1-a includes a network system 110, a device 121, a device 122, a device 123, and a device 124. Wherein network system 110 includes network device 111, network device 112, network device 113, network device 114, network device 115, and network device 116. Device 121 is connected to network device 111, network device 112 is connected to network device 111, network device 113, network device 115, and device 123, respectively, network device 114 is connected to device 122 and network device 115, respectively, and network device 116 is connected to network device 113, network device 115, and device 124, respectively.
Specifically, network device 112 includes a processor 112-1 and a processor 112-2. The network device 115 includes a processor 115-1. The functional board to which the processor 112-1 belongs includes two ports, one of which is connected to the device 121, and the other of which is connected to a port of the functional board including the processor 115-1 in the network device 115. The functional board to which the processor 112-2 belongs includes two ports, one of which is connected to the device 123 and the other of which is connected to the network device 113. The functional board to which the processor 115-1 belongs includes three ports, one of which is connected to the network device 114, the other of which is connected to the network device 116, and the last of which is connected to a port of the network device 112 that includes the functional board of the processor 112-1.
Assume that device 121, device 122, and device 123 each transmit a data stream to device 124 through network system 110. Wherein, the data stream a sent by the device 121 is transmitted through the path "network device 111→network device 112→network device 115→network device 116", the data stream B sent by the device 122 is transmitted through the path "network device 114→network device 115→network device 116", and the data stream C sent by the device 123 is transmitted through the path "network device 112→network device 113→network device 116". In network device 112, processor 112-1 is configured to process data stream A and processor 112-2 is configured to process data stream B. In network device 115, processor 115-1 is configured to process data stream A and data stream B.
The network device 112 may obtain the load of each functional device in the network device 112 in order to reduce power consumption, and reduce the configuration of the functional device or turn off the functional device according to the load. Specifically, the network device 112 may obtain the load of the processor 112-1 and the processor 112-2, compare the load of the processor 112-1 to the actual processing capacity of the processor 112-1, and compare the load of the processor 112-2 to the actual processing capacity of the processor 112-2. If network device 112 determines that the load of processor 112-1 is less than the actual processing capacity of processor 112-1 and that the load of processor 112-2 is less than the actual processing capacity of processor 112-2, network device 112 may shut down processor 112-2 and transfer the load of processor 112-2 to processor 112-1. That is, data stream C is processed by processor 112-1. In this way, the processor 112-2 in the network device 112 is turned off and no more power is consumed, reducing the power consumption of the network device 112.
However, reducing the configuration of the functional device or turning off the functional device may affect the normal transmission of traffic. For example, if a functional device in a network system is turned off, the load of the functional device may be transferred to other functional devices, which may affect the normal operation of the functional devices. Alternatively, the turning off of the functional device may cause a change in the traffic path, which in turn causes an increase in the load of other downstream network devices, affecting the normal transmission of traffic.
For example, referring to FIG. 1-B, based on FIG. 1-A, processor 112-2 in network device 112 is turned off and the load of processor 112-2 is transferred to processor 112-1. I.e., data stream C is forwarded by processor 112-1 to processor 115-1 in network device 115. Then, data stream a, data stream B, and data stream C are all forwarded through the processor 115-1 in the network device 115, increasing the load of the processor 115-1 in the network device 115. Thus, the load of processor 115-1 may be greater than the maximum processing power of processor 115-1, i.e., processor 115-1 may not be able to process the received data properly, affecting the normal transmission of forwarding data stream A, data stream B, and data stream C.
In view of this, an embodiment of the present application provides a method for determining configuration parameters, which aims to balance the working conditions of a plurality of network devices, so as to reduce the energy consumption of a network system under the condition of maintaining normal forwarding of traffic.
The method for determining the configuration parameters provided by the embodiment of the application can be applied to the network system shown in fig. 1-A. The network devices in fig. 1-a may be network devices with forwarding functions, for example, forwarding devices such as routers or switches. The network device may execute the method for determining the configuration parameter provided by the embodiment of the present application, or the method provided by the embodiment of the present application may also be executed by the control device of the network system.
The network device includes a plurality of functional devices. The functional devices include, for example, one or more processors, a plurality of functional boards, a plurality of network ports, and one or more fans. The functional veneers comprise a port veneer, a switching network board, a monitoring board, a main control board and the like. Different processors may be mounted on different functional boards or on the same functional board. A functional board may include one or more network ports. The network port is used for data interaction with other network devices, and different network ports can be installed on different functional single boards or on the same functional single board. The fan is used to reduce the temperature of the network device. Alternatively, the number of fans may be consistent with the number of processors.
In the embodiment of the present application, the device 121, the device 122, the device 123, and the device 124 may be servers or terminal devices. The terminal device may be referred to as a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or a terminal, among others. A terminal device is a device that provides voice and/or data connectivity to a user, or a chip disposed within the device. For example, the terminal device may be a handheld device, an in-vehicle device, or the like having a wireless connection function. The terminal device may be a cell phone, desktop computer, tablet computer, notebook computer, palm computer, mobile internet device (mobile internet device, MID), wearable device, virtual Reality (VR) device, augmented reality (augmented reality, AR) device, wireless or wired terminal in industrial control (industrial control), wireless terminal in unmanned driving (self driving), wireless terminal in teleoperation (remote medicalsurgery), wireless terminal in smart grid (smart grid), wireless terminal in transportation security (transportation safety), wireless terminal in smart city (smart city), wireless terminal in smart home (smart home) or home gateway device supporting 5G access (5G residential gateway,5G RG), etc.
The technical scheme provided by the embodiment of the application is described below with reference to fig. 2. Referring to fig. 2, the flowchart of a method for determining configuration parameters according to an embodiment of the present application specifically includes the following steps S201 to S203. It is to be understood that S201 to S203 described below may be performed by the network device itself or may be performed by a server.
S201: a first constraint is obtained.
In the embodiment of the application, the first constraint is a condition required to be satisfied by the configuration parameter of the first device in order to enable the first device to work normally, and is used for constraining the range of values of the configuration parameter of the first device. The first device is a network device for forwarding traffic in the network system.
In particular, the first constraint may be used to constrain configuration parameters of the first device over a first period of time. The first time period is later than the current time. That is, if the configuration parameters of the first device satisfy the first constraint, the first device is able to operate normally for the first period of time. If the configuration parameters of the first device do not meet the first constraint, the configuration parameters of the first device in the first time period cannot meet the condition that the first device works normally, and the first device cannot work normally.
Before performing S201, it may be determined that the first device satisfies the configuration parameter update condition. The description of the configuration parameter updating condition may be referred to fig. 4, and will not be repeated here.
In some possible implementations, the first constraint may include a multi-aspect constraint. The following description will be made separately.
The implementation mode is as follows: the first constraint includes a first flow constraint.
The first traffic constraint is used to constrain a traffic parameter of the port of the first device for a first period of time, and is a constraint on the state of the port of the first device. The traffic parameter may be throughput and the unit may be, for example, bits per second (bit) or bytes per second (Byte), etc. The traffic parameter may also be the amount of data to be processed by the network device, and the units may be, for example, bits, bytes, megabytes, etc.
Specifically, the first flow constraint is used to constrain a sum of flow parameters of all ports of the first device during the first time period. For example, the first flow constraint may include a first target flow parameter that is a minimum of a sum of flow parameters of all ports of the first device over a first period of time. Based on the first target traffic parameter, a status of each of a plurality of ports of the first device may be determined. Optionally, the states of the ports include an active state and an inactive state. The active state may also be referred to as an on state and the inactive state may include a sleep state and/or an off state.
Assuming that the first device includes n ports (n is a positive integer), the above-described first flow constraint can be expressed by the following formula (1).
Formula (1): e, e 1 P 1 +e 2 P 2 +…+e n P n ≥X
Wherein e 1 Representing the state of port 1, P 1 Flow parameters and representing port 1The corresponding relation between the states of the 1 st port, X is the first target flow parameter.
If i is a positive integer less than or equal to n, then e i P i Indicating that the state of the i-th port is e i In the first time period, the i-th port has a flow parameter within the first time period. The above formula (1) represents: in order for the first device to function properly during the first period of time, the sum of the flow parameters of the plurality of ports of the first device during the first period of time is greater than or equal to the first target flow parameter X.
In some possible implementations, e i The value of (2) may be 0 or 1. If e i The value of (1) indicates that the ith port is in a working state in the first time period. If e i The value of (2) is 0, which indicates that the ith port is in a non-working state in the first time period. Correspondingly, P i The value of (c) may be the maximum flow parameter of the ith port during the first time period. If e i The value of (2) is 1, e i P i Equal to the maximum flow parameter of the ith port during the first time period. If e i The value of (c) is 0, e i P i Equal to 0.
In some other possible implementations, a port may have three or more states. Then e i Other values may exist. For example, assume that the theoretical maximum bandwidth of the i-th port is Gigabyte (GB) per second, and the i-th port is divided into eleven states on average according to bandwidth. Wherein e corresponds to the first state i The value of (2) is 0, and corresponds to a non-working state. E corresponding to the second state i The value of (2) is 0.1, and the corresponding maximum bandwidth is 0.1GB. That is, at e i In the case of=0.1, at most 0.1GB of data is forwarded from the i-th port per second. E corresponding to the third state i The value of (2) is 0.2, and the corresponding maximum bandwidth is 0.2GB. That is, at e i In the case of=0.2, at most 0.2GB of data is forwarded from the i-th port per second. E corresponding to the eleventh state i The value of (1) is 1, and the corresponding maximum bandwidth is 1GB. That is, at e i In the case of=1, 1GB of data is forwarded from the i-th port at most per second. Same reasonCan determine e i Other values take the maximum bandwidth of the i-th port. It will be appreciated that e of 0.1, 0.2, etc. above i Is merely exemplary. In some possible implementations, e i The value of (2) may be an integer.
In some possible implementations, the first target traffic parameter is predicted based on historical traffic data of the first device. Specifically, historical flow data of the first device can be obtained, the historical flow data of the first device is input into a flow prediction model, flow characteristics of the first device are determined through the flow prediction model, and therefore flow conditions of the first device in a first time period are determined, and a first target flow parameter is obtained. Alternatively, the flow prediction model may be a deep learning model, a long-short term memory (long-short term memory, LSTM) model, or an artificial intelligence model such as a recurrent neural network (recurrent neural network, RNN).
The implementation mode II is as follows: the first constraint includes a first state constraint.
The first state constraint is used to constrain a state of a port of the first device, and represents a limitation of the state of the port of the first device by other parameters than the traffic parameter. For example, if the jth port (j being a positive integer less than or equal to n) of the first device is used to carry high priority traffic, the first state constraint may constrain the state of the jth port to an on state, i.e., the first state constraint includes e j =1. Alternatively, if the kth port (k being a positive integer less than or equal to n) of the first device does not carry traffic for a longer period of time in the past, the first state constraint may constrain the state of the kth port to an inactive state, i.e., the first state constraint includes e k =0。
Further description of the first state constraint may be found below and will not be repeated here.
And the implementation mode is three: the first constraint includes a first processing constraint.
Traffic forwarded by the first device needs to be processed by the data processing means of the first device. The first constraint may further include a first processing constraint in order to enable the first device to forward traffic corresponding to the first target traffic parameter. The first processing constraint is for constraining data processing capabilities of the data processing device of the first apparatus for a first period of time, and is a constraint on a state of the data processing device of the first apparatus. In particular, the first processing constraint is used to constrain a sum of data processing parameters of all data processing devices in the first apparatus over a first period of time. The data processing device may comprise, for example, a functional device such as a central processing unit (centralprocessing unit, CPU) having data processing capabilities. The magnitude of the data processing parameter indicates the strength of the data processing capability of the data processing device, and may be expressed, for example, by the number of operations per unit time or frequency.
For example, the first processing constraint may include a first processing parameter that is a minimum of a sum of data processing parameters of all data processing devices of the first apparatus over a first period of time. Based on the first processing parameter, a status of each of a plurality of data processing devices of the first apparatus may be determined.
Optionally, the states of the data processing device include a high performance operational state, a low performance operational state, and a non-operational state. If the state of the data processing device is an inactive state, indicating that the data processing device is in an off state or a dormant state, the data processing device does not have data processing capability or the data processing capability of the data processing device is negligible. If the data processing device is in a low performance operating state, it is stated that the data processing device is capable of providing less data processing capacity than the maximum data processing capacity that the data processing device is capable of providing. For example, if the data processing device is in a low performance operating state, the operating frequency of the data processing device may be one half of the maximum operating frequency of the data processing device. If the data processing device is in a high performance operating state, it is stated that the data processing device is capable of providing data processing capacity at or near the maximum data processing capacity that the data processing device is capable of providing. For example, if the data processing device is in a high performance operating state, the operating frequency of the data processing device may be equal to the maximum operating frequency of the data processing device, or the data processing device may be operating in an over-frequency state.
In one possible implementation, the first processing constraint is determined based on a first flow constraint. That is, the first process parameter is determined based on the first target flow parameter. The first process parameter is greater than or equal to a process parameter required to process the first target flow parameter. That is, the first processing constraint is used to constrain the data processing capability provided by the first device during the first time period to meet the need for forwarding the first target traffic parameter
Assuming that the first device includes m data processing means (m is a positive integer), the above-described first processing constraint can be expressed by the following formula (2).
Formula (2): f (f) 1 (c 1 )+f 2 (c 2 )+…+f m (c m )≥Y X
Wherein c 1 Representing the state of the 1 st data processing device, f 1 Representing a relationship function between data processing parameters of the 1 st data processing device and states of the data processing device, Y X Is the first processing parameter. Optionally f 1 And may also be referred to as a process parameter correspondence for the 1 st data processing device.
If i is a positive integer less than or equal to m, then f i (c i ) Representing the state of the ith data processing device as c i In the first time period, the data processing device processes the data processing parameters during the first time period. The above formula (2) represents: in order for the first device to function properly during the first period of time, the sum of the data processing parameters of the plurality of data processing devices of the first device during the first period of time is greater than or equal to the first processing parameter Y required to forward the first target traffic parameter X 。
In some possible implementations, c i The value of (2) may be any one of 0, 1 or 2. For example, if c i The value of 0 indicates that the ith data processing device is inactive during the first period of time. If c i The value of 1 indicates that the ith data processing device is in a low performance operating state for a first period of time. If c i The value of (2) is shown in the tableThe ith data processing device is shown in a high performance operating state for a first period of time. Accordingly, f i (0) The value of (2) is 0.f (f) i (1) The value of the (i) data processing parameter is the data processing parameter of the ith data processing device in a low-performance working state. f (f) i (2) The value of the (i) data processing parameter is the data processing parameter of the ith data processing device in a high-performance working state. For example, f i (1) The value of (a) can be the working frequency of the data processing device under the condition of not over-frequency working state, f i (1) The value of (2) can be the working frequency of the data processing device in the over-frequency working state. In some other possible implementations, the data processing device may have four or more states. Then c i Other values may exist. For example, the data processing device may divide the operating frequency of the data processing device into three or more gears, each of which may correspond to c i Is a value of (a).
The implementation mode is four: the first constraint includes a first forwarding constraint.
Traffic forwarded by the first device needs to be forwarded by the functional board of the first device. The first constraint may further include a first forwarding constraint in order to enable the first device to forward traffic corresponding to the first target traffic parameter.
Similar to the first processing constraint, the first forwarding constraint is used to constrain forwarding capabilities of the functional board of the first device for a first period of time, and is a constraint on a state of the functional board of the first device. Specifically, the first forwarding constraint is used to constrain a sum of forwarding parameters of all functional boards in the first device in a first period of time. The size of the forwarding parameter reflects the capability of the functional single board to forward the traffic, for example, the forwarding data amount or forwarding rate of the functional single board can be represented.
For example, the first forwarding constraint may include a first forwarding parameter, where the first forwarding parameter is a forwarding parameter required for forwarding a flow corresponding to the first target flow parameter, and corresponds to a minimum value of a sum of forwarding parameters of all functional boards of the first device in a first period of time, where the first device is guaranteed to work normally in the first period of time.
According to the first forwarding parameter, a status of each of a plurality of functional boards of the first device may be determined. Optionally, the states of the functional board include an active state and an inactive state. The active state may also be referred to as an on state and the inactive state may include a sleep state and/or an off state.
Assuming that the first device includes p functional boards (p is a positive integer), the above first forwarding constraint is represented by the following formula (3).
Equation (3): t is t 1 (a 1 )+t 2 (a 2 )+…+t p (a p )≥Z X
Wherein a is 1 Representing the state of the 1 st functional board, t 1 Representing the relation function between the forwarding parameters and the state of the 1 st functional board, Z X Is the first forwarding parameter. Alternatively, t 1 And may also be referred to as forwarding parameter correspondence for the 1 st functional board.
If i is a positive integer less than or equal to p, then t i (a i ) Indicating that the working state is a i In the case of (a), the i-th functional board forwards parameters in the first time period. The above formula (3) represents: in order to make the first device work normally in the first time period, the sum of the forwarding parameters of the multiple functional veneers of the first device in the first time period is greater than or equal to the first forwarding parameter Z required for forwarding the first target traffic parameter X 。
In some possible implementations, a i The value of (2) may be 0 or 1. If a is i The value of (2) is 0, which indicates that the ith functional single board is in a non-working state in the first time period. If a is i The value of (1) indicates that the ith functional single board is in a working state in the first time period. Accordingly, t i (0) The value of (2) is 0.t is t i (1) The value of the (b) is the maximum forwarding parameter of the ith functional single board in the working state. In some other possible implementations, a functional board may have three or more states. Then a i Other values may exist. For example, the status of the single board can be further divided according to the working status of the functional devices such as the buffer memory on the functional single board, then a i May have three or more values.
For example, assuming that the ith functional board includes ten cache units, the ith functional board may correspond to eleven operating states, a i There are eleven different values. Wherein the first state of the ith functional single board is a non-working state, corresponding to a i The value of (2) is 0. A corresponding to the second state of the ith functional veneer i The value of (2) is 0.1, which means that ten buffer units on the ith function board have one buffer unit opened. A corresponding to the third state of the ith functional single board i The value of (2) is 0.2, which means that two cache units are opened in ten cache units on the ith function board. A corresponding to eleventh state of ith function single board i The value of (1) indicates that ten buffer units on the ith functional board are all turned on. It will be appreciated that a of 0.1, 0.2, etc. above i Is merely exemplary. In some possible implementations, a i The value of (2) may be an integer.
Alternatively, the number of functional boards and the number of processors may be identical, i.e., m=p.
In some possible implementations, the first forwarding constraint further includes a constraint of a state of the port on a state of the functional board. Specifically, if a port in a working state exists on a functional board, the state of the functional board is an on state. That is, the constraint of the first forwarding constraint on the i-th functional board can be expressed by the following formula (4).
Equation (4):
wherein e j Is the j port on the i-th functional board. e, e j =0 indicates that the jth port on the ith functional board is in a non-operating state. e, e j =1 indicates that the jth port on the ith functional board is in an active state.
The implementation mode is five: the first constraint includes a first heat dissipation constraint.
During operation of the first device, functional devices such as data processing devices may generate heat, thereby causing a temperature rise of the first device. The temperature of the first device may continue to rise if the first device is not heat-dissipating. If the temperature of the first device exceeds the rated temperature range, the first device may not function properly. For this purpose, one or more heat dissipating devices may be disposed in the first apparatus, so that other functional devices are dissipated by the heat dissipating devices to reduce the temperature of the first apparatus. The heat sink may comprise, for example, a fan.
To ensure proper operation of the first device, the first constraint may further include a first heat dissipation constraint. The first heat dissipation constraint is used for constraining the heat dissipation capacity of the heat dissipation device in the first device in a first period of time, and is a constraint condition on the state of the heat dissipation device of the first device. Specifically, the first heat dissipation constraint is used to constrain a sum of heat dissipation parameters of all heat dissipation devices in the first apparatus over a first period of time. The size of the heat dissipation parameter reflects the heat dissipation capacity of the heat dissipation device. The heat dissipation device may include, for example, a functional device having a heat dissipation and cooling function such as a fan. The heat dissipation capacity may be expressed, for example, in terms of fan speed.
In order to ensure that the temperature of the first device is within the rated temperature range, the first heat dissipation constraint is determined based on the heat generating capacity of the functional device in the first device. That is, the first heat dissipation constraint is used to control the heat dissipation capacity of the heat dissipation device in the first apparatus to match the heat generation capacity of the functional device in the first apparatus. Optionally, the first heat dissipation constraint is used to control the heat dissipation capacity of the heat dissipation device in the first apparatus to match the heat generation capacity of the data processing device in the first apparatus, taking into account that heat is generated primarily by the data processing device.
For example, assuming that the first apparatus includes m data processing devices (m is a positive integer) and q heat dissipating devices (q is a positive integer), the above-described first processing constraint may be expressed specifically as the following formula (5).
Equation (5): h is a 1 (c 1 )+h j (c j )+…+h m (c m )+g 1 (w 1 )+g 2 (w 2 )+…+g q (w q )<T
Wherein c 1 Representing the state of the 1 st data processing device, w 1 Represents the state of the 1 st heat sink, h 1 Representing a relationship function between a data processing parameter of a 1 st data processing device and a thermal parameter of the data processing device, the thermal parameter representing a heat generating capacity of the data processing device, g 1 And a relation function between the heat dissipation parameter of the 1 st heat dissipation device and the heat dissipation capacity of the heat dissipation device is represented, and T is a heat dissipation control parameter. Alternatively, h i And may also be referred to as the thermal correspondence, g, of the ith data processing device i And may also be referred to as a heat dissipation correspondence of the i-th heat dissipation device. It will be appreciated that h i (c i ) The value of (2) is a positive number indicating that heat is added during operation of the data processing device. g i (w i ) The negative value of (2) indicates that heat is dissipated during operation of the heat dissipating device.
T represents the temperature at which the first device is operating normally. Alternatively, T represents the amount of heat generation or heat dissipation that maintains the first device temperature within the rated temperature range for a unit time. Specifically, if T is given in units of temperature, h is defined above i Indicating that the ith data processing device is at c i The first device is operated in a state for a first period of time, and the temperature of the first device is increased in magnitude. G above i Indicating that the ith heat sink is at w i The first device is operated in a state for a first period of time, and the temperature of the first device is reduced in magnitude. If T is the unit of energy, h is described above i Indicating that the ith data processing device is at c i Heat generation during the first period of operation in the state. G above i Indicating that the ith heat sink is at w i And the heat dissipation capacity of the first time period is operated in a state.
It is understood that the first constraint may comprise any one or more of the 5 constraints described above. Optionally, the first constraint comprises a first flow constraint.
S202: a second constraint is obtained.
In the embodiment of the application, the second constraint is a condition required to be satisfied by the configuration parameters of the first device in order to enable the second device to work normally, and represents the constraint of the second device on the configuration parameters of the first device. The second device is a network device adjacent to the first device, i.e. the second device is directly connected with the first device.
In order to ensure the normal operation of the second device, the configuration parameters of the second device need to satisfy part of the conditions. While a portion of the configuration parameters of the second device, which is a device adjacent to the first device, may affect the configuration parameters of the first device. The second constraint is used to reflect the influence of the configuration parameters of the second device on the configuration parameters of the first device, which represents the condition that the configuration parameters of the first device need to satisfy in order to ensure the normal operation of the second device.
Alternatively, if the technical scheme provided by the embodiment of the present application is executed by the first device, the second constraint may be sent by the second device to the first device. If the technical scheme provided by the embodiment of the application is executed by the server or the cloud platform, the second constraint can be reported by the second device.
For example. The first device is assumed to include a first port and the second device includes a second port. The first device is connected to the second port of the second device through a first port, and the link between the first port and the second port is referred to as a first link. Under the condition that the second device works normally, the second port is in a working state, and the flow parameter flowing through the second port is X.
Since the first port is directly connected to the second port, the flow parameter of the first link is dependent on the smaller of the flow parameter of the first port and the flow parameter of the second port. Then to ensure proper operation of the second device, the first port is also required to be in operation, and the flow parameter of the first port is required to be matched with X. That is, if the first port is in the inactive state, even if the second port is in the active state, the actual flow parameter of the first link is equal to zero, the actual flow parameter of the second port is equal to zero, and the second device cannot operate normally. Likewise, if the flow parameter of the first port is equal to Y and Y is less than X, even if the flow parameter of the second port is equal to X, the flow parameter of the first link is equal to Y, resulting in that the actual flow parameter of the second port is also equal to Y, and the second device cannot work normally.
Thus, to enable the second device to function properly, constraints on configuration parameters of the second device associated with the first device may be determined as second constraints under conditions in which the second device functions properly. In this way, in the process of determining the first configuration information later, the constraint of the first device on the configuration parameters of the first device is considered, the constraint of the second device on the configuration parameters of the first device is considered, and the normal operation of the first device and the second device can be ensured.
Similar to the first constraint, the second constraint may also include a multifaceted constraint. The following description will be made separately.
The implementation mode is as follows: the second constraint includes a second flow constraint.
Similar to the first flow constraint, the second flow constraint is used to constrain the flow parameters of the destination port over the first period of time, which is a constraint on the state of the destination port. The target port is a port of the second device connected to the first device, for example, the second port belongs to the target port. Optionally, if the second device is connected to the first device through a plurality of ports, the number of destination ports is a plurality. The second traffic constraint is used to constrain a traffic parameter of each of the plurality of destination ports over the first time period.
In one possible implementation, a second flow constraint is used to constrain the flow parameter of the destination port to zero. Alternatively, the second flow constraint is used to constrain the flow parameter of the destination port to be no less than x a 。
For further description of the second flow restriction, reference may be made to the previous description of the first flow restriction, which is not repeated here.
The implementation mode II is as follows: the second constraint includes a second state constraint.
The second state constraint is used to constrain the state of the target port. In one possible implementation, the second state constraint matches a second flow constraint that is used to constrain the state of the target port to be an inactive state if the second flow constraint is used to constrain the flow parameter of the target port to be zero. If a second traffic constraint is used to constrain the destination port The flow parameter is not less than x a The second state constraint is used for constraining the state of the target port to be an operating state.
In an embodiment of the application, the second constraint is determined according to an operating state of the second device during the first period of time. In one possible implementation, the second device determines the second constraint after determining the operational state of the second device within the first time period. Or the second device determines the working state of the second device in the first time period, determines the second configuration parameter of the second device in the first time period according to the working state of the second device in the first time period, and determines the second constraint according to the second configuration parameter. The description of this part will be referred to fig. 4, and will not be repeated here.
S203: the first configuration information is determined according to the first constraint and the second constraint.
After the first constraint and the second constraint are acquired, the first configuration information may be determined according to the first constraint and the second constraint. The first configuration information comprises at least one configuration parameter and a value corresponding to each configuration parameter. The first device configured according to the first configuration information satisfies the first constraint and the second constraint, and the energy consumption of the first device configured according to the first configuration information satisfies the energy consumption condition. The energy consumption condition indicates that the energy consumption corresponding to the first configuration information is the minimum energy consumption among the energy consumption corresponding to the plurality of configuration information meeting the third constraint. That is, the first device, which updates the configuration parameters according to the first configuration information, may operate normally in the first period of time, or may cause the second device to operate normally in the first period of time.
In order to determine the first configuration information that satisfies both the first constraint and the second constraint, the third constraint may be determined according to the first constraint and the second constraint, and then the first configuration information may be determined according to the third constraint. The following describes, by way of example, a process of determining a third constraint according to the first constraint and the second constraint, and a process of determining first configuration information according to the third constraint, which are performed by the first device. It will be appreciated that the methods described below may also be performed by a server or cloud platform.
First, a procedure in which the first device determines a third constraint based on the first constraint and the second constraint is described.
In order for the first device configured according to the first configuration information to satisfy the first constraint and the second constraint, the third constraint limits the configuration parameters of the first device to a higher degree than the first constraint or the second constraint limits the configuration parameters of the first device. Then the first device may select a constraint of a higher degree of constraint from the first constraint and the second constraint as the third constraint when determining the third constraint.
As can be seen from the foregoing description, the first constraint includes any one or more of a first traffic constraint, a first state constraint, a first processing constraint, a first forwarding constraint, and a first heat dissipation constraint. Accordingly, the third constraint may include any one or more of a third flow constraint, a third state constraint, a third processing constraint, a third forwarding constraint, and a third heat dissipation constraint. The following description will be made separately.
The implementation mode is as follows: the third constraint includes a third flow constraint.
The third flow constraint is determined based on the first flow constraint and the second flow constraint, and is used to constrain the flow parameter of the port of the first device to be not less than the third target flow parameter during the first period of time. Specifically, when determining the third constraint, the first device may compare the flow parameter corresponding to the first flow constraint with the flow parameter corresponding to the second flow constraint, and determine the third target flow parameter according to the larger flow parameter.
And if the flow parameter corresponding to the first flow constraint is smaller than the flow parameter corresponding to the second flow constraint, the flow parameter corresponding to the first flow constraint indicates that the minimum flow of the first link for maintaining the normal operation of the first device in the first time period is smaller than the minimum flow of the first link for maintaining the normal operation of the second device in the first time period. The first device may determine a third target flow parameter based on the flow parameter corresponding to the second constraint
And if the flow parameter corresponding to the first flow constraint is larger than the flow parameter corresponding to the second flow constraint, the flow parameter corresponding to the first flow constraint indicates that the minimum flow of the first link for maintaining the normal operation of the first device in the first time period is larger than the minimum flow of the first link for maintaining the normal operation of the second device in the first time period. The first device may determine a third target flow parameter based on the flow parameter corresponding to the first constraint.
If the first flow constraint is represented by equation (1) above, the first device may derive the third flow constraint by adjusting the first target flow parameter X in equation (1) of the first flow constraint. The description of this part will be referred to fig. 4, and will not be repeated here.
The implementation mode II is as follows: the third constraint includes a third state constraint.
The third state constraint is determined according to the first state constraint and the second state constraint, and is used for constraining the state of the port of the first device in the first time period to be the third state. For example, assume a first state constraint is used to constrain the state of a first port to be a first state during a first period of time, and a second state constraint is used to constrain the state of a second port to be a second state during the first period of time. Then, when determining the third constraint, the first device may determine whether the first state and the second state include the operating state, and determine the third state according to the determination result.
Specifically, if the first state is an operating state, the second state is also an operating state, and the first device determines that the third state is an operating state.
If the first state is the non-working state, the second state is also the non-working state, the first device determines the third state to be the non-working state
If the first state is an operating state and the second state is a non-operating state, it means that in order to maintain the normal operation of the first device, the first port needs to be in an operating state, and the first device needs to forward traffic through the first link. Even if the second constraint requires that the state of the second port be inactive, the first device determines that the third state is active in order for traffic to be forwarded normally. Similarly, if the first state is the non-working state, the second state is the working state, and the first device determines that the third state is the working state.
And the implementation mode is three: the third constraint includes a third processing constraint.
As can be seen from the foregoing, the first processing constraint is used to constrain the data processing capabilities of the data processing device of the first apparatus during a first period of time. The first device has the capability to process the first target flow parameter for a first period of time if the data processing means of the first device satisfies the first processing constraint. Similarly, if the first device determines a third flow constraint based on the first flow constraint and the second flow constraint, the first device may determine a third processing constraint based on the third flow constraint. The first device has the capability to process a third target flow parameter for a first period of time if the data processing means of the first device satisfies a third processing constraint.
Specifically, the first device may determine the target process parameter based on the third target flow parameter and determine the third process constraint based on the target process parameter. The third processing constraint is configured to constrain a sum of data processing parameters that can be provided by the plurality of data processing devices of the first device during the first time period to be not less than the target processing parameter.
Further description of the third processing constraint may be found in fig. 4, and will not be repeated here.
The implementation mode is four: the third constraint includes a third forwarding constraint.
As can be seen from the foregoing description, the first forwarding constraint is used to constrain forwarding capability of the functional board of the first device in a first period of time. If the functional board of the first device satisfies the first forwarding constraint, the first device has the capability to forward the first target traffic parameter within the first time period. Similarly, if the first device determines a third flow constraint based on the first flow constraint and the second flow constraint, the first device may determine a third forwarding constraint based on the third flow constraint. If the functional board of the first device satisfies the third forwarding constraint, the first device has the capability to forward the third target traffic parameter within the first time period.
Specifically, the first device may determine a target forwarding parameter according to the third target traffic parameter, and determine a third sending constraint according to the target sending parameter. The third forwarding constraint is used for constraining a sum of forwarding parameters that can be provided by the plurality of functional boards of the first device in the first time period to be not less than the target forwarding parameter.
Further description of the third forwarding constraint may be found in fig. 4, and will not be described here.
The implementation mode is five: the third constraint includes a third heat dissipation constraint.
As can be seen from the foregoing description, the first heat dissipation constraint is used to constrain the heat dissipation capacity of the heat dissipation device of the first apparatus during the first period of time. If the heat sink of the first device meets the first heat dissipation constraint, the temperature of the first device during the first period of time is controlled to be within the rated temperature range. Similarly, if the first device determines a third process constraint based on the third flow constraint, the first device may determine a third heat dissipation constraint based on the third process constraint. If the heat sink device of the first apparatus satisfies the third heat sink constraint, the temperature of the first apparatus during the first period of time is controlled to be within the rated temperature range.
Specifically, the first device first determines a target heat parameter according to the corresponding relation between each data processing device and heat in the first device, where the target heat parameter represents the heat generated by each data processing device in the first device in a first period of time. Then, the first device determines a target heat dissipation parameter according to the target heat dissipation parameter and the heat dissipation corresponding relation, and then determines a third heat dissipation constraint according to the target heat dissipation parameter. The third heat dissipation constraint is used for constraining a sum of heat dissipation parameters that can be provided by the plurality of functional veneers of the first device in the first time period to be not less than the target heat dissipation parameter.
Further description of the third heat dissipation constraint may be found in fig. 4, and will not be repeated here.
After determining the third constraint, the first device may send the third constraint to the third device, such that the third device determines configuration information for the third device based on the third constraint. The third device is a network device connected to the first device, for example, may be the second device, or may be another network device connected to the first device.
The procedure in which the first device determines the third constraint based on the first constraint and the second constraint is described above, and the procedure in which the first device determines the first configuration information based on the third constraint is described below.
After determining the third constraint, the first device determines, as the first configuration information, configuration information that satisfies the third constraint and has the lowest energy consumption value. In particular, the first device may determine a set of configuration information according to the third constraint, the set of configuration information comprising at least one configuration information satisfying the third constraint. Each set of configuration information includes at least one configuration parameter and a value for each configuration parameter. The first device configured according to the configuration information in the set of configuration information satisfies a third constraint.
And then, the first equipment calculates the energy consumption value corresponding to each group of configuration information in the configuration information set according to the energy consumption corresponding relation. The energy consumption value is the energy consumption value of the first device in the first time period after being configured according to the configuration information. The energy consumption correspondence represents a correspondence between a value of a configuration parameter of the first device and an energy consumption value of the first device in a first period of time. After determining the energy consumption value corresponding to each group of configuration information, the first device determines the configuration information with the smallest energy consumption value in the configuration information set as first configuration information. In one possible implementation, the first device determines the first configuration information by way of integer programming.
In the technical scheme provided by the embodiment of the application, the first configuration information is obtained according to the first constraint and the second constraint, and the energy consumption value of the first device configured according to the first configuration information is smaller than the current energy consumption value of the first device. Wherein the first constraint is a condition that the configuration parameters of the first device need to satisfy in order for the first device to function properly. The second constraint is a condition that the configuration parameters of the first device need to satisfy in order for the second device to function properly. In this way, the first device is configured according to the first configuration parameter, so that the first device can work normally in the first time period, and the second device can work normally in the first time period. Under the condition of ensuring the normal operation of the first equipment and the second equipment, the energy consumption of the first equipment is reduced. Thus, the working conditions of a plurality of network devices can be balanced, and the energy consumption of the network system is reduced under the condition of maintaining the normal forwarding of the traffic.
It will be appreciated that if a traffic burst occurs in the network system, it may be necessary to enhance the performance of the first device to meet the requirements of the first device for proper operation. That is, if the requirement of the first device for normal operation in the first period is high, the energy consumption value of the first device configured according to the first configuration information may also be greater than or equal to the energy consumption value of the first device at the current time. At this time, for the first period, the first device may have multiple sets of configuration information, where the performance corresponding to each set of configuration information is higher than the current time, and the energy consumption corresponding to the first configuration information is smaller than the energy consumption corresponding to other sets of configuration information in the multiple sets of configuration information. That is, when the flow corresponding to the first period is higher than the current time, the performance corresponding to the first configuration information can meet the requirement that the first device and the second device work normally, and the energy consumption corresponding to the first configuration information is smaller than the current energy consumption. When the flow corresponding to the first time period is smaller than the current time, the performance corresponding to the first configuration information can meet the normal working requirements of the first equipment and the second equipment, and the first configuration information is a group of configuration information with the minimum energy consumption corresponding to multiple groups of configuration information capable of meeting the normal working requirements of the first equipment and the second equipment.
After determining the first configuration information, the first device may apply the first configuration information. Alternatively, the first device may apply the first configuration information after a plurality of iterations. For a description of the plurality of iterations, reference is made to the following text, and no further description is given here.
In the above description, the first configuration information is determined according to the first constraint of the first device itself and the second constraint of the second device. If the first device is connected to a plurality of devices, the first configuration information may be determined based on the first constraint, the second constraint, and the constraint of each network device connected to the first device. The method for determining configuration parameters according to the embodiment of the present application is further described below in conjunction with the implementation shown in fig. 3.
Referring to fig. 3, network system 300 includes network device 310, network device 320, network device 330, and network device 340. Wherein network device 310 is connected to port 321 on network device 320 via port 311, network device 310 is connected to port 331 on network device 330 via port 312, and network device 310 is connected to port 341 on network device 340 via port 313.
It will be appreciated that network device 310 may be the same network device as network device 115 shown in fig. 1-a, network device 320 may be the same network device as network device 112 shown in fig. 1-a, network device 330 may be the same network device as network device 114 shown in fig. 1-a, and network device 340 may be the same network device as network device 116 shown in fig. 1-a. That is, the solution of the corresponding embodiment of fig. 4 may be performed by the network device 115 in fig. 1-a.
In the following, taking the network device 310 as a first device and the network device 320 as a second device as an example, a method for determining configuration parameters provided in the embodiment of the present application will be described as an example. Referring to fig. 4, a flowchart of an implementation of a method for determining configuration parameters according to an embodiment of the present application specifically includes the following steps S401 to S408.
S401: the network device 310 determines that the network device 310 satisfies the configuration parameter update condition.
In the embodiment of the application, the configuration parameter updating condition at least comprises the following two implementation modes:
the implementation mode is as follows: the network device 310 determines that the traffic parameters of the ports of the network device 310 over the first period of time satisfy the configuration adjustment condition.
The network device 310 may predict a traffic condition of the network device 310 during a first period of time and determine whether a traffic parameter of the network device during a future period of time satisfies a configuration adjustment condition. If the traffic parameters of the ports of the network device 310 during the first time period satisfy the configuration adjustment condition, indicating that the traffic conditions of the network device 310 will change during the first time period in the future, the network device 310 may adjust the configuration parameters to accommodate the change in traffic conditions. The network device 310 continues to perform S402-S408 described later.
Optionally, the network device 310 periodically predicts the traffic parameter of the network device 310 in the next period, and determines whether the traffic parameter of the network device 310 in the next period satisfies the configuration adjustment condition. I.e. the first time period is the next period after the current moment.
In one possible implementation, the configuration adjustment condition indicates that the traffic of the network device 310 in the next cycle satisfies the preset condition. The preset condition may indicate that the traffic statistics (e.g., average traffic, maximum traffic, etc.) of the network device 310 in the next period satisfy the condition, or may indicate that the traffic situation of the network device in the next period is greatly changed. For example, the preset conditions may include any one or more of the following: the average flow rate of the network device 310 over the first period of time is greater than the first threshold, the maximum flow rate of the network device 310 over the first period of time is greater than the second threshold, the maximum flow rate of the network device 310 over the first period of time is less than the third threshold, and the average flow rate of the network device 310 over the first period of time is less than the fourth threshold. Optionally, the first threshold, the second threshold, the third threshold, and the fourth threshold may be the same or different. Alternatively, the preset conditions may also include any one or more of the following: the absolute value of the difference between the average flow rate of the network device 310 in the next period and the average flow rate of the present period is greater than the fifth threshold, and the absolute value of the difference between the maximum flow rate of the network device 310 in the next period and the maximum flow rate of the present period is greater than the sixth threshold.
The implementation mode II is as follows: the network device 310 obtains the configuration parameter adjustment instruction.
If the network device 310 receives the configuration parameter adjustment instruction sent by the other device, the network device 310 determines that the network device itself satisfies the configuration parameter update condition, and continues to execute S402 to S407 described later. The configuration parameter adjustment instruction is used to trigger the network device 310 to adjust the configuration parameters. The configuration parameter adjustment instruction may be sent by other network devices to the network device 310, or may be sent by the control management device to the network device 310.
Optionally, the configuration parameter adjustment instructions may include an energy consumption constraint for constraining the network device 310 to have an energy consumption value less than an energy consumption threshold for a first period of time. That is, if the user wants to control the power consumption value of the network device 310, the user may send a configuration parameter adjustment instruction including a power consumption constraint to the network device 310, so that the network device 310 adjusts the value of the configuration parameter according to the configuration parameter adjustment instruction.
S402: network device 310 determines a first constraint, network device 320 determines a fourth constraint, network device 330 determines a fifth constraint, and network device 340 determines a sixth constraint.
The method for determining the first constraint by the network device 310 may refer to the description of S201, and will not be described herein. Similarly, network device 320 may determine a fourth constraint based on network device 320 traffic conditions during the first time period, network device 330 may determine a fifth constraint based on network device 330 traffic conditions during the first time period, and network device 340 may determine a sixth constraint based on network device 340 traffic conditions during the first time period.
The fourth constraint is a condition that needs to be met by the configuration parameters of the network device 320 in order for the network device 320 to operate normally, and is used to constrain a range of values of the configuration parameters of the network device 320 in the first period of time. The fifth constraint is a condition that needs to be satisfied by the configuration parameters of the network device 330 in order for the network device 330 to operate normally, and is used to constrain the range of values of the configuration parameters of the network device 330 in the first period of time. The sixth constraint is a condition that needs to be satisfied by the configuration parameters of the network device 340 in order for the network device 340 to operate normally, and is used to constrain the range of values of the configuration parameters of the network device 340 in the first period of time.
It is understood that the second constraint is a different constraint than the fourth constraint. Specifically, the second constraint is a condition that the configuration parameters of network device 310 need to satisfy in order for network device 320 to function properly. The second constraint is used to constrain a functional device on network device 310 that is associated with network device 320. The fourth constraint is a condition that the configuration parameters of the network device 320 need to satisfy in order for the network device 320 to function properly. The fourth constraint is used to constrain the functionality on the network device 320. Obviously, the second constraint is determined according to a fourth constraint, e.g. the fourth constraint may comprise the second constraint. The second constraint is a constraint associated with network device 310 in the fourth constraint.
For convenience of the following description, assuming that the first flow constraint among the first constraints is expressed by the form of the above-described formula (1), the first flow constraint may be expressed specifically as the following formula (6).
Equation (6): e, e 11 P 11 +e 12 P 12 +e 13 P 13 ≥X
Wherein e 11 Representing the state of port 311, P 11 E is a correspondence relationship between the flow rate parameter of the port 311 and the state of the port 311 12 Representing the status of port 312, P 12 E is the correspondence between the traffic parameters of the port 312 and the state of the port 312 13 Representing the status of port 313, P 13 As a correspondence between the flow parameter of the port 313 and the state of the port 313, X is a first target flow parameter.
S403: the network device 310 determines the first initial configuration information according to the first constraint, the network device 320 determines the second initial configuration information according to the fourth constraint, the network device 330 determines the third initial configuration information according to the fifth constraint, and the network device 340 determines the fourth initial configuration information according to the sixth constraint.
After determining the first constraint, the network device 310 may determine first initial configuration information according to the first constraint. The first initial configuration information is configuration information that minimizes the power consumption value of the network device 310 under the condition that the first constraint is satisfied. Likewise, network device 320 determines second initial-configuration information according to a fourth constraint, network device 330 determines third initial-configuration information according to a fifth constraint, and network device 340 determines fourth initial-configuration information according to a sixth constraint.
Alternatively, the network device 310 may determine the first configuration information without according to the first constraint.
S404: network device 320 sends the second constraint to network device 310, network device 330 sends the seventh constraint to network device 310, and network device 340 sends the eighth constraint to network device 310.
After determining the initial configuration information, the network device 320 may associate with the network device in accordance with the fourth constraint and the second initial configuration informationThe constraints associated with the device 310 determine a second constraint and send the second constraint to the network device 310. Where the constraints associated with network device 310 refer to constraints of the functional devices in network device 320 that are connected to network device 310. For example, if the fourth constraint includes a fourth state constraint, the fourth state constraint is used to constrain the state of port 321 to be an operational state. The second constraint includes a second state constraint that is used to constrain the state of port 321 to be an operational state. If the second initial configuration information indicates that the traffic of port 321 during the first period of time is x 1 The second constraint includes a second flow constraint for constraining the flow of port 321 to x for a first period of time 1 。
Similarly, the network device 330 may determine a seventh constraint based on the fifth constraint and the constraint associated with the network device 310 in the third initial configuration information and send the seventh constraint to the network device 310. The network device 340 may determine an eighth constraint based on the sixth constraint and the constraint associated with the network device 310 in the fourth initial configuration information and send the eighth constraint to the network device 310.
Alternatively, the network device 310 may determine the constraint according to the first constraint and the first initial configuration information and transmit the constraint to other network devices. For example, network device 310 may send to network device 320 based on the first constraint and the constraint associated with network device 320 in the first initial configuration information. Alternatively, the network device 310 may send to the network device 330 based on the first constraint and the constraint associated with the network device 330 in the first initial configuration information. Alternatively, network device 310 may send to network device 340 based on the first constraint and the constraint associated with network device 324 in the first initial configuration information.
S405: the network device 310 determines a third constraint.
After acquiring the second constraint, the seventh constraint, and the eighth constraint, the network device 310 determines a third constraint based on the first constraint, the second constraint, the seventh constraint, and the eighth constraint. Specifically, when determining the third constraint, the first device selects, as the third constraint, a constraint having a higher degree of limitation on the configuration parameter from among the first constraint, the second constraint, the seventh constraint, and the eighth constraint.
For example. Assuming that the first flow constraint is represented by equation (6) above, the second constraint includes the state of port 321, the flow of port 321 over the first period of time, the seventh constraint includes the state of port 331, the flow of port 331 over the first period of time, and the eighth constraint includes the state of port 341, the flow of port 341 over the first period of time. Then the following formulas (7) to (10) can be obtained.
Equation (7):
equation (8):
equation (9):
equation (10): x is X ′ =x 1 +x 2 +x 3
Wherein e 21 Is a constraint on the state of port 321 in the second constraint, e 31 Is a constraint on the state of port 331 in the seventh constraint, e 31 X is a constraint on the state of port 341 in the eighth constraint ′ Is a third target flow parameter. The fourth constraint is used to constrain the flow parameter of port 321 to be not less than x during the first time period 1 The fifth constraint is used to constrain the flow parameter of port 331 to be not less than x during the first period of time 2 The sixth constraint is used to constrain the flow parameter of port 341 to be not less than x during the first period of time 3 . Alternatively, x 1 Also called fourth target flow parameter, x 2 Also called fifth target flow parameter, x 3 Also known as a sixth target flow parameter. The third target flow parameter is equal to the sum of the fourth target flow parameter, the fifth target flow parameter, and the sixth target flow parameter.
Wherein, formula (7) represents: if e 11 Has a value of 1 and e 21 The value of (2) is also 1,then e 1 The value of (2) is 1. If e 11 And e 21 An item present in the list having a value other than 1, then e 1 The value of (2) is 0. Equation (8) represents: if e 12 Has a value of 1 and e 31 And the value of (2) is also 1, then e 2 The value of (2) is 1. If e 12 And e 31 An item present in the list having a value other than 1, then e 2 The value of (2) is 0. Equation (9) represents: if e 13 Has a value of 1 and e 41 And the value of (2) is also 1, then e 3 The value of (2) is 1. If e 13 And e 41 An item present in the list having a value other than 1, then e 3 The value of (2) is 0.
From equation (7), equation (8), and equation (9), a third state constraint among the third constraints may be determined. According to equation (10), a third flow restriction in a third constraint may be determined. Similarly, network device 310 may determine a third processing constraint, a third forwarding constraint, a third heat dissipation constraint, and the like.
For a detailed description of determining the third constraint, reference may be made to the above, and no further description is given here.
S406: the network device 310 determines the first configuration information according to the third constraint.
After determining the third constraint, the network device 310 may determine the first configuration information according to the third constraint. The detailed description of determining the first configuration information may be referred to above, and will not be repeated here.
S407: the network device 310 determines a ninth constraint.
S408: network device 310 sends the ninth constraint to network device 320, network device 310 sends the ninth constraint to network device 330, and network device 310 sends the ninth constraint to network device 340.
After determining the first configuration information, network device 310 may determine a ninth constraint based on the first configuration information and the first constraint and send the ninth constraint to network device 320, network device 330, and network device 340, respectively.
It will be appreciated that the ninth constraint that network device 310 send to a different network device is different. Specifically, the ninth constraint sent to the network device 320 is determined according to the first constraint and the constraint related to the network device 320 in the first configuration information, the ninth constraint sent to the network device 330 is determined according to the first constraint and the constraint related to the network device 330 in the first configuration information, and the ninth constraint sent to the network device 340 is determined according to the first constraint and the constraint related to the network device 340 in the first configuration information.
Similar to network device 310, network device 320, after receiving the ninth constraint, may determine second configuration information based on the fourth constraint and the ninth constraint. The network device 330, after receiving the ninth constraint, may determine the third configuration information according to the fifth constraint and the ninth constraint. The network device 340, after receiving the ninth constraint, may determine fourth configuration information according to the sixth constraint and the ninth constraint.
That is, a network device in a network system may solve initial configuration information according to constraints of the network device and transmit the constraints and initial configuration information of the network device to a neighbor network device. The neighbor network device may solve the configuration information according to its own constraints and constraints sent by other network devices. In the embodiment of the application, the mutual transmission constraint between two adjacent network devices in the network system is called an iteration.
In one possible implementation, the network system may apply the configuration information after one iteration. That is, network device 310 applies the first configuration information after first determining the first configuration information, network device 350 applies the second configuration information after first determining the second configuration information, network device 360 applies the third configuration information after first determining the third configuration information, and network device 340 applies the fourth configuration information after first determining the fourth configuration information.
In some other possible implementations, the network system may apply the configuration information after multiple iterations. For example, the network device may apply the configuration information after undergoing T-round iterations. T is a positive integer greater than 1.
That is, the network device 320 updates the second constraint according to the second configuration information and the fourth constraint after determining the second configuration information, and transmits the updated second constraint to the network device 310. After determining the third configuration information, the network device 330 updates the seventh constraint according to the third configuration information and the fifth constraint and sends the updated seventh constraint to the network device 310. After determining the fourth configuration information, the network device 340 updates the eighth constraint according to the fourth configuration information and the sixth constraint and sends the updated eighth constraint to the network device 310. The network device 310 does not directly apply the first configuration information after determining the first configuration information, but updates the third constraint according to the first constraint, the updated second constraint, the updated seventh constraint, and the updated eighth constraint, and then determines new first configuration information according to the updated third constraint. As such, network device 310 may be said to have performed two iterations. If T is equal to 2, the network device 310 applies the new first configuration information. If T is greater than 2, the network device 310 updates the ninth constraint according to the new first configuration information and proceeds to the next iteration.
Referring to fig. 5, an embodiment of the present application further provides an apparatus 500 for determining a configuration parameter, where the apparatus 500 for determining a configuration parameter may implement the function of the first device or the control device in the embodiment shown in fig. 2 or fig. 4. The apparatus 500 for determining configuration parameters comprises an acquisition unit 510 and a processing unit 520. The obtaining unit 510 is configured to implement S201 and S202 in the embodiment shown in fig. 2. The processing unit 520 is configured to implement S203 in the embodiment shown in fig. 2.
Specifically, the obtaining unit 510 is configured to obtain a first constraint, where the first constraint includes a first flow constraint, where the first flow constraint is used to constrain a flow parameter of a port of the first device in a first period of time, where the first period of time is later than the current time. A second constraint is obtained, the second constraint indicating a constraint of a second device on configuration parameters of the first device, the second device being adjacent to the first device.
The processing unit 520 is configured to determine first configuration information according to the first constraint and the second constraint, where the first configuration information includes at least one configuration parameter and a value corresponding to each configuration parameter, and the energy consumption value of the first device configured according to the first configuration information meets an energy consumption requirement.
Reference is made to the detailed description of the corresponding steps in the embodiments shown in fig. 2 or fig. 4, and details thereof are not repeated here.
It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice. The functional units in the embodiment of the application can be integrated in one processing unit, or each unit can exist alone physically, or two or more units are integrated in one unit. For example, in the above embodiment, the processing unit and the transmitting unit may be the same unit or different units. The integrated units may be implemented in hardware or in software functional units.
Fig. 6 is a schematic structural diagram of an apparatus 600 according to an embodiment of the present application. The above apparatus 500 for determining configuration parameters may be implemented by the device shown in fig. 6. Referring to fig. 6, the device 600 comprises at least one processor 601, a communication bus 602 and at least one communication interface 604, optionally the device 600 may further comprise a memory 603.
The processor 601 may be a general purpose central processing unit (central processing unit, CPU), application Specific Integrated Circuit (ASIC) or one or more integrated circuits (integrated circuit, IC) for controlling the execution of the program of the present application. The processor 601 may be configured to process a message or a parameter to implement the method for determining a configuration parameter according to the embodiment of the present application.
For example, when the control device of fig. 2 is implemented by the device shown in fig. 6, the processor may be configured to: a first constraint is obtained, wherein the first constraint comprises a first flow constraint used for constraining a flow parameter of a port of the first device in a first time period, and the first time period is later than the current moment. A second constraint is obtained, the second constraint indicating a constraint of a second device on configuration parameters of the first device, the second device being adjacent to the first device. And determining first configuration information according to the first constraint and the second constraint, wherein the first configuration information comprises at least one configuration parameter and a value corresponding to each configuration parameter, and the energy consumption value of the first device configured according to the first configuration information meets energy consumption requirements.
A communication bus 602 is used to transfer information between the processor 601, a communication interface 604, and a memory 603.
The memory 603 may be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, the memory 603 may also be a random access memory (random access memory, RAM) or other type of dynamic storage device that can store information and instructions, or may be a read-only optical disk (compact disc read-only memory, CD-ROM) or other optical disk storage, optical disk storage (including compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, without limitation. The memory 603 may be stand alone and be coupled to the processor 601 via a communication bus 602. The memory 603 may also be integrated with the processor 601.
Optionally, the memory 603 is configured to store program codes or instructions for executing the technical solutions provided in the embodiments of the present application, and the processor 601 controls the execution. The processor 601 is operative to execute program code or instructions stored in the memory 603. One or more software modules may be included in the program code. Alternatively, the processor 601 may store program codes or instructions for performing the technical solutions provided by the embodiments of the present application, in which case the processor 601 does not need to read the program codes or instructions into the memory 603.
The communication interface 604 may be a device such as a transceiver for communicating with other devices or communication networks, which may be an ethernet, a radio access network (radio access network, RAN), or a wireless local area network (wireless local area networks, WLAN), etc. The communication interface 604 may be an Ethernet interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, or the like.
In a particular implementation, the device 600 may include multiple processors, such as the processor 601 and processor 605 shown in FIG. 6, as one embodiment. Each of these processors may be a single-core (single-CPU) processor or may be a multi-core (multi-CPU) processor. A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
Fig. 7 is a schematic structural diagram of an apparatus 700 according to an embodiment of the present application. The first device of fig. 2 or 4 may be implemented by the device shown in fig. 7. Referring to the schematic device architecture shown in fig. 7, a device 700 includes a master control board and one or more interface boards. The main control board is in communication connection with the interface board. The main control board, also called a main processing unit (main processing unit, MPU) or routing processing card (route processor card), comprises a CPU and a memory, and is responsible for controlling and managing the various components in the device 700, including routing computation, device management and maintenance functions. The interface board is also called a line processing unit (line processing unit, LPU) or line card (line card) for receiving and transmitting messages. In some embodiments, communication is via a bus between the master control board and the interface board or between the interface board and the interface board. In some embodiments, the interface boards communicate via a switch fabric, in which case the device 700 also includes a switch fabric communicatively coupled to the master board and the interface boards, the switch fabric configured to forward data between the interface boards, which may also be referred to as a switch fabric unit (switch fabric unit, SFU). The interface board includes a CPU, memory, forwarding engine, and Interface Card (IC), where the interface card may include one or more communication interfaces. The communication interface may be an Ethernet interface, an FE interface, a GE interface, or the like. The CPU is in communication connection with the memory, the forwarding engine and the interface card respectively. The memory is used for storing a forwarding table. The forwarding engine is configured to forward the received message based on a forwarding table stored in the memory, and if the destination address of the received message is the IP address of the device 700, send the message to the CPU of the main control board or the interface board for processing. If the destination address of the received message is not the IP address of the device 700, the forwarding table is looked up according to the destination, and if the next hop and the egress interface corresponding to the destination address are found from the forwarding table, the message is forwarded to the egress interface corresponding to the destination address. The forwarding engine may be a network processor (network processor, NP). The interface card is also called a sub-card, can be installed on the interface board, and is responsible for converting the photoelectric signal into a data frame, and forwarding the data frame to a forwarding engine for processing or an interface board CPU after performing validity check. In some embodiments, the CPU may also perform the functions of a forwarding engine, such as soft forwarding based on a general purpose CPU, so that no forwarding engine is needed in the interface board. In some embodiments, the forwarding engine may be implemented by an ASIC or field programmable gate array (field programmable gate array, FPGA). In some embodiments, the memory storing the forwarding table may also be integrated into the forwarding engine as part of the forwarding engine.
The embodiment of the application also provides a chip system, which comprises: and a processor coupled to the memory, the memory for storing programs or instructions that, when executed by the processor, cause the system-on-a-chip to implement the method of determining configuration parameters performed by the control device in the embodiments shown in fig. 2 or fig. 3.
Alternatively, the processor in the system-on-chip may be one or more. The processor may be implemented in hardware or in software. When implemented in hardware, the processor may be a logic circuit, an integrated circuit, or the like. When implemented in software, the processor may be a general purpose processor, implemented by reading software code stored in a memory. Alternatively, the memory in the system-on-chip may be one or more. The memory may be integral with the processor or separate from the processor, and the application is not limited. The memory may be a non-transitory processor, such as a ROM, which may be integrated on the same chip as the processor, or may be separately provided on different chips, and the type of memory and the manner of providing the memory and the processor are not particularly limited in the present application.
The system-on-chip may be, for example, an FPGA, an ASIC, a system-on-chip (SoC), a CPU, an NP, a digital signal processing circuit (digital signal processor, DSP), a micro-control unit (microcontroller unit, MCU), a programmable logic device (programmable logic device, PLD) or other integrated chips.
It should be understood that the steps in the above-described method embodiments may be accomplished by integrated logic circuitry in hardware in a processor or instructions in the form of software. The steps of the method disclosed in connection with the embodiments of the present application may be embodied directly in a hardware processor for execution, or in a combination of hardware and software modules in the processor for execution.
Embodiments of the present application also provide a computer-readable storage medium comprising instructions that, when run on a computer, cause the computer to perform the method of determining configuration parameters provided by the method embodiments above.
The present application also provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of determining configuration parameters provided by the method embodiments above.
The terms "first," "second," "third," "fourth" and the like in the description and in the claims and in the above drawings, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments described herein may be implemented in other sequences than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and the division of the units, for example, is merely a logic module division, and there may be additional divisions when actually implemented, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be acquired according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each module unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units described above may be implemented either in hardware or in software module units.
The integrated units, if implemented in the form of software module units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied essentially or in part or all of the technical solution or in part in the form of a software product stored in a storage medium, including instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk, etc.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the application.
Claims (26)
1. A method of determining configuration parameters, the method comprising:
obtaining a first constraint, wherein the first constraint comprises a first flow constraint, and the first flow constraint is used for constraining a flow parameter of a port of first equipment in a first time period, and the first time period is later than the current moment;
obtaining a second constraint, wherein the second constraint indicates a constraint of a second device on configuration parameters of the first device, and the second device is adjacent to the first device;
and determining first configuration information according to the first constraint and the second constraint, wherein the first configuration information comprises at least one configuration parameter and a value corresponding to each configuration parameter, and the energy consumption value of the first device configured according to the first configuration information meets energy consumption requirements.
2. The method of claim 1, wherein the determining first configuration information according to the first constraint and the second constraint comprises:
determining a third constraint according to the first constraint and the second constraint, wherein the third constraint comprises a third flow constraint, and the third flow constraint is used for constraining a flow parameter of a port of the first device in the first time period;
and determining the first configuration information according to the third constraint.
3. The method according to claim 2, wherein the method further comprises:
the third constraint is transmitted to a third device, the third device being adjacent to the first device.
4. A method according to claim 2 or 3, wherein the first device comprises a first port through which the first device is connected with a second port of the second device, the second constraint comprising a second traffic constraint for constraining a traffic parameter of the second port during the first period of time;
the determining a third constraint from the first constraint and the second constraint includes:
and when the flow parameter corresponding to the second flow constraint is larger than the flow parameter corresponding to the first flow constraint, determining the third flow constraint according to the second flow constraint, wherein the flow parameter corresponding to the third flow constraint is matched with the flow parameter corresponding to the second flow constraint.
5. The method of claim 4, wherein the first constraint further comprises a first state constraint, wherein the second constraint further comprises a second state constraint, wherein the first state constraint is used to constrain the state of the first port within the first time period to be a first state, wherein the second state constraint is used to constrain the state of the second port within the first time period to be a second state,
the determining a third constraint from the first constraint and the second constraint includes:
and when the first state is different from the second state and the first state and the second state comprise working states, determining third state constraint according to the working states, wherein the third constraint comprises the third state constraint, and the third state constraint is used for constraining the state of the first port in the first time period to be the working state.
6. The method according to claim 4 or 5, wherein the third constraint further comprises a processing constraint for constraining data processing parameters of the data processing device in the first apparatus within the first period of time and/or a heat dissipation constraint for constraining heat dissipation capacity of the heat dissipation device in the first apparatus within the first period of time.
7. The method of claim 6, wherein when the third constraint comprises the processing constraint, the determining a third constraint from the first constraint and the second constraint comprises:
determining a target processing parameter according to the third flow constraint and a processing parameter corresponding relation, wherein the processing parameter corresponding relation comprises a corresponding relation between a flow parameter of a port of the first equipment and a data processing parameter required by a data processing device of the first equipment for forwarding the flow corresponding to the flow parameter;
and determining the processing constraint according to the target processing parameter.
8. The method of claim 7, wherein when the third constraint further comprises the heat dissipation constraint, the determining a third constraint from the first constraint and the second constraint further comprises:
determining a target heat parameter according to the target processing parameter and a heat corresponding relation, wherein the heat corresponding relation comprises a corresponding relation between a data processing parameter of the data processing device and heat generated by the data processing device when the data processing device processes data according to the data processing parameter;
determining a target heat dissipation parameter according to the target heat parameter and a heat dissipation corresponding relation, wherein the heat dissipation corresponding relation comprises a corresponding relation between heat and working parameters required by the heat dissipation device when the heat needs to be dissipated;
And determining the heat dissipation constraint according to the target heat dissipation parameter.
9. The method according to any of claims 2-8, wherein the energy consumption requirement indicates that the first configuration information is the configuration information with the smallest energy consumption value among the configuration information satisfying the third constraint, and wherein the first device determining the first configuration information according to the third constraint comprises:
determining a set of configuration information, the set of configuration information comprising at least one set of configuration information satisfying the third constraint, each set of configuration information comprising the at least one configuration parameter and a value corresponding to each configuration parameter;
determining an energy consumption value corresponding to each set of configuration information in the at least one set of configuration information according to an energy consumption corresponding relation, wherein the energy consumption corresponding relation represents a corresponding relation between a value of a configuration parameter of the first equipment and an energy consumption value of the first equipment;
and determining the configuration information with the minimum corresponding energy consumption value in the at least one set of configuration information as the first configuration information.
10. The method of any of claims 1-9, wherein prior to obtaining the first constraint, the method further comprises:
and determining that the traffic of the port of the first device in the first time period meets the configuration adjustment condition.
11. The method of any of claims 1-10, wherein prior to obtaining the first constraint, the method further comprises:
and obtaining an energy consumption constraint, wherein the energy consumption constraint is used for constraining the energy consumption value of the first device in the first time period to be smaller than an energy consumption threshold value.
12. An apparatus for determining configuration parameters, the apparatus comprising:
an obtaining unit, configured to obtain a first constraint, where the first constraint includes a first flow constraint, where the first flow constraint is used to constrain a flow parameter of a port of a first device in a first period of time, where the first period of time is later than a current time; obtaining a second constraint, wherein the second constraint indicates a constraint of a second device on configuration parameters of the first device, and the second device is adjacent to the first device;
the processing unit is used for determining first configuration information according to the first constraint and the second constraint, the first configuration information comprises at least one configuration parameter and a value corresponding to each configuration parameter, and the energy consumption value of the first device configured according to the first configuration information meets energy consumption requirements.
13. The apparatus of claim 12, wherein the device comprises a plurality of sensors,
The processing unit is configured to determine a third constraint according to the first constraint and the second constraint, where the third constraint includes a third flow constraint, and the third flow constraint is configured to constrain a flow parameter of a port of the first device in the first period of time; and determining the first configuration information according to the third constraint.
14. The apparatus of claim 13, wherein the apparatus further comprises a transmitting unit;
the sending unit is configured to send the third constraint to a third device, where the third device is adjacent to the first device.
15. The apparatus of claim 13 or 14, wherein the first device comprises a first port through which the first device is connected with a second port of the second device, the second constraint comprising a second traffic constraint for constraining a traffic parameter of the second port over the first period of time;
the processing unit is configured to determine, according to the second flow constraint, the third flow constraint when the flow parameter corresponding to the second flow constraint is greater than the flow parameter corresponding to the first flow constraint, where the flow parameter corresponding to the third flow constraint is matched with the flow parameter corresponding to the second flow constraint.
16. The apparatus of claim 15, wherein the first constraint further comprises a first state constraint that constrains a state of the first port within the first time period to be a first state and the second constraint that constrains a state of the second port within the first time period to be a second state;
the processing unit is configured to determine a third state constraint according to the working state when the first state is different from the second state and the first state and the second state include the working state, where the third constraint includes the third state constraint, and the third state constraint is used to constrain a state of the first port in the first time period to be the working state.
17. The apparatus of claim 15 or 16, wherein the third constraint further comprises a processing constraint for constraining data processing parameters of the data processing device in the first device over the first period of time and/or a heat dissipation constraint for constraining heat dissipation capability of the heat dissipation device in the first device over the first period of time.
18. The apparatus of claim 17, wherein when the third constraint comprises the processing constraint, the processing unit is further configured to determine a target processing parameter according to a relationship between the third flow constraint and a processing parameter, where the processing parameter relationship comprises a relationship between a flow parameter of a port of the first device and a data processing parameter required by a data processing device of the first device to forward a flow corresponding to the flow parameter; and determining the processing constraint according to the target processing parameter.
19. The apparatus of claim 18, wherein when the third constraint further comprises the heat dissipation constraint, the processing unit is further configured to determine a target heat parameter according to the target processing parameter and a heat correspondence, the heat correspondence comprising a correspondence between a data processing parameter of the data processing device and heat generated by the data processing device when processing data according to the data processing parameter; determining a target heat dissipation parameter according to the target heat parameter and a heat dissipation corresponding relation, wherein the heat dissipation corresponding relation comprises a corresponding relation between heat and working parameters required by the heat dissipation device when the heat needs to be dissipated; and determining the heat dissipation constraint according to the target heat dissipation parameter.
20. The apparatus of any one of claims 13-19, wherein the energy consumption requirement indicates that the first configuration information is the configuration information with the smallest energy consumption value among the configuration information satisfying the third constraint,
the processing unit is configured to determine a set of configuration information, where the set of configuration information includes at least one set of configuration information that satisfies the third constraint, and each set of configuration information includes the at least one configuration parameter and a value corresponding to each configuration parameter; determining an energy consumption value corresponding to each set of configuration information in the at least one set of configuration information according to an energy consumption corresponding relation, wherein the energy consumption corresponding relation represents a corresponding relation between a value of a configuration parameter of the first equipment and an energy consumption value of the first equipment; and determining the configuration information with the minimum corresponding energy consumption value in the at least one set of configuration information as the first configuration information.
21. The device according to any one of claims 12 to 20, wherein,
the processing unit is further configured to determine that a flow of the port of the first device in the first period of time meets a configuration adjustment condition.
22. The device according to any one of claims 12-21, wherein,
The acquisition unit is further configured to acquire an energy consumption constraint, where the energy consumption constraint is used to constrain an energy consumption value of the first device in the first period to be less than an energy consumption threshold.
23. A network device comprising a memory for storing instructions and a processor for executing the instructions to cause the network device to perform the method of any of claims 1-11.
24. A network system comprising a plurality of network devices, at least one of which is adapted to implement the method of determining configuration parameters according to any of claims 1-11.
25. A computer-readable storage medium, in which a computer program is stored which, when executed by a processor, implements a method of determining configuration parameters according to any one of claims 1 to 11.
26. A computer program product, characterized in that it comprises a program or code which, when run on a computer, implements the method of determining configuration parameters according to any of claims 1 to 11.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210158607.7A CN116668207A (en) | 2022-02-21 | 2022-02-21 | Method, device, system and storage medium for determining configuration parameters |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210158607.7A CN116668207A (en) | 2022-02-21 | 2022-02-21 | Method, device, system and storage medium for determining configuration parameters |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116668207A true CN116668207A (en) | 2023-08-29 |
Family
ID=87724760
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210158607.7A Pending CN116668207A (en) | 2022-02-21 | 2022-02-21 | Method, device, system and storage medium for determining configuration parameters |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116668207A (en) |
-
2022
- 2022-02-21 CN CN202210158607.7A patent/CN116668207A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9568975B2 (en) | Power balancing to increase workload density and improve energy efficiency | |
US11616723B2 (en) | Techniques to reduce network congestion | |
Demir et al. | Ecolaser: an adaptive laser control for energy-efficient on-chip photonic interconnects | |
US10389636B2 (en) | Technologies for adaptive routing using network traffic characterization | |
US20130104128A1 (en) | Apparatus, method of managing a plurality of virtual machines, and recording medium | |
US9948567B2 (en) | System and method for dynamic rate control in Ethernet fabrics | |
US10091063B2 (en) | Technologies for directed power and performance management | |
CN104079478A (en) | Method and device of packet forwarding | |
Gelenbe et al. | Power savings in packet networks via optimised routing | |
US20240080276A1 (en) | Path selection for packet transmission | |
US20190116121A1 (en) | Techniques to manage data transmissions | |
US20140047260A1 (en) | Network management system, network management computer and network management method | |
Zhu et al. | Energy saving and load balancing for SDN based on multi-objective particle swarm optimization | |
Xie et al. | Distributed power saving for large-scale software-defined data center networks | |
CN116668207A (en) | Method, device, system and storage medium for determining configuration parameters | |
WO2021027047A1 (en) | Heterogeneous link data translation and distribution method, system and device, and storage medium | |
Zheng et al. | PowerFCT: Power optimization of data center network with flow completion time constraints | |
Baccour et al. | Achieving energy efficiency in data centers with a performance-guaranteed power aware routing | |
US20180351812A1 (en) | Technologies for dynamic bandwidth management of interconnect fabric | |
US20190094939A1 (en) | Method and apparatus for preemptively scaling transactions to minimize power virus effects | |
US20140032711A1 (en) | Bandwidth control apparatus, bandwidth control method, and bandwidth control program | |
US9716670B2 (en) | Switch, switching system, switching network chip component, and forwarding chip component | |
CN116668206A (en) | Method and device for adjusting configuration parameters of network equipment | |
WO2023185123A1 (en) | Path calculation method, apparatus and system | |
WO2023155904A1 (en) | Method and apparatus for adjusting operating state of network device, and related device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |