WO2017173762A1 - 一种端口控制的方法和装置 - Google Patents

一种端口控制的方法和装置 Download PDF

Info

Publication number
WO2017173762A1
WO2017173762A1 PCT/CN2016/094964 CN2016094964W WO2017173762A1 WO 2017173762 A1 WO2017173762 A1 WO 2017173762A1 CN 2016094964 W CN2016094964 W CN 2016094964W WO 2017173762 A1 WO2017173762 A1 WO 2017173762A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
closed
link
ports
time
Prior art date
Application number
PCT/CN2016/094964
Other languages
English (en)
French (fr)
Inventor
陈诚
陈雅菲
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017173762A1 publication Critical patent/WO2017173762A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0681Configuration of triggering conditions

Definitions

  • This document relates to, but is not limited to, the field of network management technology, and more particularly to a method and apparatus for port control.
  • PoE Power Over Ethernet
  • the standard adopted by POE in the industry is IEEE 802.3af, which stipulates that power supply equipment can supply power to powered devices with power below 13W through Ethernet.
  • IEEE 802.3af stipulates that power supply equipment can supply power to powered devices with power below 13W through Ethernet.
  • IEEE 802.3at POE Plus
  • the reverse power supply function is to satisfy the distributed processing unit (Distributed Processing Unit) at a minimum distance of 250 meters. For short: DPU)
  • the reverse power supply requirement for a single port during normal operation ie 10W@250m
  • the Ethernet cable diameter used is 0.4 ⁇ 0.6mm.
  • the device is implemented as a PD device, and cooperates with a power supply device (PSE) to complete a remote reverse power supply function, and provides power required for the device to work.
  • PSE power supply device
  • the first one is a fair power supply mode, that is, each user uses the PSE to supply power to the PD.
  • a fair power supply mode that is, each user uses the PSE to supply power to the PD.
  • the second type is the friendly user mode. The fixed number of users are always powered, and other users can start the service normally without power supply.
  • the embodiment of the invention provides a method and a device for controlling the port of the reverse power supply device, which can automatically handle the fault to ensure the normal use of the user equipment in the case of insufficient power supply, and the operation is simple and the maintenance efficiency is improved.
  • an embodiment of the present invention provides a method for port control, which is applied to a reverse power supply device, and the method includes:
  • One or more ports are closed according to a predetermined rule according to the link parameters.
  • the port to be closed is collected according to the obtained port information, including:
  • the port that meets the preset condition is selected from the to-be-closed port, including:
  • the port that meets the priority level is selected from the to-be-closed port according to the priority level of each port preset in the port information of the device.
  • the link parameters for each port after filtering are obtained, including:
  • one or more ports are closed according to the predetermined rules according to the link parameters, including:
  • the usage duration of each port in a preset time is counted, and one or more ports whose usage duration meets a predetermined time threshold are turned off.
  • the method further includes:
  • Detecting the status of the abnormal alarm of the power supply of the device If there is no abnormality, stop shutting down. If there is an abnormality, continue to close one or more of the shortest to long use durations in a preset time. Ports until there are no exceptions.
  • An embodiment of the present invention provides a port control method, including: receiving an abnormal alarm of a power supply of a device, acquiring port information of the device, collecting a port to be closed according to the obtained port information, and filtering out the port to be closed.
  • a port that satisfies a preset condition and obtains a link parameter of each port after filtering, and closes one or more ports according to the predetermined rule according to the link parameter.
  • the port that supplies power to the device can be filtered out to meet the preset condition and the port is closed according to a predetermined rule in real time, thereby ensuring normal use of the user equipment, and the operation is simple. Improves maintenance efficiency.
  • an embodiment of the present invention provides a device, which is applied to a reverse power supply device, where the device includes: a receiving module, a collecting module, a screening module, and a closing module;
  • the receiving module is configured to receive an abnormal alarm for powering the device
  • the collecting module is configured to acquire port information of the device, and collect a port to be closed according to the obtained port information;
  • the screening module is configured to filter out a port that meets a preset condition from the to-be-closed port, and obtain a link parameter of each port after filtering;
  • the shutdown module is configured to close one or more ports according to a predetermined rule according to the link parameters.
  • the collecting module is configured to collect the to-be-closed port according to the acquired port information by:
  • the screening module is configured to filter out the port that meets the preset condition from the to-be-closed port by:
  • the port that meets the priority level is selected from the to-be-closed port according to the priority level of each port preset in the port information of the device.
  • the screening module is configured to obtain a link parameter for each port after filtering by:
  • the shutdown module is configured to close one or more ports according to the predetermined rules according to the link parameters by:
  • the usage duration of each port in a preset time is counted, and one or more ports whose usage duration meets a predetermined time threshold are turned off.
  • the apparatus further includes: a detection module
  • the detecting module is configured to detect a state of an abnormal alarm that is powered by the device, and if there is no abnormality, stop shutting down, if there is an abnormality, continue to turn off one or more of the shortest to long use durations in a preset time period. Ports until there are no exceptions.
  • An embodiment of the present invention provides a device for controlling a port, including: a receiving module, a collecting module, a screening module, and a shutdown module, where the receiving module is configured to receive an abnormal alarm for powering the device, and the collecting module is configured to obtain port information of the device, according to The obtained port information collection port is to be closed, and the filtering module is configured to filter out the port that meets the preset condition from the to-be-closed port, and obtain the link parameter of each port after the filtering, and the closing module is set according to the link.
  • the parameter closes one or more ports according to a predetermined rule.
  • the port that supplies power to the device can be filtered out to meet the preset condition and the port is closed according to a predetermined rule in real time, thereby ensuring normal use of the user equipment, and the operation is simple. Improves maintenance efficiency.
  • FIG. 1 is a schematic flowchart diagram of Embodiment 1 of a method for port control according to the present invention
  • FIG. 2 is a schematic structural diagram of Embodiment 1 of a device for port control according to the present invention.
  • the method in the embodiment of the present invention may be applied to a reverse power supply device, for example, a power supply of the DPU device in the active Ethernet POE is required, but is not limited thereto.
  • the method according to the embodiment of the present invention can filter the port that supplies power to the device in real time and meet the preset condition and control the closing of the port according to a predetermined rule in the case of insufficient power supply, thereby ensuring normal use of the user equipment, and the operation is simple. Improve maintenance efficiency.
  • FIG. 1 is a schematic flowchart diagram of Embodiment 1 of a method for port control according to the present invention. This embodiment relates to a specific process of the reverse power supply device controlling the port to be closed. As shown in Figure 1, the method includes:
  • the device controlled by the port of the reverse power supply device in the local area network technology POE receives an abnormal alarm that the DPU device is insufficiently powered.
  • the abnormal alarm may be a reminder in the form of a text or a warning tone, but is not limited thereto.
  • IP address Internet Protocol address
  • all port information on the DPU device may be obtained, where the port information includes an IP address, a quantity, a usage, and the like of the port, and according to the obtained
  • the port information can be used to establish a list of ports to be shut down.
  • the ports that are required to be powered by the device need to be removed to ensure that the power supply of the device is normal.
  • the port in the port list to be closed can be sorted by a priority level.
  • the priority level of the port can be preset according to the actual situation, and then the priority is filtered according to the priority level of the port.
  • determining the frequency of use of each port by using the link parameter of the port with the lower priority level for example, calculating the sum of the link-building time and the link-break time of the port within a predetermined time, the port can be obtained.
  • the length of use of the period of time, wherein the shortest use time is the lowest frequency of use of the port, the port with the lowest frequency of use is closed, and the closed port information can be removed from the list of ports to be closed for updating. For the convenience of subsequent exception handling.
  • a port control method is provided by the embodiment of the present invention.
  • the method includes: receiving an abnormal alarm of the power supply of the device, acquiring the port information of the device, and collecting the port to be closed according to the obtained port information, and the port to be closed
  • the port that meets the preset condition is filtered out, and the link parameters of each port after the filtering are obtained, and one or more ports are closed according to the predetermined rule according to the link parameter.
  • the alarm abnormality information is received, the port that supplies power to the device can be filtered out to meet the preset condition and the port is closed according to a predetermined rule in real time, thereby ensuring normal use of the user equipment, and the operation is simple. Improves maintenance efficiency.
  • collecting the to-be-closed port according to the obtained port information including:
  • a predetermined number of power supply ports are fixed for power supply, and other ports may be normally operated without power supply.
  • the predetermined power supply ports need to be excluded, and the port other than the excluded predetermined power supply port is used as the port to be closed.
  • the port that meets the preset condition is selected from the to-be-closed port, including:
  • the port that meets the priority level is selected from the to-be-closed port according to the priority level of each port preset in the port information of the device.
  • the screening may be further performed according to a preset condition, where the preset condition may be a preset priority level of each port, and is specifically set according to actual conditions, and those are prioritized. Ports with low level are filtered out, and these ports can be shut down first.
  • the preset condition may be a preset priority level of each port, and is specifically set according to actual conditions, and those are prioritized. Ports with low level are filtered out, and these ports can be shut down first.
  • the port that meets the priority level is selected from the port to be shut down according to the priority level of each port preset in the port information of the device, and the port to be closed is selected according to preset conditions in advance.
  • the port with the lower priority level is used to quickly restore the power supply.
  • obtaining the link parameters of each port after filtering including:
  • the link parameter may include a link-building time and a link-break time in a predetermined time, for example, a link-building time of each port after screening in the last 30 days and Broken chain time, etc., but is not limited to this.
  • the one or more ports are closed according to the predetermined rule according to the link parameter, including:
  • the usage duration of each port in a preset time is counted, and one or more ports whose usage duration meets a predetermined time threshold are turned off.
  • the usage duration of each port can be calculated according to the link-building time and the link-breaking time of each port within a predetermined time, for example, within 2 to 5 o'clock of the off-peak period, each port is used once.
  • the sum of the link-building time and the time-to-break time difference can determine the length of use of each port, and close one or more ports according to a predetermined rule.
  • the predetermined rule can be to sort all the ports according to the length of use, and close the use.
  • the port with the shortest time can also be set to a predetermined time threshold, which can be 2 hours. According to the actual situation, multiple ports satisfying the time threshold are closed together.
  • the usage duration of each port in a preset time is counted, and the one or more ports whose usage duration meets the predetermined time threshold are turned off, which can be quickly Resolve a fault condition that causes insufficient power to the device.
  • the method further includes:
  • Detecting the status of the abnormal alarm of the power supply of the device If there is no abnormality, stop shutting down. If there is an abnormality, continue to shut down one or more ports that are used in a preset period of time from short to long, until there is no abnormality. .
  • the status of the abnormal alarm that is powered by the device is continuously checked to see whether the abnormal alarm is restored. If the abnormal alarm with insufficient power supply still exists, the system continues to be turned off for a preset period of time.
  • Use one or more ports from short to long that is, when the port is closed before, update the list of ports to be closed.
  • the port can be counted according to the length of use of each port. The sorting is sequentially performed to close, and one or more ports are closed according to the rule that the length of use is short to long until it is determined that the state of the abnormal alarm is restored.
  • the faulty port is sequentially closed according to the updated frequency of the used port in the updated port list, so that the port can be automatically closed without manual intervention.
  • the alarm After the alarm is abnormal, it can be processed in real time, which realizes automatic port control and improves the efficiency of operation and maintenance.
  • FIG. 3 is a schematic structural diagram of a first embodiment of a port control device according to the present invention. As shown in FIG. 3, the device includes: a receiving module 10, a collecting module 20, a screening module 30, and a closing module 40;
  • the receiving module 10 is configured to receive an abnormal alarm for powering the device
  • the collecting module 20 is configured to acquire port information of the device, and collect the port to be closed according to the obtained port information
  • the filtering module 30 is configured to filter a port that meets a preset condition from the to-be-closed port, and obtain a link parameter of each port after filtering;
  • the shutdown module 40 is configured to close one or more ports according to a predetermined rule according to the link parameter.
  • An apparatus for controlling a port includes: a receiving module, a collecting module, a screening module, and a shutdown module; the receiving module is configured to receive an abnormal alarm for powering the device, and the collecting module is configured to acquire The port information of the device is configured to collect a port to be closed according to the obtained port information, where the filtering module is configured to filter out a port that meets a preset condition from the port to be closed, and obtain a link of each port after filtering. And the shutdown module is configured to close one or more ports according to the predetermined rule according to the link parameter.
  • the port that supplies power to the device can be filtered out to meet the preset condition and the port is closed according to a predetermined rule in real time, thereby ensuring normal use of the user equipment, and the operation is simple. Improves maintenance efficiency.
  • the collecting module 20 is configured to collect the to-be-closed port according to the obtained port information by:
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the screening module 30 is configured to: filter, by using the to-be-closed port, a port that meets a preset condition by:
  • the port that meets the priority level is selected from the to-be-closed port according to the priority level of each port preset in the port information of the device.
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the screening module 30 is configured to obtain a link parameter of each port after filtering by using the following manner:
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the closing module 40 is configured to close one or more ports according to the predetermined rule according to the link parameter by:
  • the usage duration of each port in a preset time is counted, and one or more ports whose usage duration meets a predetermined time threshold are turned off.
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • a detecting module 50 further comprising: a detecting module 50;
  • the detecting module is configured to detect a state of an abnormal alarm that is powered by the device, and if there is no abnormality, stop shutting down, if there is an abnormality, continue to turn off one or more of the shortest to long use durations in a preset time period. Ports until there are no exceptions.
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are used to execute the method described in the foregoing embodiments.
  • each module/unit in the above embodiment may be implemented in the form of hardware, for example, by implementing an integrated circuit to implement its corresponding function, or may be implemented in the form of a software function module, for example, executing a program stored in the memory by a processor. / instruction to achieve its corresponding function.
  • the invention is not limited to any specific form of combination of hardware and software.
  • the above technical solution can automatically handle the fault to ensure the normal use of the user equipment in the case of insufficient power supply, and the operation is simple, and the maintenance efficiency is improved.

Landscapes

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

Abstract

一种端口控制的方法和装置,包括:接收到设备供电的异常告警,获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口,从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数,根据所述链接参数按照预定规则关闭一个或者多个端口。通过在收到告警异常信息时,能够在供电不足的情况下,实时对设备供电的端口筛选出满足预设条件以及按照预定规则来控制端口的关闭,从而来保障用户设备的正常使用,操作简单,提高了维护效率。

Description

一种端口控制的方法和装置 技术领域
本文涉及但不限于网络管理技术领域,尤指一种端口控制的方法和装置。
背景技术
目前,有源以太网(Power Over Ethernet,简称:POE)是一种局域网技术,可通过双绞线向受电设备(Power Device,简称:PD)提供直流供电。业界中POE所采用的标准为IEEE 802.3af,该标准规定了供电设备可通过以太网向功率在13W以下的受电设备供电。为适应高功率应用,IEEE在2005年开始开发新的POE标准802.3at(POE Plus)以提升POE可传送的电力,其中,反向供电功能是满足最低250米距离上分散处理单元(Distributed Processing Unit,简称:DPU)单端口正常工作时的反向供电需求(即10W@250米),使用的以太网线径为0.4~0.6mm。具体而言在设备上的实现是指作为PD设备,配合用户端供电端设备(Power Source Equipment,简称:PSE)完成远程反向供电功能,提供设备工作所需的电源。
相关技术中,反向供电有两种模式,第一种是公平供电模式,即每一路用户都通过PSE向PD供电,单路用户供电时,仅此路用户业务端口开通;多路用户供电时,仅供电用户业务端口开通,每路用户供电电流均流。第二种是友好用户模式,固定几路用户一直供电,其他用户无需供电即可正常开通业务。
但是,采用相关技术,上述DPU设备在友好用户模式下进行反向供电时,如果出现供电不足,则需要大量手动处理故障来保障用户设备的正常使用,操作复杂且效率低下。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本发明实施例提供了一种控制反向供电设备端口的方法和装置,能够在供电不足的情况下,自动处理故障来保障用户设备的正常使用,操作简单,提高了维护效率。
第一方面,本发明实施例提供一种端口控制的方法,应用于反向供电设备,所述方法包括:
接收到设备供电的异常告警;
获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口;
从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数;
根据所述链接参数按照预定规则关闭一个或者多个端口。
在一个实施例中,根据所获取的端口信息收集待关闭端口,包括:
根据所获取的端口信息排除预定的供电端口,将除所述排除的预定供电端口外的端口作为待关闭端口。
在一个实施例中,从所述待关闭端口中筛选出满足预设条件的端口,包括:
根据所述设备的端口信息中预设的每个端口的优先级级别,从所述待关闭端口中筛选出满足优先级级别为低的端口。
在一个实施例中,获取筛选后的每个端口的链接参数,包括:
获取筛选后的每个端口在预定时间内的建链时间和断链时间。
在一个实施例中,根据所述链接参数按照预定规则关闭一个或者多个端口,包括:
根据每个端口在预定时间内的建链时间和断链时间,统计每个端口在预设的时间内的使用时长,关闭所述使用时长符合预定时间阈值的一个或者多个端口。
在一个实施例中,所述方法还包括:
检测所述设备供电的异常告警的状态,如果无异常,则停止关闭,如果有异常,则继续关闭依次在预设的时间内的使用时长从短到长的一个或者多 个端口,直至无异常。
本发明实施例提供一种端口控制的方法,包括:接收到设备供电的异常告警,获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口,从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数,根据所述链接参数按照预定规则关闭一个或者多个端口。通过在收到告警异常信息时,能够在供电不足的情况下,实时对设备供电的端口筛选出满足预设条件以及按照预定规则来控制端口的关闭,从而来保障用户设备的正常使用,操作简单,提高了维护效率。
第二方面,本发明实施例提供一种装置,应用于反向供电设备,所述装置包括:接收模块、收集模块、筛选模块和关闭模块;
所述接收模块设置为接收设备供电的异常告警;
所述收集模块设置为获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口;
所述筛选模块设置为从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数;
所述关闭模块设置为根据所述链接参数按照预定规则关闭一个或者多个端口。
在一个实施例中,所述收集模块是设置为通过如下方式实现根据所获取的端口信息收集待关闭端口:
根据所获取的端口信息排除预定的供电端口,将除所述排除的预定供电端口外的端口作为待关闭端口。
在一个实施例中,所述筛选模块是设置为通过如下方式实现从所述待关闭端口中筛选出满足预设条件的端口:
根据所述设备的端口信息中预设的每个端口的优先级级别,从所述待关闭端口中筛选出满足优先级级别为低的端口。
在一个实施例中,所述筛选模块是设置为通过如下方式实现获取筛选后的每个端口的链接参数:
获取筛选后的每个端口在预定时间内的建链时间和断链时间。
在一个实施例中,所述关闭模块是设置为通过如下方式实现根据所述链接参数按照预定规则关闭一个或者多个端口:
根据每个端口在预定时间内的建链时间和断链时间,统计每个端口在预设的时间内的使用时长,关闭所述使用时长符合预定时间阈值的一个或者多个端口。
在一个实施例中,所述装置还包括:检测模块;
所述检测模块设置为检测所述设备供电的异常告警的状态,如果无异常,则停止关闭,如果有异常,则继续关闭依次在预设的时间内的使用时长从短到长的一个或者多个端口,直至无异常。
本发明实施例提供一种端口控制的装置,包括:接收模块、收集模块、筛选模块和关闭模块,接收模块设置为接收设备供电的异常告警,收集模块设置为获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口,筛选模块设置为从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数,关闭模块设置为根据所述链接参数按照预定规则关闭一个或者多个端口。通过在收到告警异常信息时,能够在供电不足的情况下,实时对设备供电的端口筛选出满足预设条件以及按照预定规则来控制端口的关闭,从而来保障用户设备的正常使用,操作简单,提高了维护效率。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明提供的一种端口控制的方法实施例一的流程示意图;
图2为本发明提供的一种端口控制的装置实施例一的结构示意图。
本发明的实施方式
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机 系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本发明实施例涉及的方法可以应用于反向供电设备,例如:需要对有源以太网POE中的DPU设备进行供电,但并不以此为限。
本发明实施例涉及的方法,能够在供电不足的情况下,实时对设备供电的端口筛选出满足预设条件以及按照预定规则来控制端口的关闭,从而来保障用户设备的正常使用,操作简单,提高了维护效率。
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
图1为本发明提供的一种端口控制的方法实施例一的流程示意图。本实施例涉及的是反向供电设备控制端口关闭的具体过程。如图1所示,该方法包括:
S101、接收到设备供电的异常告警。
可选的,局域网技术POE中的反向供电设备的端口控制的装置在接收到DPU设备供电不足的异常告警,该异常告警可以是文字或者警告音的形式给出提醒,但并不限于此。
S102、获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口。
可选的,根据所述设备的异常告警的互联网协议地址(IP地址),可以获取到DPU设备上所有的端口信息,该端口信息包括端口的IP地址、数量、用途等,并根据所获取的端口信息可以建立待关闭端口列表,其中,对于预定的固有进行供电的端口需要进行去除,以保证设备的供电正常。
S103、从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数。
可选的,对建立的待关闭端口列表中的端口可以进行一个优先级级别高低的排序,这个端口的优先级级别可以根据实际情况来预先设定,然后根据端口的优先级级别筛选出优先级级别为低的端口,并获取所述优先级级别为 低的每个端口的链接参数,例如:最近30天内每个端口的建链时间和断键时间等等,但并不限于此。
S104、根据所述链接参数按照预定规则关闭一个或者多个端口。
可选的,通过上述优先级别低的端口的链接参数来确定每个端口的使用频率,如:计算端口在预定的时间内的建链时间和断链时间的差总和,就可以得到这个端口在这段时间的使用时长,其中,使用时长最短的即为端口使用频率最低的,将所述使用频率最低的端口进行关闭,还可以从所述待关闭端口列表中去掉关闭的端口信息进行更新,以便后续异常处理提供方便。
本发明实施例提供的一种端口控制的方法,该方法包括:接收到设备供电的异常告警,获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口,从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数,根据所述链接参数按照预定规则关闭一个或者多个端口。通过在收到告警异常信息时,能够在供电不足的情况下,实时对设备供电的端口筛选出满足预设条件以及按照预定规则来控制端口的关闭,从而来保障用户设备的正常使用,操作简单,提高了维护效率。
可选地,在上述实施例的基础上,根据所获取的端口信息收集待关闭端口,包括:
根据所获取的端口信息排除预定的供电端口,将除所述排除的预定供电端口外的端口作为待关闭端口。
可选的,根据所获取的端口信息,其中当反向供电模式是处于友好用户模式时,是有预定几个供电端口固定进行供电,而其他端口则可以在没有供电的情况,也可以正常进行业务往来,当出现供电异常时,先需要排除掉这几个预定的供电端口,将除所述排除的预定供电端口外的端口作为待关闭端口。
通过将预定的供电端口排除,可以在保证业务提供的前提下,解决供电不足的情况下,需要运维人员大量手动处理故障来保障设备的正常使用。
可选地,在上述实施例的基础上,从所述待关闭端口中筛选出满足预设条件的端口,包括:
根据所述设备的端口信息中预设的每个端口的优先级级别,从所述待关闭端口中筛选出满足优先级级别为低的端口。
可选的,在收集到待关闭端口后,可以在进一步地按照预设条件进行筛选,该预设条件可以是预设的每个端口的优先级级别,具体根据实际情况来设置,将那些优先级级别低的端口筛选出来,可以先将这些端口进行关闭。
通过根据所述设备的端口信息中预设的每个端口的优先级级别,从所述待关闭端口中筛选出满足优先级级别为低的端口,通过提前根据预设条件筛选出待关闭端口中优先级级别为低的端口,便于快速恢复供电正常。
可选地,在上述实施例的基础上,获取筛选后的每个端口的链接参数,包括:
获取筛选后的每个端口在预定时间内的建链时间和断链时间。
可选的,获取筛选后的每个端口的链接参数,该链接参数可以包括在预定的时间内的建链时间和断链时间,例如:最近30天内筛选后的每个端口的建链时间和断链时间等等,但并不限于此。
通过根据建链时间和断链时间可以判断出每个端口的使用情况,从而便于对不常用的端口进行控制。
可选地,在上述实施例的基础上,根据所述链接参数按照预定规则关闭一个或者多个端口,包括:
根据每个端口在预定时间内的建链时间和断链时间,统计每个端口在预设的时间内的使用时长,关闭所述使用时长符合预定时间阈值的一个或者多个端口。
可选的,根据每个端口在预定时间内的建链时间和断链时间可以计算得到每个端口的使用时长,例如:在非高峰期的2点到5点之内,每个端口每一次建链时间和断链时间差总和,即可以确定每个端口的使用时长,按照预定的规则关闭一个或者多个端口,其中预定的规则可以是对所有的端口按照使用时间的长短进行排序,关闭使用时间最短的端口,也可以是设置一个预定的时间阈值,该时间阈值可以是2小时,具体根据实际情况来,将满足该时间阈值的多个端口一起关闭。
通过根据每个端口在预定时间内的建链时间和断链时间,统计每个端口在预设的时间内的使用时长,关闭所述使用时长符合预定时间阈值的一个或者多个端口,可以快速解决导致给设备供电不足的故障状态。
可选地,在上述实施例的基础上,该方法还包括:
检测所述设备供电的异常告警的状态,如果无异常,则停止关闭,如果有异常,则继续关闭依次在预设的时间内的使用时长从短到长的一个或者多个端口,直至无异常。
可选的,在关闭掉端口后,继续检查所述设备供电的异常告警的状态,看该异常告警是否有恢复,如果供电不足的异常告警仍然存在,则继续关闭依次在预设的时间内的使用时长从短到长的一个或者多个端口,即之前关闭端口时,就对待关闭端口的列表进行更新,对于更新后的待关闭端口中端口可以按照每个端口统计出的使用时长的长短的排序来依次进行关闭,是按照使用时长由短到长的规则去关闭一个或者多个端口,直至确定所述异常告警的状态恢复为止。
通过上述步骤可以进一步地确定设备供电的异常告警是否解除,并根据更新后的更新后的所述待关闭端口列表中使用频率的高低依次关闭故障端口,使得可以自动关闭端口无需人工干预,收到告警异常以后能够实时处理,实现了自动化的端口控制,提高的运维的效率。
图3为本发明提供的一种端口控制的装置实施例一的结构示意图,如图3所示,该装置包括:接收模块10、收集模块20、筛选模块30和关闭模块40;
所述接收模块10,设置为接收设备供电的异常告警;
所述收集模块20,设置为获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口;
所述筛选模块30,设置为从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数;
所述关闭模块40,设置为根据所述链接参数按照预定规则关闭一个或者多个端口。
本发明实施例提供的一种端口控制的装置,该装置包括:接收模块、收集模块、筛选模块和关闭模块;所述接收模块设置为接收到设备供电的异常告警,所述收集模块设置为获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口,所述筛选模块设置为从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数,所述关闭模块设置为根据所述链接参数按照预定规则关闭一个或者多个端口。通过在收到告警异常信息时,能够在供电不足的情况下,实时对设备供电的端口筛选出满足预设条件以及按照预定规则来控制端口的关闭,从而来保障用户设备的正常使用,操作简单,提高了维护效率。
可选地,在上述实施例的基础上,所述收集模块20是设置为通过如下方式实现根据所获取的端口信息收集待关闭端口:
根据所获取的端口信息排除预定的供电端口,将除所述排除的预定供电端口外的端口作为待关闭端口。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选地,在上述实施例的基础上,所述筛选模块30是设置为通过如下方式实现从所述待关闭端口中筛选出满足预设条件的端口:
根据所述设备的端口信息中预设的每个端口的优先级级别,从所述待关闭端口中筛选出满足优先级级别为低的端口。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选地,在上述实施例的基础上,所述筛选模块30是设置为通过如下方式实现获取筛选后的每个端口的链接参数:
获取筛选后的每个端口在预定时间内的建链时间和断链时间。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选地,在上述实施例的基础上,所述关闭模块40是设置为通过如下方式实现根据所述链接参数按照预定规则关闭一个或者多个端口:
根据每个端口在预定时间内的建链时间和断链时间,统计每个端口在预设的时间内的使用时长,关闭所述使用时长符合预定时间阈值的一个或者多个端口。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选地,在上述实施例的基础上,还包括:检测模块50;
所述检测模块设置为检测所述设备供电的异常告警的状态,如果无异常,则停止关闭,如果有异常,则继续关闭依次在预设的时间内的使用时长从短到长的一个或者多个端口,直至无异常。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令用于执行上述实施例所述的方法。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件(例如处理器)完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,例如通过集成电路来实现其相应功能,也可以采用软件功能模块的形式实现,例如通过处理器执行存储于存储器中的程序/指令来实现其相应功能。本发明不限制于任何特定形式的硬件和软件的结合。
虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细 节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。
工业实用性
上述技术方案能够在供电不足的情况下,自动处理故障来保障用户设备的正常使用,操作简单,提高了维护效率。

Claims (12)

  1. 一种端口控制的方法,应用于反向供电设备,所述方法包括:
    接收到设备供电的异常告警;
    获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口;
    从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数;
    根据所述链接参数按照预定规则关闭一个或者多个端口。
  2. 根据权利要求1所述的方法,其中,根据所获取的端口信息收集待关闭端口,包括:
    根据所获取的端口信息排除预定的供电端口,将除所述排除的预定供电端口外的端口作为待关闭端口。
  3. 根据权利要求1所述的方法,其中,从所述待关闭端口中筛选出满足预设条件的端口,包括:
    根据所述设备的端口信息中预设的每个端口的优先级级别,从所述待关闭端口中筛选出满足优先级级别为低的端口。
  4. 根据权利要求1所述的方法,其中,获取筛选后的每个端口的链接参数,包括:
    获取筛选后的每个端口在预定时间内的建链时间和断链时间。
  5. 根据权利要求4所述的方法,其中,根据所述链接参数按照预定规则关闭一个或者多个端口,包括:
    根据每个端口在预定时间内的建链时间和断链时间,统计每个端口在预设的时间内的使用时长,关闭所述使用时长符合预定时间阈值的一个或者多个端口。
  6. 根据权利要求5所述的方法,所述方法还包括:
    检测所述设备供电的异常告警的状态,如果无异常,则停止关闭,如果有异常,则继续关闭依次在预设的时间内使用时长从短到长的一个或者多个端口,直至无异常。
  7. 一种端口控制的装置,应用于反向供电设备,所述装置包括:接收模块、收集模块、筛选模块和关闭模块;
    所述接收模块,设置为接收设备供电的异常告警;
    所述收集模块,设置为获取所述设备的端口信息,根据所获取的端口信息收集待关闭端口;
    所述筛选模块,设置为从所述待关闭端口中筛选出满足预设条件的端口,并获取筛选后的每个端口的链接参数;
    所述关闭模块,设置为根据所述链接参数按照预定规则关闭一个或者多个端口。
  8. 根据权利要求7所述的装置,其中,所述收集模块是设置为通过如下方式实现根据所获取的端口信息收集待关闭端口:
    根据所获取的端口信息排除预定的供电端口,将除所述排除的预定供电端口外的端口作为待关闭端口。
  9. 根据权利要求7所述的装置,其中,所述筛选模块是设置为通过如下方式实现从所述待关闭端口中筛选出满足预设条件的端口:
    根据所述设备的端口信息中预设的每个端口的优先级级别,从所述待关闭端口中筛选出满足优先级级别为低的端口。
  10. 根据权利要求7所述的装置,其中,所述筛选模块是设置为通过如下方式实现获取筛选后的每个端口的链接参数:
    获取筛选后的每个端口在预定时间内的建链时间和断链时间。
  11. 根据权利要求10所述的装置,其中,所述关闭模块是设置为通过如下方式实现根据所述链接参数按照预定规则关闭一个或者多个端口:
    根据每个端口在预定时间内的建链时间和断链时间,统计每个端口在预设的时间内的使用时长,关闭所述使用时长符合预定时间阈值的一个或者多个端口。
  12. 根据权利要11所述的装置,所述装置还包括:
    所述检测模块,设置为检测所述设备供电的异常告警的状态,如果无异 常,则停止关闭,如果有异常,则继续关闭依次在预设的时间内的使用时长从短到长的一个或者多个端口,直至无异常。
PCT/CN2016/094964 2016-04-06 2016-08-12 一种端口控制的方法和装置 WO2017173762A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610209642.1 2016-04-06
CN201610209642.1A CN107276778B (zh) 2016-04-06 2016-04-06 一种端口控制的方法和装置

Publications (1)

Publication Number Publication Date
WO2017173762A1 true WO2017173762A1 (zh) 2017-10-12

Family

ID=60000150

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/094964 WO2017173762A1 (zh) 2016-04-06 2016-08-12 一种端口控制的方法和装置

Country Status (2)

Country Link
CN (1) CN107276778B (zh)
WO (1) WO2017173762A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327430B (zh) * 2018-12-17 2022-09-23 中兴通讯股份有限公司 一种反向供电方法、装置、设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7340620B2 (en) * 2005-05-10 2008-03-04 Hewlett-Packard Development Company, L.P. Rapid load reduction for power-over-LAN system using lower and higher priority states for ports
WO2008154755A2 (de) * 2007-06-21 2008-12-24 Landis+Gyr Ag Power management
CN101814994A (zh) * 2009-02-24 2010-08-25 阿尔卡特朗讯公司 集中式以太网的关闭方法
CN103546301A (zh) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 Poe系统对设备进行过载保护的方法及系统

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060412B (zh) * 2007-03-29 2011-05-11 杭州华三通信技术有限公司 以太网电源系统、主控模块及以太网电源供电方法
CN102025509B (zh) * 2010-11-10 2014-07-16 中兴通讯股份有限公司 一种断电控制方法及装置
WO2016029421A1 (en) * 2014-08-29 2016-03-03 Thomson Licensing Method and device for home gateway to control home device to work ecologically

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7340620B2 (en) * 2005-05-10 2008-03-04 Hewlett-Packard Development Company, L.P. Rapid load reduction for power-over-LAN system using lower and higher priority states for ports
WO2008154755A2 (de) * 2007-06-21 2008-12-24 Landis+Gyr Ag Power management
CN101814994A (zh) * 2009-02-24 2010-08-25 阿尔卡特朗讯公司 集中式以太网的关闭方法
CN103546301A (zh) * 2013-10-30 2014-01-29 上海斐讯数据通信技术有限公司 Poe系统对设备进行过载保护的方法及系统

Also Published As

Publication number Publication date
CN107276778A (zh) 2017-10-20
CN107276778B (zh) 2021-03-09

Similar Documents

Publication Publication Date Title
WO2016112642A1 (zh) 一种智能设备的监控方法和装置
CN106341237B (zh) 基于poe系统的pse供电方法及装置
US20120185718A1 (en) Power management system, power management apparatus, network management appratus, information processing apparatus, program, power management method, and information processing method
TWI510934B (zh) 裝置管理模組、遠端管理模組及其所組成的裝置管理系統
US7412432B2 (en) Problem determination rules processing
US9658667B2 (en) Power supply system for an information handling system
US9671849B2 (en) Controlling power supply unit selection based on calculated total on duration
CN107896172A (zh) 监听故障处理方法及装置、存储介质和电子设备
EP2466816B1 (en) Method and device for detecting validation of an access control list
CN108390763A (zh) PoE交换机、网络摄像机系统及其自动检测方法
CN104104542B (zh) 一种基于rs485的实时智能排障方法
CN105387944A (zh) 一种红外线轴温探测系统调制解调器故障排除方法
WO2017173762A1 (zh) 一种端口控制的方法和装置
CN112162498A (zh) 基于物联网的智慧开关保护系统及方法
CN102521530A (zh) 一种许可证回收方法及系统
WO2016019731A1 (zh) 一种降低接入网设备的功耗方法及装置
CN110112794B (zh) 电池监控方法、装置、电梯遥监终端、系统和存储介质
EP2083380A1 (en) System for instantly and remotely managing assets of air conditioning equipment
CN103905271B (zh) 一种告警风暴抑制方法
CN104184612B (zh) 一种供电故障处理的方法及装置
CN109271270A (zh) 存储系统中底层硬件的故障排除方法、系统及相关装置
WO2016086635A1 (zh) 一种网元升级的管理方法及装置
CN109039714A (zh) 云计算系统中资源的管理方法和装置
CN107911229A (zh) 运行状态改变的提醒方法、装置、电子设备及存储介质
CN113760634A (zh) 一种数据处理方法和装置

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16897695

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16897695

Country of ref document: EP

Kind code of ref document: A1