CN113114413A - Indicator lamp control method and device - Google Patents

Indicator lamp control method and device Download PDF

Info

Publication number
CN113114413A
CN113114413A CN202110237178.8A CN202110237178A CN113114413A CN 113114413 A CN113114413 A CN 113114413A CN 202110237178 A CN202110237178 A CN 202110237178A CN 113114413 A CN113114413 A CN 113114413A
Authority
CN
China
Prior art keywords
packet loss
network port
loss event
crc packet
logic device
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.)
Granted
Application number
CN202110237178.8A
Other languages
Chinese (zh)
Other versions
CN113114413B (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 DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202110237178.8A priority Critical patent/CN113114413B/en
Publication of CN113114413A publication Critical patent/CN113114413A/en
Application granted granted Critical
Publication of CN113114413B publication Critical patent/CN113114413B/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
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • GPHYSICS
    • G08SIGNALLING
    • G08BSIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
    • G08B5/00Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied
    • G08B5/22Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied using electric transmission; using electromagnetic transmission
    • G08B5/36Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied using electric transmission; using electromagnetic transmission using visible light sources
    • G08B5/38Visible signalling systems, e.g. personal calling systems, remote indication of seats occupied using electric transmission; using electromagnetic transmission using visible light sources using flashing light
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/165Controlling the light source following a pre-assigned programmed sequence; Logic control [LC]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • General Physics & Mathematics (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a method and a device for controlling an indicator light, which are applied to network equipment, wherein the network equipment comprises a processor, at least one network port and a logic device for controlling the indicator light; the indicator lamps correspond to the network ports one by one; the method comprises the following steps: the processor determines whether a CRC packet loss event occurs on the network port; if the CRC packet loss event occurs at the network port, the processor issues a control signal corresponding to the CRC packet loss event to the logic device; and the logic device controls the indicator light to be switched to a display mode corresponding to the CRC packet loss event based on the control signal. Through the technical scheme, the indication lamp is used for displaying the CRC packet loss event occurring at the network port, and related personnel can simply and visually judge whether the CRC packet loss event occurs at the network port corresponding to the indication lamp by observing the display mode of the indication lamp.

Description

Indicator lamp control method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for controlling an indicator light.
Background
CRC (Cyclic Redundancy Check) is a channel coding technique that generates a short fixed bit Check code according to data such as network data packets or computer files, and is mainly used to detect or Check errors that may occur after data transmission or storage. In the using process of the network equipment, due to factors such as equipment failure, external interference and the like, the process that the data packet cannot pass the CRC check of the chip due to defect is called CRC packet loss.
When CRC packet loss frequently occurs on a network port of a network device, the network device may not work normally, or even may crash. Therefore, it is necessary to monitor the state of the network port in time and determine whether CRC packet loss occurs at the network port, whether during device testing or in practical application.
Disclosure of Invention
In view of this, the present application provides an indicator light control method and apparatus, which are used to implement that an indicator light displays a CRC packet loss event occurring at a network port.
Specifically, the method is realized through the following technical scheme:
in a first aspect, the present application provides an indicator light control method applied to a network device, where the network device includes a processor, at least one network port, and a logic device for controlling the indicator light; the indicator lamps correspond to the network ports one by one; the method comprises the following steps:
the processor determines whether a CRC packet loss event occurs on the network port;
if the CRC packet loss event occurs at the network port, the processor issues a control signal corresponding to the CRC packet loss event to the logic device;
and the logic device controls the indicator light to be switched to a display mode corresponding to the CRC packet loss event based on the control signal.
Optionally, the network device further includes a chip for detecting a state of the network port;
the processor determining whether a CRC packet loss event occurs on the network port includes:
the processor receives an abnormal event reported when the chip detects the abnormal state of the network port;
determining whether the received abnormal event is an abnormal event corresponding to an abnormal state of CRC packet loss of the network port; if yes, determining that the CRC packet loss event occurs on the network port.
Optionally, the control signal includes an alarm signal corresponding to a CRC packet loss event occurring at the network port;
the logic device controls the indicator light to switch to a display mode corresponding to the CRC packet loss event based on the control signal, and the method comprises the following steps:
the logic device receives a lighting signal sent by the chip based on the state of the network port;
the logic device is combined with the lighting signal based on the warning signal corresponding to the CRC packet loss event to generate a composite lighting signal; and controlling the indicator light to switch to a display mode corresponding to the CRC packet loss event according to the composite lighting signal.
Optionally, the warning signal and the lighting signal include a plurality of fields; wherein, the fields respectively correspond to different network ports;
the alarm signal corresponding to the CRC packet loss event is combined with the lighting signal to generate a composite lighting signal, and the method comprises the following steps:
inverting the alarm signal according to bits to generate an inverted code of the alarm signal;
and performing bit-wise AND on the inverse code of the alarm signal and the lighting signal to generate the composite lighting signal.
Optionally, the composite lighting signal is a parallel lighting signal.
Optionally, the controlling, by the logic device, the indicator light to switch to the display mode corresponding to the CRC packet loss event based on the control signal includes:
the logic device receives an alarm mode issued by the processor; wherein the alarm mode comprises a test mode and a working mode;
when the alarm mode is a test mode, the logic device controls the indicator light to switch to a first display mode corresponding to the CRC packet loss event based on the control signal;
and when the alarm mode is a working mode, the logic device controls the indicator light to be switched to a second display mode corresponding to the CRC packet loss event based on the control signal.
Optionally, the determining, by the processor, whether a CRC packet loss event occurs on the network port includes:
the processor inquires state information of the network port based on a preset period;
when the abnormal state of CRC packet loss of the network port is inquired, determining that the CRC packet loss event of the network port occurs.
Optionally, the display mode at least includes one or more of the following combinations:
different colors displayed by the indicator lights;
different flashing frequencies displayed by the indicator light;
the lighting time displayed by the indicator lamp.
In a second aspect, the present application also provides an indicator light control apparatus, applied to a network device, the apparatus including:
a processor, configured to determine whether a CRC packet loss event occurs at the network port; if the CRC packet loss event occurs at the network port, the processor issues a control signal corresponding to the CRC packet loss event to a logic device;
the logic device is used for controlling the indicator light to be switched to a display mode corresponding to the CRC packet loss event based on the control signal; the indicator lights are in one-to-one correspondence with the network ports.
Optionally, the apparatus further comprises:
the chip is used for detecting the state of the network port; when the abnormal state of the network port is detected, reporting an abnormal event to the processor; and sending a lighting signal to the logic device based on the network port state.
By analyzing the technical scheme, when the processor determines that the CRC packet loss event occurs at the network port, the logic device controls the indicator lamp to switch to the display mode corresponding to the CRC packet loss event by issuing the control signal corresponding to the CRC packet loss event to the logic device of the control indicator lamp. According to the technical scheme, the indication lamp is used for displaying the CRC packet loss event occurring at the network port, and related personnel can simply and visually judge whether the CRC packet loss event occurs at the network port corresponding to the indication lamp by observing the display mode of the indication lamp.
Drawings
FIG. 1 is a schematic diagram of an indicator light control scheme for a network device shown in the present application;
FIG. 2 is a flow chart of an indicator light control method shown in an exemplary embodiment of the present application;
FIG. 3 is a schematic diagram of an indicator light control scheme shown in an exemplary embodiment of the present application;
FIG. 4 is a block diagram of an indicator light control apparatus shown in an exemplary embodiment of the present application;
fig. 5 is a block diagram of another indicator light control apparatus according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
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 appended 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 refers to and encompasses 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. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Referring to fig. 1, fig. 1 is a schematic diagram of an indicator light control scheme of a network device shown in the present application;
as shown in fig. 1, the network device includes a chip, a logic device, at least one network port, and an indicator light corresponding to the network port.
The indicator light may indicate the status of the network port based on a received signal, which is commonly referred to as a lighting signal.
For example, the lighting signal may be represented by bit, and if 0 indicates off and 1 indicates on, the lighting signal indicating that the indicator is off is 000 … …, and the lighting signal indicating that the indicator is normally on is 111 … ….
The network device usually has a plurality of network ports, and in order to clearly indicate the status of the network ports, a plurality of indicator lights are usually provided corresponding to the network ports. When receiving the lighting signal, in order to enable each indicator lamp to simultaneously display the state of the corresponding network port, it is necessary to simultaneously receive each lighting signal, that is, to perform parallel processing on the lighting signal.
Continuing with the example, assuming that there are 6 network interfaces and 6 corresponding indicator lights in the network device, if the indicator lights 1, 5, and 6 are turned off and the indicator lights 2, 3, and 4 are normally on, the parallel lighting signal of the indicator lights can be represented as 011100 by bit, as shown in the following table 1:
indicator light 1 2 3 4 5 6
Lighting signal 0 1 1 1 0 0
TABLE 1
Usually, a chip in the network device may send a lighting signal to the indicator lamp according to the detected status of the network port. The chip may be a PHY (Physical layer) chip or a switch chip.
When the PHY chip sends the lighting signal, the PHY chip is positioned at the physical layer of the port, and can directly output the parallel lighting signal to the connected indicator lamps; the lighting signal issued by the switching chip is a serial lighting signal, and the serial lighting signal needs to be converted into a parallel lighting signal by a serial-to-parallel conversion chip or a CPLD (Complex Programmable Logic Device) chip, and then the parallel lighting signal is output to the indicator light.
The above two ways of sending down the lighting signal to control the indicator light may be referred to as hardware lighting.
In the related art, the indicator lamp switches different display modes based on the received lighting signal, and can indicate the basic state of the network port to the user.
For example, the base state includes, but is not limited to, the following states: a connection state of a network port, a half/full duplex mode, a data transceiving state, and the like.
However, whether the PHY chip or the switch chip is used, the network port status information that can be indicated by the issued lighting signal is limited. When the network port has an abnormal event, the chip can detect the abnormal state of the network port but cannot control the indicator lamp to indicate through the lighting signal.
Especially, when a CRC packet loss event occurs at a network port, there may be a risk that a network device may not work normally or even crash, which requires a related person to timely determine whether a CRC packet loss occurs at the network port.
Therefore, in order to avoid a fault caused by a CRC packet loss event occurring at a network port, the state of the network port needs to be monitored, and whether the CRC packet loss event occurs at the network port is timely discovered.
In view of this, the present application provides a technical solution, where when the processor determines that a CRC packet loss event occurs at a network port, the processor issues an indicator light control signal corresponding to the CRC packet loss event.
When the CRC packet loss event occurs to the network port, a control signal corresponding to the CRC packet loss event is issued to the logic device of the control indicator lamp so that the logic device controls the indicator lamp to switch to a display mode corresponding to the CRC packet loss event.
The indicating lamps correspond to the network ports one to one, and related personnel can simply and visually acquire the states of the network ports by observing the display modes of the indicating lamps.
In the technical scheme, the CRC packet loss event occurring at the network port is displayed through the indicator lamp, and related personnel can simply and intuitively rapidly judge whether the CRC packet loss event occurs at the network port corresponding to the indicator lamp by observing the display mode of the indicator lamp.
Next, examples of the present application will be described in detail.
Referring to fig. 2, fig. 2 is a flowchart illustrating an indicator light control method according to an exemplary embodiment of the present application, applied to a network device, where the network device includes a processor, at least one network port, and a logic device for controlling the indicator light; the indicator lamps correspond to the network ports one by one; the method comprises the following steps:
step 201, the processor determines whether a CRC packet loss event occurs at the network port;
step 202: if the CRC packet loss event occurs at the network port, the processor issues a control signal corresponding to the CRC packet loss event to the logic device;
step 203: and the logic device controls the indicator light to be switched to a display mode corresponding to the CRC packet loss event based on the control signal.
In this embodiment, the processor of the network device first needs to determine whether a CRC packet loss event occurs on the network port.
The processor can judge whether a CRC (cyclic redundancy check) packet loss event occurs to the network port by acquiring the state of the network port; and whether the CRC packet loss event occurs to the network port can be judged by receiving information reported by a chip for detecting the state of the network port.
In an illustrated embodiment, the processor may query the state information of the network port based on a preset period, and determine that a CRC packet loss event occurs in the network port when it is queried that a CRC packet loss abnormal state occurs in the network port.
For example, the CPU of the network device may periodically query the traffic condition of the network port at regular intervals, and if the CRC packet loss of the network port is found, the CPU determines that the CRC packet loss event occurs in the network port.
A person skilled in the art may set the query period as needed, or adjust the query period according to the frequency of the CRC packet loss event of the network port, which is not limited in the present application.
In this embodiment, when the processor determines that a CRC packet loss event occurs at the network port, the processor generates a control signal corresponding to the CRC packet loss event and issues the control signal to the logic device.
For example, when the CPU determines that a CRC packet loss event occurs at a certain network port, in order to enable the indicator light corresponding to the network port to be switched to the display mode corresponding to the CRC packet loss event, the CPU generates a control signal for controlling the indicator light and issues the control signal to the logic device.
It is worth noting that since a network device typically has a plurality of network ports, and a plurality of indicator lights corresponding to the network ports. When CRC packet loss occurs in a plurality of network ports, in order to enable each indicator light to indicate simultaneously, it is necessary to receive control signals simultaneously, that is, to process the control signals in parallel.
For example, assume that there are 6 network interfaces for a network device, and correspondingly 6 indicator lights. If CRC packet loss events occur at the network ports 2 and 4, and a control signal sent by the processor is represented by a bit; wherein, each bit defaults to 0, and 1 represents that CRC packet loss event occurs at the network port; the control signal of the indicator light can be expressed as 010100 as shown in table 2 below:
indicator light 1 2 3 4 5 6
Control signal 0 1 0 1 0 0
TABLE 2
In this embodiment, the logic device controls the indicator light to switch to the display mode corresponding to the CRC packet loss event based on the control signal issued by the processor.
Continuing to take table 2 as an example, when the control signal received by the logic device and sent by the processor is 010100, the logic device controls the indicator lights corresponding to the network ports 2 and 4 to switch to the display mode corresponding to the CRC packet loss event according to the control signal, and the other indicator lights remain unchanged.
In one embodiment shown, the network device further includes a chip that can detect the status of a network port.
Specifically, the processor may receive an abnormal event reported when the chip detects an abnormal state of the network port, and determine whether the received abnormal event is an abnormal event corresponding to the abnormal state in which the CRC packet loss occurs at the network port; if yes, determining that the CRC packet loss event occurs on the network port.
For example, when the chip detects that a network port is abnormal, the chip reports the abnormal event to the CPU, and the CPU determines whether the abnormal event is a CRC packet loss abnormal event; if yes, determining that the CRC packet loss event occurs on the network port.
In addition, when the chip detects the state of the network port, the chip can directly judge whether the CRC packet loss event occurs to the network port. At this time, the processor determines that the network port has a CRC packet loss event according to the CRC packet loss event of the network port reported by the chip. Those skilled in the art can flexibly select a mode for determining whether the CRC packet loss event occurs on the network port according to needs, which is not limited in the present application.
It should be noted that the chip may include a PHY chip or a switch chip, and those skilled in the art may select the PHY chip or the switch chip according to needs, which is not limited in this application.
Further, when the processor determines that the abnormal event reported by the chip is a CRC packet loss event occurring at the network port, the control signal issued by the processor to the logic device may include an alarm signal corresponding to the CRC packet loss event occurring at the network port.
In addition, the chip can send lighting signals to the logic device based on the network port state. Therefore, when the logic device receives the warning signal and the lighting signal, the logic device needs to combine the warning signal and the lighting signal to generate a composite lighting signal for finally controlling the indicator lamp.
In one embodiment shown, the logic device receives a lighting signal sent by the chip based on the state of the network port; the logic device is combined with the lighting signal based on the warning signal corresponding to the CRC packet loss event to generate a composite lighting signal; and controlling the indicator lamp to switch to a display mode corresponding to the CRC packet loss event according to the composite lighting signal.
Referring to fig. 3, fig. 3 is a schematic diagram of an indicator light control scheme according to an exemplary embodiment of the present application.
As shown in fig. 3, the PHY chip or the switch chip may detect a state of the network port, and may transmit a lighting signal to the logic device based on the state of the network port; meanwhile, the PHY chip or the switch chip may report the detected abnormal event of the network port to the processor, and when the processor determines that the abnormal event is a CRC packet loss event, the processor issues an alarm signal corresponding to the CRC packet loss event to the logic device.
After receiving a lighting signal sent by the chip based on the state of the network port and an alarm signal issued by the processor based on a CRC (cyclic redundancy check) packet loss event, the logic device compounds the alarm signal with the lighting signal to generate a lighting compound signal, and controls the indicator lamp to switch to a display mode corresponding to the CRC packet loss event according to the compound lighting signal.
In one embodiment shown, the composite lighting signal is a parallel lighting signal.
It should be noted that, in order to be compatible with the PHY chip and the switch chip, the processor may issue the type of the lighting signal while issuing the alarm signal, so that the logic device determines whether the lighting signal source is the parallel lighting signal sent by the PHY chip or the serial lighting signal sent by the switch chip.
Specifically, when the logic device receives a parallel lighting signal sent by the PHY chip, the logic device directly outputs the parallel lighting signal without performing serial-to-parallel conversion processing; when the logic device receives the serial lighting signal transmitted by the switching chip, the serial lighting signal cannot simultaneously light a plurality of indicator lamps, and therefore, the serial lighting signal needs to be decoded and the parallel lighting signal needs to be generated through serial-to-parallel conversion.
For example, the lighting signal type may be represented by one bit, assuming that 0 represents the parallel lighting signal transmitted by the PHY chip and 1 represents the serial lighting signal transmitted by the switch chip. When the logic device determines that the lighting signal is a parallel lighting signal sent by the PHY chip, compounding the parallel lighting signal with the alarm signal; when the logic device determines that the lighting signal is the serial lighting signal sent by the exchange chip, the serial lighting signal is decoded, and then the parallel lighting signal obtained after decoding is combined with the alarm signal.
In one embodiment shown, the alert signal and the lighting signal include several fields; wherein, the fields respectively correspond to different network ports.
For example, the alarm signal and the lighting signal may be multi-bit data, and the number of bits corresponds to the number of the network ports, that is, the corresponding indicator lamps of the network ports are controlled by each bit of data. In this case, 0 is turned off and 1 is turned on.
Continuing with the example of tables 1 and 2, the alarm and lighting signals received by the logic device are as shown in table 3 below:
indicator light 1 2 3 4 5 6
Alarm signal 0 1 0 1 0 0
Lighting signal 0 1 1 1 0 0
TABLE 3
As shown in table 3, there are 6 network interfaces for the network device, and 6 corresponding indicator lights. The indicator lights 1, 5, and 6 are turned off, the indicator lights 2, 3, and 4 are always on, and the CRC packet loss event occurs at the network ports 2 and 4.
The indication lamp is assumed to be a red and green double-color indication lamp, the indication lamp displays green according to the lighting signal, and displays red according to the warning signal. At this time, the indicator lamps 2 and 4 need to be switched to display red corresponding to the CRC packet loss event, and the chip still sends a lighting signal that the indicator lamps 2 and 4 display green to the logic device, but the indicator lamps can only display one color at the same time, and the display red is in conflict with the display green.
Therefore, the logic device needs to compound the alarm signal and the lighting signal to generate a compound lighting signal; and controlling the indicator lamp to switch to a display mode corresponding to the CRC packet loss event based on the composite lighting signal.
In one embodiment shown, the alarm signal may be inverted bitwise to generate an inverted code of the alarm signal; then, the inverse code of the alarm signal and the lighting signal are bitwise AND-ed to generate a composite lighting signal.
Through the above composite processing, the composite lighting signal finally obtained from the alarm signal and the lighting signal in table 3 is as shown in table 4 below:
indicator light 1 2 3 4 5 6
Alarm signal 0 1 0 1 0 0
Anticode of alarm signal 1 0 1 0 1 1
Lighting signal 0 1 1 1 0 0
Composite lighting signal 0 0 1 0 0 0
TABLE 4
At the moment, the alarm signal is inverted according to the bit to generate an inverted code of the alarm signal, and then the inverted code and the lighting signal are subjected to bit-to-bit combination, so that the control of the lighting signal on an indicator lamp corresponding to a network port with a CRC (cyclic redundancy check) packet loss event can be shielded.
For example, as shown in table 4, the lighting signals of the indicator lamps 2 and 4 are bitwise and-ed by the inverse code of the alarm signal of the indicator lamps 2 and 4, and finally the composite lighting signal is 0, which corresponds to the lighting signals of the indicator lamps 2 and 4 being masked, and the indicator lamp corresponding to the network port where the CRC packet loss event occurs cannot display green any more.
Continuing to take the red and green double-color indicator light as an example, the indicator light needs to be switched to red display corresponding to the CRC packet loss event, and the logic device can directly control the indicator light according to the alarm signal.
For example, as shown in table 4, when a CRC packet loss event occurs at the network ports 2 and 4, the corresponding indicator lamps 2 and 4 need to be switched to a red display corresponding to the CRC packet loss event, and then the indicator lamps 2 and 4 may display a red color according to the alarm signal.
The display modes of the red and green double-color indicator light shown above include a green mode and a red mode, wherein the green mode indicates that the network port is in a normal working state, the red mode indicates that the network port has CRC packet loss, and the indicator light is turned off to indicate that the network port is not in a working state.
The network port usually has a plurality of states, so that related personnel can know the current situation of the network port in more detail, and the display mode of the indicator light can be flexibly configured.
In one embodiment shown, the display modes include at least one or a combination of more of the following:
different colors displayed by the indicator lights;
different flashing frequencies displayed by the indicator light;
the lighting time displayed by the indicator lamp.
For example, if the indicator light can display two colors of red and green, two flashing frequencies of fast flashing and slow flashing, and two lighting durations of short lighting and long lighting, the indicator light can satisfy the indication of multiple states of the network port by combining the state types in the above 3.
In addition, for the convenience of distinction, a person skilled in the art may select a display mode in which a distinct distinction exists as a display mode to be switched by the indicator light, as needed, which is not limited in the present application.
When frequent CRC packet loss occurs on a network port, the network device may not work normally or even crash. Therefore, before the device is shipped out, the network port with a problem needs to be checked as soon as possible during testing, and when the device is actually used by a user, the CRC packet loss which occurs occasionally is within an acceptable range.
In order to meet both the testing requirement before the network equipment leaves the factory and the actual use requirement of a user, when the processor determines that a CRC (cyclic redundancy check) packet loss event occurs in the network port and sends an alarm signal to the logic device, an alarm mode can be sent. The logic device can control the indicator light to switch to different display modes according to different use scenes, so that CRC (cyclic redundancy check) packet loss events of the network ports can be indicated more flexibly.
In one embodiment shown, the processor may issue an alert mode to the logic device; the alarm mode comprises a test mode and a working mode.
When the alarm mode is a test mode, the logic device controls the indicator light to switch to a first display mode corresponding to the CRC packet loss event based on the control signal;
and when the alarm mode is a working mode, the logic device controls the indicator light to be switched to a second display mode corresponding to the CRC packet loss event based on the control signal.
When the network equipment is in the test mode, related personnel can know whether a CRC (cyclic redundancy check) packet loss event occurs to a network port according to the indicator lamp, and before the CRC packet loss event is not solved, the indicator lamp keeps the display mode of the CRC packet loss event unchanged;
for example, the test mode may be turned on when the network device is tested internally or ex-factory. At this time, once a CRC packet loss event occurs at the network port, the indicator light corresponding to the network port may be switched to a mode in which the red light is normally on, and the indicator light is always red unless the tester solves the packet loss problem or restarts the device.
In the test mode, the indicator lamp can remind a tester to solve the CRC packet loss event occurring at the corresponding network port as soon as possible by continuously displaying the alarm mode.
When the network equipment is in a working mode, although the indicator lamp still indicates the CRC packet loss state of the network port, in order to avoid causing panic of a user, when a CRC packet loss event occurs, the indicator lamp keeps the display mode of the CRC packet loss event unchanged only when the CRC packet loss event continuously exceeds a preset time length;
for example, the operational mode may be turned on when the network device is actually operating. At this time, once a CRC packet loss event occurs at the network port, the indicator light corresponding to the network port may be switched to the red display mode; meanwhile, the processor can judge whether the CRC packet loss event exists within a preset time threshold value all the time;
if the CRC packet loss event still exists, the indicator lamp continues to display red, and the indicator lamp continuously displays red, so that a user can be reminded that the CRC packet loss event occurring at the network port needs to be solved as soon as possible; and if the CRC packet loss event does not occur any more, the indicator light is switched from the display red color to the normal display mode.
By configuring different alarm modes, the network equipment can flexibly adapt to the requirements of different scenes.
Corresponding to the above method embodiments, the present specification also provides an embodiment of an indicator light control apparatus.
Referring to fig. 4, a block diagram of an indicator light control apparatus according to an exemplary embodiment of the present application is shown, including:
a processor 401 configured to determine whether a CRC packet loss event occurs on the network port; if the CRC packet loss event occurs at the network port, the processor issues a control signal corresponding to the CRC packet loss event to the logic device;
logic 402, configured to control the indicator light to switch to a display mode corresponding to the CRC packet loss event based on the control signal; the indicator lights are in one-to-one correspondence with the network ports.
Referring to fig. 5, a block diagram of another indicator light control apparatus according to an exemplary embodiment of the present application is shown, the apparatus further including:
a chip 503, configured to detect the status of the network port; when the abnormal state of the network port is detected, reporting an abnormal event to the processor; and sending the lighting signal to the logic device based on the network port state.
Specifically, the processor receives an abnormal event reported when the chip detects an abnormal state of the network port;
determining whether the received abnormal event is an abnormal event corresponding to an abnormal state of CRC packet loss of the network port; if yes, determining that the CRC packet loss event occurs on the network port.
Optionally, the control signal includes an alarm signal corresponding to a CRC packet loss event occurring at the network port;
specifically, the logic device receives a lighting signal sent by the chip based on the state of the network port;
the logic device is combined with the lighting signal based on the warning signal corresponding to the CRC packet loss event to generate a composite lighting signal; and controlling the indicator light to switch to a display mode corresponding to the CRC packet loss event according to the composite lighting signal.
Optionally, the warning signal and the lighting signal comprise several fields; wherein, the fields respectively correspond to different network ports;
specifically, inverting the alarm signal according to bits to generate an inverted code of the alarm signal;
and performing bit-wise AND on the inverse code of the alarm signal and the lighting signal to generate the composite lighting signal.
Optionally, the composite lighting signal is a parallel lighting signal.
Optionally, the logic device 402 includes:
the logic device receives an alarm mode issued by the processor; wherein the alarm mode comprises a test mode and a working mode;
when the alarm mode is a test mode, the logic device controls the indicator light to switch to a first display mode corresponding to the CRC packet loss event based on the control signal;
and when the alarm mode is a working mode, the logic device controls the indicator light to be switched to a second display mode corresponding to the CRC packet loss event based on the control signal.
Optionally, the processor 401 includes:
the processor inquires state information of the network port based on a preset period;
when the abnormal state of CRC packet loss of the network port is inquired, determining that the CRC packet loss event of the network port occurs.
Optionally, the apparatus includes:
the display modes include at least a combination of one or more of the following:
different colors displayed by the indicator lights;
different flashing frequencies displayed by the indicator light;
the lighting time displayed by the indicator lamp.
The implementation process of the functions and actions of the above devices is specifically described in the implementation process of the corresponding steps in the above method, and is not described herein again.
The foregoing description of specific embodiments of the present application has been presented. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present application will be readily apparent to those skilled in the art from consideration of the present application and practice of the invention as claimed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.
The above description is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present application should be included in the scope of the present application.

Claims (10)

1. An indicator light control method is applied to network equipment, and the network equipment comprises a processor, at least one network port and a logic device for controlling the indicator light; the indicator lamps correspond to the network ports one by one; characterized in that the method comprises:
the processor determines whether a CRC packet loss event occurs on the network port;
if the CRC packet loss event occurs at the network port, the processor issues a control signal corresponding to the CRC packet loss event to the logic device;
and the logic device controls the indicator light to be switched to a display mode corresponding to the CRC packet loss event based on the control signal.
2. The method of claim 1, wherein the network device further comprises a chip to detect the status of the network port;
the processor determining whether a CRC packet loss event occurs on the network port includes:
the processor receives an abnormal event reported when the chip detects the abnormal state of the network port;
determining whether the received abnormal event is an abnormal event corresponding to an abnormal state of CRC packet loss of the network port; if yes, determining that the CRC packet loss event occurs on the network port.
3. The method of claim 2, wherein the control signal comprises an alarm signal corresponding to a CRC packet loss event occurring on a network port;
the logic device controls the indicator light to switch to a display mode corresponding to the CRC packet loss event based on the control signal, and the method comprises the following steps:
the logic device receives a lighting signal sent by the chip based on the state of the network port;
the logic device is combined with the lighting signal based on the warning signal corresponding to the CRC packet loss event to generate a composite lighting signal; and controlling the indicator light to switch to a display mode corresponding to the CRC packet loss event according to the composite lighting signal.
4. The method of claim 3, wherein the alert signal and the lighting signal comprise a number of fields; wherein, the fields respectively correspond to different network ports;
the alarm signal corresponding to the CRC packet loss event is combined with the lighting signal to generate a composite lighting signal, and the method comprises the following steps:
inverting the alarm signal according to bits to generate an inverted code of the alarm signal;
and performing bit-wise AND on the inverse code of the alarm signal and the lighting signal to generate the composite lighting signal.
5. The method of claim 3 wherein the composite lighting signal is a parallel lighting signal.
6. The method of claim 1, wherein the logic device controls the indicator light to switch to a display mode corresponding to the CRC packet loss event based on the control signal, and the method comprises:
the logic device receives an alarm mode issued by the processor; wherein the alarm mode comprises a test mode and a working mode;
when the alarm mode is a test mode, the logic device controls the indicator light to switch to a first display mode corresponding to the CRC packet loss event based on the control signal;
and when the alarm mode is a working mode, the logic device controls the indicator light to be switched to a second display mode corresponding to the CRC packet loss event based on the control signal.
7. The method of claim 1, wherein the processor determining whether a CRC packet loss event occurs on the network port comprises:
the processor inquires state information of the network port based on a preset period;
when the abnormal state of CRC packet loss of the network port is inquired, determining that the CRC packet loss event of the network port occurs.
8. The method of claim 1, wherein the display modes comprise at least one or a combination of:
different colors displayed by the indicator lights;
different flashing frequencies displayed by the indicator light;
the lighting time displayed by the indicator lamp.
9. An indicator light control device applied to network equipment, characterized in that the device comprises:
a processor, configured to determine whether a CRC packet loss event occurs at the network port; if the CRC packet loss event occurs at the network port, the processor issues a control signal corresponding to the CRC packet loss event to a logic device;
the logic device is used for controlling the indicator light to switch to a display mode corresponding to the CRC packet loss event based on the control signal; the indicator lights are in one-to-one correspondence with the network ports.
10. The apparatus of claim 9, further comprising:
the chip is used for detecting the state of the network port; when the abnormal state of the network port is detected, reporting an abnormal event to the processor; and sending a lighting signal to the logic device based on the network port state.
CN202110237178.8A 2021-03-03 2021-03-03 Indicator lamp control method and device Active CN113114413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110237178.8A CN113114413B (en) 2021-03-03 2021-03-03 Indicator lamp control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110237178.8A CN113114413B (en) 2021-03-03 2021-03-03 Indicator lamp control method and device

Publications (2)

Publication Number Publication Date
CN113114413A true CN113114413A (en) 2021-07-13
CN113114413B CN113114413B (en) 2022-09-30

Family

ID=76709769

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110237178.8A Active CN113114413B (en) 2021-03-03 2021-03-03 Indicator lamp control method and device

Country Status (1)

Country Link
CN (1) CN113114413B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113727485A (en) * 2021-08-31 2021-11-30 云尖信息技术有限公司 Lighting system and method for lighting code stream by single bit to realize lighting double-color lamp

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012043029A1 (en) * 2010-09-28 2012-04-05 株式会社創業 Network apparatus-monitoring monitor device
WO2016202046A1 (en) * 2015-06-17 2016-12-22 中兴通讯股份有限公司 Method and apparatus for repairing wireless router device
CN106408928A (en) * 2016-09-30 2017-02-15 广东美的制冷设备有限公司 Method for monitoring transmission of infrared signals, monitoring device and infrared remote controller
WO2018126645A1 (en) * 2017-01-05 2018-07-12 深圳奇迹智慧网络有限公司 Communication network management method and apparatus therefor
CN110708172A (en) * 2019-09-29 2020-01-17 杭州迪普科技股份有限公司 Chip power-on sequence control method and device and electronic equipment
CN110943864A (en) * 2019-11-29 2020-03-31 北京金山云网络技术有限公司 Network anomaly positioning method and device of distributed storage system
CN110995533A (en) * 2019-11-22 2020-04-10 配天机器人技术有限公司 Ethernet streaming test system
CN110995505A (en) * 2019-12-19 2020-04-10 安徽皖通邮电股份有限公司 Early warning device and method for realizing message error verification by indicator lamp
CN111741361A (en) * 2020-07-01 2020-10-02 上海市共进通信技术有限公司 Method for realizing automatic detection and displaying IPTV quality of home gateway
CN112193278A (en) * 2019-07-08 2021-01-08 中车唐山机车车辆有限公司 Train network management system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012043029A1 (en) * 2010-09-28 2012-04-05 株式会社創業 Network apparatus-monitoring monitor device
WO2016202046A1 (en) * 2015-06-17 2016-12-22 中兴通讯股份有限公司 Method and apparatus for repairing wireless router device
CN106408928A (en) * 2016-09-30 2017-02-15 广东美的制冷设备有限公司 Method for monitoring transmission of infrared signals, monitoring device and infrared remote controller
WO2018126645A1 (en) * 2017-01-05 2018-07-12 深圳奇迹智慧网络有限公司 Communication network management method and apparatus therefor
CN112193278A (en) * 2019-07-08 2021-01-08 中车唐山机车车辆有限公司 Train network management system
CN110708172A (en) * 2019-09-29 2020-01-17 杭州迪普科技股份有限公司 Chip power-on sequence control method and device and electronic equipment
CN110995533A (en) * 2019-11-22 2020-04-10 配天机器人技术有限公司 Ethernet streaming test system
CN110943864A (en) * 2019-11-29 2020-03-31 北京金山云网络技术有限公司 Network anomaly positioning method and device of distributed storage system
CN110995505A (en) * 2019-12-19 2020-04-10 安徽皖通邮电股份有限公司 Early warning device and method for realizing message error verification by indicator lamp
CN111741361A (en) * 2020-07-01 2020-10-02 上海市共进通信技术有限公司 Method for realizing automatic detection and displaying IPTV quality of home gateway

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113727485A (en) * 2021-08-31 2021-11-30 云尖信息技术有限公司 Lighting system and method for lighting code stream by single bit to realize lighting double-color lamp

Also Published As

Publication number Publication date
CN113114413B (en) 2022-09-30

Similar Documents

Publication Publication Date Title
US6222446B1 (en) Method and apparatus for light outage detection
US8416096B2 (en) System and method of controlling indicators of a property monitoring system
KR101949305B1 (en) VMS controller with integrated VCU and MCU of VMS system and method for inspecting error using the same
US7027952B2 (en) Data transmission method for a multi-protocol handheld field maintenance tool
EP1382155A4 (en) Method and system for reducing false alarms in network fault management systems
CN113114413B (en) Indicator lamp control method and device
AU2011247439B2 (en) Device and method for transmitting measurement signals in spatially extensive supply networks
CN105450292A (en) Fault diagnosis analysis method, fault diagnosis device, fault analysis device and fault diagnosis analysis system
JP2000324145A (en) Network diagnostic device, network diagnostic method and network system
CN110768814B (en) Communication port fault detection method
CN102255763A (en) Network communication anomaly alarming method and Ethernet switch equipment
CN110995533A (en) Ethernet streaming test system
JP2002229642A (en) Operation control system for production line and production equipment
CN110247833B (en) Communication control method, device, sub-equipment and communication system
CN109284218A (en) A kind of method and device thereof of detection service device operation troubles
US8635374B1 (en) Automatic media converter
CN109557897A (en) Notify control device, notice control system, notification control method and storage medium
JP2004119150A (en) Lighting system
CN115529222B (en) Dual-redundancy network card switching device based on cascading switch
CN207588885U (en) Signal transmission link monitoring device
US11211925B2 (en) Module including an indicator for indicating a physical state of a sensor connected to the module
JP2008228105A (en) Fault supervisory system and device
RU60906U1 (en) ON-BOARD ALARM SYSTEM ABOUT STATUS OF MOVING ALARMS
JP2007122967A (en) Monitoring device of electric load
CN104623852A (en) Data information acquisition method, device and system for fire hydrant extinguishing system

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