CN109257185B - Network equipment, service card, logic device and notification information transmission method - Google Patents
Network equipment, service card, logic device and notification information transmission method Download PDFInfo
- Publication number
- CN109257185B CN109257185B CN201811393267.6A CN201811393267A CN109257185B CN 109257185 B CN109257185 B CN 109257185B CN 201811393267 A CN201811393267 A CN 201811393267A CN 109257185 B CN109257185 B CN 109257185B
- Authority
- CN
- China
- Prior art keywords
- notification information
- information
- submodule
- logic device
- physical chip
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/10—Current supply arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
- Power Sources (AREA)
Abstract
The application provides a network device, a service card, a logic device and a notification information transmission method, wherein the network device comprises: the system comprises a main control board and a service card, wherein the main control board comprises a power supply module, and the service card comprises a detection module, an energy storage circuit, a logic device and a physical chip; the detection module is used for sending the first abnormal information to the energy storage circuit and sending the second abnormal information to the logic device when detecting that the power supply module is abnormal; the energy storage circuit is used for storing electric energy when the power supply module works normally; when the first abnormal information is received, power is supplied to the logic device and the physical chip; the logic device is used for reading the pre-stored notification information from the logic device when receiving the second abnormal information and sending the notification information to the physical chip; and the physical chip is used for sending the notification information to the monitoring host when receiving the notification information. Through the technical scheme of the application, the total power consumption of the network equipment can be reduced, and the realization difficulty and cost of the energy storage circuit are reduced.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network device, a service card, a logic device, and a notification information transmission method.
Background
The network equipment (such as a router, a switch and the like) can be connected with the monitoring host, the network equipment sends notification information to the monitoring host after abnormal power failure, the monitoring host acquires the abnormal power failure of the network equipment according to the notification information, positions and abnormal time of the network equipment are positioned, and the time for recovering the abnormal network equipment is shortened.
In order to send the notification information to the monitoring host after the network device is abnormally powered off, a tank circuit may be configured in the network device. During the normal operation of the network equipment, a power supply module of the network equipment directly supplies power for a service processing module of the network equipment and stores electric energy in an energy storage circuit of the network equipment; therefore, after the network equipment is abnormally powered off, the electric energy in the energy storage circuit can be used for supplying power to the service processing module for a period of time, and the service processing module can send notification information to the monitoring host in the period of time.
The service Processing module usually includes a large number of sub-modules (such as a Central Processing Unit (CPU), a memory, etc.), and when the energy storage circuit is used to supply power to the service Processing module for a period of time, it is necessary to ensure that each sub-module in the service Processing module is in normal operation, so that the energy storage circuit is required to be able to store a large amount of electric energy, which results in large total power consumption of the energy storage circuit and large difficulty in implementing the energy storage circuit.
Disclosure of Invention
The application provides a network device, comprising: the system comprises a main control board and a service card, wherein the main control board comprises a power supply module, and the service card comprises a detection module, an energy storage circuit, a logic device and a physical chip; wherein:
the detection module is used for sending first abnormal information to the energy storage circuit and sending second abnormal information to the logic device when detecting that the power supply module is abnormal;
the energy storage circuit is used for storing electric energy when the power supply module works normally; when the first abnormal information is received, supplying power to the logic device and the physical chip;
the logic device is used for reading pre-stored notification information from the logic device when the second abnormal information is received, and sending the notification information to the physical chip;
and the physical chip is used for sending the notification information to the monitoring host when receiving the notification information.
The application provides a notification information transmission method, which is applied to network equipment, wherein the network equipment comprises: the main control board comprises a power module, the service card comprises a detection module, an energy storage circuit, a logic device and a physical chip, and the method comprises the following steps:
when the detection module detects that the power supply module is abnormal, the detection module sends first abnormal information to the energy storage circuit and sends second abnormal information to the logic device;
the energy storage circuit stores electric energy when the power supply module works normally; when the first abnormal information is received, supplying power to the logic device and the physical chip;
when the logic device receives the second abnormal information, reading pre-stored notification information from the logic device, and sending the notification information to the physical chip;
and when receiving the notification information, the physical chip sends the notification information to the monitoring host.
The application provides a service card, the service card is disposed in a network device, the service card includes: the device comprises a detection module, an energy storage circuit, a logic device and a physical chip; wherein:
the detection module is used for sending first abnormal information to the energy storage circuit and sending second abnormal information to the logic device when detecting that the power supply module of the network equipment is abnormal;
the energy storage circuit is used for storing electric energy when the power supply module works normally; when the first abnormal information is received, supplying power to the logic device and the physical chip;
the logic device is used for reading pre-stored notification information from the logic device when the second abnormal information is received, and sending the notification information to the physical chip;
and the physical chip is used for sending the notification information to the monitoring host when receiving the notification information.
The present application provides a logic device, where the logic device is deployed on a service card of a network device, and the logic device includes: a second queue submodule, a selector submodule, and a packet sender submodule, wherein:
the selector submodule is used for conducting the packet sender submodule and the second queue submodule when receiving abnormal information; the abnormal information represents that a power supply module of the network equipment is abnormal;
the packet sender submodule is used for reading pre-stored notification information and sending the notification information to the second queue submodule;
and the second queue submodule is used for receiving the notification information and sending the notification information to the physical chip so that the physical chip sends the notification information to a monitoring host.
Based on the above technical scheme, in the embodiment of the application, when the power module is abnormal, the energy storage circuit only supplies power to the logic device and the physical chip in the service card, and does not need to supply power to the main control board, that is, does not need to supply power to the service processing module (such as a CPU, a memory, and the like) in the main control board, so that the total power consumption of the network device is reduced, and the implementation difficulty and the cost of the energy storage circuit are reduced. The logic device can send the notification information to the monitoring host, and the CPU is not relied to send the notification information to the monitoring host, so that the transmission reliability of the notification information is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present application.
FIG. 1 is a diagram of a hardware configuration of a network device in one embodiment of the present application;
FIG. 2 is a hardware block diagram of a logic device in one embodiment of the present application;
FIG. 3 is a hardware block diagram of a logic device in another embodiment of the present application;
FIG. 4 is a hardware block diagram of a logic device in another embodiment of the present application;
FIG. 5 is a hardware block diagram of a logic device in another embodiment of the present application;
fig. 6 is a flowchart of a notification information transmission method according to an embodiment of the present application.
Detailed Description
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. Depending on the context, moreover, the word "if" is used may be interpreted as "at … …," or "when … …," or "in response to a determination.
In the embodiment of the present application, a network device (such as a router, a switch, a server, and the like) is provided, as shown in fig. 1, which is a schematic structural diagram of a network device, where the network device may include but is not limited to: the system comprises a main control board 10, a service card 20 and a backplane 30, wherein the main control board 10 and the service card 20 can be connected through the backplane 30.
The main control board 10 may include, but is not limited to: the power module 11 and the service processing module 12, the service processing module 12 may include a CPU121 and a switching chip 122, and certainly, the service processing module 12 may also include other sub-modules such as a memory, and the sub-modules of the service processing module 12 are not limited. The service cards 20 may include, but are not limited to: a detection module 21, a tank circuit 22, a logic device 23 and a physical chip 24.
In the embodiment of the present application, the service card 20 may be deployed in a network device, and the service card 20 may be connected to the main control board 10 through the backplane 30. Therefore, when the power module 11 of the main control board 10 is abnormal, the modules in the service card 20 may cooperate with each other, and finally, the notification information is sent to the monitoring host.
Referring to fig. 1, when the power module 11 is operating normally, the power module 11 can supply power to the service processing module 12 and the service card 20, and the power module 11 can store power in the energy storage circuit 22.
When the power module 11 is abnormal, the power module 11 cannot supply power to the service processing module 12 and the service card 20, but is supplied with power by the energy storage circuit 22. The tank circuit 22 only supplies power to the logic device 23 and the physical chip 24 in the service card 20 for a certain period of time when supplying power, so that the logic device 23 and the physical chip 24 send notification information to the monitoring host. However, when the energy storage circuit 22 supplies power, the main control board 10 is no longer supplied with power, that is, the service processing module 12 in the main control board 10 is not supplied with power, and since the service processing module 12 is not required to be supplied with power, the total power consumption of the network device is reduced, and the implementation difficulty and cost of the energy storage circuit 22 are reduced.
In summary, when the power module 11 works normally, the power module 11 supplies power to the service processing module 12 and the service card 20. When the power module 11 is abnormal, the power module 11 cannot supply power to the service processing module 12 and the service card 20, and the energy storage circuit 22 supplies power to the logic device 23 and the physical chip 24.
When the power module 11 works normally, the power module 11 can supply power to the service processing module 12 and the service card 20, and the power module 11 can store electric energy in the energy storage circuit 22, that is, when the power module 11 works normally, the energy storage circuit 22 can store electric energy. Because the power module 11 supplies power to the service processing module 12, the service processing module 12 can normally operate to normally receive and transmit messages.
Specifically, the CPU121 may send the message a to the switch chip 122 through the data bus, and after receiving the message a, the switch chip 122 may send the message a to the logic device 23 through the data bus. After receiving the message a, the logic device 23 may forward the message a to the physical chip 24 through the data bus, and the physical chip 24 may forward the message a to an external device, without limitation on the forwarding of the message a.
After receiving the message B sent by the external device, the physical chip 24 may send the message B to the logic device 23 through the data bus, after receiving the message B, the logic device 23 may forward the message B to the switch chip 122 through the data bus, and the switch chip 122 forwards the message B to the CPU121 through the data bus, so that the CPU121 processes the message B, and the forwarding process of the message B is not limited.
The CPU121 may also acquire notification information of the network device and transmit the notification information to the logic device 23 when the power module 11 is operating normally. The logic device 23 may store the notification information upon receiving the notification information, e.g., the logic device 23 may store the notification information in the present logic device 23.
The CPU121 may transmit the notification information to the logic device 23 via the management bus.
The notification information may include, but is not limited to, one or any combination of the following: the IP address of the network device, the device Information of the network device (such as MIB (Management Information Base) Information), the generation time of the notification Information, the IP address of the monitoring host, and the like, which are not limited herein.
The logic device 23 may include, but is not limited to: an FPGA (Field Programmable Gate Array) chip, and a CPLD (Complex Programmable Logic Device) chip. The logic device 23 may be other chips, which is not limited in this regard.
The notification information may include, but is not limited to: SNMP (Simple Network Management Protocol) alarm information (such as Trap information) or system log information (such as Syslog information). Specifically, the notification information may also be referred to as Dying Gasp (legacy information), which is information sent to the monitoring host after the network device is abnormally powered off, and may include SNMP alarm information (i.e., information generated in an SNMP format) or Syslog information (i.e., information generated in a Syslog format).
Among other things, the management bus may include, but is not limited to: a PCIE (Peripheral Component Interconnect Express) bus, an SMI (Serial Management Interface) bus, a local bus, and the like. Further, the data bus may include, but is not limited to: the ethernet bus may be, for example, a MII (Media Independent Interface) bus, a GMII (Gigabit Media Independent Interface) bus, an SGMII (Serial Gigabit Media Independent Interface) bus, or the like.
When the power module 11 is abnormal, the power module 11 cannot continue to supply power, so that the detection module 21 can detect that the power module 11 is abnormal, that is, a power failure abnormality occurs, and therefore, the first abnormality information can be sent to the energy storage circuit 22, and the second abnormality information can be sent to the logic device 23.
The tank circuit 22 may supply power to the logic device 23 and the physical chip 24 when receiving the first abnormality information. However, the tank circuit 22 disables power to the main control board 10, i.e., power is not required to the service processing module 12 in the main control board 10. Specifically, the energy storage circuit 22 learns that the power module 11 is abnormal when receiving the first abnormality information, and unlike the conventional manner, the energy storage circuit 22 does not need to supply power to the service processing module 12, but only supplies power to the logic device 23 and the physical chip 24. Because sub-modules such as the CPU121 and the memory in the service processing module 12 do not need to be powered, the implementation difficulty of the energy storage circuit 22 is reduced.
When receiving the second abnormality information, the logic device 23 may read notification information stored in advance from the logic device 23 and transmit the notification information to the physical chip 24. Further, the physical chip 24 may send the notification information to the monitoring host when receiving the notification information.
In the above embodiment, the physical chip 24 sends the notification information to the monitoring host, and in order to make the physical chip 24 know which egress interface to send the notification information to the monitoring host, the following manner may be adopted:
in the first mode, when the power module 11 normally works, the CPU121 may further obtain feature information, where the feature information is used to indicate that the notification information is on the output interface of the physical chip 24, and then send the feature information to the logic device 23; the logic device 23, upon receiving the characteristic information, may store the characteristic information.
The CPU121 may query the routing table by monitoring the IP address of the host, obtain an outgoing interface corresponding to the IP address, and send the outgoing interface to the logic device 23. Alternatively, when the IP address of the monitoring host changes, the CPU121 may query the routing table through the changed IP address to obtain an output interface corresponding to the changed IP address, and send the output interface to the logic device 23.
The logic device 23 may transmit the notification information to the physical chip 24 together with the characteristic information when receiving the second abnormality information. After receiving the notification information and the feature information, the physical chip 24 may send the notification information to the monitoring host through the output interface indicated by the feature information.
In the second method, the physical chip 24 is provided with an output interface of the notification information on the physical chip 24. When receiving the second abnormal information, the logic device 23 sends notification information to the physical chip 24; after receiving the notification information, the physical chip 24 sends the notification information to the monitoring host based on the pre-configured output interface.
Through the two ways, the physical chip 24 can send notification information to the monitoring host. Moreover, the notification information may also carry an IP address of the monitoring host, for example, a destination IP address of the notification information is the IP address of the monitoring host, so that each device between the network device and the monitoring host may send the notification information to the monitoring host by using the IP address of the monitoring host, and finally send the notification information to the monitoring host.
After receiving the notification information, the monitoring host can process the notification information because the destination IP address is the IP address of the monitoring host. For example, it is possible to learn that the network device is abnormally powered off according to the notification information, locate the location of the network device and the abnormal time, and shorten the time for recovering the network device from the abnormality.
In the above embodiment, the notification information may carry a generation time of the notification information, and in order to make the generation time the same as or close to the abnormal time of the power module 11, the following manner may be adopted:
in the method a, the CPU121 periodically generates notification information and transmits each generated notification information to the logic device 23, so that the logic device 23 stores the latest notification information, that is, replaces the already stored notification information each time a new notification information is received. Since the CPU121 periodically generates the notification information, that is, the generation time in the notification information is the current time, once the power module 11 is abnormal, the generation time in the notification information can be approximate to the abnormal time of the power module 11, and the accuracy of the generation time is ensured.
Mode B, the CPU121 may generate notification information including the generation time (e.g., time a) and transmit the notification information to the logic device 23 to cause the logic device 23 to store the notification information. After the logic device 23 sends the notification information to the monitoring host, the monitoring host may obtain the generation time (for example, time a) from the notification information, but instead of taking time a as the abnormal time of the power module 11, the monitoring host may take the time (for example, time B) when the monitoring host receives the notification information as the abnormal time of the power module 11.
Mode C, the logic device 23 may further include a timer. The CPU121 may generate notification information, which may include a generation time (e.g., time a), and send the notification information to the logic device 23 to cause the logic device 23 to store the notification information and start a timer of the logic device 23.
When the logic device 23 needs to send the notification information to the monitoring host, the value of the timer may be read first, and if the value is 200 seconds, the logic device 23 may modify the generation time of the notification information to a time a +200 seconds, and send the modified notification information to the monitoring host, so that the generation time in the notification information may be the abnormal time of the power module 11, thereby ensuring the accuracy of the generation time.
Based on the above technical solution, in this embodiment, when the power module 11 is abnormal, the energy storage circuit 22 only supplies power to the logic device 23 and the physical chip 24 in the service card 20, and does not need to supply power to the main control board 10, that is, does not need to supply power to the service processing module 12 (such as the CPU121, the memory, the switch chip 122, and the like) in the main control board 10, so that the total power consumption of the network device can be reduced, and the implementation difficulty, the selection difficulty, and the cost of the energy storage circuit 22 are reduced. Further, the notification information can be sent to the monitoring host by the logic device 23 without relying on the CPU121 to send the notification information to the monitoring host, so that the transmission reliability of the notification information can be improved. In addition, the Dying Gasp function may be deployed on the service card 20, and the main control board 10 does not need to separately implement the Dying Gasp function, that is, even if a new main control board is added to the network device, the new main control board does not need to implement the Dying Gasp function, as long as the new main control board is connected to the service card 20.
In the above embodiment, the logic device 23 is referred to, and the structure of the logic device 23 will be described below.
Referring to fig. 2, the logic device 23 may include: a first queue submodule 231, a second queue submodule 232, a selector submodule 233 and a wrapper submodule 234. The First queue submodule 231 may be a First In First Out (FIFO) module, the second queue submodule 232 may also be a FIFO module, and the selector submodule 233 may be a switch module.
When the power module 11 works normally, the selector submodule 233 is configured to turn on the first queue submodule 231 and the second queue submodule 232, so that the first queue submodule 231 sends the message to the second queue submodule 232, and the second queue submodule 232 sends the message to the physical chip 24.
When the power module 11 is abnormal, the selector submodule 233 may turn on the packet transmitter submodule 234 and the second queue submodule 232 when receiving the second abnormal information, and turn off the first queue submodule 231 and the second queue submodule 232, so that the packet transmitter submodule 234 transmits the notification information to the second queue submodule 232, and the second queue submodule 232 transmits the notification information to the physical chip 24.
Referring to fig. 3, the logic device 23 may further include: a control register 235 and a message template sub-module 236, the control register 235 may be used to store the packet sending rate, and the message template sub-module 236 may be used to store notification information. On this basis, the packetizer sub-module 234 may read the packet sending rate from the control register 235 and may read the notification message from the message template sub-module 236, and then may send the notification message to the second queue sub-module 232 according to the packet sending rate, that is, the packetizer sub-module 234 may periodically send the notification message to the second queue sub-module 232 according to the packet sending rate. Further, each time the second queue submodule 232 receives a notification message, the notification message may be sent to the physical chip 24, and the physical chip 24 may send the notification message to the monitoring host.
The message template sub-module 236 may also be configured to store feature information and notification information, where the feature information indicates that the notification information is on the outgoing interface of the physical chip 24. For example, if the physical chip 24 is connected to the monitoring host through the interface 241, the feature information may be the interface 241.
On this basis, the packetizer sub-module 234 may read the characteristic information and the notification information from the packet template sub-module 236 and send the characteristic information and the notification information to the second queue sub-module 232 according to the packet sending rate. The second queue submodule 232 may send the characteristic information and the notification information to the physical chip 24 after receiving the characteristic information and the notification information. The physical chip 24 may send the notification information according to the feature information after receiving the feature information and the notification information. For example, if the feature information is the interface 241, the physical chip 24 may send the notification information through the interface 241.
Referring to fig. 4, the logic device 23 may further include: a management submodule 237; the management submodule 237 is configured to obtain a packet sending rate, feature information and notification information, and then store the packet sending rate in the control register 235, and store the feature information and the notification information in the message template submodule 236.
On the basis of the logic device 23 of fig. 4, the above-described scheme is explained below with reference to a specific embodiment.
When the power module 11 works normally, the CPU121 may send a message a (a data message that needs to be sent to an external device in a normal service) to the switch chip 122 through the data bus, after receiving the message a, the switch chip 122 may send the message a to the first queue submodule 231 of the logic device 23 through the data bus, and since the selector submodule 233 conducts the first queue submodule 231 and the second queue submodule 232, the first queue submodule 231 may send the message a to the second queue submodule 232 after receiving the message a through the data bus, and the second queue submodule 232 may forward the message a to the physical chip 24 through the data bus, and the physical chip 24 may forward the message a to the external device.
After receiving the message B (i.e., a data message sent by an external device), the physical chip 24 may send the message B to the second queue submodule 232 of the logic device 23 through the data bus, and since the selector submodule 233 connects the first queue submodule 231 and the second queue submodule 232, the second queue submodule 232 may send the message B to the first queue submodule 231 after receiving the message B through the data bus, and the first queue submodule 231 may forward the message B to the switch chip 122 through the data bus, and the switch chip 122 forwards the message B to the CPU121 through the data bus, so that the CPU121 processes the message B.
The CPU121 may further obtain the notification information, and send the notification information to the management submodule 237 of the logic device 23 through the management bus, and after receiving the notification information, the management submodule 237 stores the notification information in the message template submodule 236. The CPU121 may further obtain the feature information, and send the feature information to the management submodule 237 of the logic device 23 through the management bus, and after receiving the feature information, the management submodule 237 stores the feature information in the message template submodule 236.
The characteristic information is used to indicate that the notification information is output from the physical chip 24, for example, if the physical chip 24 is connected to the monitoring host through the interface 241, the characteristic information may be the interface 241.
The management submodule 237 may also obtain a packet sending rate of the notification information and store the packet sending rate in the control register 235, indicating that the notification information is sent periodically according to the packet sending rate. The packet sending rate may be generated by the CPU121 according to actual needs and sent to the management submodule 237, or the management submodule 237 itself may be generated according to actual needs, which is not limited to this.
The management sub-module 237 may also obtain operating parameters (e.g., operating parameters such as operating speed, duplex mode, queue length, etc.) of the first queue sub-module 231, and store the operating parameters of the first queue sub-module 231 in the control register 235, indicating that the first queue sub-module 231 operates according to the operating parameters. Also, the first queue submodule 231 may be connected to the control register 235, and read the operating parameter of the first queue submodule 231 from the control register 235. The working parameters of the first queue submodule 231 may be generated by the CPU121 according to actual needs and sent to the management submodule 237, or may be generated by the management submodule 237 according to actual needs, which is not limited to this.
The management submodule 237 may further obtain a working parameter of the second queue submodule 232, and store the working parameter of the second queue submodule 232 in the control register 235, which indicates that the second queue submodule 232 works according to the working parameter. The second queue submodule 232 may be coupled to the control register 235 and read the operating parameters of the second queue submodule 232 from the control register 235. The working parameters of the second queue submodule 232 may be generated by the CPU121 according to actual needs and sent to the management submodule 237, or may be generated by the management submodule 237 according to actual needs.
When the power module 11 is abnormal, the detection module 21 can detect that the power module 11 is abnormal, send the first abnormal information to the energy storage circuit 22, and send the second abnormal information to the selector submodule 233 of the logic device 23. The tank circuit 22 may supply power to the logic device 23 and the physical chip 24 when receiving the first anomaly information sent by the detection module 21. The selector submodule 233 of the logic device 23, upon receiving the second exception message, may turn on the transmitter submodule 234 and the second queue submodule 232, and may turn on the first queue submodule 231 and the second queue submodule 232.
The packetizer sub-module 234 may read the packet transmission rate from the control registers 235 and the feature information and the notification information from the message template sub-module 236, and then send the feature information and the notification information to the second queue sub-module 232 according to the packet transmission rate, that is, the packetizer sub-module 234 periodically sends the feature information and the notification information to the second queue sub-module 232 according to the packet transmission rate.
The second queue submodule 232 may send the characteristic information and the notification information to the physical chip 24 after receiving the characteristic information and the notification information. The physical chip 24 may send the notification information according to the feature information after receiving the feature information and the notification information. For example, if the characteristic information is the interface 241, the physical chip 24 may send the notification information to the monitoring host through the interface 241.
In an example, the switch chip 122 of the main control board 10 may include a plurality of interfaces, each interface is an IO (Input Output), in order to connect with a plurality of interfaces of the switch chip 122, the number of the first queue sub-modules 231 may be multiple, the number of the second queue sub-modules 232 may also be multiple, the number of the first queue sub-modules 231 may be the same as the number of the second queue sub-modules 232, and the number of the first queue sub-modules 231 is the same as the number of the interfaces of the switch chip 122. Referring to fig. 5, a schematic diagram of the logic device 23 including a plurality of first queue submodules 231 and a plurality of second queue submodules 232 is shown.
For example, the switch chip 122 may include two interfaces, such that the logic device 23 may include two first queue submodules 231 and the logic device 23 may include two second queue submodules 232.
In this application scenario, each interface of the switch chip 122 may correspond to a first queue submodule 231 and a second queue submodule 232, that is, the first queue submodule 231 and the second queue submodule 232 may be used to transmit the message of the interface. For example, messages of one interface may be transmitted through one first queue submodule 231 and one second queue submodule 232, and messages of another interface may be transmitted through another first queue submodule 231 and another second queue submodule 232.
Based on the same application concept as the method described above, an embodiment of the present application further provides a notification information transmission method, which can be applied to a network device, where the network device includes: the main control board includes a power module, and the service card includes a detection module, an energy storage circuit, a logic device, and a physical chip, as shown in fig. 6, which is a structure diagram of the method, and the method may include:
In step 604, the physical chip sends the notification information to the monitoring host when receiving the notification information.
The embodiment of the present application further provides a service card, where the service card is deployed in a network device, and the service card includes: the device comprises a detection module, an energy storage circuit, a logic device and a physical chip; wherein:
the detection module is used for sending first abnormal information to the energy storage circuit and sending second abnormal information to the logic device when detecting that the power supply module of the network equipment is abnormal;
the energy storage circuit is used for storing electric energy when the power supply module works normally; when the first abnormal information is received, supplying power to the logic device and the physical chip;
the logic device is used for reading pre-stored notification information from the logic device when the second abnormal information is received, and sending the notification information to the physical chip;
and the physical chip is used for sending the notification information to the monitoring host when receiving the notification information.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Furthermore, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims (10)
1. A network device, comprising: the system comprises a main control board and a service card, wherein the main control board comprises a power supply module, and the service card comprises a detection module, an energy storage circuit, a logic device and a physical chip; wherein:
the detection module is used for sending first abnormal information to the energy storage circuit and sending second abnormal information to the logic device when detecting that the power supply module is abnormal;
the energy storage circuit is used for storing electric energy when the power supply module works normally; when the first abnormal information is received, supplying power to the logic device and the physical chip;
the logic device is used for reading pre-stored notification information from the logic device when the second abnormal information is received, and sending the notification information to the physical chip;
the physical chip is used for sending the notification information to the monitoring host when receiving the notification information;
the main control board also comprises a Central Processing Unit (CPU); the CPU is used for periodically generating notification information of the network equipment when the power supply module works normally and sending the generated notification information to the logic device; the logic is further configured to: storing the latest notification information after receiving the notification information each time; the notification information comprises the generation time of the notification information; or, the CPU is configured to obtain notification information of the network device when the power module operates normally, and send the notification information to the logic device; the logic is further configured to: after receiving the notification information, storing the notification information and starting a timer, wherein the notification information comprises generation time; and when the logic device sends the notification information to the physical chip, reading the value of the timer, and modifying the generation time of the notification information based on the generation time in the notification information and the value.
2. The network device of claim 1, wherein the tank circuit is further configured to:
and when the first abnormal information is received, power supply for the main control board is forbidden.
3. The network device of claim 1, wherein the logic means comprises: a first queue submodule, a second queue submodule, a selector submodule, and a transmitter submodule, wherein:
the selector submodule is used for conducting the first queue submodule and the second queue submodule when the second abnormal information is not received; the first queue submodule is used for receiving the message sent by the CPU and sending the message to a second queue submodule; the second queue submodule is used for receiving the message sent by the first queue submodule and sending the message to the physical chip;
the selector submodule is further used for conducting the packet sender submodule and the second queue submodule when the second abnormal information is received; the packet sender submodule is used for reading pre-stored notification information and sending the notification information to the second queue submodule; and the second queue submodule is also used for receiving the notification information and sending the notification information to the physical chip.
4. The network device of claim 3,
the logic device further comprises: a control register and a message template submodule;
the control register is used for storing a packet sending rate, the message template submodule is used for storing notification information and characteristic information, and the characteristic information is used for indicating an output interface of the notification information on the physical chip;
the packet sender submodule is also used for reading the packet sending rate from the control register, reading the notification information and the characteristic information from the message template submodule, and sending the notification information and the characteristic information to the second queue submodule according to the packet sending rate;
the second queue submodule is further configured to send the feature information and the notification information to the physical chip, so that the physical chip sends the notification information according to the feature information.
5. The network device of claim 4,
the logic device further comprises: a management submodule; the management submodule is configured to obtain the packet sending rate, the feature information, and the notification information, store the packet sending rate in the control register, and store the feature information and the notification information in the message template submodule.
6. A notification information transmission method is applied to a network device, and the network device comprises: the system comprises a main control board and a service card, wherein the main control board comprises a power supply module and a Central Processing Unit (CPU), the service card comprises a detection module, an energy storage circuit, a logic device and a physical chip, and the method comprises the following steps:
when the detection module detects that the power supply module is abnormal, the detection module sends first abnormal information to the energy storage circuit and sends second abnormal information to the logic device;
the energy storage circuit stores electric energy when the power supply module works normally; when the first abnormal information is received, supplying power to the logic device and the physical chip;
when the logic device receives the second abnormal information, reading pre-stored notification information from the logic device, and sending the notification information to the physical chip;
the physical chip sends the notification information to a monitoring host when receiving the notification information;
when the power module works normally, the CPU generates notification information of the network equipment periodically and sends the generated notification information to the logic device; the logic device stores the latest notification information after receiving the notification information each time; the notification information comprises the generation time of the notification information; or, when the power module works normally, the CPU obtains notification information of the network device, and sends the notification information to the logic device; after receiving the notification information, the logic device stores the notification information and starts a timer, wherein the notification information comprises generation time; and when the logic device sends the notification information to the physical chip, reading the value of the timer, and modifying the generation time of the notification information based on the generation time in the notification information and the value.
7. A service card, wherein the service card is deployed in a network device, and the service card comprises: the device comprises a detection module, an energy storage circuit, a logic device and a physical chip; wherein:
the detection module is used for sending first abnormal information to the energy storage circuit and sending second abnormal information to the logic device when detecting that the power supply module of the network equipment is abnormal;
the energy storage circuit is used for storing electric energy when the power supply module works normally; when the first abnormal information is received, supplying power to the logic device and the physical chip;
the logic device is used for reading pre-stored notification information from the logic device when the second abnormal information is received, and sending the notification information to the physical chip;
the physical chip is used for sending the notification information to the monitoring host when receiving the notification information;
wherein the logic is further configured to: the method comprises the steps of periodically receiving notification information of the network equipment, and storing the latest notification information after receiving the notification information every time, wherein the notification information comprises the generation time of the notification information; alternatively, the logic is further configured to: after receiving notification information of the network equipment, storing the notification information and starting a timer, wherein the notification information comprises generation time; and when the notification information needs to be sent to the physical chip, reading the value of the timer, and modifying the generation time of the notification information based on the generation time in the notification information and the value.
8. A logic device deployed on a service card of a network device, the logic device comprising: a second queue submodule, a selector submodule, and a packet sender submodule, wherein:
the selector submodule is used for conducting the packet sender submodule and the second queue submodule when receiving abnormal information; the abnormal information represents that a power supply module of the network equipment is abnormal;
the packet sender submodule is used for reading pre-stored notification information and sending the notification information to the second queue submodule;
the second queue submodule is used for receiving the notification information and sending the notification information to a physical chip so that the physical chip sends the notification information to a monitoring host;
wherein the logic is further configured to: the method comprises the steps of periodically receiving notification information of the network equipment, and storing the latest notification information after receiving the notification information every time, wherein the notification information comprises the generation time of the notification information; alternatively, the logic is further configured to: after receiving notification information of the network equipment, storing the notification information and starting a timer, wherein the notification information comprises generation time; and when the notification information needs to be sent to the physical chip, reading the value of the timer, and modifying the generation time of the notification information based on the generation time in the notification information and the value.
9. The logic device of a service card deployed at a network device of claim 8,
the logic device further comprises: a control register and a message template submodule;
the control register is used for storing a packet sending rate, the message template submodule is used for storing notification information and characteristic information, and the characteristic information is used for indicating an output interface of the notification information on the physical chip;
the packet sender submodule is also used for reading the packet sending rate from the control register, reading the notification information and the characteristic information from the message template submodule, and sending the notification information and the characteristic information to the second queue submodule according to the packet sending rate;
the second queue submodule is further configured to send the feature information and the notification information to the physical chip, so that the physical chip sends the notification information according to the feature information.
10. The logic device of a service card deployed at a network device of claim 9,
the logic device further comprises: a management submodule; the management submodule is configured to obtain the packet sending rate, the feature information, and the notification information, store the packet sending rate in the control register, and store the feature information and the notification information in the message template submodule.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811393267.6A CN109257185B (en) | 2018-11-21 | 2018-11-21 | Network equipment, service card, logic device and notification information transmission method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811393267.6A CN109257185B (en) | 2018-11-21 | 2018-11-21 | Network equipment, service card, logic device and notification information transmission method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109257185A CN109257185A (en) | 2019-01-22 |
CN109257185B true CN109257185B (en) | 2021-01-26 |
Family
ID=65041983
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811393267.6A Active CN109257185B (en) | 2018-11-21 | 2018-11-21 | Network equipment, service card, logic device and notification information transmission method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109257185B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417687B (en) * | 2019-07-23 | 2021-07-23 | 杭州迪普信息技术有限公司 | Message sending and receiving method and device |
CN113835513B (en) * | 2021-09-16 | 2024-03-01 | 新华三信息安全技术有限公司 | Power-off information transmission method, main control board, sub-card, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104270803A (en) * | 2014-09-05 | 2015-01-07 | 杭州华三通信技术有限公司 | Adjusting method and device for AP working mode |
CN104283718A (en) * | 2014-10-27 | 2015-01-14 | 杭州华三通信技术有限公司 | Network device and hardware fault diagnosis method used for network device |
CN107316659A (en) * | 2017-06-28 | 2017-11-03 | 东信和平科技股份有限公司 | Memory power down time section localization method and system power failure guard method |
CN107544619A (en) * | 2017-06-27 | 2018-01-05 | 新华三云计算技术有限公司 | Method for synchronizing time and device |
CN107607803A (en) * | 2016-07-11 | 2018-01-19 | 株洲中车时代电气股份有限公司 | Converter system failure logging method, apparatus and system |
CN108228428A (en) * | 2018-02-05 | 2018-06-29 | 百度在线网络技术(北京)有限公司 | For the method and apparatus of output information |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020032764A1 (en) * | 2000-09-04 | 2002-03-14 | Routrek Networks, Inc. | Technology for managing trouble creating devices in a network |
CN102647739B (en) * | 2011-02-18 | 2014-08-06 | 鼎桥通信技术有限公司 | Radio remote unit |
TWI418176B (en) * | 2011-05-27 | 2013-12-01 | Hon Hai Prec Ind Co Ltd | Network communication device |
CN103220236B (en) * | 2012-01-21 | 2017-04-12 | 华为技术有限公司 | Management method for exchanging chip ports, main control panel, exchanging panel and system |
CN104104434A (en) * | 2014-07-24 | 2014-10-15 | 北京华环电子股份有限公司 | Power failure alarm implementation method capable of rapidly inserting alarm frame |
CN107507405A (en) * | 2017-09-22 | 2017-12-22 | 烽火通信科技股份有限公司 | Reduce the method and system of power fail warning handling duration |
-
2018
- 2018-11-21 CN CN201811393267.6A patent/CN109257185B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104270803A (en) * | 2014-09-05 | 2015-01-07 | 杭州华三通信技术有限公司 | Adjusting method and device for AP working mode |
CN104283718A (en) * | 2014-10-27 | 2015-01-14 | 杭州华三通信技术有限公司 | Network device and hardware fault diagnosis method used for network device |
CN107607803A (en) * | 2016-07-11 | 2018-01-19 | 株洲中车时代电气股份有限公司 | Converter system failure logging method, apparatus and system |
CN107544619A (en) * | 2017-06-27 | 2018-01-05 | 新华三云计算技术有限公司 | Method for synchronizing time and device |
CN107316659A (en) * | 2017-06-28 | 2017-11-03 | 东信和平科技股份有限公司 | Memory power down time section localization method and system power failure guard method |
CN108228428A (en) * | 2018-02-05 | 2018-06-29 | 百度在线网络技术(北京)有限公司 | For the method and apparatus of output information |
Non-Patent Citations (3)
Title |
---|
《Real-time detection algorithm of abnormal behavior in crowds based on Gaussian mixture model》;Zhaohui Luo; Weisheng He; Minghui Liwang; Lianfen Huang; Yifeng;《2017 12th International Conference on Computer Science and Education (ICCSE)》;20171030;全文 * |
《一种室分电源智能隐患发掘工具》;何蓉;《信息通信》;20180731;全文 * |
《三层以太网交换机掉电告警设计及实现》;陈辉辉,刘琼,丁颖,李文,曹敏;《光通信技术》;20150831(第8期);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN109257185A (en) | 2019-01-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109388213B (en) | Server system, computer-implemented method, and non-transitory computer-readable medium | |
US8693343B2 (en) | Relay apparatus, virtual machine system, and relay method | |
CN109347685B (en) | Network equipment, logic device and notification information transmission method | |
EP3520325B1 (en) | Dynamically identifying criticality of services and data sources | |
CN110740072A (en) | fault detection method, device and related equipment | |
CN109257185B (en) | Network equipment, service card, logic device and notification information transmission method | |
CN109495345B (en) | BFD processing method and network equipment | |
CN108718258B (en) | Quality detection method and equipment for inter-board link | |
CN111130821B (en) | Power failure alarm method, processing method and device | |
US8966148B2 (en) | Providing real-time interrupts over Ethernet | |
CN109150659B (en) | Processor and BFD message transmission method | |
US11258658B2 (en) | Technologies for monitoring networked computing devices using deadman triggers | |
CN110784339B (en) | LACP message overtime fault detection method and device, and electronic equipment | |
CN110417687B (en) | Message sending and receiving method and device | |
CN108882270B (en) | Network equipment and equipment management method | |
CN110932878A (en) | Management method, equipment and system of distributed network | |
US11088897B2 (en) | Bidirectional forwarding detection control packet to indicate maintenance mode operation | |
US20230171180A1 (en) | Data processing method, packet sending method, and apparatus | |
CN112217718A (en) | Service processing method, device, equipment and storage medium | |
KR20150104435A (en) | Method of performing transition of operation mode for a routing processor | |
CN109510718B (en) | Alarm information processing method and device | |
US20180206008A1 (en) | Connection management method, controller, and server cabinet | |
CN112532412B (en) | Network fault detection method and network fault detection device | |
CN110740094B (en) | Network equipment, BFD message transmission method and device | |
CN111478845B (en) | Protection switching method and provider network edge device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |