CN109347685B - Network equipment, logic device and notification information transmission method - Google Patents

Network equipment, logic device and notification information transmission method Download PDF

Info

Publication number
CN109347685B
CN109347685B CN201811393254.9A CN201811393254A CN109347685B CN 109347685 B CN109347685 B CN 109347685B CN 201811393254 A CN201811393254 A CN 201811393254A CN 109347685 B CN109347685 B CN 109347685B
Authority
CN
China
Prior art keywords
notification information
information
submodule
logic device
module
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
Application number
CN201811393254.9A
Other languages
Chinese (zh)
Other versions
CN109347685A (en
Inventor
左彦峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201811393254.9A priority Critical patent/CN109347685B/en
Publication of CN109347685A publication Critical patent/CN109347685A/en
Application granted granted Critical
Publication of CN109347685B publication Critical patent/CN109347685B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application provides a network device, a logic device and a notification information transmission method, wherein the network device comprises: the system comprises a power supply module, a detection module, an energy storage circuit and a service processing module, wherein the service processing module comprises a logic device and a switching 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 exchange 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 exchange chip; and the switching chip is used for sending the notification information to the monitoring host after receiving the notification information. By the technical scheme, the total power consumption of the service processing module can be reduced, and the realization difficulty and cost of the energy storage circuit are reduced.

Description

Network equipment, logic device and notification information transmission method
Technical Field
The present application relates to the field of communications technologies, and in particular, to a network device, a logic apparatus, 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 power supply module, a detection module, an energy storage circuit and a service processing module, wherein the service processing module comprises a logic device and a switching 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 exchange 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 exchange chip;
and the switching chip is used for sending the notification information to the monitoring host after receiving the notification information.
The application provides a notification information transmission method, which is applied to network equipment, wherein the network equipment comprises: the system comprises a power supply module, a detection module, an energy storage circuit and a service processing module, wherein the service processing module comprises a logic device and a switching chip; 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 exchange 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 switching chip;
and after receiving the notification information, the switching chip sends the notification information to the monitoring host.
The present application provides a logic apparatus, the logic apparatus is disposed in a network device, and the logic apparatus 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 switching chip so that the switching chip sends the notification information to the 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 needs to supply power to the logic device and the switch chip in the service processing module, and does not need to supply power to other sub-modules (such as a CPU, a memory, and the like) in the service processing module, so that the total power consumption of the service processing module 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 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.
An embodiment of the present application provides a network device (such as a router, a switch, a server, and the like), which is shown in fig. 1 and is a schematic structural diagram of the network device, where the network device may include but is not limited to: the power module 11, the detection module 12, the energy storage circuit 13 and the service processing module 14, and the service processing module 14 may include, but is not limited to: the logic device 141, the switch chip 142, and the CPU143, of course, the service processing module 14 may further include other sub-modules such as an internal memory, and the sub-modules of the service processing module 14 are not limited.
In this embodiment, the logic device 141 is disposed between the CPU143 and the switch chip 142, and the logic device 141 is configured to send notification information to the monitoring host when an abnormality occurs in the power module 11. Among them, the logic device 141 may include but is not limited to: an FPGA (Field Programmable Gate Array) chip, and a CPLD (Complex Programmable Logic Device) chip. Of course, the logic device 141 may be other types of chips, which is not limited in this respect.
Referring to fig. 1, when the power module 11 works normally, the power module 11 can supply power to the service processing module 14, and the power module 11 stores electric energy in the energy storage circuit 13. When the power module 11 is abnormal, the power module 11 cannot supply power to the service processing module 14, but the energy storage circuit 13 supplies power to the service processing module 14 for a period of time, so that the service processing module 14 sends notification information to the monitoring host.
When the energy storage circuit 13 supplies power to the service processing module 14, not all the sub-modules in the service processing module 14, but only the logic device 141 and the switch chip 142 in the service processing module 14, and since the power does not need to be supplied to the sub-modules such as the CPU143 and the memory in the service processing module 14, the total power consumption of the service processing module 14 can be reduced, and the implementation difficulty and cost of the energy storage circuit 13 can be reduced.
To sum up, in the embodiment of the present application, when the power module 11 works normally, the power module 11 supplies power to the service processing module 14. When the power module 11 is abnormal, the power module 11 cannot supply power to the service processing module 14, and the energy storage circuit 13 supplies power to the logic device 141 and the switch chip 142.
When the power module 11 works normally, the power module 11 can supply power to the service processing module 14, and the power module 11 can store electric energy in the energy storage circuit 13, that is, when the power module 11 works normally, the energy storage circuit 13 can store electric energy. Because the power module 11 supplies power to the service processing module 14, the service processing module 14 can work normally and can send messages normally.
Specifically, the CPU143 may send the message a to the logic device 141 through the data bus 1, the logic device 141 may forward the message a to the switch chip 142 through the data bus 2, and the switch chip 142 may forward the message a to an external device, which is not limited to the forwarding process of the message a.
In addition, after receiving the message B, the switch chip 142 may send the message B to the logic device 141 through the data bus 2, and the logic device 141 may forward the message B to the CPU143 through the data bus 1, so that the CPU143 processes the message B, and the forwarding process of the message B is not limited.
When the power module 11 is operating normally, the CPU143 may also obtain notification information and send the notification information to the logic device 141; the logic device 141 may store the notification information after receiving the notification information, and for example, the logic device 141 may store the notification information.
The CPU143 may transmit the notification information to the logic device 141 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 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, etc., and the data bus 1/data bus 2 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 12 can detect that the power module 11 is abnormal, that is, power failure abnormality occurs, and therefore, the first abnormal information can be sent to the energy storage circuit 13, and the second abnormal information can be sent to the logic device 141.
The energy storage circuit 13 may supply power to the logic device 141 and the switch chip 142 when receiving the first exception information, but the energy storage circuit 13 prohibits power supply to other sub-modules in the service processing module 14 except for the logic device 141 and the switch chip 142. Specifically, when the energy storage circuit 13 receives the first abnormality information, it is known that the power supply module 11 is abnormal, and different from the conventional manner, the energy storage circuit 13 supplies power to only the logic device 141 and the switch chip 142 instead of supplying power to all sub-modules in the service processing module 14, and does not supply power to other sub-modules (such as the CPU143 and the memory, etc.) in the service processing module 14. Because the power supply for the sub-modules such as the CPU143 and the memory is not needed, the implementation difficulty of the energy storage circuit 13 is reduced.
When receiving the second abnormality information, the logic device 141 may read notification information stored in advance from the logic device 141 and send the notification information to the switch chip 142. Further, the switch chip 142 may send the notification information to the monitoring host after receiving the notification information.
In the above embodiment, the switch chip 142 sends the notification information to the monitoring host, and in order to make the switch chip 142 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 CPU143 may further obtain feature information, where the feature information is used to indicate that the notification information is on the output interface of the switch chip 142, and then send the feature information to the logic device 141; logic device 141, upon receiving the characterization information, may store the characterization information.
The CPU143 may query the routing table by monitoring the IP address of the host, obtain an egress interface corresponding to the IP address, and send the egress interface to the logic device 141. Alternatively, when the IP address of the monitoring host changes, the CPU143 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 141.
The logic device 141, upon receiving the second abnormality information, may send the notification information to the switch chip 142 together with the feature information. After receiving the notification information and the feature information, the switch chip 142 may send the notification information to the monitoring host through the output interface indicated by the feature information.
In the second method, the output interface of the notification information on the switch chip 142 is configured in advance on the switch chip 142. When receiving the second abnormal information, the logic device 141 sends notification information to the switch chip 142; after receiving the notification information, the switch chip 142 sends the notification information to the monitoring host based on the pre-configured output interface.
Through the two manners, the switch chip 142 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 CPU143 periodically generates notification information and transmits each generated notification information to the logic device 141, so that the logic device 141 stores the latest notification information, that is, replaces the already stored notification information each time a new notification information is received. Since the CPU143 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, thereby ensuring the accuracy of the generation time.
Mode B, CPU143 may generate notification information that includes the generation time (e.g., time a) and send the notification information to logic device 141 to cause logic device 141 to store the notification information. After the logic device 141 sends the notification information to the monitoring host, the monitoring host may obtain the generation time (e.g., 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 receive the notification information (e.g., time B) as the abnormal time of the power module 11.
Mode C, the logic device 141 may further include a timer. CPU143 may generate notification information, which may include a generation time (e.g., time a), and send the notification information to logic device 141 to cause logic device 141 to store the notification information and start a timer of logic device 141. When the notification information needs to be sent to the monitoring host, the logic device 141 may first read the value of the timer, and if the value is 200 seconds, the logic device 141 may modify the generation time of the notification information to be 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 the embodiment of the present application, when the power module 11 is abnormal, the energy storage circuit 13 only needs to supply power to the logic device 141 and the switch chip 142 in the service processing module 14, and does not need to supply power to other sub-modules (e.g., the CPU143, the memory, etc.) in the service processing module 14, so that the total power consumption of the service processing module 14 is reduced, and the implementation difficulty, the selection difficulty, and the cost of the energy storage circuit 13 are greatly reduced. Further, the notification information can be transmitted to the monitoring host by the logic device 141 without relying on the CPU143 to transmit the notification information to the monitoring host, so that the transmission reliability of the notification information can be improved.
In the above embodiment, the logic device 141 is referred to, and the structure of the logic device 141 will be described below.
Referring to fig. 2, the logic device 141 may include: a first queue sub-module 1411, a second queue sub-module 1412, a selector sub-module 1413, and a transmitter sub-module 1414. The First queue submodule 1411 may be a First-in First-out (FIFO) module, the second queue submodule 1412 may also be a FIFO module, and the selector submodule 1413 may be a switch module.
When the power module 11 works normally, the selector sub-module 1413 is configured to conduct the first queue sub-module 1411 and the second queue sub-module 1412, so that the first queue sub-module 1411 sends the message to the second queue sub-module 1412, and the second queue sub-module 1412 sends the message to the switch chip 142.
When the power module 11 is abnormal, the selector sub-module 1413 may turn on the packet transmitter sub-module 1414 and the second queue sub-module 1412 when receiving the second abnormal information, and turn off the first queue sub-module 1411 and the second queue sub-module 1412, so that the packet transmitter sub-module 1414 sends the notification information to the second queue sub-module 1412, and the second queue sub-module 1412 sends the notification information to the switch chip 142.
Referring to fig. 3, the logic device 141 may further include: a control register 1415 and a message template sub-module 1416, the control register 1415 being for storing the packet transmission rate, the message template sub-module 1416 being for storing the notification information. On this basis, the packetizer sub-module 1414 may read the packet sending rate from the control register 1415 and may read the notification information from the message template sub-module 1416, and may then send the notification information to the second queue sub-module 1412 according to the packet sending rate, that is, the packetizer sub-module 1414 may periodically send the notification information to the second queue sub-module 1412 according to the packet sending rate. Further, each time the second queue sub-module 1412 receives a notification message, the notification message is sent to the switch chip 142, and the switch chip 142 sends the notification message to the monitoring host.
The message template sub-module 1416 is further configured to store feature information and notification information, where the feature information is used to indicate that the notification information is on the outgoing interface of the switch chip 142; for example, if the switch chip 142 is connected to the monitoring host through the interface 1421, the characteristic information may be the interface 1421.
On this basis, the packet sender sub-module 1414 can read the feature information and the notification information from the message template sub-module 1416 and send the feature information and the notification information to the second queue sub-module 1412 according to the packet sending rate. The second queue sub-module 1412 may send the characteristic information and the notification information to the switch chip 142 after receiving the characteristic information and the notification information. After receiving the feature information and the notification information, the switch chip 142 may send the notification information according to the feature information; for example, if the feature information is the interface 1421, the switch chip 142 may send the notification information through the interface 1421.
Referring to fig. 4, the logic device 141 may further include: a management submodule 1417; the management submodule 1417 is configured to obtain a packet sending rate, feature information, and notification information, store the packet sending rate in the control register 1415, and store the feature information and the notification information in the message template submodule 1416.
On the basis of the logic device 141 of fig. 4, the above-described scheme is explained below with reference to specific embodiments.
When the power module 11 works normally, the CPU143 may send a message a (a data message that needs to be sent to an external device for a normal service) to the first queue submodule 1411 of the logic device 141 through the data bus 1, and as the selector submodule 1413 conducts the first queue submodule 1411 and the second queue submodule 1412, after receiving the message a through the data bus 1, the first queue submodule 1411 sends the message a to the second queue submodule 1412, and the second queue submodule 1412 may forward the message a to the switch chip 142 through the data bus 2, and the switch chip 142 may forward the message a to the external device.
After receiving the message B (i.e., the data message sent by the external device of the normal service to the network device), the switch chip 142 may send the message B to the second queue submodule 1412 of the logic device 141 through the data bus 2, and as the selector submodule 1413 conducts the first queue submodule 1411 and the second queue submodule 1412, after receiving the message B through the data bus 2, the second queue submodule 1412 sends the message B to the first queue submodule 1411, and the first queue submodule 1411 forwards the message B to the CPU143 through the data bus 1, so that the CPU143 processes the message B.
CPU143 may also obtain notification information and send the notification information to management submodule 1417 of logic device 141 via the management bus, and after receiving the notification information, management submodule 1417 stores the notification information in message template submodule 1416. The CPU143 may further obtain the feature information, and send the feature information to the management sub-module 1417 of the logic device 141 through the management bus, and after receiving the feature information, the management sub-module 1417 stores the feature information in the message template sub-module 1416.
The characteristic information is used to indicate that the notification information is output from the interface of the switch chip 142, for example, if the switch chip 142 is connected to the monitoring host through the interface 1421, the characteristic information may be the interface 1421.
The management submodule 1417 may also obtain a packet transmission rate for the notification information and store the packet transmission rate in the control register 1415, indicating that the notification information is periodically transmitted at the packet transmission rate. The packet sending rate may be generated by the CPU143 according to actual needs and sent to the management submodule 1417, or the management submodule 1417 itself may be generated according to actual needs, which is not limited herein.
The management sub-module 1417 may further obtain working parameters (e.g., a working rate, a duplex mode, a queue length, etc.) of the first queue sub-module 1411, and store the working parameters of the first queue sub-module 1411 in the control register 1415, which indicates that the first queue sub-module 1411 works according to the working parameters. Also, the first queue submodule 1411 may be coupled to the control register 1415 and read operating parameters of the first queue submodule 1411 from the control register 1415. The working parameters of the first queue submodule 1411 may be generated by the CPU143 according to actual needs and sent to the management submodule 1417, or the management submodule 1417 itself may be generated according to actual needs, which is not limited herein.
The management sub-module 1417 may further obtain the working parameter of the second queue sub-module 1412, and store the working parameter of the second queue sub-module 1412 in the control register 1415, which indicates that the second queue sub-module 1412 works according to the working parameter. Second queue sub-module 1412 may be coupled to control registers 1415 and read operating parameters of second queue sub-module 1412 from control registers 1415. The working parameters of the second queue sub-module 1412 may be generated by the CPU143 according to actual needs and sent to the management sub-module 1417, or the management sub-module 1417 itself may be generated according to actual needs.
When the power module 11 is abnormal, the detection module 12 can detect that the power module 11 is abnormal, and send the first abnormal information to the energy storage circuit 13 and send the second abnormal information to the selector sub-module 1413 of the logic device 141. The tank circuit 13 may supply power to the logic device 141 and the switch chip 142 when receiving the first abnormality information. The selector sub-module 1413 of the logic device 141, upon receiving the second exception message, may turn on the transmitter sub-module 1414 and the second queue sub-module 1412, and may turn off the first queue sub-module 1411 and the second queue sub-module 1412.
The packetizer sub-module 1414 may read the packet sending rate from the control register 1415 and the feature information and the notification information from the message template sub-module 1416, and then send the feature information and the notification information to the second queue sub-module 1412 according to the packet sending rate, that is, the packetizer sub-module 1414 periodically sends the feature information and the notification information to the second queue sub-module 1412 according to the packet sending rate.
The second queue sub-module 1412 may send the characteristic information and the notification information to the switch chip 142 after receiving the characteristic information and the notification information. After receiving the feature information and the notification information, the switch chip 142 may send the notification information according to the feature information; for example, if the characteristic information is the interface 1421, the switch chip 142 may send the notification information to the monitoring host through the interface 1421.
The embodiment of the present application further provides a notification information transmission method, which is applied to a network device, where the network device includes: the system comprises a power supply module, a detection module, an energy storage circuit and a service processing module, wherein the service processing module comprises a logic device and a switching chip; referring to fig. 5, which is a flow chart of the method, the method may include:
step 501, when detecting that the power module is abnormal, the detection module sends first abnormal information to the energy storage circuit and sends second abnormal information to the logic device.
Step 502, the energy storage circuit stores electric energy when the power module works normally; and when the first abnormal information is received, supplying power to the logic device and the exchange chip.
In step 503, when the logic device receives the second abnormal information, it reads the pre-stored notification information from the logic device, and sends the notification information to the switch chip.
Step 504, after receiving the notification information, the switch chip sends the notification information to the monitoring host.
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 (9)

1. A network device, comprising: the system comprises a power supply module, a detection module, an energy storage circuit and a service processing module, wherein the service processing module comprises a logic device and a switching 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 exchange 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 exchange chip;
the switching chip is used for sending the notification information to the monitoring host after receiving the notification information;
the service processing module also comprises a Central Processing Unit (CPU);
the CPU is used for periodically generating notification information when the power supply module works normally and sending the notification information generated each time 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 acquire notification information and send the notification information to the logic device when the power module is operating normally; 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 exchange 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,
the tank circuit is configured to: and when the first abnormal information is received, forbidding to supply power to other sub-modules in the service processing module except the logic device and the switching chip.
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 the 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 switching 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 switching 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 exchange 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 switch chip, so that the switch 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 power supply module, a detection module, an energy storage circuit and a service processing module, wherein the service processing module comprises a logic device, a switching chip and a Central Processing Unit (CPU); 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 exchange 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 switching chip;
the exchange chip sends the notification information to the monitoring host after receiving the notification information;
when the power module works normally, the CPU generates notification information 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,
the CPU acquires notification information when the power module works normally, 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 exchange 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 logic apparatus deployed at a network device, the logic apparatus 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 switching chip so that the switching 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, 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, 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 exchange 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. The logic device deployed on a network device of claim 7,
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 exchange 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 switch chip, so that the switch chip sends the notification information according to the feature information.
9. The logic device deployed on a network device of claim 8,
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.
CN201811393254.9A 2018-11-21 2018-11-21 Network equipment, logic device and notification information transmission method Active CN109347685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811393254.9A CN109347685B (en) 2018-11-21 2018-11-21 Network equipment, logic device and notification information transmission method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811393254.9A CN109347685B (en) 2018-11-21 2018-11-21 Network equipment, logic device and notification information transmission method

Publications (2)

Publication Number Publication Date
CN109347685A CN109347685A (en) 2019-02-15
CN109347685B true CN109347685B (en) 2021-01-26

Family

ID=65316803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811393254.9A Active CN109347685B (en) 2018-11-21 2018-11-21 Network equipment, logic device and notification information transmission method

Country Status (1)

Country Link
CN (1) CN109347685B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732614B (en) * 2020-12-30 2022-11-04 展讯通信(上海)有限公司 Information transmission method, device, chip, equipment and storage medium
CN113835513B (en) * 2021-09-16 2024-03-01 新华三信息安全技术有限公司 Power-off information transmission method, main control board, sub-card, equipment and storage medium
WO2023185666A1 (en) * 2022-03-30 2023-10-05 华为技术有限公司 Switch fabric unit, data forwarding method, switching frame, and network system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104434A (en) * 2014-07-24 2014-10-15 北京华环电子股份有限公司 Power failure alarm implementation method capable of rapidly inserting alarm frame
CN105871626A (en) * 2016-05-26 2016-08-17 烽火通信科技股份有限公司 Centralized management method and system of power supply of communication device
CN108512680A (en) * 2017-02-27 2018-09-07 阿里巴巴集团控股有限公司 Distribution bar monitoring method and distribution bar, the network switch and power supply system
CN207896977U (en) * 2018-03-16 2018-09-21 烽火通信科技股份有限公司 A kind of power fail warning control circuit
CN108768757A (en) * 2018-07-26 2018-11-06 迈普通信技术股份有限公司 Fault handling method, device, distributed network equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
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
TW200709607A (en) * 2005-08-19 2007-03-01 Hon Hai Prec Ind Co Ltd Circuit for generating dying GASP signals and electronic device utilizing the same
US20150362931A1 (en) * 2014-06-17 2015-12-17 Texas Instruments Incorporated High-efficiency pump and dump circuit having reduced storage capacitor
CN104270803B (en) * 2014-09-05 2018-05-15 新华三技术有限公司 A kind of method of adjustment and equipment of AP operating modes
CN104283718B (en) * 2014-10-27 2018-01-12 新华三技术有限公司 The network equipment and the hardware fault diagnosis method for the network equipment
CN107607803A (en) * 2016-07-11 2018-01-19 株洲中车时代电气股份有限公司 Converter system failure logging method, apparatus and system
CN107544619B (en) * 2017-06-27 2020-05-12 新华三云计算技术有限公司 Time synchronization method and device
CN107316659B (en) * 2017-06-28 2020-05-01 东信和平科技股份有限公司 Memory power-down time period positioning method and system power-down protection method
CN108228428B (en) * 2018-02-05 2021-09-21 百度在线网络技术(北京)有限公司 Method and apparatus for outputting information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104434A (en) * 2014-07-24 2014-10-15 北京华环电子股份有限公司 Power failure alarm implementation method capable of rapidly inserting alarm frame
CN105871626A (en) * 2016-05-26 2016-08-17 烽火通信科技股份有限公司 Centralized management method and system of power supply of communication device
CN108512680A (en) * 2017-02-27 2018-09-07 阿里巴巴集团控股有限公司 Distribution bar monitoring method and distribution bar, the network switch and power supply system
CN207896977U (en) * 2018-03-16 2018-09-21 烽火通信科技股份有限公司 A kind of power fail warning control circuit
CN108768757A (en) * 2018-07-26 2018-11-06 迈普通信技术股份有限公司 Fault handling method, device, distributed network equipment

Also Published As

Publication number Publication date
CN109347685A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN102946325B (en) Network diagnosis method, system and equipment based on software defined network
CN109347685B (en) Network equipment, logic device and notification information transmission method
CN107171883B (en) Method, device and equipment for detecting forwarding table
EP3101850B1 (en) Packet processing method, device and system
CN101316197B (en) Detection method and apparatus for Ethernet port loop of MSTP equipment
CN110557342B (en) Apparatus for analyzing and mitigating dropped packets
EP3520325B1 (en) Dynamically identifying criticality of services and data sources
CN110740072A (en) fault detection method, device and related equipment
CN109150659B (en) Processor and BFD message transmission method
CN109257185B (en) Network equipment, service card, logic device and notification information transmission method
CN111130821B (en) Power failure alarm method, processing method and device
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
US11743114B1 (en) Bidirectional forwarding detection control packet to indicate maintenance mode operation
EP4167530A1 (en) Network monitoring method, electronic device and storage medium
CN108882270B (en) Network equipment and equipment management method
CN110932878A (en) Management method, equipment and system of distributed network
US20230171180A1 (en) Data processing method, packet sending method, and apparatus
US20230208756A1 (en) Operation, Administration, and Maintenance OAM Packet Processing Method and Device
CN110740094B (en) Network equipment, BFD message transmission method and device
EP4199464A1 (en) Packet sending method and device
EP2947827A1 (en) Method and apparatus for improving forwarding performance of chip
CN111478845A (en) Protection switching method and provider network edge device
CN112532412B (en) Network fault detection method and network fault detection 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