CN116112299B - Configuration method, device and medium for POE system hot restart scene - Google Patents

Configuration method, device and medium for POE system hot restart scene Download PDF

Info

Publication number
CN116112299B
CN116112299B CN202310273721.9A CN202310273721A CN116112299B CN 116112299 B CN116112299 B CN 116112299B CN 202310273721 A CN202310273721 A CN 202310273721A CN 116112299 B CN116112299 B CN 116112299B
Authority
CN
China
Prior art keywords
configuration
poe
switch
restarting
operation record
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
CN202310273721.9A
Other languages
Chinese (zh)
Other versions
CN116112299A (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.)
Inspur Cisco Networking Technology Co Ltd
Original Assignee
Inspur Cisco Networking Technology 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 Inspur Cisco Networking Technology Co Ltd filed Critical Inspur Cisco Networking Technology Co Ltd
Priority to CN202310273721.9A priority Critical patent/CN116112299B/en
Publication of CN116112299A publication Critical patent/CN116112299A/en
Application granted granted Critical
Publication of CN116112299B publication Critical patent/CN116112299B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • 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
    • 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/08Configuration management of networks or network elements
    • H04L41/0866Checking the configuration
    • H04L41/0873Checking configuration conflicts between network elements

Abstract

The embodiment of the specification discloses a configuration method, equipment and medium of a hot restart scene of a POE system, relates to the technical field of switches, and comprises a switch system, a POE controller, a POE manager and a plurality of PD devices, wherein the switch system is connected with the POE controller, the POE controller is connected with the POE manager, and the POE manager is connected with the PD devices, and the method comprises the following steps: acquiring a restarting mark of the POE system after restarting through the exchanger system, and judging whether the restarting mode of the POE system is hot restarting or not based on the restarting mark; when the operation is restarted, acquiring current operation record data of a configuration operation record unit, and judging whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller according to the current operation record data; if the switch configuration is inconsistent with the POE configuration, determining configuration to be executed according to the priority of the predetermined switch configuration and the POE configuration; and controlling the plurality of PD devices according to the configuration to be executed through the POE controller and the POE manager.

Description

Configuration method, device and medium for POE system hot restart scene
Technical Field
The present disclosure relates to the field of switch technologies, and in particular, to a method, an apparatus, and a medium for configuring a hot restart scenario of a POE system.
Background
Power over ethernet (Power Over Ethernet, POE), also known as POE power over POE, refers to a technology in which devices utilize standard twisted pair ethernet wires to simultaneously transmit data and power. A complete POE system includes two parts, a power sourcing equipment (Power Sourcing Equipment, PSE) and a Powered Device (PD). PSE devices are devices that power ethernet client devices, and are also administrators of the overall POE ethernet power sourcing process. While the PD device is the PSE load that accepts power, i.e. the client device of the POE system. In the actual use, there is a situation that the POE switch needs to be restarted, in the above scenario, there may be a problem that the switch configuration unit is inconsistent with the current configuration in the POE controller, which results in reduced availability of the device.
Under the scene that the configuration is not saved in the hot restart of the user, the PSE system cannot be reset at the moment because the continuity of power supply of the PSE device to the PD device is required to be maintained in the hot restart scene, the configuration in the POE controller is the configuration before the restarting of the switch system, so that the switch system is inconsistent with the configuration in the POE controller, namely, the POE power supply state is inconsistent with the configuration of the switch system, and the usability of the device is reduced.
At present, after the initialization of the POE controller is completed, the prior art performs configuration synchronization with the switch system through a communication interface so as to achieve the purpose that the switch system configuration is consistent with the POE controller configuration. However, configuration synchronization is performed through the communication interface, all configuration parameters of the POE controller need to be acquired, the configuration parameters are compared with the current configuration of the switch system one by one, a large amount of data communication and interaction are required, bus resources are occupied, and the process time is long. Therefore, in the prior art, a large amount of data communication and interaction are required, more bus resources are occupied, the process is time-consuming, the configuration consistency requirement of the POE system in a hot restart scene cannot be met, and the usability of equipment is reduced.
Disclosure of Invention
One or more embodiments of the present disclosure provide a method, an apparatus, and a medium for configuring a hot restart scenario of a POE system, which are configured to solve the following technical problems: the prior art needs to perform a large amount of data communication and interaction, occupies more bus resources, consumes longer time in the process, and cannot meet the configuration consistency requirement of the POE system in a hot restart scene, so that the usability of equipment is reduced.
One or more embodiments of the present disclosure adopt the following technical solutions:
one or more embodiments of the present disclosure provide a configuration method for a hot restart scenario of a POE system, which is characterized in that the configuration method is applied to a POE switch system, where the POE switch system includes a switch system, a POE controller, a POE manager, and a plurality of PD devices, where the switch system is connected to the POE controller, the POE controller is connected to the POE manager, and the POE manager is connected to the plurality of PD devices, and the method includes: acquiring a restarting mark of the POE system after restarting through a switch system, and judging whether the restarting mode of the POE system is hot restarting or not based on the restarting mark, wherein the restarting mark comprises the hot restarting mark; when the restarting mode of the POE system is hot restarting, acquiring current operation record data of a configuration operation record unit in the switch system, and judging whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller according to the current operation record data; if the switch configuration is inconsistent with the POE configuration, determining configuration to be executed according to the predetermined priority of the switch configuration and the POE configuration; and controlling the plurality of PD devices according to the configuration to be executed through the POE controller and the POE manager.
Further, according to the current operation record data, judging whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller, specifically including: judging whether the configuration operation recording unit is empty or not according to the current operation recording data; if the configuration operation recording unit is empty, judging that the switch configuration of the switch system is consistent with the POE configuration of the POE system; and if the configuration operation recording unit is not empty, judging that the switch configuration of the switch system is inconsistent with the POE configuration of the POE system.
Further, before determining the configuration to be performed according to the predetermined priority of the switch configuration and the POE configuration, the method further includes: acquiring the priority ordering of the switch configuration and POE configuration set by a user; and sequencing the priorities of the switch configuration and the POE configuration, and storing the switch configuration and the POE configuration into the switch system.
Further, determining a configuration to be executed according to the predetermined priority of the switch configuration and the POE configuration, which specifically includes: when the priority of the switch configuration is higher than that of the POE configuration, the switch configuration is used as the configuration to be executed; and when the priority of the POE configuration is higher than that of the switch configuration, the POE configuration is used as the configuration to be executed.
Further, after determining the configuration to be performed according to the predetermined priority of the switch configuration and the POE configuration, the method further includes: synchronizing the current operation record data in the configuration operation record unit to a storage unit of the switch system; and after the synchronization is completed, the current operation record data is subjected to data clearing in the configuration operation record unit.
Further, before the switch system obtains the restart flag after the POE system is restarted, the method further includes: when the switch system is powered on and started, the configuration recovery operation is carried out on the previous configuration, and the historical configuration operation data in the configuration operation recording unit is cleared.
Further, before the switch system obtains the restart flag after the POE system is restarted, the method further includes: when the switch system issues a POE operation configuration instruction, issuing the POE operation configuration instruction to the POE controller through a control unit of the switch system, so that the POE controller transmits the POE operation configuration instruction to the POE manager, and controlling the PD equipment through the POE manager and the POE operation configuration instruction; and when the control unit of the switch system successfully issues the POE operation configuration instruction to the POE controller, storing a designated configuration operation record corresponding to the POE operation configuration instruction into the configuration operation record unit.
Further, before storing the specified configuration operation record corresponding to the POE operation configuration instruction in the configuration operation record unit, the method further includes: before storing the designated configuration operation record corresponding to the POE operation configuration instruction into the configuration operation record unit, judging whether a historical configuration operation record exists in the configuration operation record unit; if the history configuration operation record exists in the configuration operation record unit, judging whether the history configuration operation record is consistent with the appointed configuration operation record or not; when the history configuration operation record and the appointed configuration operation record are inconsistent, replacing the history configuration operation according to the appointed configuration operation record, and storing the appointed configuration operation record into the configuration operation record unit.
One or more embodiments of the present disclosure provide a configuration device for a hot restart scenario of a POE system, including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a restarting mark of the POE system after restarting through a switch system, and judging whether the restarting mode of the POE system is hot restarting or not based on the restarting mark, wherein the restarting mark comprises the hot restarting mark; when the restarting mode of the POE system is hot restarting, acquiring current operation record data of a configuration operation record unit in the switch system, and judging whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller according to the current operation record data; if the switch configuration is inconsistent with the POE configuration, determining configuration to be executed according to the predetermined priority of the switch configuration and the POE configuration; and controlling the plurality of PD devices according to the configuration to be executed through the POE controller and the POE manager.
One or more embodiments of the present specification provide a non-volatile computer storage medium storing computer-executable instructions configured to:
acquiring a restarting mark of the POE system after restarting through a switch system, and judging whether the restarting mode of the POE system is hot restarting or not based on the restarting mark, wherein the restarting mark comprises the hot restarting mark; when the restarting mode of the POE system is hot restarting, acquiring current operation record data of a configuration operation record unit in the switch system, and judging whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller according to the current operation record data; if the switch configuration is inconsistent with the POE configuration, determining configuration to be executed according to the predetermined priority of the switch configuration and the POE configuration; and controlling the plurality of PD devices according to the configuration to be executed through the POE controller and the POE manager.
The above-mentioned at least one technical scheme that this description embodiment adopted can reach following beneficial effect: according to the technical scheme, under the triggering of the hot restart, the operation record data in the operation record unit is configured, whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller is judged, a large amount of data communication and interaction are not needed, one-to-one comparison of configuration is not needed, bus resources are occupied, the process is less in time consumption, the consistency of the switch system configuration and the POE configuration in a hot restart scene is more efficiently and reliably realized, the consistency of the power supply performance of the POE system and the switch configuration is ensured, and the reliability and the availability of equipment are improved.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some of the embodiments described in the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
fig. 1 is a schematic flow chart of a configuration method of a hot restart scenario of a POE system according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a POE system according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of configuration equipment of a hot restart scenario of a POE system according to an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions in the present specification better understood by those skilled in the art, the technical solutions in the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is obvious that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present disclosure.
Power over ethernet (Power Over Ethernet, POE), also known as POE power over POE, refers to a technology in which devices utilize standard twisted pair ethernet wires to simultaneously transmit data and power. A complete POE system includes two parts, a power sourcing equipment (Power Sourcing Equipment, PSE) and a Powered Device (PD). PSE devices are devices that power ethernet client devices, and are also administrators of the overall POE ethernet power sourcing process. While the PD device is the PSE load that accepts power, i.e. the client device of the POE system. In the actual use, there is a situation that the POE switch needs to be restarted, in the above scenario, there may be a problem that the switch configuration unit is inconsistent with the current configuration in the POE controller, which results in reduced availability of the device.
When the current typical manageable POE system is powered on, a default initial configuration or a user-defined configuration stored by a user is read from a storage unit of the POE controller to initialize the POE manager, so that the PD equipment is managed. After the system initialization is completed, the switch system executes a relevant configuration recovery process, and issues relevant operation instructions, such as port power supply enabling, power supply port disabling, power supply priority and the like, to the POE controller through communication interfaces such as UART/I2C and the like. After the switch system is initialized, the user can also make relevant configuration for POE through various configuration interfaces, and the configuration is issued to the POE controller through UART/I2C interface by the switch system. When the switch system performs a reboot or save configuration, the relevant configuration is saved.
Under the scene that the configuration is not saved in the hot restart of the user, the PSE system cannot be reset at the moment because the continuity of power supply of the PSE device to the PD device is required to be maintained in the hot restart scene, the configuration in the POE controller is the configuration before the restarting of the switch system, so that the switch system is inconsistent with the configuration in the POE controller, namely, the POE power supply state is inconsistent with the configuration of the switch system, and the usability of the device is reduced.
At present, after the initialization of the POE controller is completed, the prior art performs configuration synchronization with the switch system through a communication interface so as to achieve the purpose that the switch system configuration is consistent with the POE controller configuration. However, configuration synchronization is performed through the communication interface, all configuration parameters of the POE controller need to be acquired, the configuration parameters are compared with the current configuration of the switch system one by one, a large amount of data communication and interaction are required, bus resources are occupied, and the process time is long. Therefore, in the prior art, a large amount of data communication and interaction are required, more bus resources are occupied, the process is time-consuming, the configuration consistency requirement of the POE system in a hot restart scene cannot be met, and the usability of equipment is reduced.
The embodiment of the present disclosure provides a method for configuring a hot restart scenario of a POE system, and it should be noted that an execution body in the embodiment of the present disclosure may be a server, or may be any device having data processing capability. Fig. 1 is a flow chart of a configuration method of a hot restart scenario of a POE system according to an embodiment of the present disclosure, as shown in fig. 1, mainly including the following steps:
step S101, obtaining a restart flag of the POE system after restarting through the exchanger system, and judging whether the restarting mode of the POE system is hot restart or not based on the restart flag.
In one embodiment of the present disclosure, a restart flag after a POE system restart is obtained through a switch system. The switch system is internally provided with a CPLD chip, and the restarting mode and the restarting reason are recorded through a complex programmable logic device (Complex Programmable Logic Device, CPLD). When the restart mode is recorded through the CPLD chip, if the system executes the hot restart, a CPLD mark is generated, namely, a restart mark, wherein the restart mark comprises the hot restart mark. And reading the restart mark, and if the restart mark is a hot restart mark, judging that the restart mode of the POE system is hot restart.
Fig. 2 is a schematic structural diagram of a POE system provided in an embodiment of the present disclosure, as shown in fig. 2, a POE switch system includes a switch system, a POE controller, a POE manager, and a plurality of PD devices, where the switch system is connected to the POE controller by a UART or I2C communication interface, the POE controller is connected to the POE manager by a I2C communication interface, and the POE manager is connected to the plurality of PD devices. The switch system comprises a control unit, a configuration unit and a storage unit, and is provided with a configuration operation recording unit; the POE controller includes a control unit and a storage unit.
Before the switch system obtains the restart mark after the POE system is restarted, the method further comprises the following steps: when the switch system is powered on and started, the configuration recovery operation is carried out on the previous configuration, and the historical configuration operation data in the configuration operation recording unit is cleared.
In one embodiment of the present disclosure, after the switch system is started up each time and the configuration recovery is completed, the data in the configuration operation recording unit, that is, the historical configuration operation data is emptied.
Before the switch system obtains the restart mark after the POE system is restarted, the method further comprises the following steps: when the switch system issues a POE operation configuration instruction, the POE operation configuration instruction is issued to the POE controller through a control unit of the switch system, so that the POE controller transmits the POE operation configuration instruction to the POE manager, and the PD equipment is controlled through the POE manager and the POE operation configuration instruction; when the control unit of the switch system issues the POE operation configuration instruction to the POE controller successfully, the designated configuration operation record corresponding to the POE operation configuration instruction is stored in the configuration operation record unit.
Before storing the designated configuration operation record corresponding to the POE operation configuration instruction in the configuration operation record unit, the method further includes: before storing the designated configuration operation record corresponding to the POE operation configuration instruction in the configuration operation record unit, judging whether a historical configuration operation record exists in the configuration operation record unit; if the history configuration operation record exists in the configuration operation record unit, judging whether the history configuration operation record is consistent with the appointed configuration operation record or not; when the history configuration operation record and the appointed configuration operation record are inconsistent, replacing the history configuration operation according to the appointed configuration operation record, and storing the appointed configuration operation record into the configuration operation record unit.
In one embodiment of the present disclosure, each time the switch system performs POE-related configuration, after the control unit issues a command to the POE controller through the UART/I2C, the configuration operation record corresponding to the command is stored in the switch system configuration operation record unit, that is, the configuration operation record unit is configured to record operation data. If the configuration operation recording unit has action conflict configuration, deleting the previous record; if the operation is consistent with the default initial configuration, then no save is performed.
Step S102, when the restarting mode of the POE system is hot restarting, current operation record data of a configuration operation record unit in the switch system is obtained, so as to judge whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller according to the current operation record data.
Judging whether the exchanger configuration of the exchanger system is consistent with the POE configuration of the POE controller according to the current operation record data, specifically comprising: judging whether the configuration operation recording unit is empty according to the current operation recording data; if the configuration operation recording unit is empty, judging that the switch configuration of the switch system is consistent with the POE configuration of the POE system; if the configuration operation recording unit is not empty, judging that the switch configuration of the switch system is inconsistent with the POE configuration of the POE system.
In one embodiment of the present disclosure, after the switch system is restarted, it is determined whether the configuration operation recording unit is empty, and if so, it is indicated that the switch system configuration is consistent with the POE controller configuration, and no other operation is required.
Step S103, if the switch configuration is inconsistent with the POE configuration, determining the configuration to be executed according to the priority of the predetermined switch configuration and the POE configuration.
In one embodiment of the present disclosure, if the configuration operation recording unit is not empty, it is determined that the switch configuration of the switch system is inconsistent with the POE configuration of the POE system. In the case that the switch configuration is inconsistent with the POE configuration, the subsequent operations need to be performed according to the priorities of the switch configuration and the POE configuration.
Before determining the configuration to be performed, according to the predetermined priority of the switch configuration and the POE configuration, the method further includes: acquiring the priority ordering of the switch configuration and POE configuration set by a user; and sequencing the priorities of the switch configuration and the POE configuration, and storing the priorities into the switch system.
According to the predetermined priority of the switch configuration and the POE configuration, determining the configuration to be executed specifically includes: when the priority of the switch configuration is higher than that of the POE configuration, the switch configuration is used as the configuration to be executed; and when the priority of the POE configuration is higher than that of the switch configuration, the POE configuration is used as the configuration to be executed.
In one embodiment of the present disclosure, when the switch configuration is inconsistent with the POE configuration, the configuration values are typically different, for example, the configuration operation of the switch configuration is recorded as port enabled, and the configuration operation of the POE configuration is port disabled, that is, the inconsistency between the switch configuration and the POE configuration refers to different operation values under the same operation action. The user may preset the priority of the switch configuration and the POE configuration, and if the priority of the switch configuration is higher than the priority of the POE configuration, the switch configuration in the switch system is set as standard, that is, the POE configuration is regarded as the configuration to be executed. And (3) performing reverse order recovery according to the switch configuration data in the configuration operation recording unit, and issuing an instruction to the POE controller according to the configuration value stored in the switch system storage unit to realize the control of the PD equipment.
In contrast, if the priority of POE configuration is higher than that of switch configuration, the POE configuration in the POE controller is set as the priority, that is, the POE configuration is used as the configuration to be executed, the PD device is controlled according to the POE configuration, and the data in the configuration operation recording unit of the switch system is synchronized to the switch system storage unit.
Step S104, controlling the plurality of PD devices according to the configuration to be executed through the POE controller and the POE manager.
In one embodiment of the present specification, a POE controller and POE manager are used to control a plurality of PD devices according to a configuration to be executed.
After determining the configuration to be performed according to the predetermined priority of the switch configuration and the POE configuration, the method further includes: synchronizing the current operation record data in the configuration operation record unit to a storage unit of the switch system; after the synchronization is completed, the current operation record data is subjected to data clearing in the configuration operation record unit.
In one embodiment of the present description, the user saves the configuration by synchronizing operation record data in the configuration operation record unit into the switch system storage unit and clearing the data in the configuration operation record unit.
According to the technical scheme, under the triggering of the hot restart, the operation record data in the operation record unit is configured, whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller is judged, a large amount of data communication and interaction are not needed, one-to-one comparison of configuration is not needed, bus resources are occupied, the process is less in time consumption, the consistency of the switch system configuration and the POE configuration in a hot restart scene is more efficiently and reliably realized, the consistency of the power supply performance of the POE system and the switch configuration is ensured, and the reliability and the availability of equipment are improved.
The embodiment of the present disclosure further provides a configuration device for a hot restart scenario of a POE system, as shown in fig. 3, where the device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to:
acquiring a restarting mark of the POE system after restarting through a switch system, and judging whether the restarting mode of the POE system is hot restarting or not based on the restarting mark, wherein the restarting mark comprises a hot restarting mark; when the restarting mode of the POE system is hot restarting, acquiring current operation record data of a configuration operation record unit in the exchanger system, and judging whether the exchanger configuration of the exchanger system is consistent with the POE configuration of the POE controller according to the current operation record data; if the switch configuration is inconsistent with the POE configuration, determining configuration to be executed according to the predetermined priority of the switch configuration and the POE configuration; and controlling the plurality of PD devices according to the configuration to be executed through the POE controller and the POE manager.
The present specification embodiments also provide a non-volatile computer storage medium storing computer-executable instructions configured to:
acquiring a restarting mark of the POE system after restarting through a switch system, and judging whether the restarting mode of the POE system is hot restarting or not based on the restarting mark, wherein the restarting mark comprises a hot restarting mark; when the restarting mode of the POE system is hot restarting, acquiring current operation record data of a configuration operation record unit in the exchanger system, and judging whether the exchanger configuration of the exchanger system is consistent with the POE configuration of the POE controller according to the current operation record data; if the switch configuration is inconsistent with the POE configuration, determining configuration to be executed according to the predetermined priority of the switch configuration and the POE configuration; and controlling the plurality of PD devices according to the configuration to be executed through the POE controller and the POE manager.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for apparatus, devices, non-volatile computer storage medium embodiments, the description is relatively simple, as it is substantially similar to method embodiments, with reference to the section of the method embodiments being relevant.
The foregoing describes specific embodiments of the present disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The devices and media provided in the embodiments of the present disclosure are in one-to-one correspondence with the methods, so that the devices and media also have similar beneficial technical effects as the corresponding methods, and since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the devices and media are not repeated here.
It will be appreciated by those skilled in the art that embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, the present specification may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present description can take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present description is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the specification. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
The foregoing is merely one or more embodiments of the present description and is not intended to limit the present description. Various modifications and alterations to one or more embodiments of this description will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of one or more embodiments of the present description, is intended to be included within the scope of the claims of the present description.

Claims (10)

1. The utility model provides a configuration method of POE system hot restart scene which characterized in that is applied to POE switch system, POE switch system includes switch system, POE controller, POE manager, a plurality of PD equipment, wherein, switch system with the POE controller links to each other, the POE controller with the POE manager links to each other, the POE manager links to each other with a plurality of PD equipment, the method includes:
acquiring a restarting mark of the POE system after restarting through a switch system, and judging whether the restarting mode of the POE system is hot restarting or not based on the restarting mark, wherein the restarting mark comprises the hot restarting mark;
when the restarting mode of the POE system is hot restarting, acquiring current operation record data of a configuration operation record unit in the switch system, and judging whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller according to the current operation record data;
if the switch configuration is inconsistent with the POE configuration, determining configuration to be executed according to the predetermined priority of the switch configuration and the POE configuration;
and controlling the plurality of PD devices according to the configuration to be executed through the POE controller and the POE manager.
2. The method for configuring a hot restart scenario of a POE system according to claim 1, wherein determining whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller according to the current operation record data, specifically comprises:
judging whether the configuration operation recording unit is empty or not according to the current operation recording data;
if the configuration operation recording unit is empty, judging that the switch configuration of the switch system is consistent with the POE configuration of the POE system;
and if the configuration operation recording unit is not empty, judging that the switch configuration of the switch system is inconsistent with the POE configuration of the POE system.
3. The method for configuring a hot restart scenario of a POE system according to claim 1, wherein before determining a configuration to be performed according to a predetermined priority of the switch configuration and the POE configuration, the method further comprises:
acquiring the priority ordering of the switch configuration and POE configuration set by a user;
and sequencing the priorities of the switch configuration and the POE configuration, and storing the switch configuration and the POE configuration into the switch system.
4. The configuration method of a POE system hot restart scenario according to claim 1, wherein determining the configuration to be performed according to the predetermined priorities of the switch configuration and the POE configuration specifically comprises:
when the priority of the switch configuration is higher than that of the POE configuration, the switch configuration is used as the configuration to be executed;
and when the priority of the POE configuration is higher than that of the switch configuration, the POE configuration is used as the configuration to be executed.
5. The method for configuring a hot restart scenario of a POE system according to claim 1, wherein after determining a configuration to be performed according to a predetermined priority of the switch configuration and the POE configuration, the method further comprises:
synchronizing the current operation record data in the configuration operation record unit to a storage unit of the switch system;
and after the synchronization is completed, the current operation record data is subjected to data clearing in the configuration operation record unit.
6. The method for configuring a hot restart scenario of a POE system according to claim 1, wherein, before obtaining, by the switch system, a restart flag after restarting the POE system, the method further comprises:
when the switch system is powered on and started, the configuration recovery operation is carried out on the previous configuration, and the historical configuration operation data in the configuration operation recording unit is cleared.
7. The method for configuring a hot restart scenario of a POE system according to claim 1, wherein, before obtaining, by the switch system, a restart flag after restarting the POE system, the method further comprises:
when the switch system issues a POE operation configuration instruction, issuing the POE operation configuration instruction to the POE controller through a control unit of the switch system, so that the POE controller transmits the POE operation configuration instruction to the POE manager, and controlling the PD equipment through the POE manager and the POE operation configuration instruction;
and when the control unit of the switch system successfully issues the POE operation configuration instruction to the POE controller, storing a designated configuration operation record corresponding to the POE operation configuration instruction into the configuration operation record unit.
8. The configuration method of a hot restart scenario of a POE system according to claim 7, wherein before storing a specified configuration operation record corresponding to the POE operation configuration command in the configuration operation recording unit, the method further comprises:
before storing the designated configuration operation record corresponding to the POE operation configuration instruction into the configuration operation record unit, judging whether a historical configuration operation record exists in the configuration operation record unit;
if the history configuration operation record exists in the configuration operation record unit, judging whether the history configuration operation record is consistent with the appointed configuration operation record or not;
when the history configuration operation record and the appointed configuration operation record are inconsistent, replacing the history configuration operation according to the appointed configuration operation record, and storing the appointed configuration operation record into the configuration operation record unit.
9. A configuration device for a POE system hot restart scenario, the device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
acquiring a restarting mark of the POE system after restarting through a switch system, and judging whether the restarting mode of the POE system is hot restarting or not based on the restarting mark, wherein the restarting mark comprises the hot restarting mark;
when the restarting mode of the POE system is hot restarting, acquiring current operation record data of a configuration operation record unit in the switch system, and judging whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller according to the current operation record data;
if the switch configuration is inconsistent with the POE configuration, determining configuration to be executed according to the predetermined priority of the switch configuration and the POE configuration;
and controlling a plurality of PD devices according to the configuration to be executed through the POE controller and the POE manager.
10. A non-transitory computer storage medium storing computer-executable instructions, the computer-executable instructions configured to:
acquiring a restarting mark of the POE system after restarting through a switch system, and judging whether the restarting mode of the POE system is hot restarting or not based on the restarting mark, wherein the restarting mark comprises the hot restarting mark;
when the restarting mode of the POE system is hot restarting, acquiring current operation record data of a configuration operation record unit in the switch system, and judging whether the switch configuration of the switch system is consistent with the POE configuration of the POE controller according to the current operation record data;
if the switch configuration is inconsistent with the POE configuration, determining configuration to be executed according to the predetermined priority of the switch configuration and the POE configuration;
and controlling a plurality of PD devices according to the configuration to be executed through the POE controller and the POE manager.
CN202310273721.9A 2023-03-16 2023-03-16 Configuration method, device and medium for POE system hot restart scene Active CN116112299B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310273721.9A CN116112299B (en) 2023-03-16 2023-03-16 Configuration method, device and medium for POE system hot restart scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310273721.9A CN116112299B (en) 2023-03-16 2023-03-16 Configuration method, device and medium for POE system hot restart scene

Publications (2)

Publication Number Publication Date
CN116112299A CN116112299A (en) 2023-05-12
CN116112299B true CN116112299B (en) 2024-03-22

Family

ID=86259999

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310273721.9A Active CN116112299B (en) 2023-03-16 2023-03-16 Configuration method, device and medium for POE system hot restart scene

Country Status (1)

Country Link
CN (1) CN116112299B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867468A (en) * 2010-06-03 2010-10-20 中兴通讯股份有限公司 Hot reboot processing method for power over Ethernet switch and power over Ethernet switch
CN101873217A (en) * 2010-07-08 2010-10-27 杭州华三通信技术有限公司 Ethernet power supply equipment restart control method and device thereof
CN108199854A (en) * 2017-12-25 2018-06-22 锐捷网络股份有限公司 Uninterrupted power supply method and device based on PoE system
CN114401156A (en) * 2021-12-07 2022-04-26 成都市联洲国际技术有限公司 Power supply control method and device of PSE (Power supply Equipment), PSE equipment and power supply system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7484109B2 (en) * 2005-03-31 2009-01-27 Microsemi Corp. - Analog Mixed Signal Group Ltd. Computer volatile memory power backup system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101867468A (en) * 2010-06-03 2010-10-20 中兴通讯股份有限公司 Hot reboot processing method for power over Ethernet switch and power over Ethernet switch
CN101873217A (en) * 2010-07-08 2010-10-27 杭州华三通信技术有限公司 Ethernet power supply equipment restart control method and device thereof
CN108199854A (en) * 2017-12-25 2018-06-22 锐捷网络股份有限公司 Uninterrupted power supply method and device based on PoE system
CN114401156A (en) * 2021-12-07 2022-04-26 成都市联洲国际技术有限公司 Power supply control method and device of PSE (Power supply Equipment), PSE equipment and power supply system

Also Published As

Publication number Publication date
CN116112299A (en) 2023-05-12

Similar Documents

Publication Publication Date Title
US11397648B2 (en) Virtual machine recovery method and virtual machine management device
EP2816467B1 (en) Method and device for checkpoint and restart of container state
CN110704161B (en) Virtual machine creation method and device and computer equipment
JP2021524104A (en) Master / Standby Container System Switching
CN111142644A (en) Hard disk operation control method and device and related components
CN112948169A (en) Data backup method, device, equipment and storage medium
CN108897603B (en) Memory resource management method and device
CN113961353A (en) Task processing method and distributed system for AI task
CN116112299B (en) Configuration method, device and medium for POE system hot restart scene
CN108897646A (en) A kind of switching method and baseboard management controller of BIOS chip
CN108990029B (en) Scanning start-stop method of wireless equipment and wireless equipment
CN114327259B (en) Flash memory channel controller operation method, device, equipment and storage medium
CN116089040A (en) Service flow scheduling method and device, electronic equipment and storage medium
CN107943575A (en) Multitask monitoring and managing method and device in SPI NAND
EP3396553B1 (en) Method and device for processing data after restart of node
CN114296882A (en) Method, device and medium for exporting memory snapshot of virtual machine
CN108182157B (en) Method, BMC, device and storage medium for realizing heterogeneous hybrid memory
CN110096366B (en) Configuration method and device of heterogeneous memory system and server
CN113835741A (en) Patch loading method, network element and computer readable storage medium
CN111078126B (en) Distributed storage system and storage method thereof
CN108304200B (en) Method and device for upgrading driving program and electronic equipment
CN110618863A (en) Operation scheduling method based on Raft algorithm
CN111176571A (en) Method, device, equipment and medium for managing local object
CN106331036B (en) Server control method and device
CN112579305A (en) Task processing method and device, nonvolatile storage medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant