Path planning method and apparatus, network device, storage medium, and computer program product
Patent Information
- Application Number
- PCT/CN2026/073690
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-02-21
- Filing Date
- 2026-01-20
- Publication Date
- 2026-08-27
Smart Images

Figure CN2026073690_27082026_PF_FP_ABST
Abstract
Description
Path planning methods, devices, network equipment, storage media, and computer program products
[0001] Cross-reference to related applications
[0002] This application is based on and claims priority to Chinese Patent Application No. 202510195089.X, filed on February 21, 2025, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of communication technology, and in particular to a path planning method, apparatus, network device, storage medium, and computer program product. Background Technology
[0004] In related technologies, network energy efficiency management systems typically plan paths based on Quality of Service (QoS) parameters of transmission links, such as bandwidth, transmission latency, and packet loss rate. However, when data is transmitted through paths determined in this way, the energy consumption may be relatively high. Summary of the Invention
[0005] To address the related technical issues, embodiments of this application provide a path planning method, apparatus, network device, storage medium, and storage medium.
[0006] The technical solution of this application embodiment is implemented as follows:
[0007] This application provides a path planning method applied to a first network device, the method comprising:
[0008] Receive first information sent by a second network device, the first information including at least power consumption-related parameters of the network device of the first network, the first network representing the network managed by the first network device or the network where the second network device is located;
[0009] Send second information to the second network device to indicate the first path of the first service; the second information is determined at least based on the first information, and the energy consumption or energy utilization rate of the first path meets the first condition.
[0010] This application embodiment also provides a path planning method applied to a second network device, the method comprising:
[0011] Send the first message to the first network device; wherein,
[0012] The first information includes at least power consumption-related parameters of the network devices of the first network, wherein the first network represents the network managed by the first network device or the network where the second network device is located; the first information is used to determine the first path of the service processed by the first network, wherein the energy consumption or energy utilization rate of the first path meets the first condition.
[0013] This application also provides a path planning method applied to a third network device, the method comprising:
[0014] Receive third information sent by a second network device; and / or,
[0015] Send the fourth message to the second network device; among which,
[0016] The second network device represents the network device adjacent to the third network device; the third information and the fourth information are used to determine the first path of the service in the first network where the third network device is located, and the energy consumption or energy utilization rate of the first path meets the first condition; the third information includes at least the power consumption-related parameters of the second network device; the fourth information includes the power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
[0017] This application also provides a path planning device, including:
[0018] The first receiving unit is configured to receive first information sent by the second network device. The first information includes at least power consumption-related parameters of the network device of the first network. The first network represents the network managed by the first network device.
[0019] The first sending unit is configured to send second information to the second network device to indicate a first path of a first service; the second information is determined at least based on the first information, and the energy consumption or energy utilization rate of the first path meets a first condition.
[0020] This application also provides a path planning device, including:
[0021] The second sending unit is configured to send first information to the first network device; wherein...
[0022] The first information includes at least power consumption-related parameters of the network devices of the first network, wherein the first network represents the network managed by the first network devices; the first information is used to determine a first path of the service processed by the first network, wherein the energy consumption or energy utilization rate of the first path meets a first condition.
[0023] This application also provides a path planning device, including:
[0024] The first transceiver unit is configured to receive third information sent by the second network device; and / or, configured to send fourth information to the second network device; wherein,
[0025] The second network device represents the network device adjacent to the third network device; the third information and the fourth information are used to determine the first path of the service in the first network where the third network device is located, and the energy consumption or energy utilization rate of the first path meets the first condition; the third information includes at least the power consumption-related parameters of the second network device; the fourth information includes the power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
[0026] This application embodiment also provides a first network device, including: a first processor and a first communication interface; wherein,
[0027] The first communication interface is configured to receive first information sent by the second network device, and configured to send second information to the second network device; wherein,
[0028] The first information includes at least power consumption-related parameters of the network devices of the first network, the first network representing the network managed by the first network devices; the second information is determined at least based on the first information, the second information being used to indicate the first path of the first service, and the energy consumption or energy utilization rate of the first path meeting the first condition.
[0029] This application also provides a second network device, including: a second processor and a second communication interface; wherein,
[0030] The second communication interface is configured to send first information to the first network device; wherein,
[0031] The first information includes at least power consumption-related parameters of the network devices of the first network, wherein the first network represents the network managed by the first network devices; the first information is used to determine a first path of the service processed by the first network, wherein the energy consumption or energy utilization rate of the first path meets a first condition.
[0032] This application also provides a third network device, including: a third processor and a third communication interface; wherein,
[0033] The third communication interface is configured to receive third information sent by the second network device; and / or configured to send fourth information to the second network device; wherein,
[0034] The second network device represents the network device adjacent to the third network device; the third information and the fourth information are used to determine the first path of the service in the first network where the third network device is located, and the energy consumption or energy utilization rate of the first path meets the first condition; the third information includes at least the power consumption-related parameters of the second network device; the fourth information includes the power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
[0035] This application also provides a network device, including a processor and a memory for storing computer programs that can run on the processor.
[0036] When the processor is configured to run the computer program, it executes the steps of any of the methods described above on the first network device side, or the steps of any of the methods described above on the second network device side, or the steps of any of the methods described above on the third network device side.
[0037] This application embodiment also provides a storage medium storing a computer program thereon, wherein when the computer program is executed by a processor, it implements the steps of any method on the first network device side, or the steps of any method on the second network device side, or the steps of any method on the third network device side.
[0038] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above methods.
[0039] In the path planning method, apparatus, network device, storage medium, and storage medium provided in the embodiments of this application, each adjacent network device in the first network can synchronize the power consumption-related parameters of the network devices. The second network device can obtain the power consumption-related parameters of each network device in the first network and report them to the first network device. The first network device can determine the first path (low-power path or low-energy path) of the first service based on the power consumption-related parameters of each network device in the first network and indicate the first path of the first service to the second network device, so that the second network device can perform data transmission based on the first path of the first service. In the above scheme, the first network device has energy-aware scheduling capability, realizes network-level energy optimization, reduces the energy consumption of data transmission of the first service, and saves energy consumption of the first network. Attached Figure Description
[0040] Figure 1 is an example diagram of the path planning system architecture according to an embodiment of this application;
[0041] Figure 2 is a schematic flowchart of a path planning method according to an embodiment of this application;
[0042] Figure 3 is a schematic flowchart of another path planning method according to an embodiment of this application;
[0043] Figure 4 is an example diagram of the link TLV of TE-LSA packets within the OSPF domain according to an embodiment of this application;
[0044] Figure 5 is an example diagram of the extended IS reachability TLV in an embodiment of this application;
[0045] Figure 6 is a schematic flowchart of another path planning method according to an embodiment of this application;
[0046] Figure 7 is a schematic flowchart of the path planning method in an application embodiment of this application;
[0047] Figure 8 is a schematic diagram of a path planning device according to an embodiment of this application;
[0048] Figure 9 is a schematic diagram of another path planning device according to an embodiment of this application;
[0049] Figure 10 is a schematic diagram of another path planning device according to an embodiment of this application;
[0050] Figure 11 is a schematic diagram of the structure of the first network device according to an embodiment of this application;
[0051] Figure 12 is a schematic diagram of the structure of the second network device according to an embodiment of this application;
[0052] Figure 13 is a schematic diagram of the structure of the third network device in the embodiment of this application. Detailed Implementation
[0053] With the widespread adoption of 5G, the explosive growth of intelligent devices, the rise of short video and live streaming services, and the development of new intelligent computing services, global Internet Protocol (IP) networks are facing energy efficiency management challenges. Against the backdrop of rapidly increasing traffic, the energy consumption of core network equipment is rising exponentially. Taking IP bearer networks as an example, the power consumption of core node equipment has exceeded the 20 kilowatt (kW) threshold. Furthermore, constrained by the combined effects of the failure of Moore's Law and the doubling of service density, the overall energy efficiency ratio (W / Gbps) deteriorates by approximately 100% every 36 months. This positive correlation between energy consumption and network expansion makes green network construction a key area for operators to achieve their "dual-carbon" goals.
[0054] Currently, the network energy efficiency management system is still in its initial stage. In terms of energy consumption monitoring, a basic energy consumption acquisition system has been deployed in the existing network, which can realize device-level power consumption data statistics. In terms of path calculation, it mainly relies on link bandwidth, transmission latency, packet loss rate, etc., and does not yet support SRv6 routing based on energy consumption parameters. It is still in the stage of "energy consumption imperceptible". SRv6 is a segment routing IPv6 based on Internet Protocol Version 6 (IPv6).
[0055] The current network energy efficiency management system has the following shortcomings: 1) The monitoring system has a single dimension, only supporting coarse-grained device-level total power consumption collection and lacking board / port-level energy consumption awareness capabilities; 2) The intelligent routing algorithm is still based on the traditional Quality of Service (QoS) dimension, using path calculation models based on Interior Gateway Protocol (IGP) Metric, link bandwidth utilization, and transmission latency, and has not yet established a multi-objective optimization mechanism for energy consumption parameters and network performance; 3) The control plane lacks energy-aware scheduling capabilities, and the SRv6 policy deployed in the current network has not yet introduced an energy cost function, resulting in decision blind spots in network-level energy efficiency optimization.
[0056] Based on this, in various embodiments of this application, adjacent network devices in the first network can synchronize power consumption-related parameters of the network devices. The second network device can obtain power consumption-related parameters of each network device in the first network and report them to the first network device. The first network device can determine the first path (low-power path or low-energy path) of the first service based on the power consumption-related parameters of each network device in the first network and indicate the first path of the first service to the second network device, so that the second network device can perform data transmission based on the first path of the first service. In the above scheme, the first network device has energy-aware scheduling capability, realizes network-level energy optimization, reduces the energy consumption of data transmission of the first service, and saves energy consumption of the first network.
[0057] The present application will now be described in further detail with reference to the accompanying drawings and embodiments.
[0058] First, to better illustrate the path planning method provided in the embodiments of this application, Figure 1 is provided as an example of the path planning system architecture of the embodiments of this application.
[0059] As shown in Figure 1, the path planning system includes at least one first network device, one or more second network devices, multiple third network devices, and one or more fourth network devices. The second, third, and fourth network devices are located in the first network, which can be understood as a backbone network, an energy-saving network, or a Software Defined Network (SDN). The second and third network devices are neighbors; that is, two network devices directly connected (wired or communication-connected) are neighbors. The fourth network devices include network devices that are directly connected (wired or communication-connected) or indirectly connected to the third network devices.
[0060] In the first network, each network device can collect power consumption data through hardware sensors deployed at ports and / or boards, or through estimation by the Central Processing Unit (CPU), and calculate relevant parameters on the CPU. It periodically notifies its neighbors (adjacent network devices) via the Interior Gateway Protocol (IGP) so that the second network device can update its Link State Database (LSDB) and obtain first information from the LSDB. The third network device can periodically notify the second and fourth network devices of its power consumption-related parameters. The fourth network device can periodically notify the third network device of its power consumption-related parameters. The fourth network device includes at least its neighbors and may also include network devices indirectly connected to the third network device. The third network device can periodically receive the power consumption-related parameters from the fourth network device and periodically send fourth information to the second network device, which includes the power consumption-related parameters of the third and / or fourth network devices. The second network device can periodically send third information to the third network device, which includes at least the power consumption-related parameters of the second network device.
[0061] The second network device is used to send first information to the first network device; the first network device is used to receive the first information and send second information to the second network device; the specific implementation process is described in detail below. The first information includes at least power consumption-related parameters of the network devices of the first network, and the first network represents the network managed by the first network device or the network where the second network device is located; the second information is determined at least based on the first information and is used to indicate the first path of the first service, wherein the energy consumption or energy utilization rate of the first path meets the first condition.
[0062] This application provides a path planning method applied to a first network device, which includes, but is not limited to, one or more of the following: a controller, a router, a gateway, a device deployed with a network management system or a centralized network management unit, and the controller includes, but is not limited to, a control plane controller or an SDN controller. As shown in Figure 2, the method includes:
[0063] Step 201: Receive the first information sent by the second network device.
[0064] The first information includes at least power consumption-related parameters of the network devices of the first network, whereby the first network represents the network managed by the first network device or the network where the second network device is located.
[0065] Here, the second network device can periodically or at set time intervals send first information to the first network device, or send the full first information or updated first information to the first network device when the power consumption-related parameters of any network device in the first network change. The first information includes at least some or all of the power consumption-related parameters of the network devices in the first network. For example, the full first information includes the power consumption-related parameters of all network devices in the first network, and the updated first information includes the power consumption-related parameters of some or all network devices in the first network. Power consumption-related parameters can be described as energy consumption-related parameters or energy-related parameters. The number of second network devices can be one or more. The second network devices can be understood as edge gateways and / or edge devices and / or edge routers of the first network, and the first network can be understood as a backbone network, an energy-saving network, or SDN, etc. The first network includes one or more second network devices and one or more network devices directly or indirectly connected to the second network devices.
[0066] It should be noted that the second network device can send the first information to the first network device through BGP-LS sessions and / or PCEP sessions and / or telemetry. BGP-LS (Border Gateway Protocol-Link State) is a protocol used to distribute link state information in a network. It transmits network topology information through the Border Gateway Protocol (BGP) so that the control plane can obtain a detailed view of the entire network. BGP-LS is mainly used in SDN and Traffic Engineering (TE) scenarios to help the network controller make better path selection decisions. PCEP (Path Computation Element Communication Protocol) is a protocol used to exchange path computation requests and results between Path Computation Elements (PCEs) and Path Computation Clients (PCCs). Telemetry is a technology for collecting and transmitting data from network devices in real time. It can be used to monitor and analyze the operating status or performance of network devices to ensure continuous optimization of path computation and quality of service.
[0067] In one embodiment, the first information includes at least one or more of the following:
[0068] Device-level power consumption related parameters;
[0069] Power consumption parameters at the board level;
[0070] Power consumption-related parameters at the port level.
[0071] In this embodiment, a new power consumption sensing capability at the board level and / or port level has been added, which can realize accurate monitoring of the power consumption of network devices at different levels or granularities, thereby enabling multi-dimensional power consumption monitoring of the first network.
[0072] In order to enable multi-dimensional power consumption monitoring of the first network, in one embodiment, the power consumption-related parameters include one or more of the following:
[0073] power;
[0074] Throughput;
[0075] The first parameter represents the power consumption of the network device per unit forwarding rate;
[0076] The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate.
[0077] The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
[0078] Here, power represents the current power or power consumption of a network device, measured in watts (W). Throughput represents the current throughput or forwarding rate of a network device, measured in Gbps.
[0079] The first parameter can be described as the first indicator, power consumption-transmission rate ratio, or the ratio of power consumption to throughput; the first parameter refers to the power consumption required by the network device per unit forwarding rate, in W / Gbps.
[0080] The second parameter can be described as a second indicator, the power consumption-forwarding rate change rate, or the ratio of the change in power consumption to the change in throughput. The second parameter refers to the increase in power consumption caused by each additional unit of forwarding rate, measured in ΔW / Δbps. Since the relationship between power consumption and throughput changes in network devices is generally non-linear, the second parameter, compared to the first parameter, more accurately reflects the relationship between the current load and energy consumption status of the network device.
[0081] The third parameter can be described as a third metric, an energy efficiency ratio coefficient, a dynamic power ratio, or a ratio of current power consumption to static power consumption. The third parameter can evaluate the performance of network devices in different operating states from idle to peak throughput. The third parameter can be used... Wc represents the current or peak throughput of the network device, while W0 represents the idle throughput of the network device or the throughput of the network device when it is idle. The closer a value is to 1, the smaller the static power ratio of the network device and the higher its energy efficiency.
[0082] It should be noted that power consumption-related parameters at any level (device level, board level, port level) can include one or more of the following: power, throughput, first parameter, second parameter, and third parameter.
[0083] Step 202: Send second information to the second network device to indicate the first path of the first service.
[0084] Wherein, the second information is determined at least by the first information, and the energy consumption or energy utilization rate of the first path satisfies the first condition.
[0085] Here, the first network device performs path planning based on at least the first information to determine the first path of the first service; it generates second information based on the first path of the first service and sends the second information to the second network device. The second information is used to indicate the first path of the first service. The first path can be described as a low-power path or a low-energy-consumption path, and the first condition can include, but is not limited to, the lowest energy consumption and / or the highest energy utilization rate; energy utilization rate can be described as energy efficiency. The first condition can be understood as the condition that the planned path needs to meet. The first condition can be pre-configured or set according to actual needs. The first service generally refers to any service whose data passes through the first network or any service processed by the first network.
[0086] It should be noted that the second piece of information can be carried in the SRv6 policy.
[0087] To achieve network-level energy optimization for the first network, in one embodiment, before sending the second information to the second network device, the method further includes:
[0088] Determine the second information based on the first information; or
[0089] The second information is determined based on the first information and the forwarding path of the first service.
[0090] Here, the first network device can perform path planning based on the first information to determine the first path of the first service, thereby obtaining the second information; or it can perform path planning based on the first information and the forwarding path of the second service to determine the first path of the first service, thereby obtaining the second information.
[0091] The implementation method of the first network device determining the second information based on the first information may include: the first network device obtaining power consumption-related parameters of the first network device from the first information; determining a path whose energy consumption or energy utilization rate meets the first condition based on the ingress node and egress node of the first service and the power consumption-related parameters of the first network device, thus obtaining the first path of the first service; and generating the second information based on the first path of the first service. The first path includes relevant information of the ingress node of the first service (e.g., one or more of the ingress node's identifier, port, and board) and relevant information of the egress node. The ingress node can be understood as the source node, and the egress node can be understood as the destination node.
[0092] The implementation method of the first network device determining the second information based on the first information may also include: analyzing the relationship between the energy consumption, constraints, and traffic of the first service of the first network based on the first information, and determining the first path of the first service; the constraints are, but are not limited to, one or more of the following: minimizing the increase in energy consumption, bypassing network devices with energy consumption greater than a first threshold, bypassing boards with energy consumption greater than a second threshold, and bypassing ports with energy consumption greater than a third threshold. The constraints are also called path planning principles or path calculation principles.
[0093] The implementation method of the first network device determining the second information based on the forwarding path of the first information and the first service may include: determining the power consumption-related parameters of all network devices used for forwarding the data of the first service among the network devices included in the first network, based on the first information and the forwarding path of the first service; determining the path whose energy consumption or energy utilization rate meets the first condition based on the determined power consumption-related parameters of all network devices, thus obtaining the first path of the first service; and generating the second information based on the first path of the first service. It should be noted that, in determining the power consumption-related parameters of all network devices used for forwarding the data of the first service, the relationship between the energy consumption, constraints, and traffic of the first service in the first network can also be analyzed based on the power consumption-related parameters of all network devices used for forwarding the data of the first service, thereby determining the first path of the first service. The forwarding path of the first service can also be understood as the transmission path of the traffic of the first service, used to guide the forwarding of the data of the first service; the forwarding path of the first service can be determined or obtained based on the routing table and / or forwarding table of the first service, or it can be directly provided by other devices. The forwarding path of the first service may include relevant information of each network device through which the data of the first service passes, including but not limited to one or more of the network device's identifier, address information, port, and board.
[0094] To achieve network-level energy optimization of the first network and improve the accuracy of the determined first path for the first service, in one embodiment, before sending the second information to the second network device, the method further includes:
[0095] Based on the first information, a third piece of information is determined, wherein the third information indicates the energy consumption map of the first network;
[0096] The second information is determined based on the third information, or the second information is determined based on the third information and the forwarding path of the first service.
[0097] Here, the first network device generates an energy consumption map of the first network based on the power consumption-related parameters of each network device in the first network, which are included in the first information, thereby obtaining the third information. The energy consumption map of the first network includes the energy consumption or power consumption related to each network device in the first network, such as the device-level power consumption of the network device, and / or the power consumption of each port of the network device, and / or the power consumption of each board of the network device.
[0098] Given the third piece of information, the first network device can determine, based on the third piece of information, the path in which the energy consumption or energy utilization rate of the first service meets the first condition, thus obtaining the first path of the first service; and generate second information based on the first path of the first service. For example, the first path of the first service can be determined based on the ingress and egress nodes of the first service, as well as based on the third piece of information and the first condition. Specifically, the first path of the first service can be obtained by determining, based on the third piece of information, as well as based on the ingress and egress nodes of the first service, the path in which the energy consumption or energy utilization rate meets the first condition.
[0099] Given the third information, the first network device can further determine the first path of the first service based on the third information and the forwarding path of the first service; and generate second information based on the first path of the first service. For example, based on the forwarding path of the first service, the relevant energy consumption of all network devices used to forward data of the first service is determined in the energy consumption map indicated by the third information; based on the determined relevant energy consumption of all network devices, the path whose energy consumption or energy utilization rate meets the first condition is determined, thus obtaining the first path of the first service.
[0100] It should be noted that, in the above embodiments, determining the second information based on the first information may include determining the third information based on the first information, and determining the second information based on the third information. Determining the second information based on the first information and the forwarding path of the first service may include determining the third information based on the first information, and determining the second information based on the third information and the forwarding path of the first service.
[0101] To improve the efficiency of determining the first path of the first service, in one embodiment, the third information includes the topology of the first network and power consumption-related parameters of one or more layers of each network device.
[0102] Here, the power consumption-related parameters of one or more layers of the network device in the third information correspond to the power consumption-related parameters of the network device included in the first information. For example, if the first information includes power consumption-related parameters of one layer of the network device in the first network, the third information includes power consumption-related parameters of that layer of the network device. If the first information includes power consumption-related parameters of multiple layers of the network device in the first network, the third information includes power consumption-related parameters of the corresponding multiple layers of the network device. One or more layers include one or more of the following: device level, board level, and port level.
[0103] To accurately calculate the energy consumption of the relevant path of the first service, thereby maximizing energy savings in the first network, in one embodiment, before sending the second information to the second network device, the method further includes:
[0104] A first function is generated based on the first information, or a first function is generated based on the first information and the forwarding path of the first service; the first function is used to calculate the sum of the energy consumption of the network devices related to the first service, or to calculate the sum of the energy consumption and quality of service (QoS) of the network devices related to the first service.
[0105] Based on the first information and the first function, the first path of the first service is determined.
[0106] Here, the first network device can generate a first function based on the layer and / or type of the power consumption-related parameters of each network device in the first network, which is included in the first information. The number of first functions can be one or more. Based on the first information and the first function, a first path for the first service is determined. For example, based on the ingress and egress nodes of the first service and the topology of the first network, all second paths for the first service are determined. A second path can be understood as a data transmission path or a forwarding path, and each second path includes at least the ingress and egress nodes of the first service. Based on the first information and all second paths of the first service, the power consumption-related parameters of each network device on each second path of the first service are determined. For each second path of the first service, the power consumption-related parameters of each network device on the second path of the first service are substituted into the first function to calculate the value of the first function. From the values of all the first functions, the second path that satisfies the first condition is determined, thus obtaining the first path of the first service. It should be noted that the second path for the first service can also be determined based on the first information and constraints, as well as the entry and exit nodes of the first service. Constraints include, but are not limited to, one or more of the following: minimizing energy consumption increase, bypassing network devices with energy consumption exceeding a first threshold, bypassing boards with energy consumption exceeding a second threshold, and bypassing ports with energy consumption exceeding a third threshold. These constraints are also known as path planning principles or path calculation principles.
[0107] The first network device can also determine all network devices related to the first service in the first network based on the forwarding path of the first service; generate a first function based on all network devices related to the first service, and the layer and / or type of parameters related to each network device in the first network indicated by the first information; substitute the power consumption related parameters of each network device on the forwarding path of the first service into the first function to calculate the value of the first function; determine the second path that satisfies the first condition from all the values of the first function, and obtain the first path of the first service. It should be noted that the first network device can also generate the first function based on the constraints and all network devices related to the first service, and the layer and / or type of parameters related to each network device in the first network indicated by the first information.
[0108] For example, if the first information includes power consumption-related parameters at the port level of network devices in the first network, the first function is used for one or more of the following:
[0109] The function is used to calculate the minimum sum of the power of all network device ports traversed by the forwarding path of the first service. For example, the first function can be expressed as: V represents any network device, V∈path represents a network device V being a network device on the service forwarding path, P port(V) is a power-related function or constraint function that characterizes the ports of any network device V;
[0110] The minimum value of the sum of the first parameters of the ports of all network devices traversed by the forwarding path of the first service is used to calculate the first function. For example, the first function can be expressed as: A function or constraint function characterizing the first parameter of the port of any network device V;
[0111] The function is used to calculate the minimum sum of the second parameters of all network devices' ports traversed by the forwarding path of the first service. For example, the first function can be expressed as: φ port (V) is a function or constraint function that characterizes the second parameter of the port of any network device V;
[0112] The function is used to calculate the minimum sum of the third parameters of all network devices' ports traversed by the forwarding path of the first service. For example, the first function can be expressed as: ρ port (V) is a function or constraint function that characterizes the third parameter of the port of any network device V;
[0113] The function is used to calculate the minimum sum of all power consumption-related parameters of all network device ports traversed by the forwarding path of the first service. For example, the first function can be expressed as: Among them, α, β, θ and γ are all adjustable parameters used to balance power, the first parameter, the second parameter and the third parameter, and the sum of α, β, θ and γ is 1;
[0114] The minimum value is calculated for all power consumption-related parameters and QoS parameters of all network devices traversed by the forwarding path based on the first service. For example, the first function can be expressed as follows: Where, Φ muti (V) represents the energy consumption-related constraint function. It can be equal to Φ muti ; Characterizing bandwidth-related constraint functions, The first function represents the constraint function related to latency; ε, η, and σ are all adjustable parameters used to balance energy consumption, bandwidth, and latency, and the sum of ε, η, and σ is 1. It should be noted that the first function may also include constraint functions for other QoS parameters, which is not restricted here.
[0115] To improve the flexibility in determining the first path of the first service, in one embodiment, the first condition includes at least one or more of the following:
[0116] The sum of the power consumption-related parameters of one or more layers of all network devices processing the same service is minimized;
[0117] The sum of the power consumption-related parameters of one or more layers of all network devices on the forwarding path of the same service is minimized;
[0118] Minimizes energy consumption increase;
[0119] Bypass network devices whose power consumption exceeds the first threshold;
[0120] Bypass boards whose power consumption exceeds the second threshold;
[0121] Bypass ports whose energy consumption exceeds the third threshold.
[0122] Here, the first path of the first business must satisfy at least one or more of the above conditions.
[0123] To enable path planning based on richer information and improve the flexibility and accuracy of determining the first path for the first service, in one embodiment, the first information further includes QoS parameters of the network devices of the first network, and the first condition further includes one or more of the following:
[0124] The first value satisfies the second condition, and the first value is determined based on the QoS parameter values of all network devices processing the same service.
[0125] The second value satisfies the third condition, and the second value is determined based on the QoS parameter values of all network devices on the forwarding path of the same service.
[0126] Here, QoS parameters include, but are not limited to, one or more of bandwidth, latency, and packet loss rate. The first value satisfies the second condition, including but not limited to: the sum of the QoS parameter values of all network devices processing the same service is the smallest, and / or, the sum of the QoS parameter values of all network devices processing the same service is less than or equal to the fourth threshold; the fourth threshold can be a pre-configured fixed value or can be set according to actual needs.
[0127] The second value satisfies the third condition, including but not limited to: the sum of the QoS parameter values of all network devices on the forwarding path of the same service is the smallest, and / or the sum of the QoS parameter values of all network devices on the forwarding path of the same service is less than or equal to the fifth threshold; the fifth threshold can be a pre-configured fixed value or can be set according to actual needs.
[0128] It should be noted that during the calculation of the first and second values, the QoS parameters of the network devices can be preprocessed or transformed before the summation operation. For example, the QoS parameters of each network device can be expanded, reduced, or normalized before the summation operation.
[0129] Correspondingly, this application also provides a path planning method applied to a second network device, which includes, but is not limited to, one or more of the following: an edge gateway, an edge device, and an edge router. As shown in Figure 3, the method includes:
[0130] Step 301: Send the first information to the first network device.
[0131] The first information includes at least power consumption-related parameters of the network devices of the first network, wherein the first network represents the network managed by the first network device or the network where the second network device is located; the first information is used to determine the first path of the service processed by the first network, wherein the energy consumption or energy utilization rate of the first path meets the first condition.
[0132] Here, the second network device receives the first information and can periodically or at a set time interval send the first information to the first network device. Alternatively, it can send the first information to at least the first network device if any power consumption-related parameters of any network device in the first network change. The second network device can send the first information to the first network device via BGP-LS sessions and / or PCEP sessions and / or telemetry.
[0133] It should be noted that the second network device can collect power consumption data through hardware sensors deployed at ports and / or boards, or through CPU estimation, and then calculate the relevant parameters in the CPU to obtain the power consumption parameters of the second network device.
[0134] Each network device in the first network can collect power consumption-related parameters, and adjacent network devices in the first network can synchronize these parameters to achieve power consumption-related data collection. Based on this, in one embodiment, before sending the first information to the first network device, the method further includes one or more of the following:
[0135] Send third information to a third network device, the third network device representing a network device adjacent to the second network device, the third information including at least power consumption-related parameters of the second network device;
[0136] The system receives fourth information sent by a third network device, which is a network device adjacent to the second network device. The fourth information includes power consumption-related parameters of the third network device and / or the fourth network device. The fourth network device is directly or indirectly connected to the third network device.
[0137] Here, since each network device in the first network can collect power consumption data through hardware sensors deployed at ports and / or boards, or through CPU estimation, and the CPU calculates relevant parameters and periodically announces this data to its neighbors via IGP, the second network device can periodically send third information to the third network device via IGP. The third network device periodically announces fourth information to the second network device. If the third network device's neighbors do not include the fourth network device, the fourth information only includes power consumption-related parameters of the third network device. If the third network device's neighbors include the fourth network device, the fourth information includes power consumption-related parameters of both the third and / or the fourth network device. Specifically, the third network device can periodically announce its power consumption-related parameters to both the second and fourth network devices, and the fourth network device can periodically announce its power consumption-related parameters to the third network device. The fourth network device includes at least the third network device's neighbors and may also include network devices indirectly connected to the third network device. The third network device receives the power consumption-related parameters of the fourth network device and periodically sends fourth information to the second network device.
[0138] It should be noted that the third network device can be understood as the neighbor of the second network device, that is, the second network device is adjacent to or directly connected to the third network device (wired connection, communication connection). The fourth network device is adjacent to or directly connected to the third network device.
[0139] In one embodiment, the method further includes:
[0140] Store the third information and / or the fourth information in the LSDB of the first network; and / or
[0141] The first information is obtained from the LSDB of the first network.
[0142] Here, when the first network device obtains the third information, it can store the third information in the LSDB of the first network, thereby updating the power consumption-related parameters of the second network device stored in the LSDB; and / or, when the first network device obtains the fourth information, it can store the fourth information in the LSDB of the first network, thereby updating the power consumption-related parameters of the third network device and / or the fourth network device stored in the LSDB.
[0143] It should be noted that, if other network devices in the first network support writing data to the LSDB of the first network, the third network device and / or the fourth network device can store the fourth information in the LSDB of the first network; other network devices in the first network refer to network devices in the first network other than the second network device.
[0144] In this embodiment of the application, the power consumption-related parameters of each network device in the first network can be uniformly managed through the LSDB of the first network. The first network device can obtain the power consumption-related parameters of each network device in the first network from the LSDB, which improves the convenience and efficiency of obtaining the first information.
[0145] To facilitate the identification of power-related parameters by various network devices in the first network and improve the efficiency of acquiring power-related parameters, in one embodiment, the third information and / or the fourth information are encapsulated in the first TLV (Type-Length-Value).
[0146] Here, considering that the third and / or fourth information is sent via IGP, the first TLV can be the TLV of the relevant IGP message, which includes, but is not limited to, one or more of the following:
[0147] The Open Shortest Path First (OSPF) protocol is used for Link State Advertisement (LSA) messages in intra-area traffic engineering (TE).
[0148] Link State (LSP) messages in the Intermediate System to Intermediate System (IS-IS) protocol. IS-IS is an interior gateway protocol. PDU stands for Protocol Data Unit, and LSP is used to exchange link state information.
[0149] The first TLV can be the link TLV of an OSPF intra-area TE-LSA message or the sub-TLV of the link TLV (type 2), or it can be the extended IS reachability TLV (type 22, i.e., TLV22).
[0150] To achieve accurate monitoring of the energy efficiency of network devices, in one embodiment,
[0151] The type field of the first TLV is used to describe the type of power consumption related parameters;
[0152] The numeric fields of the first TLV include one or more of the following:
[0153] The first identifier bit is used to indicate the level of power consumption-related parameters;
[0154] The second identifier bit is used to indicate whether the power carried by the first TLV is the current power or the static power;
[0155] The third identifier is used to indicate the measurement interval of power consumption-related parameters.
[0156] Here, the type field of the first TLV can occupy 16 bits to define the type of power consumption related parameters carried by the first TLV. The type includes one or more of the following: power, throughput, first parameter, second parameter, and third parameter.
[0157] The length field of the first TLV can occupy 16 bits and is used to identify the length of the first TLV.
[0158] The Value field of the first TLV includes one or more of a first identifier, a second identifier, and a third identifier. To achieve accurate monitoring of the energy efficiency of network devices, when a network device reports power consumption-related parameters through the first TLV, it can use the first identifier (e.g., L) to distinguish the level to which the parameter belongs, i.e., device-level, board-level, or port-level parameters; it can also use the second identifier to distinguish whether the power carried by the first TLV is current power consumption (dynamic power) or static power; when the power consumption-related parameters include one or more of the first, second, and third parameters, the third identifier can also indicate the measurement interval of power consumption and throughput-related data, for example, the measurement interval of power consumption and throughput for the first parameter, and the measurement interval of power consumption change and throughput change for the second parameter.
[0159] Figure 4 shows the link TLV of an OSPF intra-area TE-LSA message, and Figure 5 shows an example of an extended IS reachability TLV. The first identifier can be L in Figure 4 and Figure 5, the second identifier can be F in Figure 4 and Figure 5, and the third identifier can be TIME in Figure 4 and Figure 5.
[0160] In order to facilitate the first network device to identify the first information and improve the efficiency of obtaining the first information, in one embodiment, the first information is encapsulated in a second TLV.
[0161] Here, since the second network device can send the first information to the first network device through one or more of BGP-LS sessions, PCEP sessions, and telemetry, the first information can be encapsulated in the TLV of the BGP-LS message and / or PCEP message. The second TLV can be the Link Attribute TLV in the BGP-LS message, or it can be the Sub-TLV in the Link_TLV of the PCEP message, such as the Green Metric Sub-TLV.
[0162] To achieve accurate monitoring of the energy efficiency of network devices, in one embodiment,
[0163] The type field of the second TLV is used to describe the type of power consumption related parameters;
[0164] The numeric fields of the second TLV include one or more of the following:
[0165] The fourth flag is used to indicate the level of power consumption-related parameters;
[0166] The fifth identifier bit is used to indicate whether the power carried by the second TLV is the current power or the static power;
[0167] The sixth flag bit is used to indicate the measurement interval for power consumption-related parameters.
[0168] Here, the content carried by the second TLV corresponds one-to-one with the content carried by the first TLV.
[0169] In the second TLV, the type field can take values from 1 to 5, corresponding to power, throughput, the first parameter, the second parameter, and the third parameter, respectively. For example, as shown in Table 1.
[0170] Table 1
[0171] To achieve accurate monitoring of the power consumption of network devices, in one embodiment, the first information includes at least one or more of the following:
[0172] Device-level power consumption related parameters;
[0173] Power consumption parameters at the board level;
[0174] Power consumption-related parameters at the port level.
[0175] In order to enable multi-dimensional power consumption monitoring of various network devices in the first network, in one embodiment, power consumption-related parameters include one or more of the following:
[0176] power;
[0177] Throughput;
[0178] The first parameter represents the power consumption of the network device per unit forwarding rate;
[0179] The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate.
[0180] The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
[0181] The first information may also include the QoS parameters of the network devices in the first network.
[0182] It should be noted that the PCEP link state extension aims to allow the PCEP to directly carry link state information (QoS parameters, such as bandwidth, latency, packet loss rate, etc.), enabling the PCE to perform path calculation based on richer network conditions. When responding to the PCReq message based on the received link state information, the PCE uses the parameters in the link state (LINK_STATE) object (such as power-related parameters and QoS parameters) to perform constrained path calculation. The PCReq message is used to send a path calculation request to the PCE.
[0183] This application also provides a path planning method applied to a third network device, which includes, but is not limited to, one or more of the following: an edge device (PE, provider edge), a router within a domain, and a gateway. As shown in Figure 6, the method includes:
[0184] Step 601: Receive the third information sent by the second network device; and / or send the fourth information to the second network device.
[0185] Wherein, the second network device represents the network device adjacent to the third network device; the third information and the fourth information are used to determine the first path of the service in the first network where the third network device is located, and the energy consumption or energy utilization rate of the first path meets the first condition; the third information includes at least the power consumption-related parameters of the second network device; the fourth information includes the power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
[0186] Here, the third network device can receive third information periodically sent by the second network device, and / or periodically send fourth information to the second network device.
[0187] It should be noted that the third network device can collect power consumption data through hardware sensors deployed at ports and / or boards, or through methods such as CPU estimation. The CPU then calculates the relevant parameters to obtain the power consumption-related parameters of the third network device. The third network device can periodically notify the second and fourth network devices of its power consumption-related parameters, and the fourth network device can periodically notify the third network device of its power consumption-related parameters. The fourth network device includes at least the third network device's neighbors and may also include network devices indirectly connected to the third network device.
[0188] Before sending the fourth information to the second network device, it is necessary to obtain the fourth information first. Therefore, in one embodiment, the method further includes:
[0189] Obtain the fourth piece of information.
[0190] In the first network, each network device can collect power consumption-related parameters, and adjacent network devices in the first network can synchronize these parameters to achieve power consumption-related data collection. Based on this, in one embodiment, obtaining the fourth information includes one or more of the following:
[0191] Collect fifth information, which represents power consumption-related parameters of the third network device;
[0192] The system receives a sixth message sent by the fourth network device, the sixth message representing power consumption-related parameters of the fourth network device.
[0193] To improve the accuracy of power consumption-related parameters of network devices, adjacent network devices in the first network can synchronize their respective power consumption-related parameters. Based on this, in one embodiment, the method further includes:
[0194] The fifth message is sent to the fourth network device.
[0195] Here, the third network device can send the fifth information to the fourth network device after collecting the fifth information. For example, the fifth information can be sent to the fourth network device that is directly connected to the third network device, or the fifth information can be sent to the fourth network device through the network device that is directly connected to the third network device.
[0196] To facilitate the identification of power-related parameters by various network devices in the first network and improve the efficiency of acquiring power-related parameters, in one embodiment, the third information and / or the fourth information are encapsulated in a first TLV.
[0197] To achieve accurate monitoring of the energy efficiency of network devices, in one embodiment,
[0198] The type field of the first TLV is used to describe the type of power consumption related parameters;
[0199] The numeric fields of the first TLV include one or more of the following:
[0200] The first identifier bit is used to indicate the level of power consumption-related parameters;
[0201] The second identifier bit is used to indicate whether the power carried by the first TLV is the current power or the static power;
[0202] The third identifier is used to indicate the measurement interval of power consumption-related parameters.
[0203] To achieve accurate monitoring of the power consumption of network devices and to implement multi-dimensional power consumption monitoring of network devices in the first network, in one embodiment, power consumption-related parameters include one or more of the following:
[0204] Device-level power consumption related parameters;
[0205] Power consumption parameters at the board level;
[0206] Power consumption-related parameters at the port level.
[0207] To achieve accurate monitoring of the power consumption of network devices, in one embodiment, power consumption-related parameters include one or more of the following:
[0208] power;
[0209] Throughput;
[0210] The first parameter represents the power consumption of the network device per unit forwarding rate;
[0211] The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate.
[0212] The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
[0213] The following section provides a more detailed description of this application with reference to application examples.
[0214] In Figure 7, the controller corresponds to the first network device mentioned above, nodes A and B correspond to the second network device mentioned above, and PE1 to PE6 correspond to the third and fourth network devices mentioned above. Nodes A, B, and PE1 to PE6 are located in the first network (e.g., the backbone network) and are all backbone nodes. Nodes A and B can be understood as repeaters or edge gateways, and can be configured to send power consumption-related parameters of the network devices to the controller. As shown in Figure 7, the path planning method includes the following steps:
[0215] Step 1: Node A, Node B, and PE1 to PE6 all advertise the power consumption-related parameters of the network devices to their neighbors through IPG.
[0216] Here, the power consumption-related parameters of nodes A, B, and PE1 to PE6 can be obtained through IGP (e.g., OSPF, IS-IS) flooding network devices.
[0217] In one embodiment, power consumption-related parameters are encapsulated in a first TLV.
[0218] The type field of the first TLV is used to describe the type of power consumption related parameters;
[0219] The numeric fields of the first TLV include one or more of the following:
[0220] The first identifier bit is used to indicate the level of power consumption-related parameters;
[0221] The second identifier bit is used to indicate whether the power carried by the first TLV is the current power or the static power;
[0222] The third identifier is used to indicate the measurement interval of power consumption-related parameters.
[0223] Step 2: Node A and / or Node B send the first message to the controller.
[0224] Here, node A and / or node B can summarize the power consumption-related parameters received from each network device and report the summarized power consumption-related parameters to the controller, for example, by reporting the summarized power consumption-related parameters to the controller through BGP-LS messages and / or PCEP messages.
[0225] Node A and / or Node B may also store the power consumption-related parameters of the received network devices into the LSDB of the first network, obtain the first information from the LSDB, and report the obtained first information to the controller.
[0226] In practical applications, node A and / or node B can convert the power consumption-related parameters of each network device in the first network into BGP-LS Network Layer Reachability Information (NLRI) or PCEP PCRpt messages and report them to the controller.
[0227] In one embodiment, the first information includes at least one or more of the following:
[0228] Device-level power consumption related parameters;
[0229] Power consumption parameters at the board level;
[0230] Power consumption-related parameters at the port level.
[0231] The power consumption-related parameters include one or more of the following:
[0232] power;
[0233] Throughput;
[0234] The first parameter represents the power consumption of the network device per unit forwarding rate;
[0235] The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate.
[0236] The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
[0237] In one embodiment, the first information is encapsulated in a second TLV.
[0238] The type field of the second TLV is used to describe the type of power consumption-related parameters; the value field of the second TLV includes one or more of the following:
[0239] The fourth flag is used to indicate the level of power consumption-related parameters;
[0240] The fifth identifier bit is used to indicate whether the power carried by the second TLV is the current power or the static power;
[0241] The sixth flag bit is used to indicate the measurement interval for power consumption-related parameters.
[0242] Step 3: The controller receives the first information and sends the second information to node A and / or node B.
[0243] Here, the controller can determine the third information based on the first information, determine the second information based on the third information, or determine the second information based on the third information and the forwarding path of the first service; send the second information to node A and / or node B. The second information can be an SRv6 Policy, which carries relevant information about the first path of the first service.
[0244] The third information includes the topology of the first network and power consumption-related parameters of one or more layers of each network device.
[0245] In practical applications, the controller can continuously monitor the energy consumption of each network device based on the energy consumption map of the first network indicated by the third information. By analyzing the relationship between the energy consumption, constraints and traffic of the first service of the first network, the controller can determine the first path of the first service and generate second information based on the first path of the first service.
[0246] The constraints include, but are not limited to, one or more of the following:
[0247] The sum of the power consumption-related parameters of one or more layers of all network devices processing the same service is minimized;
[0248] The sum of the power consumption-related parameters of one or more layers of all network devices on the forwarding path of the same service is minimized;
[0249] Minimizes energy consumption increase;
[0250] Bypass network devices whose power consumption exceeds the first threshold;
[0251] Bypass boards whose power consumption exceeds the second threshold;
[0252] Bypass ports whose energy consumption exceeds the third threshold.
[0253] In one embodiment, the first information further includes QoS parameters of the network devices of the first network, and the constraints may also include one or more of the following:
[0254] The first value satisfies the second condition, and the first value is determined based on the QoS parameter values of all network devices processing the same service.
[0255] The second value satisfies the third condition, and the second value is determined based on the QoS parameter values of all network devices on the forwarding path of the same service.
[0256] Step 4: Node A and / or Node B receive the second information and establish a correspondence between the policy and the device port based on the second information. This correspondence is used to guide data forwarding.
[0257] Here, node A and / or node B establish a mapping between policy and device port based on the first path of the first service in order to forward the traffic data of the first service.
[0258] Step 5: Upon receiving the traffic of the first service, Node A and / or Node B forward the data according to the correspondence between the policy and the device port.
[0259] It should be noted that Node A and / or Node B can announce the correspondence between policies and device ports in the first network so that each network device in PE1 to PE6 can obtain the correspondence between policies and device ports, and thus forward the traffic data of the first service based on the correspondence between policies and device ports.
[0260] To implement the method on the first network device side of this application embodiment, this application embodiment also provides a path planning device, disposed on the first network device, as shown in FIG8, the device including:
[0261] The first receiving unit 801 is configured to receive first information sent by the second network device. The first information includes at least power consumption-related parameters of the network device of the first network. The first network represents the network managed by the first network device.
[0262] The first sending unit 802 is configured to send second information to the second network device to indicate a first path of a first service; the second information is determined at least based on the first information, and the energy consumption or energy utilization rate of the first path meets a first condition.
[0263] In one embodiment, the first information includes at least one or more of the following:
[0264] Device-level power consumption related parameters;
[0265] Power consumption parameters at the board level;
[0266] Power consumption-related parameters at the port level.
[0267] In one embodiment, power consumption related parameters include one or more of the following:
[0268] power;
[0269] Throughput;
[0270] The first parameter represents the power consumption of the network device per unit forwarding rate;
[0271] The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate.
[0272] The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
[0273] In one embodiment, the device further includes:
[0274] The first determining unit is configured to determine the second information based on the first information; or, configured to determine the second information based on the first information and the forwarding path of the first service.
[0275] In one embodiment, the device further includes:
[0276] The second determining unit is configured to determine third information based on the first information, wherein the third information indicates the energy consumption map of the first network;
[0277] The third determining unit is configured to determine the second information based on the third information, or to determine the second information based on the third information and the forwarding path of the first service.
[0278] In one embodiment, the third information includes the topology of the first network and power consumption-related parameters of one or more layers of each network device.
[0279] In one embodiment, the device further includes:
[0280] The generation unit is configured to generate a first function based on the first information, or to generate a first function based on the first information and the forwarding path of the first service; the first function is used to calculate the total energy consumption of the network devices related to the first service, or to calculate the total energy consumption and QoS of the network devices related to the first service.
[0281] The fourth determining unit is configured to determine the first path of the first service based on the first information and the first function.
[0282] In one embodiment, the first condition includes at least one or more of the following:
[0283] The sum of the power consumption-related parameters of one or more layers of all network devices processing the same service is minimized;
[0284] The sum of the power consumption-related parameters of one or more layers of all network devices on the forwarding path of the same service is minimized;
[0285] Minimizes energy consumption increase;
[0286] Bypass network devices whose power consumption exceeds the first threshold;
[0287] Bypass boards whose power consumption exceeds the second threshold;
[0288] Bypass ports whose energy consumption exceeds the third threshold.
[0289] In one embodiment, the first information further includes QoS parameters of the network devices of the first network, and the first condition further includes one or more of the following:
[0290] The first value satisfies the second condition, and the first value is determined based on the QoS parameter values of all network devices processing the same service.
[0291] The second value satisfies the third condition, and the second value is determined based on the QoS parameter values of all network devices on the forwarding path of the same service.
[0292] In practical applications, the first receiving unit 801 and the first sending unit 802 can be implemented by the processor in the path planning device in conjunction with the communication interface, and the first determining unit, the second determining unit, the third determining unit, the fourth determining unit and the generating unit can be implemented by the processor in the path planning device.
[0293] To implement the method on the second network device side of this application embodiment, this application embodiment also provides a path planning device, disposed on the second network device, as shown in FIG9. The device includes:
[0294] The second sending unit 901 is configured to send first information to the first network device; wherein...
[0295] The first information includes at least power consumption-related parameters of the network devices of the first network, wherein the first network represents the network managed by the first network devices; the first information is used to determine a first path of the service processed by the first network, wherein the energy consumption or energy utilization rate of the first path meets a first condition.
[0296] In one embodiment, the device further includes:
[0297] The second transceiver unit is configured to send third information to a third network device and / or to receive fourth information sent by the third network device; wherein the third network device represents a network device adjacent to the second network device, and the third information includes at least power consumption-related parameters of the second network device; the third network device is a network device adjacent to the second network device, and the fourth information includes power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
[0298] In one embodiment, the device further includes:
[0299] Storage unit, configured to store the third information and / or the fourth information to the LSDB of the first network; and / or
[0300] The first acquisition unit is configured to acquire the first information from the LSDB of the first network.
[0301] In one embodiment, the third and / or fourth information is encapsulated in a first TLV.
[0302] In one embodiment, the first information is encapsulated in a second TLV.
[0303] In one embodiment, the type field of the first TLV is used to describe the type of power consumption-related parameters;
[0304] The numeric fields of the first TLV include one or more of the following:
[0305] The first identifier bit is used to indicate the level of power consumption-related parameters;
[0306] The second identifier bit is used to indicate whether the power carried by the first TLV is the current power or the static power;
[0307] The third identifier is used to indicate the measurement interval of power consumption-related parameters.
[0308] In one embodiment, the type field of the second TLV is used to describe the type of power consumption-related parameters;
[0309] The numeric fields of the second TLV include one or more of the following:
[0310] The fourth flag is used to indicate the level of power consumption-related parameters;
[0311] The fifth identifier bit is used to indicate whether the power carried by the second TLV is the current power or the static power;
[0312] The sixth flag bit is used to indicate the measurement interval for power consumption-related parameters.
[0313] In one embodiment, the first information includes at least one or more of the following:
[0314] Device-level power consumption related parameters;
[0315] Power consumption parameters at the board level;
[0316] Power consumption-related parameters at the port level.
[0317] In one embodiment, power consumption related parameters include one or more of the following:
[0318] power;
[0319] Throughput;
[0320] The first parameter represents the power consumption of the network device per unit forwarding rate;
[0321] The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate.
[0322] The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
[0323] In practical applications, the second sending unit 901 and the second transceiver unit can be implemented by the processor in the path planning device combined with the communication interface, and the storage unit and the first acquisition unit can be implemented by the processor in the path planning device combined with the communication interface.
[0324] To implement the method on the third network device side of this application embodiment, this application embodiment also provides a path planning device, which is installed on the third network device, as shown in FIG10. The device includes:
[0325] The first transceiver unit 1001 is configured to receive third information sent by the second network device; and / or, configured to send fourth information to the second network device; wherein,
[0326] The second network device represents the network device adjacent to the third network device; the third information and the fourth information are used to determine the first path of the service in the first network where the third network device is located, and the energy consumption or energy utilization rate of the first path meets the first condition; the third information includes at least the power consumption-related parameters of the second network device; the fourth information includes the power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
[0327] In one embodiment, the device further includes:
[0328] The second acquisition unit is configured to acquire the fourth information.
[0329] In one embodiment, the second acquisition unit is specifically configured as one or more of the following:
[0330] Collect fifth information, which represents power consumption-related parameters of the third network device;
[0331] The system receives a sixth message sent by the fourth network device, the sixth message representing power consumption-related parameters of the fourth network device.
[0332] In one embodiment, the device further includes:
[0333] The third sending unit is configured to send the fifth information to the fourth network device.
[0334] In one embodiment, the third information and / or the fourth information are encapsulated in a first TLV.
[0335] In one embodiment, the type field of the first TLV is used to describe the type of power consumption-related parameters;
[0336] The numeric fields of the first TLV include one or more of the following:
[0337] The first identifier bit is used to indicate the level of power consumption-related parameters;
[0338] The second identifier bit is used to indicate whether the power carried by the first TLV is the current power or the static power;
[0339] The third identifier is used to indicate the measurement interval of power consumption-related parameters.
[0340] In one embodiment, power consumption related parameters include one or more of the following:
[0341] Device-level power consumption related parameters;
[0342] Power consumption parameters at the board level;
[0343] Power consumption-related parameters at the port level.
[0344] In one embodiment, power consumption related parameters include one or more of the following:
[0345] power;
[0346] Throughput;
[0347] The first parameter represents the power consumption of the network device per unit forwarding rate;
[0348] The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate.
[0349] The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
[0350] In practical applications, the first transceiver unit 1001, the second acquisition unit, and the third transmission unit can be implemented by the processor in the path planning device in conjunction with the communication interface.
[0351] It should be noted that the path planning device provided in the above embodiments is only illustrated by the division of the above program modules. In practical applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device can be divided into different program modules to complete all or part of the processing described above. In addition, the path planning device and the path planning method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process can be found in the method embodiments, which will not be repeated here.
[0352] Based on the hardware implementation of the above program modules, and in order to implement the method on the first network device side of this application embodiment, this application embodiment also provides a first network device, as shown in FIG11, the first network device 1100 includes:
[0353] The first communication interface 1101 is capable of exchanging information with other network nodes;
[0354] The first processor 1102 is connected to the first communication interface 1101 to enable information interaction with other network nodes. When configured to run a computer program, it executes the methods provided by one or more technical solutions on the first network device side. The computer program is stored in the first memory 1103.
[0355] Specifically, the first communication interface 1101 is configured to receive first information sent by the second network device and to send second information to the second network device; wherein, the first information includes at least power consumption-related parameters of the network device of the first network, and the first network represents the network managed by the first network device; the second information is determined at least based on the first information, and the second information is used to indicate the first path of the first service, wherein the energy consumption or energy utilization rate of the first path meets the first condition.
[0356] In one embodiment, the first information includes at least one or more of the following:
[0357] Device-level power consumption related parameters;
[0358] Power consumption parameters at the board level;
[0359] Power consumption-related parameters at the port level.
[0360] In one embodiment, power consumption related parameters include one or more of the following:
[0361] power;
[0362] Throughput;
[0363] The first parameter represents the power consumption of the network device per unit forwarding rate;
[0364] The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate.
[0365] The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
[0366] In one embodiment, the first processor 1102 is configured to determine second information based on the first information; or, configured to determine the second information based on the first information and the forwarding path of the first service.
[0367] In one embodiment, the first processor 1102 is further configured to determine third information based on the first information, the third information indicating an energy consumption map of the first network; and to determine second information based on the third information, or to determine the second information based on the third information and the forwarding path of the first service.
[0368] In one embodiment, the third information includes the topology of the first network and power consumption-related parameters of one or more layers of each network device.
[0369] In one embodiment, the first processor 1102 is further configured to generate a first function based on the first information, or to generate a first function based on the first information and the forwarding path of the first service, and to determine a first path of the first service based on the first information and the first function; the first function is used to calculate the sum of the energy consumption of the network devices related to the first service, or to calculate the sum of the energy consumption and QoS of the network devices related to the first service.
[0370] In one embodiment, the first condition includes at least one or more of the following:
[0371] The sum of the power consumption-related parameters of one or more layers of all network devices processing the same service is minimized;
[0372] The sum of the power consumption-related parameters of one or more layers of all network devices on the forwarding path of the same service is minimized;
[0373] Minimizes energy consumption increase;
[0374] Bypass network devices whose power consumption exceeds the first threshold;
[0375] Bypass boards whose power consumption exceeds the second threshold;
[0376] Bypass ports whose energy consumption exceeds the third threshold.
[0377] In one embodiment, the first information further includes QoS parameters of the network devices of the first network, and the first condition further includes one or more of the following:
[0378] The first value satisfies the second condition, and the first value is determined based on the QoS parameter values of all network devices processing the same service.
[0379] The second value satisfies the third condition, and the second value is determined based on the QoS parameter values of all network devices on the forwarding path of the same service.
[0380] It should be noted that the specific processing procedures of the first processor 1102 and the first communication interface 1101 can be understood by referring to the above method.
[0381] Of course, in practical applications, the various components in the first network device 1100 are coupled together via bus system 1104. It is understood that bus system 1104 is configured to enable communication between these components. In addition to a data bus, bus system 1104 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 1104 in Figure 11.
[0382] The first memory 1103 in this embodiment is configured to store various types of data to support the operation of the first network device 1100. Examples of such data include any computer program used to operate on the first network device 1100.
[0383] The methods disclosed in the above embodiments of this application can be applied to the first processor 1102, or implemented by the first processor 1102. The first processor 1102 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware or by instructions in the form of software in the first processor 1102. The first processor 1102 may be a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The first processor 1102 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly reflected as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in the first memory 1103. The first processor 1102 reads the information in the first memory 1103 and completes the steps of the aforementioned method in combination with its hardware.
[0384] In an exemplary embodiment, the first network device 1100 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0385] Based on the hardware implementation of the above-mentioned program modules, and in order to implement the method on the second network device side of the embodiments of this application, the embodiments of this application also provide a second network device. As shown in FIG12, the second network device 1200 includes:
[0386] The second communication interface 1201 is capable of exchanging information with other network nodes;
[0387] The second processor 1202 is connected to the second communication interface 1201 to enable information interaction with other network nodes. When configured to run a computer program, it executes the methods provided by one or more technical solutions on the second network device side. The computer program is stored in the second memory 1203.
[0388] Specifically, the second communication interface 1201 is configured to send first information to the first network device; wherein, the first information includes at least power consumption-related parameters of the network device of the first network, the first network representing the network managed by the first network device; the first information is used to determine a first path of the service processed by the first network, and the energy consumption or energy utilization rate of the first path meets a first condition.
[0389] In one embodiment, the second communication interface 1201 is further configured to send third information to a third network device and / or to receive fourth information sent by the third network device; wherein the third network device represents a network device adjacent to the second network device, and the third information includes at least power consumption-related parameters of the second network device; the third network device is a network device adjacent to the second network device, and the fourth information includes power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
[0390] In one embodiment, the second processor 1202 is configured to store the third information and / or the fourth information in the LSDB of the first network; and / or to retrieve the first information from the LSDB of the first network.
[0391] In one embodiment, the third and / or fourth information is encapsulated in a first TLV.
[0392] In one embodiment, the first information is encapsulated in a second TLV.
[0393] In one embodiment, the type field of the first TLV is used to describe the type of power consumption-related parameters;
[0394] The numeric fields of the first TLV include one or more of the following:
[0395] The first identifier bit is used to indicate the level of power consumption-related parameters;
[0396] The second identifier bit is used to indicate whether the power carried by the first TLV is the current power or the static power;
[0397] The third identifier is used to indicate the measurement interval of power consumption-related parameters.
[0398] In one embodiment, the type field of the second TLV is used to describe the type of power consumption-related parameters;
[0399] The numeric fields of the second TLV include one or more of the following:
[0400] The fourth flag is used to indicate the level of power consumption-related parameters;
[0401] The fifth identifier bit is used to indicate whether the power carried by the second TLV is the current power or the static power;
[0402] The sixth flag bit is used to indicate the measurement interval for power consumption-related parameters.
[0403] In one embodiment, the first information includes at least one or more of the following:
[0404] Device-level power consumption related parameters;
[0405] Power consumption parameters at the board level;
[0406] Power consumption-related parameters at the port level.
[0407] In one embodiment, power consumption related parameters include one or more of the following:
[0408] power;
[0409] Throughput;
[0410] The first parameter represents the power consumption of the network device per unit forwarding rate;
[0411] The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate.
[0412] The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
[0413] It should be noted that the specific processing procedures of the second processor 1202 and the second communication interface 1201 can be understood by referring to the above method.
[0414] Of course, in practical applications, the various components in the second network device 1200 are coupled together via bus system 1204. It can be understood that bus system 1204 is configured to enable communication between these components. In addition to a data bus, bus system 1204 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 1204 in Figure 12.
[0415] The second memory 1203 in this embodiment is configured to store various types of data to support the operation of the second network device 1200. Examples of such data include any computer program used to operate on the second network device 1200.
[0416] The methods disclosed in the embodiments of this application can be applied to the second processor 1202, or implemented by the second processor 1202. The second processor 1202 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware or by instructions in the form of software in the second processor 1202. The second processor 1202 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The second processor 1202 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as being executed by a hardware decoding processor, or being executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, which is located in the second memory 1203. The second processor 1202 reads the information in the second memory 1203 and completes the steps of the aforementioned method in conjunction with its hardware.
[0417] In an exemplary embodiment, the second network device 1200 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components to perform the aforementioned method.
[0418] Based on the hardware implementation of the above-mentioned program modules, and in order to implement the method on the third network device side of this application embodiment, this application embodiment also provides a third network device. As shown in FIG13, the third network device 1300 includes:
[0419] The third communication interface 1301 is capable of exchanging information with other network nodes;
[0420] The third processor 1302 is connected to the third communication interface 1301 to enable information interaction with other network nodes. When configured to run a computer program, it executes the methods provided by one or more technical solutions on the third network device side. The computer program is stored on the third memory 1303.
[0421] Specifically, the third communication interface 1301 is configured to receive third information sent by the second network device; and / or, configured to send fourth information to the second network device; wherein,
[0422] The second network device represents the network device adjacent to the third network device; the third information and the fourth information are used to determine the first path of the service in the first network where the third network device is located, and the energy consumption or energy utilization rate of the first path meets the first condition; the third information includes at least the power consumption-related parameters of the second network device; the fourth information includes the power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
[0423] In one embodiment, the third processor 1302 is configured to acquire the fourth information.
[0424] In one embodiment, the third communication interface 1301 is further configured as one or more of the following:
[0425] Collect fifth information, which represents power consumption-related parameters of the third network device;
[0426] The system receives a sixth message sent by the fourth network device, the sixth message representing power consumption-related parameters of the fourth network device.
[0427] In one embodiment, the third communication interface 1301 is further configured to send the fifth information to the fourth network device.
[0428] In one embodiment, the third information and / or the fourth information are encapsulated in a first TLV.
[0429] In one embodiment, the type field of the first TLV is used to describe the type of power consumption-related parameters;
[0430] The numeric fields of the first TLV include one or more of the following:
[0431] The first identifier bit is used to indicate the level of power consumption-related parameters;
[0432] The second identifier bit is used to indicate whether the power carried by the first TLV is the current power or the static power;
[0433] The third identifier is used to indicate the measurement interval of power consumption-related parameters.
[0434] In one embodiment, power consumption related parameters include one or more of the following:
[0435] Device-level power consumption related parameters;
[0436] Power consumption parameters at the board level;
[0437] Power consumption-related parameters at the port level.
[0438] In one embodiment, power consumption related parameters include one or more of the following:
[0439] power;
[0440] Throughput;
[0441] The first parameter represents the power consumption of the network device per unit forwarding rate;
[0442] The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate.
[0443] The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
[0444] It should be noted that the specific processing procedures of the third processor 1302 and the third communication interface 1301 can be understood by referring to the above method.
[0445] Of course, in practical applications, the various components in the third network device 1300 are coupled together via bus system 1304. It can be understood that bus system 1304 is configured to enable communication between these components. In addition to a data bus, bus system 1304 also includes a power bus, a control bus, and a status signal bus. However, for clarity, all buses are labeled as bus system 1304 in Figure 13.
[0446] The third memory 1303 in this embodiment is configured to store various types of data to support the operation of the third network device 1300. Examples of such data include any computer program used to operate on the third network device 1300.
[0447] The methods disclosed in the embodiments of this application can be applied to, or implemented by, the third processor 1302. The third processor 1302 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above method can be completed by the integrated logic circuitry of the hardware or by instructions in the software form of the third processor 1302. The third processor 1302 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The third processor 1302 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the methods disclosed in the embodiments of this application can be directly manifested as execution by a hardware decoding processor, or execution by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium, specifically a third memory 1303. The third processor 1302 reads information from the third memory 1303 and, in conjunction with its hardware, completes the steps of the aforementioned method.
[0448] In an exemplary embodiment, the third network device 1300 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general-purpose processors, controllers, MCUs, microprocessors, or other electronic components to perform the aforementioned method.
[0449] It is understood that the memories (first memory 1103, second memory 1203, and third memory 1303) in the embodiments of this application can be volatile memory or non-volatile memory, or both. Non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), ferromagnetic random access memory (FRAM), flash memory, magnetic surface memory, optical disc, or compact disc read-only memory (CD-ROM); magnetic surface memory can be disk storage or magnetic tape storage. Volatile memory can be random access memory (RAM), which is used as an external cache.By way of example, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), SyncLink Dynamic Random Access Memory (SLDRAM), and Direct Rambus Random Access Memory (DRRAM). The memories described in the embodiments of this application are intended to include, but are not limited to, these and any other suitable types of memory.
[0450] In an exemplary embodiment, this application also provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, such as a first memory 1103 storing a computer program, which can be executed by a first processor 1102 of a first network device 1100 to complete the steps described in the aforementioned first network device-side method. Another example is a second memory 1203 storing a computer program, which can be executed by a second processor 1202 of a second network device 1200 to complete the steps described in the aforementioned second network device-side method. The computer program can also be executed by a third processor 1302 of a third network device 1300 to complete the steps described in the aforementioned third network device-side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disc, or CD-ROM.
[0451] Exemplary embodiments of this application also provide a computer program product, including a computer program that can be executed by a first processor 1102 of a first network device 1100 to complete the steps described in the aforementioned first network device-side method. The computer program can be executed by a second processor 1202 of a second network device 1200 to complete the steps described in the aforementioned second network device-side method. The computer program can be executed by a third processor 1302 of a third network device 1300 to complete the steps described in the aforementioned third network device-side method.
[0452] It should be noted that terms such as "first" and "second" are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. "Multiple" can refer to two or more items, and "multiple" can refer to two or more items. The term "and / or" in this document merely describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, the term "one or more" in this document refers to any combination of at least two of the multiple elements. For example, including one or more of A, B, and C can represent including any one or at least two or more elements selected from the set consisting of A, B, and C.
[0453] Furthermore, the technical solutions described in the embodiments of this application can be combined arbitrarily without conflict.
[0454] The above description is merely a preferred embodiment of this application and is not intended to limit the scope of protection of this application.
Claims
1. A path planning method applied to a first network device, the method comprising: Receive first information sent by a second network device, the first information including at least power consumption-related parameters of the network device of the first network, the first network representing the network managed by the first network device or the network where the second network device is located; Send second information to the second network device to indicate the first path of the first service; the second information is determined at least based on the first information, and the energy consumption or energy utilization rate of the first path meets the first condition.
2. The method according to claim 1, wherein, The first information includes at least one or more of the following: Device-level power consumption related parameters; Power consumption parameters at the board level; Power consumption-related parameters at the port level.
3. The method according to claim 1 or 2, wherein, Power consumption related parameters include one or more of the following: power; Throughput; The first parameter represents the power consumption of the network device per unit forwarding rate; The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate. The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
4. The method according to claim 1, wherein, The method further includes: Determine the second information based on the first information; or The second information is determined based on the first information and the forwarding path of the first service.
5. The method according to claim 1, wherein, The method further includes: Based on the first information, a third piece of information is determined, wherein the third information indicates the energy consumption map of the first network; The second information is determined based on the third information, or the second information is determined based on the third information and the forwarding path of the first service.
6. The method according to claim 5, wherein, The third information includes the topology of the first network and power consumption-related parameters of one or more layers of each network device.
7. The method according to any one of claims 1 to 6, wherein, The method further includes: A first function is generated based on the first information, or a first function is generated based on the first information and the forwarding path of the first service; the first function is used to calculate the sum of the energy consumption of the network devices related to the first service, or to calculate the sum of the energy consumption and quality of service (QoS) of the network devices related to the first service. Based on the first information and the first function, the first path of the first service is determined.
8. The method according to any one of claims 1 to 6, wherein, The first condition includes at least one or more of the following: The sum of the power consumption-related parameters of one or more layers of all network devices processing the same service is minimized; The sum of the power consumption-related parameters of one or more layers of all network devices on the forwarding path of the same service is minimized; Minimizes energy consumption increase; Bypass network devices whose power consumption exceeds the first threshold; Bypass boards whose power consumption exceeds the second threshold; Bypass ports whose energy consumption exceeds the third threshold.
9. The method according to claim 8, wherein, The first information also includes QoS parameters of the network devices in the first network, and the first condition further includes one or more of the following: The first value satisfies the second condition, and the first value is determined based on the QoS parameter values of all network devices processing the same service. The second value satisfies the third condition, and the second value is determined based on the QoS parameter values of all network devices on the forwarding path of the same service.
10. A path planning method applied to a second network device, the method comprising: Send the first message to the first network device; wherein, The first information includes at least power consumption-related parameters of the network devices of the first network, wherein the first network represents the network managed by the first network device or the network where the second network device is located; the first information is used to determine the first path of the service processed by the first network, wherein the energy consumption or energy utilization rate of the first path meets the first condition.
11. The method according to claim 10, wherein, The method also includes one or more of the following: Send third information to a third network device, the third network device representing a network device adjacent to the second network device, the third information including at least power consumption-related parameters of the second network device; The system receives fourth information sent by a third network device, which is a network device adjacent to the second network device. The fourth information includes power consumption-related parameters of the third network device and / or the fourth network device. The fourth network device is directly or indirectly connected to the third network device.
12. The method according to claim 11, wherein, The method further includes: Store the third information and / or the fourth information in the link state database (LSDB) of the first network; and / or The first information is obtained from the LSDB of the first network.
13. The method according to claim 11, wherein, The third and / or fourth information is encapsulated in the first TLV.
14. The method according to claim 11, wherein, The first information is encapsulated in the second TLV.
15. The method according to claim 13, wherein, The type field of the first TLV is used to describe the type of power consumption related parameters; The numeric fields of the first TLV include one or more of the following: The first identifier bit is used to indicate the level of power consumption-related parameters; The second identifier bit is used to indicate whether the power carried by the first TLV is the current power or the static power; The third identifier is used to indicate the measurement interval of power consumption-related parameters.
16. The method of claim 14, wherein, The type field of the second TLV is used to describe the type of power consumption related parameters; The numeric fields of the second TLV include one or more of the following: The fourth flag is used to indicate the level of power consumption-related parameters; The fifth identifier bit is used to indicate whether the power carried by the second TLV is the current power or the static power; The sixth flag bit is used to indicate the measurement interval for power consumption-related parameters.
17. The method according to claim 10, wherein, The first information includes at least one or more of the following: Device-level power consumption related parameters; Power consumption parameters at the board level; Power consumption-related parameters at the port level.
18. The method according to any one of claims 10 to 17, wherein, Power consumption related parameters include one or more of the following: power; Throughput; The first parameter represents the power consumption of the network device per unit forwarding rate; The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate. The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
19. A path planning method applied to a third network device, the method comprising: Receive third information sent by the second network device; And / or, Send the fourth message to the second network device; among which, The second network device represents the network device adjacent to the third network device; the third information and the fourth information are used to determine the first path of the service in the first network where the third network device is located, and the energy consumption or energy utilization rate of the first path meets the first condition; the third information includes at least the power consumption-related parameters of the second network device; the fourth information includes the power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
20. The method according to claim 19, wherein, The method further includes: Obtain the fourth piece of information.
21. The method according to claim 20, wherein, The acquisition of the fourth information includes one or more of the following: Collect fifth information, which represents power consumption-related parameters of the third network device; The system receives a sixth message sent by the fourth network device, the sixth message representing power consumption-related parameters of the fourth network device.
22. The method according to claim 21, wherein, The method further includes: The fifth message is sent to the fourth network device.
23. The method according to any one of claims 19 to 22, wherein, The third information and / or the fourth information are encapsulated in the first TLV.
24. The method according to claim 23, wherein, The type field of the first TLV is used to describe the type of power consumption related parameters; The numeric fields of the first TLV include one or more of the following: The first identifier bit is used to indicate the level of power consumption-related parameters; The second identifier bit is used to indicate whether the power carried by the first TLV is the current power or the static power; The third identifier is used to indicate the measurement interval of power consumption-related parameters.
25. The method according to any one of claims 19 to 22, 24, wherein, Power consumption related parameters include one or more of the following: Device-level power consumption related parameters; Power consumption parameters at the board level; Power consumption-related parameters at the port level.
26. The method according to any one of claims 19 to 22, 24, wherein, Power consumption related parameters include one or more of the following: power; Throughput; The first parameter represents the power consumption of the network device per unit forwarding rate; The second parameter represents the increase in power consumption caused by each additional unit of forwarding rate. The third parameter characterizes the performance of the network device in different operating states from idle to peak throughput.
27. A path planning device, comprising: The first receiving unit is configured to receive first information sent by the second network device. The first information includes at least power consumption-related parameters of the network device of the first network. The first network represents the network managed by the first network device. The first sending unit is configured to send second information to the second network device to indicate the first path of the first service; The second information is determined at least based on the first information, and the energy consumption or energy utilization rate of the first path satisfies the first condition.
28. A path planning device, comprising: The second sending unit is configured to send first information to the first network device; wherein... The first information includes at least power consumption-related parameters of the network devices of the first network, wherein the first network represents the network managed by the first network devices; the first information is used to determine a first path of the service processed by the first network, wherein the energy consumption or energy utilization rate of the first path meets a first condition.
29. A path planning device, comprising: The first transceiver unit is configured to receive third information sent by the second network device; And / or, configured to send a fourth message to a second network device; wherein, The second network device represents the network device adjacent to the third network device; the third information and the fourth information are used to determine the first path of the service in the first network where the third network device is located, and the energy consumption or energy utilization rate of the first path meets the first condition; the third information includes at least the power consumption-related parameters of the second network device; the fourth information includes the power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
30. A first network device, comprising: A first processor and a first communication interface; wherein... The first communication interface is configured to receive first information sent by the second network device, and configured to send second information to the second network device; wherein, The first information includes at least power consumption-related parameters of the network devices of the first network, the first network representing the network managed by the first network devices; the second information is determined at least based on the first information, the second information being used to indicate the first path of the first service, and the energy consumption or energy utilization rate of the first path meeting the first condition.
31. A second network device, comprising: A second processor and a second communication interface; wherein... The second communication interface is configured to send first information to the first network device; wherein, The first information includes at least power consumption-related parameters of the network devices of the first network, wherein the first network represents the network managed by the first network devices; the first information is used to determine a first path of the service processed by the first network, wherein the energy consumption or energy utilization rate of the first path meets a first condition.
32. A third network device, comprising: A third processor and a third communication interface; wherein... The third communication interface is configured to receive third information sent by the second network device; and / or configured to send fourth information to the second network device; wherein, The second network device represents the network device adjacent to the third network device; the third information and the fourth information are used to determine the first path of the service in the first network where the third network device is located, and the energy consumption or energy utilization rate of the first path meets the first condition; the third information includes at least the power consumption-related parameters of the second network device; the fourth information includes the power consumption-related parameters of the third network device and / or the fourth network device, and the fourth network device is directly or indirectly connected to the third network device.
33. A network device, comprising a processor and a memory for storing computer programs capable of running on the processor. in, When the processor is configured to run the computer program, it performs the steps of the method according to any one of claims 1 to 9, or the steps of the method according to any one of claims 10 to 18, or the steps of the method according to any one of claims 19 to 26.
34. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 9, or implements the steps of the method according to any one of claims 10 to 18, or implements the steps of the method according to any one of claims 19 to 26.
35. A computer program product comprising a computer program that, when executed by a processor, implements the steps of the method according to any one of claims 1 to 26.