A method for calculating routing and controlling device board overhead and network device
By calculating the chip interface bandwidth value, power consumption level and ID on the device line card, the routing is automatically selected and the chip traffic is monitored, solving the problems of high power consumption of network equipment and cumbersome routing configuration, and achieving automated configuration and energy efficiency improvement.
Patent Information
- Application Number
- CN202210721430.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2042-06-24
AI Technical Summary
When the prior art reduces the power consumption of network equipment, it is difficult to effectively avoid unnecessary network components running, resulting in power consumption and emissions. The routing configuration is cumbersome and dependent on manual maintenance, which wastes manpower.
By obtaining the interface bandwidth value, power consumption level and ID of each chip on the device line card, calculating the COST value, automatically preferential routing to calculate the traffic main link and backup link to the same chip, and monitoring the chip traffic to control its sleep state. Reduce power consumption.
It realizes automated routing configuration, reduces manual intervention, reduces power consumption, improves the energy efficiency of network equipment, and saves labor costs.
Smart Images

Figure CN115277537B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a method for calculating routing and controlling device board overhead and a network device. Background Art
[0002] With the national strategy of "carbon peak and carbon neutrality", users have higher and higher requirements for the power consumption of network equipment. In order to reduce power consumption as much as possible in network equipment operation and maintenance, unnecessary network components (such as line cards, chips, etc.) should be avoided to cause unnecessary power consumption emissions. Summary of the invention
[0003] The embodiment of the present disclosure provides a method for calculating routes and controlling device board overhead and a network device. The method can provide a method for calculating routes, thereby controlling device board overhead.
[0004] The present disclosure provides a method for calculating a route, the method comprising:
[0005] Obtain the interface bandwidth value, chip power consumption level and chip ID supported by each chip on the line card of the local device;
[0006] COST calculation is performed according to the interface bandwidth value, chip power consumption level and chip ID supported by each chip to obtain multiple COST values;
[0007] Calculate routes using multiple COST values;
[0008] The chip ID is generated according to the line card slot number and the chip number.
[0009] The method further includes:
[0010] receiving a first message sent by a peer device, wherein the first message carries a power consumption level of the peer device;
[0011] When the power consumption level of the local device is greater than the power consumption level of the opposite device, COST calculation is performed according to the interface bandwidth value supported by each chip and the chip power consumption level to obtain multiple COST values.
[0012] The method further includes:
[0013] Acquire user routing preference information, where the user routing preference information is routing interface information specified by the user according to demand;
[0014] The COST calculation is performed according to the interface bandwidth value supported by each chip, the chip power consumption level, the chip ID and the user route optimization information to obtain multiple COST values.
[0015] The interface bandwidth value includes a bandwidth level value corresponding to the bandwidth.
[0016] The COST value includes a ranking value according to COST.
[0017] It can be seen from the above method that when calculating the COST value, the interface bandwidth value, chip power consumption level and chip ID supported by each chip are taken into consideration, so when calculating the route according to the COST, a reasonable chip can be selected to establish the route.
[0018] The present disclosure also provides a method for controlling device board overhead, the method comprising:
[0019] COST calculation is performed based on the interface bandwidth value, chip power consumption level, and chip ID supported by each chip on the obtained device line card to obtain multiple COST values;
[0020] Use multiple COST values to calculate routes so that the primary and backup traffic links are calculated to the same chip;
[0021] The chip ID is generated according to the line card slot number and the chip number.
[0022] Optionally, the method further includes:
[0023] Monitor the traffic of each chip on the device line card, and control the chip to enter the sleep state according to the chip traffic.
[0024] The present disclosure also provides a network device, the network device comprising:
[0025] An acquisition module is used to obtain the interface bandwidth value, chip power consumption level and chip ID supported by each chip on the line card of the local device;
[0026] A calculation module, used for performing COST calculation according to the interface bandwidth value supported by each chip, the chip power consumption level and the chip ID, to obtain multiple COST values;
[0027] The chip ID is generated according to the line card slot number and the chip number.
[0028] The present disclosure also provides a network device, the network device comprising:
[0029] A calculation module is used to perform COST calculation according to the interface bandwidth value, chip power consumption level and chip ID supported by each chip on the acquired device line card to obtain multiple COST values;
[0030] The calculation module is further used to calculate the route using multiple COST values so that the main link and the backup link of the traffic are calculated to the same chip;
[0031] The chip ID is generated according to the line card slot number and the chip number.
[0032] Wherein, the network device further includes:
[0033] The monitoring module is used to monitor the flow of each chip on the equipment line card, and control the chip to enter the sleep state according to the chip flow. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.
[0035] Figure 1 A device chip layout diagram provided for an embodiment of the present disclosure.
[0036] Figure 2 A schematic diagram of a network architecture provided for an embodiment of the present disclosure.
[0037] Figure 3 A flowchart of a method for calculating a route provided in an embodiment of the present disclosure. DETAILED DESCRIPTION
[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.
[0039] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0040] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0041] From the perspective of actual use, if you want to reduce power consumption, you cannot simply prevent traffic from passing through a certain network component, but you must put this network component into sleep mode (reference data: the power consumption of a chip that only passes traffic but does not sleep is basically about 85% of that of a chip that is working at full capacity, and sleep mode can be less than 10%). Therefore, a method needs to be provided to prevent routing from passing through a certain network component as much as possible, so that some network components can be idle for testing, so that the system can put them into sleep mode and reduce power consumption emissions.
[0042] like Figure 1 As shown, a network device consists of four chips, one chip has two interfaces, and each interface establishes an IGP with the other end. According to most of the current networking topologies, the uplink routing port of the network device generally requires one master and one backup. In order to make the other chips completely idle for hibernation as much as possible, the master and backup need to be placed on one chip as much as possible.
[0043] like Figure 2 As shown, for the same external network, the router has three links. At this time, in order to free up a completely idle chip, it is hoped that link 1 of chip 1 and link 2 of chip 1 can be preferentially selected as the main link and backup link, and chip 2 can be freed to meet the condition that the chip can be put into sleep mode.
[0044] Currently, when configuring routes, most of the time, manual maintenance is performed and related configuration adjustments are made manually to control IGP routes to go to one chip as much as possible. This makes the configuration too complicated and wastes manpower.
[0045] The present disclosure provides a method for calculating a route. Figure 3 As shown, the method includes:
[0046] S301 obtains the interface bandwidth value, chip power consumption level and chip ID supported by each chip on the line card of the local device;
[0047] S302 performs COST calculation according to the interface bandwidth value supported by each chip, the chip power consumption level and the chip ID to obtain multiple COST values;
[0048] S303 calculates the route using multiple COST values;
[0049] The chip ID is generated according to the line card slot number and the chip number.
[0050] In this embodiment, before executing step S302, the local device may negotiate with the opposite device on who will calculate the COST value.
[0051] Specifically, receiving a first message sent by a peer device, wherein the first message carries a power consumption level of the peer device;
[0052] When the power consumption level of the local device is greater than the power consumption level of the opposite device, COST calculation is performed according to the interface bandwidth value supported by each chip and the chip power consumption level to obtain multiple COST values.
[0053] For example, the extended LLDP protocol (first message) is used to establish an LLDP connection between the current device and the peer device, wherein the LLDP message carries its own device power consumption level through the TLV field. For example, the Type field value is tentatively 126, the Length field is 2 (bytes), and the Value (String) part indicates the power consumption level of the current device, tentatively 0-65535. The higher the level, the greater the power consumption.
[0054] In this embodiment, if the local power consumption level field of the discovered device is greater than the power consumption level field of the LLDP information received from the opposite end, step S302 is executed.
[0055] If the local power consumption level field of the local device is found to be smaller than the power consumption level field of the LLDP information received from the opposite end, the local end does not execute step S302, and the opposite end executes step S302.
[0056] If it is found that the local power consumption level field of its own device is equal to the power consumption level field of the LLDP information band received from the other end, the CHASSIS ID field (bridge mac) in the received LLDP message is additionally judged. If it is greater than the local bridge mac, the other end device executes step S302. If it is less than the local bridge mac, the local end device executes step S302.
[0057] In this embodiment, user route preference information may also be obtained, where the user route preference information is route interface information specified by the user according to demand.
[0058] When executing step S302, COST calculation is performed according to the interface bandwidth value supported by each chip, the chip power consumption level, the chip ID and the user route optimization information to obtain multiple COST values.
[0059] As shown in the following table:
[0060]
[0061] In order to ensure the business needs of users, users have higher requirements for bandwidth than energy consumption during the actual route selection process. Therefore, interface bandwidth is placed in the front, making high bandwidth the first selection factor.
[0062] Since the interface bandwidth occupies a large number of bits, in order to ensure 2 bits, the interface bandwidth value can be expressed as a bandwidth level value, as shown in the following example:
[0063]
[0064] In this embodiment, the chip power consumption level refers to classifying the power consumption levels of different line card chips on the device. The smaller the power consumption, the smaller the value.
[0065] In this embodiment, chip ID refers to the ID of the same type of chip. The chip ID is generated according to the line card slot number and the chip number. Each type of chip has one chip. The number corresponds to the line card slot number and the chip number, and is unique to the entire device.
[0066] In this embodiment, user preference: based on user-specific needs (such as on the same chip, the user needs to specify a certain port as the optimal route, or the user changes specific links to preferred routes), the default value can be 3. If the user specifies a certain port as the optimal route, the relevant fields of the port can be filled in with 0.
[0067] After obtaining the above information, COST calculation is performed. Since the original value calculated by COST occupies a large space, the calculated original COST value can be sorted and the sorted value can be obtained. The sorted value is used as the COST value, as follows:
[0068]
[0069] In step S303, IGP COST may be used for IGP route calculation.
[0070] After calculating the route according to IGP COST in this embodiment, the main link and backup link of the traffic will be preferentially calculated to the same chip. At this time, it can be decided whether to put the chip into dormancy according to the actual working conditions of other chips. If the device monitors that the main and backup links fail, the dormant chip is activated and the route is recalculated.
[0071] In this embodiment, a method for controlling device board overhead is also provided, the method comprising:
[0072] COST calculation is performed based on the interface bandwidth value, chip power consumption level, and chip ID supported by each chip on the obtained device line card to obtain multiple COST values;
[0073] Use multiple COST values to calculate routes so that the primary and backup traffic links are calculated to the same chip;
[0074] The chip ID is generated according to the line card slot number and the chip number.
[0075] The present disclosure also provides a network device, the network device comprising:
[0076] An acquisition module is used to obtain the interface bandwidth value, chip power consumption level and chip ID supported by each chip on the line card of the local device;
[0077] A calculation module, used for performing COST calculation according to the interface bandwidth value supported by each chip, the chip power consumption level and the chip ID, to obtain multiple COST values;
[0078] The chip ID is generated according to the line card slot number and the chip number.
[0079] The present disclosure also provides a network device, the network device comprising:
[0080] A calculation module is used to perform COST calculation according to the interface bandwidth value, chip power consumption level and chip ID supported by each chip on the acquired device line card to obtain multiple COST values;
[0081] The calculation module is further used to calculate the route using multiple COST values so that the main link and the backup link of the traffic are calculated to the same chip;
[0082] The chip ID is generated according to the line card slot number and the chip number.
[0083] Wherein, the network device further includes:
[0084] The monitoring module is used to monitor the flow of each chip on the equipment line card, and control the chip to enter the sleep state according to the chip flow.
[0085] It can be seen from the above embodiments that in this embodiment, only by configuring the TLV in LLDP, the primary and backup routes can be automatically optimized to the same chip and the IGP COST can be automatically configured, thereby avoiding manual configuration and saving labor costs.
[0086] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0087] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention claimed herein. The specification is intended to cover any variations, uses or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not claimed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.
[0088] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
[0089] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.
Claims
1. A method for calculating a route, characterized in that: The method comprises: Obtain the interface bandwidth value, chip power consumption level and chip ID supported by each chip on the line card of the local device; COST calculation is performed according to the interface bandwidth value, chip power consumption level and chip ID supported by each chip to obtain multiple COST values; Use multiple COST values to calculate routes so that the primary and backup traffic links are calculated to the same chip; The chip ID is generated according to the line card slot number and the chip number.
2. The method according to claim 1, characterized in that The method further comprises: receiving a first message sent by a peer device, wherein the first message carries a power consumption level of the peer device; When the power consumption level of the local device is greater than the power consumption level of the opposite device, COST calculation is performed according to the interface bandwidth value supported by each chip and the chip power consumption level to obtain multiple COST values.
3. The method according to claim 1, characterized in that: The method further comprises: Acquire user routing preference information, where the user routing preference information is routing interface information specified by the user according to demand; The COST calculation is performed according to the interface bandwidth value supported by each chip, the chip power consumption level, the chip ID and the user route optimization information to obtain multiple COST values.
4. The method according to claim 1, characterized in that: The interface bandwidth value includes a bandwidth level value corresponding to the bandwidth.
5. The method according to claim 1, characterized in that The COST value includes a ranking value according to COST.
6. A method for controlling equipment board expenses, characterized in that: The method comprises: COST calculation is performed based on the interface bandwidth value, chip power consumption level, and chip ID supported by each chip on the obtained device line card to obtain multiple COST values; Use multiple COST values to calculate routes so that the primary and backup traffic links are calculated to the same chip; The chip ID is generated according to the line card slot number and the chip number.
7. The method according to claim 6, characterized in that The method further comprises: Monitor the traffic of each chip on the device line card, and control the chip to enter the sleep state according to the chip traffic.
8. A network device, characterized in that: The network equipment includes: An acquisition module is used to obtain the interface bandwidth value, chip power consumption level and chip ID supported by each chip on the line card of the local device; A calculation module is used to perform COST calculation according to the interface bandwidth value, chip power consumption level and chip ID supported by each chip, and obtain multiple COST values so that the main link and backup link of the traffic are calculated to the same chip; The chip ID is generated according to the line card slot number and the chip number.
9. A network device, characterized in that: The network equipment includes: A calculation module is used to perform COST calculation according to the interface bandwidth value, chip power consumption level and chip ID supported by each chip on the acquired device line card to obtain multiple COST values; The calculation module is further used to calculate the route using multiple COST values so that the main link and the backup link of the traffic are calculated to the same chip; The chip ID is generated according to the line card slot number and the chip number.
10. The network device according to claim 9, characterized in that: The network device also includes: The monitoring module is used to monitor the flow of each chip on the equipment line card, and control the chip to enter the sleep state according to the chip flow.
Citation Information
Patent Citations
Route computing method and router
CN101399748A
Method and device for selecting forwarding port based on link EEE and power consumption and electronic equipment
CN112468393A
