CN111064584B - Switch POE power supply abnormity recovery method and device and switch - Google Patents

Switch POE power supply abnormity recovery method and device and switch Download PDF

Info

Publication number
CN111064584B
CN111064584B CN201911282036.2A CN201911282036A CN111064584B CN 111064584 B CN111064584 B CN 111064584B CN 201911282036 A CN201911282036 A CN 201911282036A CN 111064584 B CN111064584 B CN 111064584B
Authority
CN
China
Prior art keywords
power supply
network port
power
switch
abnormal
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
CN201911282036.2A
Other languages
Chinese (zh)
Other versions
CN111064584A (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Network Systems 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 Comba Network Systems Co Ltd filed Critical Comba Network Systems Co Ltd
Priority to CN201911282036.2A priority Critical patent/CN111064584B/en
Publication of CN111064584A publication Critical patent/CN111064584A/en
Application granted granted Critical
Publication of CN111064584B publication Critical patent/CN111064584B/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
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/10Current supply arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/02Constructional details
    • H04Q1/03Power distribution arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q1/00Details of selecting apparatus or arrangements
    • H04Q1/02Constructional details
    • H04Q1/03Power distribution arrangements
    • H04Q1/032Power distribution arrangements power failure protection
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Power Engineering (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention relates to a method and a device for recovering POE power supply abnormality of a switch and the switch. The method comprises the following steps: acquiring power supply state information of each network port and determining the current protection state of each network port; respectively detecting the current and the voltage of each network port in a non-hardware protection state at present, and determining the detection power of each network port in the non-hardware protection state at present; determining a power supply abnormal network port and closing the power supply of the power supply abnormal network port according to the comparison result of each detection power and a preset software power threshold value; the power supply abnormal network port is a network port with the detection power larger than the software power threshold; and recovering the power supply of the abnormal power supply network port after the set time length. Through above-mentioned each processing step, the net gape off-line rate and the number of times of maintaining of going to the station when reducing the net gape POE power supply of switch by a wide margin when unusual, protection and self-resuming when realizing switch POE power supply are unusual reach the purpose that reduces the maintenance cost by a wide margin.

Description

Switch POE power supply abnormity recovery method and device and switch
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for recovering POE (power over Ethernet) power supply abnormality of a switch and the switch.
Background
With the development of mobile communication technology, a POWER Over Ethernet (POE) POWER supply function has become popular in a switch, so that other communication devices on the network can be powered while data is efficiently transmitted through a network port. In practical applications, the stability of the power supply of the switch POE is one of important investigation indicators of system performance for the accessed communication system. For the stability of the switch POE power supply, the stability maintaining mode of the traditional switch POE power supply mainly maintains the stability of the port power supply by increasing the voltage stabilizing tube or the protective tube and other hardware controls. However, in the process of implementing the present invention, the inventor finds that the above-mentioned conventional POE power supply stability maintaining method for the switch has a problem of high maintenance cost.
Disclosure of Invention
Based on this, it is necessary to provide a method for recovering a POE power supply abnormality of a switch, a device for recovering a POE power supply abnormality of a switch, and a computer-readable storage medium, which can greatly reduce maintenance cost, in view of the problems in the above-described manner of maintaining the stability of POE power supply of a conventional switch.
In order to achieve the above object, the embodiments of the present invention provide the following technical solutions:
in one aspect, an embodiment of the present invention provides a method for recovering a POE power supply anomaly of a switch, where the method includes:
acquiring power supply state information of each network port and determining the current protection state of each network port;
respectively detecting the current and the voltage of each network port in a non-hardware protection state at present, and determining the detection power of each network port in the non-hardware protection state at present;
determining a power supply abnormal network port and closing the power supply of the power supply abnormal network port according to the comparison result of each detection power and a preset software power threshold value; the power supply abnormal network port is a network port with the detection power larger than the software power threshold;
and recovering the power supply of the abnormal power supply network port after the set time length.
In one embodiment, the process of determining the power supply abnormal network port according to the comparison result between each detected power and the preset software power threshold includes:
comparing each detection power with a software power threshold value respectively;
if any detection power is larger than the software power threshold value, accumulating the overload times of the corresponding network port;
and if the overload times exceed the set times, determining that the corresponding network port is the abnormal power supply network port.
In one embodiment, the method further includes:
and if the overload times do not exceed the set times, returning to the step of acquiring the power supply state information of each network port and determining the current protection state of each network port.
In one embodiment, the method further includes:
and if any detection power is smaller than the software power threshold, returning to execute the steps of acquiring the power supply state information of each network port and determining the current protection state of each network port.
In one embodiment, after the step of recovering power supply of the power supply abnormal network port after the set time period, the method further includes:
and returning to execute the steps of obtaining the power supply state information of each network port and determining the current protection state of each network port.
In one embodiment, the step of obtaining power supply state information of each network port and determining a current protection state of each network port includes:
respectively reading the value of the power supply state register of each network port in a set period;
and determining the current protection state of each network port according to the value of each power supply state register.
In one embodiment, the method further includes:
and if any network port is in the hardware protection state at present, restarting the power supply of the network port in the hardware protection state at present.
In one embodiment, the software power threshold is less than a hardware protection power threshold of the switch fabric.
On the other hand, still provide a switch POE power supply anomaly recovery device, include:
the state determining module is used for acquiring power supply state information of each network port and determining the current protection state of each network port;
the power detection module is used for respectively detecting the current and the voltage of each network port in a non-hardware protection state at present and determining the detection power of each network port in the non-hardware protection state at present;
the abnormal control module is used for determining a power supply abnormal network port and closing the power supply of the power supply abnormal network port according to the comparison result of each detection power and a preset software power threshold value; the power supply abnormal network port is a network port with the detection power larger than the software power threshold;
and the recovery processing module is used for recovering the power supply of the power supply abnormal network port after the set time length.
In another aspect, a switch is further provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method for recovering POE power supply abnormality of the switch when executing the computer program.
In still another aspect, a computer-readable storage medium is further provided, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method for recovering a POE power supply anomaly of a switch are implemented.
One of the above technical solutions has the following beneficial effects:
according to the method and the device for recovering POE power supply abnormality of the switch and the switch, whether the current protection state of each network port is in a non-hardware protection state is determined according to the power supply state of each network port; then, respectively detecting the current voltage of each network port currently in a non-hardware protection state to determine the detection power of each network port currently in the non-hardware protection state; comparing the detected power with a software power threshold value to determine a power supply abnormal network port and close the power supply of the power supply abnormal network port; and finally, the power supply of the abnormal power supply network port is recovered after the set time is long, so that the protection and self-recovery when the POE power supply of the switch is abnormal are realized, the network port offline rate and the number of times of on-station maintenance when the POE power supply is abnormal are greatly reduced, and the purpose of greatly reducing the maintenance cost is achieved.
Drawings
Fig. 1 is a schematic diagram of a first process of a method for recovering a POE power supply abnormality of a switch in an embodiment;
fig. 2 is a second flowchart of a method for recovering a POE power supply abnormality of a switch in an embodiment;
fig. 3 is a third flow diagram of a method for recovering a POE power supply abnormality of a switch in an embodiment;
FIG. 4 is a schematic diagram illustrating a process of determining an abnormal power supply port according to an embodiment;
fig. 5 is a schematic diagram illustrating a specific flow of a method for recovering a POE power supply abnormality of a switch in an embodiment;
fig. 6 is a schematic block structure diagram of a device for recovering POE power supply abnormality of a switch in an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It is to be noted that, unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
At present, all kinds of switches on the market have all possessed POE power supply function mostly, and the POE power supply of each net gape of the switch of different grade type all has certain power limitation, in the switch course of operation, when instantaneous power exceedes the restriction or long-time power exceedes the restriction appears in arbitrary net gape, also when instantaneous or long-time overload appears in the power supply, all can trigger the hardware self-protection function of switch, also the power supply of the net gape that transships is directly turn-off to the main control chip of switch, or when there is the network management system in the system, the power supply of the net gape that is overloaded is turned off by network management system control, in order to maintain the stability of other power supply ports. However, in the practical application process, the inventor finds that in the above-mentioned traditional POE power supply stability maintaining method for the switch, after the network port of the switch is overloaded and powered off, the switch does not have a corresponding self-healing function, and usually needs a maintainer to manually recover from the network port going to the station, and the network port offline rate is high and the number of times of maintenance for going to the station is large, thereby greatly increasing the maintenance cost in the practical application.
In view of the above-mentioned drawbacks of the conventional manner for maintaining the stability of the power over POE power of the switch, referring to fig. 1, in an embodiment, a method for recovering an abnormal power over POE power of the switch is provided, which includes the following steps S12 to S18:
and S12, acquiring the power supply state information of each network port and determining the current protection state of each network port.
It can be understood that the power supply state information refers to record information of power supply states corresponding to each network port of the switch, and is used for marking whether each network port triggers a self-protection function of the switch currently. The power supply state information may be a power supply state obtained by recording the state of each network port in real time or periodically by the switch itself, a power supply state obtained by monitoring the state of each network port in real time or periodically by an external network port monitoring device, or a power supply state of each network port obtained by the switch requesting to obtain from an external database or obtained from other monitoring terminals, and the specific power supply state information may be obtained in a manner determined according to the function of the switch itself and the network system where the switch is located in the practical application, as long as the required power supply state information of each network port can be reliably obtained.
The protection state refers to a hardware protection state or a non-hardware protection state of each network port of the switch. The hardware protection state is a power-off state which is automatically triggered by the switch when each network port is instantaneously overloaded or overloaded for a long time, otherwise, the non-hardware protection state is a power-on state which is continuously powered on when each network port is not instantaneously overloaded or the switch is automatically triggered by not being overloaded for a long time.
Specifically, after the switch acquires the power supply state information of each network port, it may directly determine, from the power supply state information, whether each network port is currently in a hardware protection state or a non-hardware protection state, so as to perform corresponding subsequent control processing for two different protection states, respectively.
And S14, respectively detecting the current and the voltage of each network port currently in the non-hardware protection state, and determining the detection power of each network port currently in the non-hardware protection state.
It can be understood that, during the operation of the switch, the switch performs current and voltage detection on all the network ports currently in the non-hardware protection state to obtain the current value and the voltage value of each network port. Therefore, the switch calculates the current actually detected power supply power of each network port according to the current value and the voltage value of each network port, namely the current detected power of each network port in the non-hardware protection state.
S16, determining a power supply abnormal network port and closing the power supply of the power supply abnormal network port according to the comparison result of each detection power and a preset software power threshold value; and the power supply abnormal network port is a network port with detection power larger than the software power threshold value.
The preset software power threshold is a power threshold for triggering a software protection function, which is determined according to a hardware protection power threshold of the network port, which is determined by the switch itself. The software power threshold needs to be smaller than the hardware protection power threshold, so that when each network port is overloaded instantaneously or for a long time, the power supply abnormal port is effectively determined, and the POE power supply abnormal recovery is carried out through other processing steps.
Specifically, after obtaining the detection power of each network port currently in the non-hardware protection state, the switch respectively compares the detection power of each network port with a preset software power threshold to obtain each comparison result. And if the detection power of the network port in the comparison result is greater than the software power threshold, determining the network port as the abnormal power supply network port, and further closing the power supply of the abnormal power supply network port by the switch so as to maintain the stable power supply of other normal network ports of the switch and prevent the device damage of the abnormal power supply network port caused by long-time overload. The number of the power supply abnormal network ports can be one or more, and is determined by a comparison result of the detected power in the actual working process of the switch.
And S18, restoring the power supply of the power supply abnormal network port after the set time length.
It can be understood that the set time duration is a time interval, such as but not limited to 30s or 60s, for restarting the power supply of the network interface, which is set for the switch in advance according to the maintenance record, experience and the like of the switch in practical application, as long as the service processing of the switch can be effectively prevented from being influenced by long-time power failure of the network interface with abnormal power supply, and the network interface can be prevented from being damaged due to too short interval time for restarting the power supply.
Specifically, the switch will wait for the power supply of the power supply abnormal network interface to be restarted after the set time is long after the power supply of the power supply abnormal network interface is closed, so as to recover the power supply of the power supply abnormal network interface, thereby realizing the self-recovery of the network interface POE of the switch after the power supply abnormality and avoiding the restart of the maintenance personnel when the maintenance personnel go to the station.
According to the method for recovering POE power supply abnormality of the switch, whether the protection state of each network port is in the non-hardware protection state or not is determined according to the power supply state of each network port, then the current voltage of each network port in the non-hardware protection state is detected respectively, the detection power of each network port in the non-hardware protection state is determined, the detection power is compared with a software power threshold value, the power supply of the network port with abnormal power supply is determined, the power supply of the network port with abnormal power supply is closed, the power supply of the network port with abnormal power supply is recovered after a set time length, protection and self-recovery when POE power supply of the switch is abnormal are achieved, the network port offline rate and the number of on-site maintenance times when POE power supply of the network port is abnormal are greatly reduced, and the purpose of greatly reducing maintenance cost is achieved.
In one embodiment, the software power threshold is less than a hardware protection power threshold of the switch fabric. It can be understood that, in this embodiment, the software power threshold of the switch port is set to be smaller than the hardware protection power threshold of the switch port, and under the condition that any port of the switch is instantaneously overloaded or overloaded for a long time, a software protection and recovery mechanism is preferentially triggered, that is, the power supply recovery of the power supply abnormal port is preferentially realized by the switch POE power supply abnormal recovery method, so that the offline rate of the port caused by the power supply abnormality is reduced to the maximum extent, the time consumed for recovering the power supply abnormal port of the switch POE is reduced, and the recovery processing efficiency is improved.
Referring to fig. 2, in an embodiment, the method for recovering power failure of POE switch may further include the following processing step S13:
and S13, if any network port is in the hardware protection state, restarting the power supply of the network port in the hardware protection state.
It can be understood that, after the switch acquires the power supply state information of each network port, it determines that any network port is currently in the hardware protection state, and then the switch software self-healing process is reopened to recover the power supply of the network port currently in the hardware protection state, so that the network port exits the hardware protection state, which is convenient for the switch to detect the current and voltage of the network port subsequently, and thus determine whether the network port belongs to the self-protection caused by the instantaneous overload or the long-time overload, so as to perform the corresponding power supply abnormal recovery.
Through the step S13, when any network port is currently in the hardware protection state, the switch may automatically reopen the power supply of the network port, so that the switch may perform corresponding network port current and voltage detection after the network port recovers power supply, and determine whether the network port still belongs to the abnormal power supply network port, if not, the network port may directly maintain the online state of normal power supply, and if so, the power supply abnormal recovery processing may be completed through the subsequent processing steps, so that the network port recovers the online state of normal power supply, thereby further reducing the network port offline rate of the switch.
Referring to fig. 3, in an embodiment, the step S12 may specifically include the following processing steps S122 and S124:
s122, respectively reading the value of the power supply state register of each network port in a set period;
and S124, determining the current protection state of each network port according to the value of each power supply state register.
It can be understood that the set period is a state reading period set according to the failure probability, test experience, or other maintenance experience of the switch in practical application, for example, but not limited to, 1min, 3min, or other periods, as long as the switch can effectively read the value of the power supply state register of each network port to ensure the effectiveness and accuracy of the subsequent processing step. The value of the power supply state register refers to each state register which records the POE power supply state of each network port in the switch, and the switch can directly read the value of each power supply state register to directly know the current protection state of each corresponding network port.
Specifically, in this embodiment, the switch directly reads the value of each power supply status register, so as to directly determine whether each corresponding network port is currently in the hardware protection state or the non-hardware protection state according to the value of each power supply status register. Through the steps S122 and S124, the switch can efficiently determine the protection state of each corresponding portal, thereby saving the processing flow of state judgment and further improving the efficiency of recovery processing.
Referring to fig. 4, in an embodiment, the step S16 may specifically include the following processing steps S162 to S166:
s162, comparing each detection power with a software power threshold value;
s164, if any detection power is larger than the software power threshold, accumulating the overload times of the corresponding network port;
and S166, if the overload times exceed the set times, determining that the corresponding network port is the abnormal power supply network port.
The set times refers to an overload time threshold determined according to test experience of the switch in practical application, and can be used for ensuring the accuracy of judging the power supply abnormal network port by the switch and avoiding long-time overload damage of the network port or increase of network port detection burden of the switch caused by excessive judgment times. The set number of times may be, for example, 3 times, 2 times, 4 times, or other times, and accordingly, when the overload number continuously (i.e., detected up to now) exceeds 3 times or 4 times, it may be determined that the network port corresponding to the overload number is the power supply abnormal network port.
Specifically, when the switch determines whether any network port subjected to instantaneous overload or long-time overload is an abnormal power supply network port, the switch may first compare the detection power of the network port with a determined software power threshold value to determine whether the current detection power of the network port exceeds the software power threshold value. When the switch determines that the detected power of any network port is greater than the software power threshold, the network port is not directly determined as a power supply abnormal network port, but the overload times of the network port are accumulated once, for example, the current overload times of the network port is added by 1. And then, the exchanger compares the overload frequency after the network port is refreshed with the set frequency, and if the overload frequency after the network port is refreshed exceeds the set frequency, the network port is determined to be the abnormal power supply network port, so that the subsequent abnormal power supply outage and recovery processing are carried out.
Through the processing steps from S162 to S166, the switch can effectively avoid misjudgment of the power supply abnormal network port, so that the self-recovery efficiency of the switch when the POE power supply is abnormal is further improved.
Referring to fig. 5, in an embodiment, the method for recovering a POE power supply abnormality of a switch may further include the following processing steps:
if the overload count does not exceed the set count, the process returns to step S12.
It can be understood that, in the foregoing embodiments, the POE power supply abnormality recovery processing performed by the switch on each network port may be one-time recovery processing, or may be continuous online POE power supply abnormality detection and recovery processing that is remotely controlled by a maintenance person. Specifically, in this embodiment, the switch may set the corresponding overload times limit for each network port of the switch, so that when some network port or some network ports are overloaded in the current detection and recovery process, the switch counts the overload times of the corresponding network ports. Therefore, when the switch detects each network port, for any network port, the current overload frequency of the network port does not exceed the set frequency, the switch does not immediately determine the network port as a power supply abnormal port, but can judge the protection state of the network port again, and if the switch determines that the network port is a non-power supply abnormal port in the subsequent process, the switch does not need to perform outage and self-recovery processing, so that the misjudgment rate of the overload of the network port is reduced. The loop judgment processing for other network ports can be understood by referring to the same principle of the foregoing example.
Through foretell circulation processing, can reduce the erroneous judgement rate to each net gape overload, realize the online circulation detection of the power supply anomaly, the net gape POE power supply anomaly self-healing ability of reinforcing switch simultaneously, can also save the system resource of switch and reduce the energy consumption.
In an embodiment, as shown in fig. 5, the method for recovering POE power supply abnormality of a switch may specifically include the following processing steps:
if any of the detected powers is smaller than the software power threshold, the process returns to step S12.
Specifically, when the switch performs overload detection comparison on each network port, for any network port, when the detection power of the network port is smaller than the software power threshold, it indicates that the network port is not overloaded again. Then, the switch can reacquire the power supply state information and judge the protection state of the network port, so as to realize real-time online cycle detection of the network port and improve the power supply abnormality detection efficiency of the network port.
In an embodiment, as shown in fig. 5, after the step S18, the method may further include the following steps:
the above step S12 is executed again.
Specifically, after the switch completes the current round of power supply abnormity recovery for each network port, the switch can judge the protection state of each network port again, and start a new round of POE power supply abnormity detection and self-recovery processing. It can be understood that, in all different network ports of different switches, the POE power supply abnormality detection and self-recovery processing cycle times of different network ports may be the same or different, and the actual progress of POE power supply abnormality detection and self-recovery processing can be determined by the switch respectively for each network port.
Through the above-mentioned circulation processing steps, the switch can automatically and quickly complete the self-recovery processing of the power supply abnormal network port when POE power supply abnormality occurs at any network port. Afterwards, the switch can also continue the abnormal state of this net gape after recovering of on-line measuring to realize the unusual automated inspection of net gape POE power supply and the self-recovery of switch in whole course of the work, reduce the off-line rate of each net gape of switch more effectively, further promote the self-healing ability of switch, reduce the maintenance cost.
It should be understood that, although the steps in the flowcharts of fig. 1 to 5 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
Referring to fig. 6, in an embodiment, there is further provided a device 100 for recovering a POE power supply abnormality of a switch, including a state determining module 13, a power detecting module 15, an abnormality controlling module 17, and a recovery processing module 19. The state determining module 13 is configured to obtain power supply state information of each network port and determine a current protection state of each network port; the power detection module 15 is configured to detect current and voltage of each network port currently in a non-hardware protection state, and determine detection power of each network port currently in the non-hardware protection state; the abnormal control module 17 is configured to determine a power supply abnormal network port and close power supply of the power supply abnormal network port according to a comparison result between each detected power and a preset software power threshold; the power supply abnormal network port is a network port with the detection power larger than the software power threshold; the recovery processing module 19 is configured to recover power supply of the power supply abnormal network interface after a set time length.
The switch POE power supply abnormality recovery apparatus 100 determines, through cooperation of the modules, whether the current protection state of each network port is a non-hardware protection state by using the power supply state information of each network port; then, respectively detecting the current voltage of each network port currently in a non-hardware protection state to determine the detection power of each network port currently in the non-hardware protection state; comparing the detected power with a software power threshold value to determine a power supply abnormal network port and close the power supply of the power supply abnormal network port; and finally, the power supply of the abnormal power supply network port is recovered after the set time is long, so that the protection and self-recovery when the POE power supply of the switch is abnormal are realized, the network port offline rate and the number of times of on-station maintenance when the POE power supply is abnormal are greatly reduced, and the purpose of greatly reducing the maintenance cost is achieved.
In an embodiment, the above-mentioned switch POE power supply abnormality recovery apparatus 100 may further include a protection reopening module, configured to reopen power supply of a network port currently in the hardware protection state when any network port is currently in the hardware protection state.
In an embodiment, the status determining module 13 may specifically include an information reading sub-module and a status sub-module. The information reading submodule is used for respectively reading the values of the power supply state registers of the network ports in a set period. And the state submodule is used for determining the current protection state of each corresponding network port according to the value of each power supply state register.
In one embodiment, the above-mentioned anomaly control module 17 may further include a power comparison sub-module, an overload statistics sub-module, and an anomaly determination sub-module. And the power comparison sub-module is used for respectively comparing each detection power with a software power threshold. The overload counting submodule is used for accumulating the overload times of the corresponding network port when any detection power is larger than the software power threshold value. And the abnormity determining submodule is used for determining the corresponding network port as the abnormal power supply network port when the overload times exceed the set times.
In an embodiment, the overload statistics sub-module may be further configured to trigger the status determination module 13 to continue the status determination process when the number of times of overload does not exceed the set number of times.
In an embodiment, the overload statistics sub-module may be further configured to trigger the status determination module 13 to continue the status determination process when any detected power is smaller than the software power threshold.
In an embodiment, the recovery processing module 19 may be further configured to trigger the state determination module 13 to continue the state determination process.
For specific limitations of the switch POE power supply abnormality recovery apparatus 100, reference may be made to the corresponding limitations of the switch POE power supply abnormality recovery method, which are not described herein again. All or part of the modules in the POE power supply abnormality recovery apparatus 100 for a switch may be implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the switch, and can also be stored in a memory in the switch in a software form, so that the processor can call and execute the corresponding operations of the modules.
In one embodiment, there is also provided a switch comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program: acquiring power supply state information of each network port and determining the current protection state of each network port; respectively detecting the current and the voltage of each network port in a non-hardware protection state at present, and determining the detection power of each network port in the non-hardware protection state at present; determining a power supply abnormal network port and closing the power supply of the power supply abnormal network port according to the comparison result of each detection power and a preset software power threshold value; the power supply abnormal network port is a network port with detection power larger than a software power threshold value; and recovering the power supply of the abnormal power supply network port after the set time length.
It will be understood by those skilled in the art that the switch in this embodiment may include other components besides the memory and the processor, and may be determined according to the structural components and functions of the switch of a specific type in practical applications, such as but not limited to the commercially available nokia switch with 12 network ports, which is not described in this specification.
In an embodiment, the processor, when executing the computer program, may further implement the additional steps or substeps in the embodiments of the method for recovering a POE power supply anomaly of a switch.
In one embodiment, there is also provided a computer readable storage medium having a computer program stored thereon, the computer program when executed by a processor implementing the steps of: acquiring power supply state information of each network port and determining the current protection state of each network port; respectively detecting the current and the voltage of each network port in a non-hardware protection state at present, and determining the detection power of each network port in the non-hardware protection state at present; determining a power supply abnormal network port and closing the power supply of the power supply abnormal network port according to the comparison result of each detection power and a preset software power threshold value; the power supply abnormal network port is a network port with the detection power larger than the software power threshold; and recovering the power supply of the abnormal power supply network port after the set time length.
In an embodiment, the computer program, when executed by the processor, may further implement the additional steps or substeps in the embodiments of the method for recovering a POE power supply anomaly of a switch.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link DRAM (Synchlink) DRAM (SLDRAM), Rambus DRAM (RDRAM), and interface DRAM (DRDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A method for recovering POE power supply abnormality of a switch is characterized by comprising the following steps:
acquiring power supply state information of each network port and determining the current protection state of each network port;
respectively detecting the current and the voltage of each network port in a non-hardware protection state at present, and determining the detection power of each network port in the non-hardware protection state at present;
comparing each detection power with a preset software power threshold respectively, and accumulating the overload times of the corresponding network port if any detection power is greater than the software power threshold; if the overload times exceed the set times, determining that the corresponding network port is a power supply abnormal network port and closing the power supply of the power supply abnormal network port; the power supply abnormal network port is the network port of which the detection power is greater than the software power threshold value; the software power threshold is smaller than the hardware protection power threshold of the switch network port;
and recovering the power supply of the power supply abnormal network port after the set time length.
2. The method for recovering POE (power over Ethernet) power supply abnormality of a switch according to claim 1, further comprising:
and if the overload times do not exceed the set times, returning to the step of acquiring the power supply state information of each network port and determining the current protection state of each network port.
3. The method for recovering abnormal power over POE (power over ethernet) of a switch according to claim 1 or 2, wherein the method further comprises:
and if any detection power is smaller than the software power threshold, returning to execute the steps of obtaining the power supply state information of each network port and determining the current protection state of each network port.
4. The method for recovering abnormal power supply to a POE (power over Ethernet) of a switch according to claim 3, wherein after the step of recovering the power supply to the abnormal power supply port after a set time period, the method further comprises:
and returning to execute the steps of obtaining the power supply state information of each network port and determining the current protection state of each network port.
5. The method for recovering power over POE power supply abnormality of a switch according to claim 3, wherein the step of obtaining power supply state information of each network port and determining a protection state of each network port at present includes:
respectively reading the value of the power supply state register of each network port in a set period;
and respectively determining the current protection state of each corresponding network port according to the value of each power supply state register.
6. The method for recovering POE (power over Ethernet) power supply abnormality of a switch according to claim 5, wherein the method further comprises:
and if any one network port is in the hardware protection state at present, restarting the power supply of the network port in the hardware protection state at present.
7. The utility model provides a switch POE power supply abnormity recovery device which characterized in that includes:
the state determining module is used for acquiring power supply state information of each network port and determining the current protection state of each network port;
the power detection module is used for respectively detecting the current and the voltage of each network port in a non-hardware protection state at present and determining the detection power of each network port in the non-hardware protection state at present;
the abnormality control module is used for respectively comparing each detection power with a preset software power threshold value, and if any detection power is larger than the software power threshold value, accumulating the overload times of the corresponding network port; if the overload times exceed the set times, determining that the corresponding network port is a power supply abnormal network port and closing the power supply of the power supply abnormal network port; the power supply abnormal network port is a network port with detection power larger than the software power threshold value; the software power threshold is smaller than the hardware protection power threshold of the network port of the switch;
and the recovery processing module is used for recovering the power supply of the power supply abnormal network port after the set time length.
8. Switch comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the POE power supply anomaly recovery method for a switch as claimed in any one of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored, wherein the computer program, when executed by a processor, implements the steps of the switch POE power supply anomaly recovery method according to any one of claims 1 to 6.
CN201911282036.2A 2019-12-13 2019-12-13 Switch POE power supply abnormity recovery method and device and switch Active CN111064584B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911282036.2A CN111064584B (en) 2019-12-13 2019-12-13 Switch POE power supply abnormity recovery method and device and switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911282036.2A CN111064584B (en) 2019-12-13 2019-12-13 Switch POE power supply abnormity recovery method and device and switch

Publications (2)

Publication Number Publication Date
CN111064584A CN111064584A (en) 2020-04-24
CN111064584B true CN111064584B (en) 2022-05-31

Family

ID=70302026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911282036.2A Active CN111064584B (en) 2019-12-13 2019-12-13 Switch POE power supply abnormity recovery method and device and switch

Country Status (1)

Country Link
CN (1) CN111064584B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114264940A (en) * 2020-09-16 2022-04-01 深圳绿米联创科技有限公司 Abnormity protection method, abnormity protection device, control equipment and protection system
CN112380047A (en) * 2020-09-25 2021-02-19 深圳中科德能科技有限公司 Method and device for restarting switch, terminal equipment and storage medium
CN112256479A (en) * 2020-10-19 2021-01-22 深圳中科德能科技有限公司 Method and device for restarting power receiving end equipment, terminal equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025509A (en) * 2010-11-10 2011-04-20 中兴通讯股份有限公司 Power-off control method and device
CN103200015A (en) * 2013-04-03 2013-07-10 武汉烽火网络有限责任公司 Power over Ethernet (POE) switchboard power supply method
CN106444709A (en) * 2016-10-13 2017-02-22 珠海许继电气有限公司 Automatic testing method and device of distribution intelligent function of power distribution terminal
CN106789110A (en) * 2016-12-20 2017-05-31 深圳市菲菱科思通信技术股份有限公司 A kind of long-range PoE controls and fault recovery method and system based on cloud method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110040991A1 (en) * 2009-08-13 2011-02-17 Moxa Inc. Method for power overload control in a network
US9519328B2 (en) * 2014-05-21 2016-12-13 Intel Corporation Techniques for selectively reducing power levels of ports and core switch logic in infiniband switches
CN105044514B (en) * 2015-07-27 2018-07-06 兖州煤业股份有限公司 A kind of power supply for exchange condition monitoring system
CN208386569U (en) * 2018-05-02 2019-01-15 新华三技术有限公司 A kind of POE interchanger

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025509A (en) * 2010-11-10 2011-04-20 中兴通讯股份有限公司 Power-off control method and device
CN103200015A (en) * 2013-04-03 2013-07-10 武汉烽火网络有限责任公司 Power over Ethernet (POE) switchboard power supply method
CN106444709A (en) * 2016-10-13 2017-02-22 珠海许继电气有限公司 Automatic testing method and device of distribution intelligent function of power distribution terminal
CN106789110A (en) * 2016-12-20 2017-05-31 深圳市菲菱科思通信技术股份有限公司 A kind of long-range PoE controls and fault recovery method and system based on cloud method

Also Published As

Publication number Publication date
CN111064584A (en) 2020-04-24

Similar Documents

Publication Publication Date Title
CN111064584B (en) Switch POE power supply abnormity recovery method and device and switch
CN105512056A (en) Method and device for data storage, and terminal
CN104254097A (en) Flow control method and device
CN110267285B (en) Main/standby link switching method and device and digital switch
CN104360918B (en) A kind of intelligent Substation System self diagnosis and self-recovery method
CN116700123B (en) Integrated EtherCAT bus I/O module
CN101018163A (en) Alarm processing method and background management device
CN116820820A (en) Server fault monitoring method and system
CN204256729U (en) Power-down protection apparatus
WO2011113321A1 (en) Method and device for controlling energy consumption
WO2020073994A1 (en) Network alarm processing method and apparatus, and storage medium
CN114421447B (en) Load protection method, load protection device, computer equipment and storage medium
CN112303811B (en) Processing method, device and system for air conditioner operation data, air conditioner and storage medium
CN111819557B (en) Method of monitoring IoT devices and use thereof on IoT device battery protection watchdog
CN112689280B (en) Method for monitoring terminal switching base station and access and mobility management functions
CN102654531A (en) Remedying method and remedying device of lacked electric energy qualitative data
CN107179911A (en) A kind of method and apparatus for restarting management engine
CN113448421A (en) Equipment power failure management method and device
CN113127246A (en) Watchdog circuit, control method and watchdog chip
CN113595837B (en) Communication protocol management method, device, electronic equipment and storage medium
CN115904917B (en) Internet of things exception handling method and device, computer equipment and storage medium
CN109491872B (en) Memory supervision method and device and computer readable storage medium
CN103595358A (en) Radio frequency power amplifier and warning message saving method and device thereof
CN117489627B (en) Fan locked rotor test method and device, control terminal equipment and storage medium
CN117112273A (en) Fault state management and control method, device, equipment and medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Comba Telecom System (China) Ltd.

GR01 Patent grant
GR01 Patent grant