Ethernet power supply network equipment testing method and system and computer program product
By setting the maximum output power of the POE switch, the power receiving equipment enters a random power-up and down state, and evaluating its stability parameter information, the problem of difficulty in realizing the random power-up and down environment of the power receiving equipment in the prior art is solved, and an effective evaluation of the stability of the power receiving equipment is achieved.
Patent Information
- Application Number
- CN202411974190.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-03-28
AI Technical Summary
The prior art is difficult to truly simulate the random up-and-down environment of the powered equipment in an Ethernet powered network, resulting in the inability to effectively evaluate the stability of the powered equipment in such an environment.
By setting the maximum output power of the POE switch, at least some of the power receiving equipment enters a random up-and-down state, and its stability is evaluated based on the stability parameter information of the power receiving equipment in this state.
It realizes a real evaluation of the power receiving equipment in a random up-and-down environment, and can effectively judge its use stability under daily operating conditions.
Smart Images

Figure CN119728489A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network equipment testing, and in particular to a method, system and computer program product for testing Ethernet power supply network equipment. Background Art
[0002] Power over Ethernet (POE) is a technology that transmits data and power simultaneously through Ethernet cables. This technology enables network devices to obtain power without the need for additional power cables, greatly simplifying the wiring and installation process. For powered devices in an Ethernet power supply network, in order to test the stability of the powered devices in daily working conditions, it is usually necessary to perform repeated random power on and off tests on the powered devices.
[0003] In view of this, some embodiments of this specification provide an Ethernet power supply network device testing method, system and computer program product, which can provide a real random power on and off environment for the powered device and can effectively evaluate the stability of the powered device in the random power on and off environment. Summary of the invention
[0004] One or more embodiments of the present specification provide a method for testing an Ethernet power supply network device, wherein the Ethernet power supply network includes a POE switch and multiple powered devices connected to the POE switch. The method includes: setting the maximum output power of the POE switch so that at least some of the powered devices enter a random power on and off state; and evaluating the stability of the powered devices in the random power on and off state based on stability parameter information of the powered devices in the random power on and off state.
[0005] According to the method provided by one or more embodiments of this specification, the maximum output power is less than the default maximum output power of the POE switch; at the maximum output power, at least part of the powered devices enter a random power on and off state due to insufficient output power of the POE switch.
[0006] According to the method provided by one or more embodiments of the present specification, based on the stability parameter information of the powered device in the random power on and off state, the stability of the powered device in the random power on and off state is evaluated, including: based on the operation log of the POE switch, obtaining the power on and off log parameters of the powered device in the random power on and off state, wherein the stability parameter information includes the power on and off log parameters corresponding to the powered device; based on the power on and off log parameters, judging whether the powered device can be powered on again after each power off process in the random power on and off state: if so, judging that the powered device is stable in the random power on and off state.
[0007] According to the method provided by one or more embodiments of the present specification, based on the stability parameter information of the powered device in the random power on and off state, the stability of the powered device in the random power on and off state is evaluated, including: based on the device log of the powered device, obtaining the startup state log parameters of the powered device during the startup process, the stability parameter information including the startup state log parameters; based on the startup state log parameters, judging whether the startup state log parameters meet the standard startup state parameters during the startup process of the powered device switching from the power off state to the power on state in the random power on and off state: if so, judging that the powered device has stability in the random power on and off state.
[0008] According to the method provided in one or more embodiments of the present specification, the startup process includes a boot loader startup process, a kernel startup process and a software version startup process; judging whether the startup status log parameters meet the standard startup status parameters during the startup process when the powered device switches from a power-off state to a power-on state under random power-on and power-off states, including: judging whether the device log contains first parameter information corresponding to the boot loader startup process, second parameter information corresponding to the kernel startup process and third parameter information corresponding to the software version startup process: if so, judging that the startup status log parameters meet the standard startup status parameters.
[0009] According to the method provided in one or more embodiments of this specification, the first parameter information is used to characterize that the boot loader startup process has been successfully started; the second parameter information is used to characterize that the kernel startup process has been successfully started; and the third parameter information is used to characterize that the software version startup process has been successfully started.
[0010] According to the method provided by one or more embodiments of the present specification, the method also includes: updating the maximum output power of the POE switch so that all powered devices enter a stable power-on state; judging whether the powered device can be restored to power on when it switches from a random power-on and power-off state to a stable power-on state, so as to obtain the stability of the powered device when it switches from a random power-on and power-off state to a stable power-on state.
[0011] According to the method provided in one or more embodiments of the present specification, it is determined whether the powered device can be restored to power when it changes from a random power-on and power-off state to a stable power-on state, including: sending multiple detection packets to the powered device based on the default IP address of the powered device; and determining whether the powered device can be restored to power when it changes from a random power-on and power-off state to a stable power-on state based on feedback information from the powered device to the detection packets.
[0012] According to the method provided in one or more embodiments of the present specification, it is determined whether the powered device can be restored to power when it changes from a random power-on and power-off state to a stable power-on state, including: establishing a communication connection with the powered device based on a preset network protocol; when the software version number information of the powered device can be obtained based on the communication connection, it is determined whether the powered device can be restored to power when it changes from a random power-on and power-off state to a stable power-on state.
[0013] One or more embodiments of the present specification provide an Ethernet power supply network device testing system, wherein the Ethernet power supply network includes a POE switch and multiple powered devices connected to the POE switch, and the system includes: a setting unit, used to set the maximum output power of the POE switch so that at least some of the powered devices enter a random power on and off state; a stability evaluation unit, used to judge the stability of the powered device in the random power on and off state based on stability parameter information of the powered device in the random power on and off state.
[0014] Some embodiments of the present specification also provide a computer program product, including computer instructions or a computer program. When at least part of the computer instructions or the computer program is executed by a processor, the Ethernet power supply network device testing method provided in the embodiments of the present specification can be implemented. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] This specification will be further explained by way of exemplary embodiments, which will be described in detail by way of the accompanying drawings. The same numbers in the drawings represent the same structures or steps.
[0016] Figure 1 This is an exemplary structural diagram of an Ethernet power supply network shown in some embodiments of this specification.
[0017] Figure 2 This is an exemplary flow chart of a method for testing an Ethernet power supply network device according to some embodiments of this specification.
[0018] Figure 3 This is a partial exemplary operation log screenshot of a POE switch shown in some embodiments of this specification.
[0019] Figure 4 This is an exemplary flow chart for evaluating the stability of a powered device in a random power-on and power-off state according to some embodiments of this specification.
[0020] Figure 5 This is another exemplary flow chart for evaluating the stability of a powered device in a random power-on and power-off state according to some embodiments of this specification.
[0021] Figure 6It is an exemplary flow chart of another method for testing Power over Ethernet network equipment according to some embodiments of this specification.
[0022] Figure 7 This is an exemplary flow chart for determining whether a powered device can be restored to power on when it switches from a random power-on and power-off state to a stable power-on state according to some embodiments of this specification.
[0023] Figure 8 This is another exemplary flow chart for determining whether a powered device can be restored to power on when it switches from a random power-on and power-off state to a stable power-on state according to some embodiments of this specification.
[0024] Fig. 9 This is an exemplary structural diagram of an Ethernet power supply network device testing system shown in some embodiments of this specification. DETAILED DESCRIPTION
[0025] In order to more clearly illustrate the technical solutions of the embodiments of this specification, the embodiments will be described in detail below with reference to the accompanying drawings. Obviously, the contents described below are some examples or embodiments of this specification. For ordinary technicians in this field, without paying creative work, the technical solutions or means disclosed in this specification can also be applied to other scenarios based on these technical contents.
[0026] It should be understood that the "system", "device", "unit" and / or "module" used in this specification is a method for distinguishing different components, elements, parts, portions or assemblies at different levels. However, if other words can achieve the same purpose, the above words can be replaced by other expressions.
[0027] Unless otherwise specified, technical terms used in this specification to describe components, elements, etc. do not refer to the singular, but may also include the plural. Generally speaking, terms such as "include", "comprise", etc. only indicate that the steps, elements, or components that have been clearly identified are included, and these steps, elements, and components do not constitute an exclusive list, such as the method or device described may also include other steps or components.
[0028] Flowcharts are used in this specification to illustrate the operation steps performed by the device or system of the relevant embodiments, but unless otherwise specified, the order used to describe these steps should not be understood as a limitation on the order in which the steps are performed. A person of ordinary skill in the art can adjust the order in which these steps are performed based on the knowledge and information conveyed by the embodiments of this specification, and the above adjustment includes but is not limited to swapping the order, merging multiple steps, and splitting a certain step.
[0029] Power over Ethernet (POE) is a technology that transmits data and power simultaneously through standard Ethernet cables, such as Cat5, Cat6, etc. It enables network devices such as IP cameras, wireless access points, VoIP phones, etc. to achieve power supply and data transmission through the same network cable, thereby simplifying the wiring and installation process. In the Ethernet power supply network, there are usually POE power supply equipment (Power Sourcing Equipment, PSE) and POE powered devices (Powered Device, PD), where POE power supply equipment refers to a device that provides power to connected devices through Ethernet cables, which can include devices such as POE switches, and POE powered devices refer to devices that receive power through Ethernet cables, which can include wireless access points, IP cameras, etc. There are multiple standards for Power over Ethernet, such as 802.3af and 802.3at. 802.3af is the earliest standard for Power over Ethernet. The maximum power of the powered device allowed to be connected is 15.4W, which is suitable for low-power powered devices. 802.3at is an enhanced version of the Power over Ethernet standard. The maximum power of the powered device allowed to be connected is extended to 30W and is backward compatible with the 802.3af standard, which can support more powered devices.
[0030] Figure 1 is an exemplary structural diagram of an Ethernet power supply network according to some embodiments of this specification. Figure 1 As shown, the Power over Ethernet network 100 may include a POE switch 110 and a plurality of powered devices 120 connected to the POE switch, wherein the POE switch 110 may supply power to the connected powered devices 120 according to a set maximum output power.
[0031] In order to detect the use stability of the powered device in the Ethernet power supply network, it is necessary to verify whether the powered device can be powered on again after an accidental power failure, for example, the output power fluctuation of the POE switch causes insufficient power to be provided to the powered device, resulting in whether the powered device can be powered on again after normal power is restored after power failure during use. In some related embodiments, the power on and off of the POE switch can be controlled by a control device such as a timing socket, so that the powered devices under all ports of the POE switch are powered on and off together to test the use stability of the powered device. In other related embodiments, in order to be more in line with actual application scenarios, a method of developing test software can be used to use software to control each port of the POE switch to independently control the power on and off of the powered device, so as to simulate the scenario in which some powered devices in actual application scenarios can be powered on again after an accidental power failure. However, this method has high requirements for system testers, requiring system testers to have test software or test script development skills, and the software can usually only achieve pseudo-randomness.
[0032] Based on the relevant descriptions of the aforementioned embodiments, since using software to control each port of the POE switch cannot completely simulate the random power-on and power-off scenarios of the powered devices in actual applications, and the development of test software has high requirements on the skill level of the testers, in order to conveniently implement random power-on and power-off tests on the powered devices to evaluate the stability of the powered devices, some embodiments of this specification provide Ethernet power supply network equipment testing methods. Figure 2 is an exemplary flow chart of a method for testing an Ethernet power supply network device according to some embodiments of this specification. In some embodiments, Figure 2 The process 200 shown can be applied to Figure 1 In some embodiments, as shown in the Ethernet power supply network. Figure 2 As shown, process 200 may include the following steps.
[0033] Step 210: Setting the maximum output power of the POE switch so that at least some of the powered devices enter a random power-on and power-off state. In some embodiments, step 210 can be implemented by the setting unit 910 .
[0034] In some embodiments, by setting the maximum output power of the POE switch, at least some of the powered devices in the Ethernet power supply network can enter a random power-on and power-off state due to insufficient output power of the POE switch. Figure 3 This is a screenshot of some exemplary operation logs of a POE switch according to some embodiments of this specification. Figure 3As shown in the figure, when the output power of the POE switch is insufficient, the powered devices that do not receive sufficient power supply will enter the random power-on and power-off state, and the power-on and power-off processes of these powered devices in the random power-on and power-off state will be recorded as events (EVENT) by the operation log of the POE switch. For example, for the powered device "GE0 / 0 / 9", it experienced a power-off process at "11:56:48", that is, Figure 3 The corresponding "GE0 / 0 / 9 poe power switch to off" event in the output; and then the power is restored at "11:57:16", that is, Figure 3 The corresponding "GE0 / 0 / 9 poe power switch to on" event in the figure; then it experienced the power-off process again at "11:57:54", that is, Figure 3 For other powered devices that cannot receive sufficient power due to insufficient output power of the POE switch, such as "GE0 / 0 / 8" and "GE0 / 0 / 12", the same event is also displayed in the following example: Figure 3 The random power-on and power-off state is entered and the random power-on and power-off event is triggered during the time period from "11:56:27" to "11:58:54" as shown. In some embodiments, the maximum output power set for the POE switch needs to be less than the default maximum output power of the POE switch, wherein the default maximum output power refers to the maximum power that the POE switch can provide to the powered device connected through the Ethernet power supply protocol without any special configuration. Generally speaking, when POE outputs at the default maximum output power, it can satisfy all or most of the powered devices in the Ethernet power supply network to enter a stable working state. Therefore, limiting the set maximum output power to less than the default maximum output power can make at least some of the powered devices unable to obtain sufficient power supply from the POE switch and enter the random power-on and power-off state, thereby realizing a true simulation of the random power-on and power-off state of some powered devices.
[0035] In some embodiments, taking a 24-port POE switch under the 802.3at standard as an example, its default maximum output power is 500W, which can support powering 24 powered devices with a peak power consumption not exceeding 16W. When setting the maximum output power of the POE switch, the maximum output power of the POE switch can be set to 40W, so that only a small number of powered devices can be in a stable working state after being powered on first, and the remaining powered devices will enter a random power-on and power-off state. In some embodiments, in the process of setting the maximum output power of the POE switch, in order to ensure that the connected powered devices can enter the random power-on and power-off state and meet the power-on conditions, it is necessary to make the maximum output power of the POE switch at least meet the required power consumption of any one of the connected powered devices to successfully start powering on, that is, the minimum value of the maximum output power of the POE switch set should be greater than the required power consumption of any one of the connected powered devices to successfully start powering on. In some embodiments, the powered device that enters the random power-on and power-off state can be autonomously selected by adjusting the power-on sequence of the powered devices, which is not limited here.
[0036] In some embodiments, the maximum output power of the POE switch can be set by a test terminal device connected to the POE switch, wherein the test terminal device may include but is not limited to electronic devices with a human-computer interaction interface such as a desktop computer, a smart phone, and a laptop computer. The test terminal device can select the corresponding maximum output power and set the POE switch by receiving a test instruction issued by a test user. In some embodiments, the maximum output power of the POE switch can also be configured by inputting parameter information such as the maximum output power value in the human-computer interaction interface carried by the POE switch itself.
[0037] In some embodiments, the setting unit 910 can automatically set the maximum output power of the POE switch. In some embodiments, the setting unit 910 can set the maximum output power of the POE switch to be greater than the power required for any powered device to successfully start and power on, and less than the power required for any powered device to be in a stable working state. In some embodiments, the setting unit 910 can set the number of powered devices that are in a stable working state during the test (such as 2, 3, 5, etc.), and determine the first power required based on the number of powered devices that are in stable working state; then the setting unit 910 can set the value of the maximum output power of the POE switch to the sum of the first power and the excess power value, wherein the excess power is greater than the power required for any powered device to successfully start and power on, and less than the power required for any powered device to be in a stable working state.
[0038] Step 220 : Based on the stability parameter information of the powered device in the random power on and off state, evaluate the stability of the powered device in the random power on and off state. In some embodiments, step 220 may be implemented by the stability evaluation unit 920 .
[0039] In some embodiments, the stability parameter information may include relevant parameter information reflecting the power-on and power-off conditions of the powered device in the random power-on and power-off state, for example, it may include the power-on time information of the powered device, the power-off time information of the powered device, the status information of whether the powered device is successfully powered on, etc. In some embodiments, the stability parameter information may be obtained through a test terminal device connected to a POE switch or a powered device, and the stability of the powered device in the random power-on and power-off state may be evaluated through a pre-set evaluation scheme in the test terminal device. The following will further explain the method of evaluating the stability of the powered device in the random power-on and power-off state in conjunction with the embodiments.
[0040] Figure 4 is an exemplary flow chart of evaluating the stability of a powered device under random power-on and power-off states according to some embodiments of this specification. Figure 4 As shown, process 400 may include the following steps.
[0041] Step 410: Based on the operation log of the POE switch, obtain the power-on and power-off log parameters of the powered device in the random power-on and power-off state. In some embodiments, the power-on and power-off log parameters corresponding to the powered device in step 410 belong to one of the stability parameter information mentioned in the above embodiments. In some embodiments, step 410 can be implemented by the stability evaluation unit 920.
[0042] In some embodiments, the POE switch can continuously monitor the power-on and power-off conditions of each connected powered device, for example, a powered device experiences a power-off event at the first moment, and a powered device experiences a power-on event at the second moment, etc. The recorded information of these power-on and power-off conditions forms the corresponding power-on and power-off log parameters of each powered device under the random power-on and power-off state. In some embodiments, the power-on and power-off log parameters may include the power-on and power-off events of the powered device under the random power-on and power-off state and the corresponding occurrence time of each power-on and power-off event, and these power-on and power-off log parameters may be recorded in the operation log of the POE switch. In some embodiments, the above-mentioned power-on and power-off log parameters can be obtained by testing the terminal device to read the operation log of the POE switch.
[0043] Step 420: Based on the power-on and power-off log parameters, determine whether the powered device can be powered on again after each power-off process in the random power-on and power-off state: if so, determine that the powered device is stable in the random power-on and power-off state. In some embodiments, step 420 can be implemented by the stability evaluation unit 920.
[0044] In some embodiments, for each powered device in the Ethernet power supply network, the power-on and power-off log parameters may include the corresponding time of each power-on process and power-off process experienced by the powered device in the random power-on and power-off state, and the test terminal device may sort the power-on and power-off log parameters according to the time information in the power-on and power-off log parameters, thereby obtaining the interval arrangement sequence of the power-on process and the power-off process of the powered device in the random power-on and power-off state. In some embodiments, based on the interval arrangement sequence of the power-on process and the power-off process, if the powered device experiences a power-on process after each power-off process in the random power-on and power-off state, it means that the powered device can be restored to power on after each power-off process in the random power-on and power-off state with sufficient power support, which also means that if the powered device is powered off due to insufficient power supply in daily use, it can be restored to power on after the power supply is restored, and it can be judged that the powered device is stable in the random power-on and power-off state.
[0045] Based on the description of the above embodiments, the stability judgment method provided by process 400 can judge whether the powered device can be powered on again after being powered off based on the operation log of the POE switch. For the powered device, being able to be powered on again after being powered off does not mean that the powered device can be started normally and enter a normal working state after being powered on. There may be a scenario where the powered device cannot be started normally or enter a normal working state after being powered on, which affects the stability judgment of the powered device.
[0046] In order to further verify whether the powered device can be successfully started when it is powered on again, some embodiments of this specification provide another method for evaluating the stability of the powered device in a random power-on and power-off state. Figure 5 is another exemplary flow chart of evaluating the stability of a powered device in a random power-on and power-off state according to some embodiments of this specification. Figure 5 The process 500 shown can be performed as follows Figure 4 The process 400 shown in FIG. 4 is then executed, and may also be executed independently of the process 400 shown in FIG. Figure 4 The process 400 shown in FIG. 4 is performed separately. In some embodiments, as Figure 5 As shown, process 500 may include the following steps.
[0047] Step 510: Based on the device log of the powered device, obtain the startup status log parameter of the powered device during the startup process. In some embodiments, the startup status log parameter in step 510 is one of the stability parameter information mentioned in the above embodiments. In some embodiments, step 510 can be implemented by the stability evaluation unit 920.
[0048] In some embodiments, the startup process of the powered device may include a boot loader startup process, a kernel startup process, and a software version startup process, wherein the boot loader startup process is the first program executed when the powered device is started, responsible for initializing the hardware and loading the operating system, which may specifically include power-on self-test, loading the boot loader, executing the boot loader, loading the kernel, etc.; the kernel startup process is the process in which the kernel starts to initialize and manage the hardware after the boot loader loads the kernel, which may specifically include kernel initialization, memory configuration management, device driver loading, etc.; the software version startup process is the last program executed when the powered device is started, involving the version management of the operating system and application, which may specifically include version detection, configuration file reading, selecting the startup version and loading the startup version, etc. In some embodiments, the startup status log parameters may include the status information of whether each startup process of the powered device is executed normally during each startup process, and these startup status log parameters may be recorded in the device log of the powered device. In some embodiments, the above startup status log parameters may be obtained by testing the terminal device to read the device log.
[0049] Step 520: Based on the startup state log parameters, determine whether the startup state log parameters meet the standard startup state parameters during the startup process of the powered device switching from the power-off state to the power-on state in the random power-on and power-off state: if so, determine that the powered device has stability in the random power-on and power-off state. In some embodiments, step 520 can be implemented by the stability evaluation unit 920.
[0050] In some embodiments, it is possible to determine whether the powered device is started normally by determining whether the device log contains the first parameter information corresponding to the boot loader startup process, the second parameter information corresponding to the kernel startup process, and the third parameter information corresponding to the software version startup process. Among them, the first parameter information is used to indicate that the boot loader startup process has been successfully started, for example, it can be a field or command line that indicates that the boot loader has been successfully started; the second parameter information is used to indicate that the kernel startup process has been successfully started, for example, it can be a field or command line that indicates that the kernel has been successfully started; the third parameter information is used to indicate that the software version startup process has been successfully started, for example, it can be a field or command line that indicates that the software version has been successfully started. In some embodiments, it is possible to determine whether the first parameter information, the second parameter information, and the third parameter information are in the device log by traversing the device log and identifying whether there are relevant fields or command lines in the device log. In some embodiments, if the device log contains the above-mentioned first parameter information, second parameter information and third parameter information at the same time, it means that the boot loader startup process, kernel startup process and software version startup process of the powered device are all successfully started, and the powered device is successfully started and enters normal working state after power-on, that is, the startup status log parameters of the powered device meet the standard startup status parameters. At this time, it can be judged that the powered device can be successfully powered on and successfully started to enter normal working state under random power-on and power-off states, and is stable.
[0051] Based on the relevant description of the above-mentioned embodiments, the Ethernet power supply network device testing method provided by process 200 can provide a random power-on and power-off test environment for some powered devices, and test the stability of whether the powered device in the random power-on and power-off state can be normally restored to power after power-off, so as to obtain the stability of the powered device in the random power-on and power-off state. Considering that in the test process corresponding to process 200, whether the powered device in the random power-on and power-off state is powered on is random, in some embodiments, a single powered device may never experience the power-on process in the test process corresponding to process 200; in other embodiments, the situation that a single powered device is not powered on again after powering off in the test process corresponding to process 200 may be because the powered device cannot be powered on again due to a fault, or because the powered device has not experienced the power-on process again due to the randomness of power-on. In order to eliminate the influence of power-on randomness and more comprehensively evaluate the stability of the powered device, some embodiments of this specification provide another Ethernet power supply network device testing method. Figure 6 is an exemplary flow chart of another method for testing an Ethernet power supply network device according to some embodiments of this specification. In some embodiments, Figure 6 The process 600 shown can be performed as follows Figure 2 The process 200 shown is then executed. In some embodiments, Figure 6 As shown, process 600 may include the following steps.
[0052] Step 610: Update the maximum output power of the POE switch to enable all powered devices to enter a stable power-on state. In some embodiments, step 610 can be implemented by the setting unit 910.
[0053] In some embodiments, in order to eliminate the influence of power-on randomness, after the execution of process 200 is completed, the maximum output power of the POE switch can be updated by testing the terminal device, so that the POE switch can provide sufficient output power for all powered devices, so that all powered devices can enter a stable power-on state, thereby covering the scenario where the powered device fails to go through the power-on process due to power-on randomness, and can more comprehensively evaluate the stability of the powered device.
[0054] In some embodiments, taking a 24-port POE switch under the 802.3at standard as an example, it can support powering 24 powered devices with a peak power consumption not exceeding 16W. When updating the maximum output power of the POE switch, the maximum output power of the POE switch can be directly updated to the default maximum output power of 500W, or the maximum output power of the POE switch can be updated to 390W, so that the updated maximum output power can simultaneously support all powered devices to start and run at peak power consumption.
[0055] Step 620 : Determine whether the powered device can be restored when it switches from the random power-on and power-off state to the stable power-on state, so as to obtain the stability of the powered device when it switches from the random power-on and power-off state to the stable power-on state. In some embodiments, step 620 can be implemented by the stability evaluation unit 920 .
[0056] In some embodiments, for a normal powered device, when the power-on and power-off state is converted to a stable power-on state, the powered device should be able to resume power-on because the POE switch provides a stable output power; if the powered device cannot resume power-on normally when it is converted from a random power-on and power-off state to a stable power-on state, it means that the powered device may not be able to resume work normally due to a fault or other reasons, and the stability of use in daily working conditions is poor, and further testing or troubleshooting of the powered device is required. Therefore, the stability of the powered device can be evaluated by judging whether the powered device can resume power-on when it is converted from a random power-on and power-off state to a stable power-on state. The following will further explain the method for judging whether the powered device can resume power-on when it is converted from a random power-on and power-off state to a stable power-on state in combination with the embodiments.
[0057] Figure 7The present invention is an exemplary flow chart for determining whether a powered device can be powered on again when it switches from a random power-on and power-off state to a stable power-on state according to some embodiments of the present specification. Figure 7 As shown, process 700 may include the following steps.
[0058] Step 710 : Based on the default IP address of the powered device, send multiple detection packets to the powered device. In some embodiments, step 710 may be implemented by the stability evaluation unit 920 .
[0059] In some embodiments, the test terminal device can be connected to the LAN interface of the powered device that needs to be tested to achieve network connection between the test terminal device and the powered device, and then multiple detection packets are sent to the powered device according to the default IP address of the powered device. In some embodiments, the LAN interface (Local Area Network Interface) refers to the physical interface of the powered device for connecting to the local area network, which allows the powered device to communicate with other devices, such as the test terminal device, by wired or wireless means. In some embodiments, the default IP address (Default IP Address) refers to the default IP address used by the powered device when no network configuration is performed, which can be used for the initial configuration and management of the powered device. Considering that process 700 is a judgment on whether the powered device can be restored to power on when it is converted from a random power-on and power-off state to a stable power-on state, using the default IP address to send the detection packet can ensure that the detection packet is smoothly sent to the powered device.
[0060] Step 720 : Based on the feedback information of the powered device for the detection packet, determine whether the powered device can be powered on again when it switches from the random power-on and power-off state to the stable power-on state. In some embodiments, step 720 can also be implemented by the stability evaluation unit 920 .
[0061] In some embodiments, the powered device can give corresponding feedback information based on the received detection packet, and the feedback information can include the number of bytes of the detection packet received by the powered device each time, the estimated round-trip time of the data from sending the detection packet to receiving the feedback information each time, the maximum number of hops allowed for the detection packet in the network, and other information. The test terminal device can judge whether the powered device can be restored to power on when it switches from the random power-on and power-off state to the stable power-on state based on the above feedback information. In some embodiments, the test terminal device is set to continuously send a number of 32-byte detection packets to the powered device. If the feedback information shows that the number of bytes of the detection packet received by the powered device each time is 32 bytes, and the estimated round-trip time of the data is within 1ms or other lower delays, it means that the test terminal device can establish a stable connection with the powered device based on the default IP address of the powered device, and the powered device can stably receive the detection packet completely, that is, the network connection between the powered device and the test terminal device is reliable and stable, which can indicate that the powered device successfully restores power and can work normally when it switches from the random power-on and power-off state to the stable power-on state. In some embodiments, based on the feedback information of the powered device, it can be set that when the packet loss rate of the detection packet is less than a first preset threshold and the network delay time between the test terminal device and the powered device is less than a second preset threshold, it can be determined that the powered device can successfully restore power when it switches from a random power-on and power-off state to a stable power-on state.
[0062] In some embodiments, determining whether the powered device can be restored to power on when it switches from a random power-on and power-off state to a stable power-on state is not limited to being implemented by sending a detection packet to the powered device by the test terminal device. Figure 8 is another exemplary flow chart for determining whether a powered device can be powered on again when it switches from a random power-on and power-off state to a stable power-on state according to some embodiments of this specification. Figure 8 As shown, process 800 may include the following steps.
[0063] Step 810: Establish a communication connection with the powered device based on a preset network protocol.
[0064] In some embodiments, the test terminal device can establish a communication connection with the powered device through the Telnet protocol, where the Telnet protocol is a protocol used for remote communication on the network, which allows the test terminal device to remotely interact with the powered device through a command line interface, and is mainly used to remotely log in to the powered device and execute commands and / or manage the powered device system.
[0065] Step 820: When the software version number information of the powered device can be obtained based on the communication connection, it is determined that the powered device can be restored to power on when the random power on and off state is converted to a stable power on state.
[0066] In some embodiments, based on the relevant description of the above embodiments, the startup process of the powered device may include a boot loader startup process, a kernel startup process, and a software version startup process, wherein the software version startup process is the last stage of the entire startup process, and the successful startup of the software version startup process indicates that the startup process of the powered device has been completed and successfully powered on, and the software version number information of the powered device can be obtained at this time. In the above step 820, if the test terminal device can successfully obtain the software version number information of the powered device based on the communication connection, it means that the powered device has completed the entire startup process and successfully powered on, that is, it can be said that the powered device can be restored when it is converted from a random power-on and power-off state to a stable power-on state.
[0067] Fig. 9 is an exemplary structural diagram of an Ethernet power supply network device testing system according to some embodiments of this specification. In some embodiments, Fig. 9 The Ethernet power supply network device testing system 900 shown can be used to test Figure 1 The stability of the use of the powered device 120 in the Ethernet power supply network shown is tested: In some embodiments, as shown in FIG. Fig. 9 The Ethernet power supply network device test system 900 shown can be integrated in a test terminal device. The test terminal device is connected to the test terminal device through the respective Figure 1 The POE switch 110 and the powered device 120 in the Ethernet power supply network shown in the figure are connected to test the stability of the powered device 120; in other embodiments, such as Fig. 9 The Ethernet power supply network device testing system 900 shown can also be integrated into the POE switch 110 to test the stability of the powered device 120. In some embodiments, Fig. 9 The illustrated Ethernet power supply network device testing system 900 may include the following unit modules.
[0068] The setting unit 910 is used to set the maximum output power of the POE switch so that at least part of the powered devices enter a random power on and off state.
[0069] The stability evaluation unit 920 is used to determine the stability of the powered device in the random power-on and power-off state based on the stability parameter information of the powered device in the random power-on and power-off state.
[0070] In some embodiments of the present specification, the setting unit 910 may also be used to update the maximum output power of the POE switch so that all powered devices can enter a stable power-on state.
[0071] In some embodiments of the present specification, the stability evaluation unit 920 can also be used to determine whether the powered device can be restored to power when it switches from a random power-on and power-off state to a stable power-on state, so as to obtain the stability of the powered device when it switches from a random power-on and power-off state to a stable power-on state.
[0072] For more information about each module, see Figures 2 to 8 The relevant description of will not be repeated here. It should be understood that Fig. 9 The Ethernet power supply network equipment test system 900 and its modules shown can be implemented in various ways. For example, in some embodiments, the system and its modules can be implemented by hardware, software, or a combination of software and hardware. Among them, the hardware part can be implemented using dedicated logic; the software part can be stored in a memory and executed by an appropriate instruction execution system, such as a microprocessor or dedicated design hardware. Those skilled in the art can understand that the above methods and systems can be implemented using computer executable instructions and / or control codes contained in a processor, such as a carrier medium such as a disk, CD or DVD-ROM, or a memory of a programmable device. Such codes are provided. The system and its modules of this specification can not only be implemented by hardware circuits such as very large-scale integrated circuits or gate arrays, semiconductors such as logic chips, transistors, etc., or programmable hardware devices such as field programmable gate arrays, programmable logic devices, etc., but can also be implemented by software executed by various types of processors, and can also be implemented by a combination of the above hardware circuits and software (for example, firmware).
[0073] It should be noted that the above description of the system and its modules is only for convenience of description and does not limit this specification to the scope of the embodiments. It is understandable that for those skilled in the art, after understanding the principle of the system, it is possible to arbitrarily combine the modules without deviating from this principle to form a subsystem connected to other modules. Or some modules may be split to obtain more modules or multiple units under the module. Such variations are all within the scope of the disclosure of this specification.
[0074] Some embodiments of the present specification also provide a computer program product, including computer instructions or a computer program. When at least part of the computer instructions or the computer program is executed by a processor, the Ethernet power supply network device testing method provided in the aforementioned embodiments of the present specification can be implemented.
[0075] In some embodiments, the processor may be a combination of one or more of the following processors: a central processing unit (CPU), an application specific integrated circuit (ASIC), an application specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a programmable logic controller (PLC), a reduced instruction set computer (RISC), and a microprocessor.
[0076] The beneficial effects that may be brought about by the embodiments of this specification include but are not limited to: (1) By limiting the maximum output power of the POE switch, it is possible to conveniently implement random power-on and power-off tests on the powered devices in the Ethernet power supply network to evaluate the use stability of the powered devices. (2) In the process of evaluating the use stability of the powered devices, it is determined based on the operation log of the POE switch whether the powered device can be powered on again after each power-off, and / or based on the device log of the powered device whether the powered device can be successfully started each time it is powered on, so that it is possible to comprehensively evaluate whether the powered device can be powered on and successfully started, thereby improving the accuracy of the stability evaluation. (3) After the random power-on and power-off tests on the powered devices, the maximum output power of the POE switch is updated to make all the powered devices enter a stable power-on state, and further test whether the powered devices can be successfully powered on, thereby eliminating the influence of the randomness of power-on and more comprehensively evaluating the stability of the powered devices. It should be noted that different embodiments may produce different beneficial effects. In different embodiments, the beneficial effects that may be produced may be any one or a combination of the above, or any other beneficial effects that may be obtained.
[0077] The basic concepts have been described above. Obviously, for those skilled in the art, the above detailed disclosure is only for example and does not constitute a limitation of this specification. Although not explicitly stated here, those skilled in the art may make various modifications, improvements and corrections to this specification. Such modifications, improvements and corrections are taught in this specification, so such modifications, improvements and corrections still belong to the spirit and scope of the exemplary embodiments of this specification.
Claims
1. A method for testing an Ethernet power supply network device, characterized in that: The Power over Ethernet network includes a POE switch and a plurality of powered devices connected to the POE switch, and the method includes: Setting the maximum output power of the POE switch so that at least part of the powered devices enter a random power-on and power-off state; Based on the stability parameter information of the powered device in the random power on and off state, the stability of the powered device in the random power on and off state is evaluated.
2. The method according to claim 1, characterized in that: The maximum output power is less than the default maximum output power of the POE switch; At the maximum output power, at least part of the powered devices enter a random power-on and power-off state due to insufficient output power of the POE switch.
3. The method according to claim 1, characterized in that The evaluating the stability of the powered device in the random power-on and power-off state based on the stability parameter information of the powered device in the random power-on and power-off state includes: Based on the operation log of the POE switch, obtaining the power-on and power-off log parameters of the powered device in the random power-on and power-off state, wherein the stability parameter information includes the power-on and power-off log parameters corresponding to the powered device; Based on the power-on and power-off log parameters, it is determined whether the powered device can be powered on again after each power-off process in the random power-on and power-off state. If so, it is determined that the powered device is stable in the random power-on and power-off state.
4. The method according to claim 1 or 3, characterized in that: The evaluating the stability of the powered device in the random power-on and power-off state based on the stability parameter information of the powered device in the random power-on and power-off state includes: Based on the device log of the powered device, obtaining a startup status log parameter of the powered device during the startup process, wherein the stability parameter information includes the startup status log parameter; Based on the startup status log parameters, determine whether the startup status log parameters meet the standard startup status parameters during the startup process of the powered device switching from the power-off state to the power-on state under the random power-on and power-off state: if so, determine whether the powered device is stable under the random power-on and power-off state.
5. The method according to claim 4, characterized in that The startup process includes a boot loader startup process, a kernel startup process and a software version startup process; The determining whether the startup state log parameters conform to the standard startup state parameters during the startup process of the powered device switching from the power-off state to the power-on state in the random power-on and power-off state includes: Determine whether the device log contains the first parameter information corresponding to the boot loader startup process, the second parameter information corresponding to the kernel startup process, and the third parameter information corresponding to the software version startup process: if so, determine that the startup status log parameters meet the standard startup status parameters.
6. The method according to claim 5, characterized in that The first parameter information is used to indicate that the boot loader startup process has been successfully started; The second parameter information is used to indicate that the kernel startup process has been successfully started; The third parameter information is used to indicate that the software version startup process has been successfully started.
7. The method according to claim 1, characterized in that The method further comprises: Updating the maximum output power of the POE switch so that all the powered devices can be powered on stably; It is determined whether the powered device can be restored to power on when it is converted from the random power on and off state to the stable power on state, so as to obtain the stability of the powered device when it is converted from the random power on and off state to the stable power on state.
8. The method according to claim 7, characterized in that The determining whether the powered device can be powered on again when it switches from the random power-on and power-off state to the stable power-on state includes: Based on the default IP address of the powered device, sending a plurality of detection packets to the powered device; Based on the feedback information of the powered device in response to the detection packet, it is determined whether the powered device can be restored to power on when it is converted from the random power on and off state to the stable power on state.
9. The method according to claim 7 or 8, characterized in that: The determining whether the powered device can be powered on again when it switches from the random power-on and power-off state to the stable power-on state includes: Establishing a communication connection with the powered device based on a preset network protocol; When the software version number information of the powered device can be obtained based on the communication connection, it is determined that the powered device can be restored to power on when it is converted from the random power on and off state to the stable power on state.
10. An Ethernet power supply network equipment testing system, characterized in that: The Ethernet power supply network includes a POE switch and a plurality of powered devices connected to the POE switch, and the system includes: A setting unit, used for setting the maximum output power of the POE switch, so that at least part of the powered devices enter a random power-on and power-off state; The stability evaluation unit is used to determine the stability of the powered device in the random power on and off state based on the stability parameter information of the powered device in the random power on and off state.
11. A computer program product, characterized in that It comprises computer instructions or computer programs, and when at least part of the computer instructions or the computer programs are executed by a processor, it can implement the Ethernet power supply network device testing method as claimed in any one of claims 1 to 9.