Method for realizing real-time adjustment of power consumption based on service board card
Technical Field
The invention relates to optical communication transmission equipment, in particular to a method for realizing real-time adjustment of power consumption based on a service board card.
Background
At present, optical communication mainly adopts 100G for optical transmission, but with the rapid development of emerging services such as video, cloud computing, big data, internet of things and the like, higher requirements are put forward on network bandwidth, and for optical communication transmission equipment, high-speed and large-capacity are required. However, when the capacity of the optical communication transmission device is increased, the power consumption of the optical communication transmission device also increases proportionally, which causes energy waste and increases the power consumption cost.
In order to reduce power consumption, optical communication transmission equipment manufacturers usually use low-power-consumption devices to implement the functions of the equipment. However, in the design stage, the function of the optical communication transmission device is realized by using a device with lower power consumption, and although the effect of reducing the power consumption is achieved to a certain extent, the effect of reducing the power consumption is limited by the device with low power consumption, and the effect of reducing the power consumption is limited, so that the power consumption cannot be reduced in a true sense; for a huge optical communication network, how to adjust the power consumption in real time based on the service board level device according to the actual use condition in the engineering use process will effectively reduce the power consumption of the communication transmission device and reduce the operation cost of operators.
In view of this, it is urgently needed to design and develop a scheme for adjusting power consumption in real time based on the service board level device according to actual use conditions, so as to achieve the purpose of reducing power consumption of the communication transmission device in the engineering use process, thereby ensuring energy conservation and environmental protection of the optical communication transmission device.
Disclosure of Invention
The invention aims to solve the technical problem of how to adjust the power consumption of optical communication transmission equipment in real time based on business board card-level equipment, so as to achieve the purpose of reducing the power consumption of the communication transmission equipment in the engineering use process, thereby ensuring the energy conservation and environmental protection of the optical communication transmission equipment.
In order to solve the technical problem, the technical scheme adopted by the invention is to provide a method for realizing real-time adjustment of power consumption based on a service board card, which comprises the following steps:
configuring different working modes on different types of board cards of the equipment, wherein the working modes comprise a board card level low power consumption mode, a device level low power consumption mode and a normal working mode;
each service board card reports service configuration to the main control unit in real time; the main control unit adjusts the current working mode of each board card in real time according to the reported service configuration, and the specific working mode adjustment strategy is as follows:
when a service board card on the equipment is not configured with a service, the corresponding branch board card and the corresponding circuit board card on the whole link are set to be in a board card level low power consumption mode;
when the port on the service board card is not configured with service, the ports of the branch board card and the circuit board card passing through are set to be in a device-level low-power-consumption mode;
when the service board card or the port on the service board card configures the service, the port of the corresponding branch board card or the corresponding line board card on the whole link, or the port of the passing branch board card or the passing line board card is set to be in a normal working mode.
In the method, the board-level low power consumption mode is as follows: only the processing unit on the service board card works normally, and other devices are in a low power consumption mode;
the device-level low power consumption mode is as follows: the service ports of the service board cards are not fully configured, devices related to the ports which are not configured are set to be in a low power consumption mode, and devices related to other ports which are normally configured are set to be in a normal working mode.
In the method, each service board card reports port alarm and protection configuration of the service board card to the main control unit in real time;
when the port of the service board card is configured with service, the port detects alarm and is not configured with protection, the ports of the branch board card and the line board card passing through are set to be in a device-level low-power-consumption mode;
when the port of the service board card is configured with service, the port detects alarm and configures protection, the ports of the branch board card and the line board card passing through are set to be in a normal working mode.
In the method, the main control unit is connected with the branch board card and the line board card through Ethernet ports, and a relevant communication protocol is configured between the main control unit and the branch board card and between the main control unit and the line board card; wherein,
the communication protocol mainly comprises a configuration alarm detection protocol, a control command protocol and a callback execution result command protocol.
In the method, an alarm detection protocol is configured to detect the service configuration, protection configuration and alarm of the service board card and the optical port thereof;
the configured alarm detection protocol comprises the following parameters:
the slot position information of the service board card: a value of 0 to 255;
the type of the service board card: when the value is 0, the circuit board is a branch board card, and when the value is 1, the circuit board card is a line board card;
service configuration quantity of optical port side of service board card: n is provided;
configuration items of 1 st to n th optical ports of the service board card: the first bit [0] of the first byte is 0 or 1, and indicates that the optical port is not occupied when the value is 0, and indicates occupied when the value is 1; a fifth bit [4] of the first byte is 0 or 1, and when the value is 0, the optical port is normal, and when the value is 1, the optical port is alarmed; the sixth bit [5] is 0 or 1, and indicates that the port is not configured with protection when the value is 0, and indicates that protection is configured when the value is 1.
In the method, a control command protocol comprises a board-level low-power-consumption starting mode, a device-level low-power-consumption starting mode and a normal working starting mode; the control command protocol includes the following parameters:
the slot position information of the service board card is 0 to 255;
the service board card disk type is a branch board card when the value is 0, and is a line board card when the value is 1;
the power consumption mode of the service board card indicates that a normal working mode is started when the value is 0, indicates that a board-level low power consumption mode is started when the value is 1, and indicates that a device-level low power consumption mode is started when the value is 2;
the power consumption mode configuration of 1 st to n optical ports of the service board card indicates a normal working mode when the value is 0, and indicates a device-level low power consumption mode when the value is 1; and n is the service configuration quantity of the optical port side of the service board card.
In the method, the callback execution result command protocol is to check whether the mode configuration of the service board card is correct, and the callback execution result command comprises the following parameters:
the slot position information of the service board card is 0 to 255;
the service board card disk type is a branch board card when the value is 0, and is a line board card when the value is 1;
the power consumption mode of the service board card indicates that a normal working mode is started when the value is 0, indicates that a board-level low power consumption mode is started when the value is 1, and indicates that a device-level low power consumption mode is started when the value is 2;
the power consumption mode configuration of 1 st to n optical ports of the service board card indicates a normal working mode when the value is 0, and indicates a device-level low power consumption mode when the value is 1; and n is the service configuration quantity of the optical port side of the service board card.
In the method, each service board reports the service configuration to the main control unit in real time, and the main control unit adjusts the current working mode of each board in real time according to the reported service configuration, which specifically comprises the following steps:
s101, after the main control unit, the branch board cards and the line board cards are normally powered on, configuring relevant communication protocols among the board cards;
step S102, the main control unit issues a configuration alarm detection command to the service board card, and detects the optical interface service configuration, the optical interface alarm and the protection configuration of the optical interface of all the service board cards on the whole equipment;
step S103, judging whether the service configuration quantity of the optical port side is 0 or not according to the service configuration information reported by each service board card in real time, and if so, executing step S108; otherwise, executing step S104;
step S104, judging whether all optical port configuration items of the service board card are occupied, if so, executing step S110; otherwise, go to step S105;
step S105, judging whether an optical port configuration item of the nth optical port of the service board card is unoccupied, if so, executing step S109; otherwise, executing step S106;
step S106, when the optical port configuration item of the nth optical port of the service board card is occupied, judging whether the optical port has an alarm, if so, executing step S107; otherwise, go to step S110;
step S107, judging whether the optical port is configured with protection, if not, executing step S109; otherwise, go to step S110;
step S108, the main control unit issues a board-level low-power-consumption mode starting command to the corresponding service board by adopting a control command protocol, and then step S111 is executed;
step S109, the main control unit starts a device-level low-power-consumption mode command to the optical port from the corresponding service board card by adopting a control command protocol, and then step S111 is executed;
step S110, the main control unit adopts a control command protocol to issue a command of starting a normal working mode of a corresponding optical port to a corresponding service board card;
and step S111, after the control command is issued, the main control unit reads the execution state of each service board card by adopting a callback execution result command, and compares the execution state with the issued command to ensure that the execution command is correct.
Compared with the prior art, the invention configures different power consumption modes on the service board card, controls and adjusts the power consumption mode of the service board card in real time through the main control unit according to the service configuration reported by the service board card in real time, the optical port alarm and the optical port protection configuration, realizes the real-time adjustment of the power consumption of the equipment based on the board level, thereby achieving the purpose of reducing the power consumption of the equipment running on the network, not only being beneficial to the energy conservation and environmental protection of the equipment, having simple operation, stability and reliability, but also being capable of automatically completing the power consumption adjustment and saving the engineering maintenance cost; in addition, the method can be directly transplanted to a newly developed service board card through modular design.
Drawings
Fig. 1 is a flowchart of a method for implementing real-time power consumption adjustment based on a service board according to the present invention.
Detailed Description
The method for realizing the real-time adjustment of the power consumption based on the service board card, provided by the invention, realizes the real-time adjustment of the power consumption of the equipment on the service board card level, is simple, stable and reliable to operate, can effectively reduce the power consumption of the equipment on the board card level running on the network, and is beneficial to saving energy. The following problems need to be solved to realize the real-time power consumption reduction based on the board-level device, and the effective and reliable power consumption reduction can be realized:
(1) each optical port of the service board card can be switched into a low power consumption mode;
(2) each optical port of a service board card can be independent, for example, an OUT (optical path transmission unit) service board card, when some ports of the service board card are in a low power consumption mode, services of other ports can normally run;
(3) when the port of the service board card needs to be used, the low power consumption mode can be immediately changed into a normal working state, and the time cannot exceed the service configuration time.
The invention is described in detail below with reference to the drawings and the detailed description.
The invention provides a method for realizing real-time adjustment of power consumption based on a service board card, which is based on controlling the working state of each device on the service board card of equipment, so that an unused port on the service board card is in a low power consumption mode to achieve the purpose of reducing the power consumption in real time. The method specifically comprises the following steps:
configuring different working modes on each branch board card and each circuit board card of the equipment, wherein the working modes comprise the following steps: a board-level low-power-consumption mode, a device-level low-power-consumption mode and a normal working mode;
each service board card (branch board card or line board card) reports the service configuration to the main control unit in real time; the main control unit adjusts the current working mode of each board card in real time according to the reported service configuration, and the specific working mode adjustment strategy is as follows:
when the service board card on the equipment is not configured with the service, the corresponding branch board card and the corresponding circuit board card on the whole link are set to be in a board-card-level low-power-consumption mode;
when the port on the service board card is not configured with service, the ports of the passing branch board card and the passing circuit board card are set to be in a device-level low-power-consumption mode;
when the service board card or the port on the service board card configures the service, the port of the corresponding branch board card or the corresponding line board card on the whole link, or the port of the passing branch board card or the passing line board card is set to be in a normal working mode.
In the invention, the board-level low power consumption mode is as follows: only the processing unit on the service board card works normally, other devices (such as an optical module, a service processing chip and the like) are in a low power consumption mode, and the power consumption of the service board card is very low and is about 10% of that of the board card in normal work;
the device-level low power consumption mode is as follows: when the service ports of the service board card are not fully configured, the devices (such as optical modules, service processing chips, and the like) related to the ports which are not configured are set to be in a low power consumption mode, while the devices (such as optical modules, service processing chips, and the like) related to other ports which are normally configured are set to be in a normal working mode, and at this time, the power consumption of the board card is calculated according to the number of the configured ports.
In the invention, each service board card reports port alarm and protection configuration of the service board card to the main control unit in real time; when the port of the service board card is configured with service, the port detects alarm and is not configured with protection, the ports of the branch board card and the line board card passing through are set to be in a device-level low-power-consumption mode; when the port of the service board card is configured with service, the port detects alarm and configures protection, the ports of the branch board card and the line board card passing through are set to be in a normal working mode.
The control unit is connected with the branch board card and the line board card through Ethernet ports, and related communication protocols are configured between the branch board card and the line board card. In the invention, the communication protocol mainly comprises a configuration alarm detection protocol, a control command protocol and a callback execution result command protocol; wherein:
configuring an alarm detection protocol, which is mainly used for detecting service configuration, protection configuration and alarm; the main control unit issues a configuration alarm detection command, and the service board cards report respective service configuration and alarm states; the specific configuration alarm detection protocol definition is shown in table 1. The data structure parameters reported by each service board card include:
the slot position information of the service board card: a value of 0 to 255;
the type of the service board card: when the value is 0, the circuit board is a branch board card, and when the value is 1, the circuit board card is a line board card;
service configuration quantity of optical port side of service board card: n, for example, when the number of optical ports of the service board card does not exceed 48, n < ═ 48;
configuration items of 1 st to n th optical ports of the service board card: the first bit [0] of the first byte is 0 or 1, and indicates that the optical port is not occupied (i.e., not configured) when the value is 0, and indicates occupied when the value is 1; a fifth bit [4] of the first byte is 0 or 1, and when the value is 0, the optical port is normal, and when the value is 1, the optical port is alarmed; the sixth bit [5] is 0 or 1, and indicates that the port is not configured with protection when the value is 0, and indicates that protection is configured when the value is 1.
The service board card reports service configuration, port alarm and protection configuration by adopting the data structure.
Table 1, configuration alarm detection protocol definition table.
The control command protocol comprises a board-level starting low-power-consumption mode, a device-level starting low-power-consumption mode and a normal working mode, the main control unit controls the working modes of the service board to be switched by sending a control command to the service board, the definition of the control command protocol is shown in table 2, and the parameter of the control command comprises service board slot position information and has the value of 0-255;
the service board card disk type is a branch board card when the value is 0, and is a line board card when the value is 1;
the power consumption mode of the service board card indicates that a normal working mode is started when the value is 0, indicates that a board-level low power consumption mode is started when the value is 1, and indicates that a device-level low power consumption mode is started when the value is 2;
and the power consumption mode configuration of the 1 st to the n th optical ports of the service board card indicates a normal working mode when the value is 0, and indicates a device-level low power consumption mode when the value is 1.
Table 2, control command protocol definition table.
The callback execution result command protocol is to check whether the mode configuration of the service board card is correct, all parameters of the callback execution result command are defined as the same as the control command, and details are not repeated here, and table 3 is a callback execution result command protocol definition table.
TABLE 3 callback execution result Command protocol definition Table
As shown in fig. 1, reporting the service configuration to the main control unit in real time by each service board, and adjusting the current working mode of each board in real time by the main control unit according to the reported service configuration, specifically including the following steps:
s101, after the main control unit, the branch board cards and the line board cards are normally powered on, configuring relevant communication protocols among the board cards;
step S102, the main control unit issues a configuration alarm detection command to the service board card, and detects the optical interface service configuration, the optical interface alarm and the protection configuration of the optical interface of all the service board cards on the whole equipment; the service configuration detection content comprises: the type of the service board card, the service configuration number of the optical port side of the service board card and the configuration item of the optical port of the service board card; the detection contents of the alarm and the protection configuration of the port comprise: the optical interface side of the service board card alarms and whether protection is established on the optical interface side of the service board card;
step S103, judging whether the service configuration quantity of the optical port side is 0 or not according to the service configuration information reported by each service board card in real time, if so, indicating that the service board card is not configured with service and is in a non-starting state, and executing step S108; otherwise, executing step S104;
step S104, judging whether all optical port configuration items of the service board card are occupied, if so, executing step S110; otherwise, go to step S105;
step S105, judging whether an optical port configuration item of the nth optical port of the service board card is unoccupied, if so, executing step S109; otherwise, executing step S106;
step S106, when the optical port configuration item of the nth optical port of the service board card is occupied, judging whether the optical port has an alarm, if so, executing step S107; otherwise, executing step S110, and setting to a normal operating mode;
step S107, judging whether the optical port is configured with protection, if not, executing step S109; otherwise, go to step S110;
step S108, the main control unit issues a board-level low-power-consumption mode starting command to the corresponding service board card by adopting a control command protocol so that an optical module and a main chip of the whole service board card enter a low-power-consumption mode, and then step S111 is executed;
step S109, the main control unit starts a device-level low-power-consumption mode command to the optical port from the corresponding service board card by adopting a control command protocol, and then step S111 is executed;
step S110, the main control unit issues a command of starting a normal working mode of a corresponding light port to a corresponding service board card by adopting a control command protocol, and then step S111 is executed;
and step S111, after the control command is issued, the main control unit reads the execution state of each service board card by adopting a callback execution result command, and compares the execution state with the issued command to ensure that the execution command is correct.
The present invention is not limited to the above-mentioned preferred embodiments, and any structural changes made under the teaching of the present invention shall fall within the scope of the present invention, which is similar or similar to the technical solutions of the present invention.