CN115567431A - Network stability testing method and device, tested equipment and storage medium - Google Patents

Network stability testing method and device, tested equipment and storage medium Download PDF

Info

Publication number
CN115567431A
CN115567431A CN202211154091.5A CN202211154091A CN115567431A CN 115567431 A CN115567431 A CN 115567431A CN 202211154091 A CN202211154091 A CN 202211154091A CN 115567431 A CN115567431 A CN 115567431A
Authority
CN
China
Prior art keywords
test
network
management controller
network port
equipment
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.)
Pending
Application number
CN202211154091.5A
Other languages
Chinese (zh)
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.)
Nettrix Information Industry Beijing Co Ltd
Original Assignee
Nettrix Information Industry Beijing 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 Nettrix Information Industry Beijing Co Ltd filed Critical Nettrix Information Industry Beijing Co Ltd
Priority to CN202211154091.5A priority Critical patent/CN115567431A/en
Publication of CN115567431A publication Critical patent/CN115567431A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Abstract

The embodiment of the invention discloses a method and a device for testing network stability, a tested device and a storage medium, wherein the method comprises the following steps: establishing a communication network environment between a service network port of an equipment system of the tested equipment and a special network port of a system auxiliary management controller in the tested equipment; running a package sending test program in the equipment system of the tested equipment so as to send a network data package to the special network port through the package sending test program by the service network port; and running a packet receiving test program in the system auxiliary management controller so as to receive the network data packet sent by the service network port through the packet receiving test program. The technical scheme of the embodiment of the invention can reduce the hardware cost of the network stability test of the special network interface of the equipment and improve the comprehensiveness and the reliability of the network stability test of the special network interface of the equipment.

Description

Network stability testing method and device, tested device and storage medium
Technical Field
The embodiment of the invention relates to the technical field of network testing, in particular to a network stability testing method and device, tested equipment and a storage medium.
Background
The system assistant management controller can provide rich management functions for the remote management system of the equipment. For example, a BMC (Baseboard Management Controller) as a type of system auxiliary Management Controller may perform a series of operations such as firmware upgrade and viewing device information on a device in a state where the device is not powered on. Usually, the system auxiliary management controller is provided with a dedicated network port for accessing the system auxiliary management controller. For example, a BMC is typically configured with two portals, one shared portal for a shared network (i.e., a normally used network) and another private network for a private network, which may be used to access the BMC. The dedicated network port of the system auxiliary management controller is frequently accessed by high frequency and high data volume in the out-of-band management and data center operation and maintenance process. Therefore, the network stability of the dedicated network port directly affects the working performance of the system auxiliary management controller, and is very important for out-of-band management and operation and maintenance of the data center.
Currently, the network stability test for the dedicated network port of the system auxiliary Management controller mainly includes a dynamic and static IP (Internet Protocol) switching pressure test, an IPMI (Intelligent Platform Management Interface) multithreading pressure test, a switching pressure test for the dedicated network port and the shared network port, and the like. In order to simulate the use scenario of the actual large data center on the dedicated network port of the system auxiliary management controller, the related art may perform a streaming test on the dedicated port of the system auxiliary management controller.
In the process of implementing the invention, the inventor finds that the prior art has the following defects:
the existing network pressure test mode for the special network port of the system auxiliary management controller does not perform pressure test on the information capture of the system auxiliary management controller after network flow is pressurized, so that the network stability condition of the special network port of the system auxiliary management controller in a high data flow environment cannot be tested, and the test content is single. The method for performing streaming test on the special port of the system auxiliary management controller needs 2 test devices to be directly connected with the network, and performs network stability test on the runs under the system, thereby wasting test resources.
Disclosure of Invention
Embodiments of the present invention provide a method and an apparatus for testing network stability, a device under test, and a storage medium, which can reduce hardware cost for testing network stability of a device-specific network port, and improve comprehensiveness and reliability of a network stability test of a device-specific network port.
According to an aspect of the present invention, there is provided a network stability testing method, including:
establishing a communication network environment between a service network port of an equipment system of the tested equipment and a special network port of a system auxiliary management controller in the tested equipment;
running a packet sending test program in the equipment system of the tested equipment so as to send a network data packet to the special network port through the service network port by the packet sending test program;
and running a packet receiving test program in the system auxiliary management controller so as to receive the network data packet sent by the service network port through the packet receiving test program.
The embodiment of the invention runs the packet sending test program in the equipment system of the tested equipment by establishing the communication network environment of the equipment system of the tested equipment and the system auxiliary management controller in the tested equipment, so as to send the network data packet to the special network port of the system auxiliary management controller through the packet sending test program, run the packet receiving test program in the system auxiliary management controller, receive the network data packet sent by the equipment system through the service network port through the packet receiving test program, realize that the network stability test of the special network port of the tested equipment can be finished only through the tested equipment, effectively simulate the network stability scene of high data flow, solve the problems of high test hardware cost, single test content, lower test reliability and the like of the existing network stability test of the special network of the equipment, reduce the hardware cost of the network stability test of the special network port of the equipment, and improve the comprehensiveness and reliability of the network stability test of the special network port of the equipment.
Optionally, the establishing a communication network environment between the service network port of the device system of the device under test and the dedicated network port of the system auxiliary management controller in the device under test includes:
and under the condition that the service network port of the tested equipment is determined to be in network connection with the special network port of the system auxiliary management controller of the tested equipment, setting the IP addresses of the service network port and the special network port of the system auxiliary management controller to be in the same network segment.
According to the technical scheme, the network connection between the service network port of the tested equipment and the special network port of the system auxiliary management controller of the tested equipment is established, the IP addresses of the service network port and the special network port of the system auxiliary management controller are set to be the same network segment, the communication network environment of the equipment system of the tested equipment and the communication network environment of the system auxiliary management controller can be rapidly established, the test can be completed without setting a test client, and therefore the efficiency of the network stability test of the equipment special network port is improved.
Optionally, before the running the package sending test program in the device system of the device under test, the method further includes:
integrating a first test tool in the device system of the device under test;
acquiring a first test configuration parameter of the first test tool;
and compiling the first test tool in the equipment system of the tested equipment according to the first test configuration parameter to obtain the package sending test program.
Optionally, before the running the package receiving test program in the system assistant management controller, the method further includes:
integrating a second test tool in the system assisted management controller;
acquiring a second test configuration parameter of the second test tool;
and compiling the second test tool in the system auxiliary management controller according to the second test configuration parameters to obtain the package receiving test program.
According to the technical scheme, the package sending test program and the package receiving test program are generated in the equipment system of the tested equipment and the system auxiliary management controller through the test tool in advance, so that various network stability test requirements on the special network interface of the equipment can be met, and the test comprehensiveness is improved.
Optionally, the network stability testing method further includes:
responding to an information acquisition instruction, and running a multi-thread information acquisition tool in the system auxiliary management controller;
acquiring test information for the system auxiliary management controller in a multithreading mode through the multithreading information acquisition tool;
wherein the test information comprises information types of different dimensions.
According to the technical scheme, the thread information acquisition tool acquires the test information to the system auxiliary management controller in a multi-thread mode, so that whether the information capture of the special network interface is normal in the communication process can be tested while the pressure of the special network interface is tested, and the requirement of comprehensive test on the network stability of the special network interface of the equipment is met.
Optionally, the network stability testing method further includes:
acquiring a network communication state test instruction input by a user to the equipment system of the tested equipment;
and responding to the network communication state test instruction, and testing the network communication state of the special network port of the system auxiliary management controller.
According to the technical scheme, the network communication state of the special network port of the management controller is assisted by the network communication state test instruction test system, so that whether the communication of the special network port is normal or not can be tested while the pressure of the special network port is tested, and the requirement for comprehensive test of the network stability of the special network port of the equipment is met.
Optionally, the system auxiliary management controller is a BMC.
According to another aspect of the present invention, there is provided a network stability testing apparatus, including:
the communication network environment establishing module is used for establishing a communication network environment between a service network port of an equipment system of the tested equipment and a special network port of a system auxiliary management controller in the tested equipment;
a network data packet sending module, configured to run a packet sending test program in the device system of the device under test, so as to send a network data packet from the service port to the dedicated port through the packet sending test program;
and the network data packet receiving module is used for running a packet receiving test program in the system auxiliary management controller so as to receive the network data packet sent by the service network port through the packet receiving test program.
According to another aspect of the present invention, there is provided a device under test comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the network stability testing method according to any of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium storing computer instructions for causing a processor to implement the network stability testing method according to any one of the embodiments of the present invention when the computer instructions are executed.
It should be understood that the statements in this section are not intended to identify key or critical features of the embodiments of the present invention, nor are they intended to limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a network stability testing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a network stability testing method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a network stability testing method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a network stability testing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a device under test according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Fig. 1 is a flowchart of a network stability testing method provided in an embodiment of the present invention, where this embodiment is applicable to a case where a network stability test is performed on a dedicated network port of a device under test by using a system of the device under test, and the method may be executed by a network stability testing apparatus, where the apparatus may be implemented in a software and/or hardware manner, and may be generally integrated in the device under test, and the device under test may be a terminal device, or a server device or a network device, and the embodiment of the present invention does not limit a specific device type of the device under test. Accordingly, as shown in fig. 1, the method comprises the following operations:
s110, establishing a communication network environment between a service network port of an equipment system of the tested equipment and a special network port of a system auxiliary management controller in the tested equipment.
The device system may be a hardware device system of the device under test, and performs a network stability test on the device under test, specifically, performs a network stability test on a dedicated network port of a system auxiliary management controller in the device under test.
Considering that the system assistant management controller usually has its own operating system, a communication network environment between the device system of the device under test and the system assistant management controller in the device under test can be established to make the operating systems of the system assistant management controller and the device under test run test. Therefore, the network stability testing method provided by the embodiment of the invention can independently complete the network stability test of the special network port through only one tested device without other testing devices, and can effectively reduce the hardware cost of the network stability test of the special network port of the device.
In an optional embodiment of the present invention, the establishing a communication network environment between the device system of the device under test and the system assistant management controller in the device under test may include: and under the condition that the service network port of the tested equipment is determined to be in network connection with the special network port of the system auxiliary management controller of the tested equipment, setting the IP addresses of the service network port and the special network port of the system auxiliary management controller to be in the same network segment.
The service network port may be a general network port provided by the device under test to the outside.
Optionally, before the network stability test is performed on the device under test, hardware deployment may be performed on the test environment of the device under test first. Specifically, the network cable can be used for directly connecting the special network port of the system auxiliary management controller with the service network port of the tested device where the system auxiliary management controller is located, so that the special network port of the system auxiliary management controller in the tested device is communicated with the service network port of the tested device, and the requirement for testing the network stability can be met while the client is saved. After the service network port of the device to be tested is in network connection with the dedicated network port of the system auxiliary management controller of the device to be tested, the IP addresses of the service network port and the dedicated network port of the system auxiliary management controller can be further set to be the same network segment, so that the communication network environment of the device system of the device to be tested and the communication network environment of the system auxiliary management controller in the device to be tested are established. In this communication network environment, the system-assisted management controller in the device under test may communicate directly with the device system of the device under test.
According to the technical scheme, the network connection between the service network port of the tested equipment and the special network port of the system auxiliary management controller of the tested equipment is established, the IP addresses of the service network port and the special network port of the system auxiliary management controller are set to be the same network segment, the communication network environment of the equipment system of the tested equipment and the communication network environment of the system auxiliary management controller can be rapidly established, the test can be completed without setting a test client, and therefore the efficiency of the network stability test of the equipment special network port is improved.
And S120, running a packet sending test program in the equipment system of the tested equipment so as to send a network data packet to the special network port through the service network port through the packet sending test program.
The packet sending test program can be used for sending a data packet to a dedicated network port of the system auxiliary management controller in a communication network environment of the equipment system of the device to be tested and the system auxiliary management controller.
Correspondingly, after the communication network environment of the equipment system of the tested equipment and the system auxiliary management controller is established, the network stability test of the special network port of the tested equipment can be started based on the established communication network environment. In the embodiment of the invention, when the network stability test is performed on the special network port of the device to be tested, the packet sending test program can be operated in the device system of the device to be tested, so that the network data packet is sent from the service network port of the device system to the special network port of the system auxiliary management controller through the packet sending test program. It will be appreciated that the packet sending test program may send network data packets to the dedicated port of the system auxiliary management controller based on the traffic port of the device under test.
The packet sending test program can control the sending number of the network data packets according to the actual test requirement. For example, the packet sending test program can simulate a network use scenario with high data traffic and continuously send network data packets with high data traffic to a dedicated network port of the system auxiliary management controller. Or, the packet sending test program may also simulate a network usage scenario of the ordinary data traffic, send a network data packet of the ordinary traffic to a dedicated network port of the system auxiliary management controller, and the like. Therefore, the sending quantity of the network data packets is adjusted through the packet sending test program, various scene test requirements of the network stability test can be comprehensively met, and the comprehensiveness and the reliability of the network stability test of the special network interface of the equipment are improved.
And S130, running a packet receiving test program in the system auxiliary management controller so as to receive the network data packet sent by the service network port through the packet receiving test program.
The packet receiving test program can be used for receiving a data packet sent by the equipment system through the service network port according to the packet sending test program in a communication network environment of the equipment system of the tested equipment and the system auxiliary management controller.
Accordingly, the packet receiving test program can be run based on the system assistant management controller, so as to receive the network data packet sent by the packet sending test program of the equipment system through the service network port through the packet receiving test program.
According to the technical scheme, the network stability test of the special network interface of the system auxiliary management controller is completed through the mutual matching of the packet sending test program in the equipment system and the packet receiving test program in the system auxiliary management controller, and the bandwidth performance and the stability parameters of the special network interface of the system auxiliary management controller can be effectively tested.
The embodiment of the invention runs the packet sending test program in the equipment system of the tested equipment by establishing the communication network environment of the equipment system of the tested equipment and the system auxiliary management controller in the tested equipment, so as to send the network data packet to the special network port of the system auxiliary management controller through the packet sending test program, run the packet receiving test program in the system auxiliary management controller, receive the network data packet sent by the equipment system through the service network port through the packet receiving test program, realize that the network stability test of the special network port of the tested equipment can be finished only through the tested equipment, effectively simulate the network stability scene of high data flow, solve the problems of high test hardware cost, single test content, lower test reliability and the like of the existing network stability test of the special network of the equipment, reduce the hardware cost of the network stability test of the special network port of the equipment, and improve the comprehensiveness and reliability of the network stability test of the special network port of the equipment.
Fig. 2 is a flowchart of a network stability testing method according to an embodiment of the present invention, which is embodied based on the above embodiment, and in this embodiment, a specific selectable generation manner of a packet sending test program and a packet receiving test program is given, and other specific selectable network stability testing contents for a device-specific network interface are given. Correspondingly, as shown in fig. 2, the method of the present embodiment may include:
s210, under the condition that the service network port and the special network port are determined to keep network connection, setting the IP addresses of the service network port and the special network port to be the same network segment so as to establish a communication network environment between the service network port and the special network port.
S220, running a packet sending test program in the equipment system of the tested equipment so as to send a network data packet to the special network port through the service network port through the packet sending test program.
In an optional embodiment of the present invention, before the running the package test program in the device system of the device under test, the method may further include: integrating a first test tool in the device system of the device under test; acquiring a first test configuration parameter of the first test tool; compiling the first testing tool in the equipment system of the tested equipment according to the first testing configuration parameters to obtain the package sending testing program.
Wherein the first test tool may be a test tool for generating a package test program. The first test configuration parameters may be parameters for compiling the first test tool in the device system of the device under test to generate the bundled test program.
And S230, running a packet receiving test program in the system auxiliary management controller so as to receive the network data packet sent by the service network port through the packet receiving test program.
In an optional embodiment of the present invention, before the running the package receiving test program in the system assistant management controller, the method may further include: integrating a second test tool in the system assisted management controller; acquiring a second test configuration parameter of the second test tool; and compiling the second test tool in the system auxiliary management controller according to the second test configuration parameter to obtain the package receiving test program.
Wherein the second test tool may be a test tool for generating a package receiving test program. The second test configuration parameters may be parameters for compiling a second test tool in a system assisted management controller of the device under test to generate a bundled test program. The first test tool and the second test tool may be the same test tool or different test tools, as long as the package sending test program and the package receiving test program that can communicate with each other can be generated, and the specific tool types of the first test tool and the second test tool are not limited in the embodiment of the present invention.
In an alternative embodiment of the present invention, the system assistant management controller may be a BMC.
Alternatively, the first test tool and the second test tool may be Iperf3 tools. Iperf3 may be used to actively measure the maximum bandwidth achievable over an IP network and may support adjustments to various parameters related to timing, protocols and buffers, such as communication protocol, number of packets, transmission duration, etc. After the Iperf3 test is completed, test results of network bandwidth, packet loss rate and other parameters are generated.
In a specific example, assuming that the device under test is an X86 server, and the system assistant management controller of the device under test is a BMC based on ARM (Advanced RISC Machine), a first test tool is integrated in the device system of the device under test, which may be an iperf3 tool downloaded from a related platform such as GitHub (managed platform oriented to open source and private software projects), and compiled into a test tool available in X86 architecture under the system of the device under test. Further, based on that the iperf3 tool runs the package sending test program under an OS (Operating System) System of the device under test, the first test configuration parameter may be set for the iperf3 tool: xx.xx.xx.xx.xx (wherein xx.xx.xx.xx.xx.xx) represents the IP of the private network port of the BMC, so as to designate the service network port of the tested device to send a network data packet to the service end of the private network port of the BMC.
Correspondingly, a second test tool is integrated in the BMC of the tested device, namely an iperf3 tool is downloaded from a related platform and compiled into a test tool available for an ARM architecture under a BMC system. Further, based on that the iperf3 tool runs the package sending test program under the BMC system of the device under test, a second test configuration parameter may be set for the iperf3 tool: and the iperf3-s is used for appointing a special network port of the BMC of the tested device to receive the network data packet sent by the service network port.
According to the technical scheme, the package sending test program and the package receiving test program are generated in the equipment system of the equipment to be tested and the system auxiliary management controller through the test tool in advance, so that various network stability test requirements on the special network interface of the equipment can be met, and the test comprehensiveness is improved.
And S240, responding to an information acquisition instruction, operating a multithreading information acquisition tool in the system auxiliary management controller, and acquiring test information for the system auxiliary management controller in a multithreading mode through the multithreading information acquisition tool.
The information acquisition instruction may be an instruction which is input by a user to the device to be tested and is used for simultaneously acquiring information in the network stability test process. The multithreading information acquisition tool can acquire information of the system auxiliary management controller in a multithreading mode. The test information may include a plurality of different dimensional information types.
It should be noted that, when the related art performs a network stability test on the dedicated network port of the device, it is only able to test the performance, i.e. bandwidth, of the dedicated network port, and it is impossible to test whether information capture of the dedicated network port is normal in the communication process, which is difficult to meet a comprehensive test requirement on the network stability of the dedicated network port of the device.
In order to solve the above problem, in the network stability testing method provided in the embodiment of the present invention, the device under test may receive an information acquisition instruction while performing a pressure test on the device-dedicated network port. The tested equipment can respond to the information acquisition instruction, a multithreading information acquisition tool is operated in the system auxiliary management controller, test information is acquired by the system auxiliary management controller through the operated multithreading information acquisition tool in a multithreading mode, and whether information capture of the special network port in the communication process is normal or not is tested.
In a specific example, while a dedicated network port of the BMC receives and sends a packet to complete a stress test, the IPMI multithreading information collection tool may be run under the BMC system to collect test information of a plurality of different dimensions to the BMC at the same time. Optionally, the test information may include, but is not limited to, SDR (Sensor Data Record), SEL (BMC system time log), FRU (Field replaceable Unit), user Set (User setup information), and snmp (a mechanism for the managed device to actively send a message to the network management system).
And S250, acquiring a network communication state test instruction input by a user to the equipment system of the tested equipment, responding to the network communication state test instruction, and testing the network communication state of the special network port of the system auxiliary management controller.
The network communication state test instruction may be an instruction for detecting a communication state of a dedicated network port of the system auxiliary management controller. Illustratively, the network communication status test instruction may be a ping command or the like.
It should be noted that, when the related art performs a network stability test on the dedicated network port of the device, it is only able to test the performance, i.e. bandwidth, of the dedicated network port, and it is not able to test whether the communication of the dedicated network port is normal, which is difficult to meet the requirement of a comprehensive test on the network stability of the dedicated network port of the device.
In order to solve the above problem, in the network stability testing method provided in the embodiment of the present invention, the device under test may also obtain a network communication state testing instruction input by the user to the device system of the device under test while performing a pressure test on the dedicated network port of the device, for example, the user inputs a ping instruction through a command line of the device under test. The tested device can respond to the network communication state test instruction to test the network communication state of the special network port of the system auxiliary management controller so as to test whether the communication of the special network port is normal.
In a specific example, while the BMC private network port receives and sends a packet to complete a pressure test, a ping command may be input in the command line of the device under test according to the BMC private network port to test whether the communication state of the BMC private network port is normal.
It should be noted that fig. 2 is only a schematic diagram of an implementation manner, and there is no precedence relationship among the steps S220 to S230, the step S240, and the step S250, that is, the three may be synchronously implemented in parallel.
It should be noted that, in the embodiment of the present invention, the S210-S250 are exemplarily combined into one embodiment to execute a network stability test method, but this embodiment is only one example of the present invention, and the S210-S240 may also be combined into one embodiment to execute a network stability test method, or the S210-S230 and the S250 may also be combined into one embodiment to execute a network stability test method.
Fig. 3 is a schematic flowchart of a network stability testing method provided in an embodiment of the present invention, and in order to more clearly describe the technical solution provided in the embodiment of the present invention, in a specific example, a server is used as a device under test, and a BMC is used as a system auxiliary management controller for specific description, as shown in fig. 3, the network stability testing method may include the following processes:
step one, deploying a hardware test environment, and directly connecting a service network port of the server equipment with a special network port of a BMC (baseboard management controller) on the server equipment by using a gigabit network cable so as to mutually communicate the special network port of the BMC with the service network port of the server equipment. And setting the special network port of the BMC in the server equipment and the service network port under the server equipment system as the same network segment IP.
And step two, downloading an iperf3 tool from the GitHub, compiling the tool into a test tool available for an X86 architecture under a server system, running an iperf3 packet sending test based on the compiled test tool, namely generating a packet sending test program by using instruction parameters of "-c xx.xx.xx.xx.xx.xx (xx.xx.xx.xx is IP of a BMC private network port)", and sending a network data packet to the BMC private network port from a service network port by the designation of the packet sending test program.
And step three, downloading an iperf3 tool from the Github, compiling the iperf3 tool into a testing tool available for an ARM framework under a BMC (BMC with a Linux system), running an iperf3 packet receiving test based on the testing tool obtained by compiling, generating a packet receiving testing program by using a "-s" parameter, namely the iperf3-s ", and receiving a network data packet sent by a service gateway through the packet receiving testing program. The test flow of the receiving and sending packets can simulate the application scene of BMC high data flow.
And step four, operating the IPMI multithreading information acquisition tool under the BMC system while performing pressure test on the receiving and sending packets of the special network interface of the BMC to acquire the multidimensional test information of the BMC system through the IPMI multithreading information acquisition tool, wherein the multidimensional test information can include but is not limited to SDR, SEL, FRU, user Set, snmptrp and other test information items. The test method can simulate and test the stability of the BMC during data acquisition under high data flow.
And fifthly, while the pressure test of the receiving and sending packets is carried out on the special network port of the BMC, the Ping test is carried out on the IP of the special network port of the BMC through a test tool of a command line so as to simulate and test whether the special network of the BMC has network failures such as packet loss and the like under high data flow.
It should be noted that, the network stability test method may set the number of tests to achieve the purpose of cycle testing, and further improve the reliability of the network stability test.
According to the technical scheme, the IPerf3 is used for carrying out a pressurization test on the special network port of the BMC, and simultaneously, a test for a BMC monitoring function is added, such as information acquisition and collection on the BMC, verification of the stability of the special network of the BMC, ping test on the BMC, verification of the communication state of the special network of the BMC and the like. The network stability testing method can be completed by only one tested device, and the hardware cost of the special network port test of the device can be reduced.
It should be noted that any permutation and combination between the technical features in the above embodiments also belong to the scope of the present invention.
Fig. 4 is a schematic diagram of a network stability testing apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus includes: a communication network environment establishing module 310, a network data packet sending module 320 and a network data packet receiving module 330, wherein:
a communication network environment establishing module 310, configured to establish a communication network environment between a service network port of an equipment system of a device under test and a dedicated network port of a system auxiliary management controller in the device under test;
a network data packet sending module 320, configured to run a packet sending test program in the device system of the device under test, so as to send a network data packet from the service port to the dedicated port through the packet sending test program;
a network data packet receiving module 330, configured to run a packet receiving test program in the system auxiliary management controller, so as to receive the network data packet sent by the service network port through the packet receiving test program.
The embodiment of the invention runs the packet sending test program in the equipment system of the tested equipment by establishing the communication network environment of the equipment system of the tested equipment and the system auxiliary management controller in the tested equipment, so as to send the network data packet to the special network port of the system auxiliary management controller through the packet sending test program, run the packet receiving test program in the system auxiliary management controller, receive the network data packet sent by the equipment system through the service network port through the packet receiving test program, realize that the network stability test of the special network port of the tested equipment can be finished only through the tested equipment, effectively simulate the network stability scene of high data flow, solve the problems of high test hardware cost, single test content, lower test reliability and the like of the existing network stability test of the special network of the equipment, reduce the hardware cost of the network stability test of the special network port of the equipment, and improve the comprehensiveness and reliability of the network stability test of the special network port of the equipment.
Optionally, the communication network environment establishing module 310 is specifically configured to: and under the condition that the service network port and the special network port are ensured to keep network connection, setting the IP addresses of the service network port and the special network port to be the same network segment.
Optionally, the network stability testing apparatus may further include a packet sending test program generating module, configured to: integrating a first test tool in a device system of the device under test; acquiring a first test configuration parameter of the first test tool; and compiling the first test tool in the equipment system of the tested equipment according to the first test configuration parameter to obtain the package sending test program.
Optionally, the network stability testing apparatus may further include a packet receiving test program generating module, configured to: integrating a second test tool in the system assisted management controller; acquiring a second test configuration parameter of the second test tool; and compiling the second test tool in the system auxiliary management controller according to the second test configuration parameters to obtain the package receiving test program.
Optionally, the network stability testing apparatus may further include a test information acquisition module, configured to: responding to an information acquisition instruction, and running a multi-thread information acquisition tool in the system auxiliary management controller; test information is collected by the system auxiliary management controller through the multithreading information collection tool in a multithreading mode; wherein the test information comprises information types of different dimensions.
Optionally, the network stability testing apparatus may further include a network communication state testing module, configured to: acquiring a network communication state test instruction input by a user to the equipment system of the tested equipment; and responding to the network communication state test instruction, and testing the network communication state of the special network port of the system auxiliary management controller.
Optionally, the system auxiliary management controller is a BMC.
The network stability testing device can execute the network stability testing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. For details of the technique not described in detail in this embodiment, reference may be made to the network stability testing method provided in any embodiment of the present invention.
Since the network stability testing apparatus described above is an apparatus capable of executing the network stability testing method in the embodiment of the present invention, based on the network stability testing method described in the embodiment of the present invention, a person skilled in the art can understand a specific implementation of the network stability testing apparatus in the embodiment and various variations thereof, and therefore, how the network stability testing apparatus implements the network stability testing method in the embodiment of the present invention is not described in detail here. As long as a person skilled in the art implements the apparatus used in the method for testing network stability in the embodiment of the present invention, the apparatus is within the scope of the present application.
Figure 5 shows a schematic structural diagram of a device under test 10 which can be used to implement an embodiment of the invention. The device under test is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The device under test may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the device under test 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the device under test 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the device under test 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the device under test 10 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. Processor 11 performs the various methods and processes described above, such as the network stability test method.
In some embodiments, the network stability testing method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed on the device under test 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the network stability testing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the network stability test method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on a machine, as a stand-alone software package partly on a machine and partly on a remote machine or entirely on a remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described herein may be implemented on a device under test having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the device under test. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
Embodiments of the present invention further provide a computer storage medium storing a computer program, where the computer program is used to execute the network stability testing method according to any of the above embodiments of the present invention when executed by a computer processor: establishing a communication network environment between a service network port of an equipment system of the tested equipment and a special network port of a system auxiliary management controller in the tested equipment; running a packet sending test program in the equipment system of the tested equipment so as to send a network data packet to the special network port through the service network port by the packet sending test program; and running a packet receiving test program in the system auxiliary management controller so as to receive the network data packet sent by the service network port through the packet receiving test program.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM, or flash Memory), an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It should be understood that various forms of the flows shown above, reordering, adding or deleting steps, may be used. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A network stability testing method is characterized by comprising the following steps:
establishing a communication network environment between a service network port of an equipment system of the tested equipment and a special network port of a system auxiliary management controller in the tested equipment;
running a package sending test program in the equipment system of the tested equipment so as to send a network data package to the special network port through the package sending test program by the service network port;
and running a packet receiving test program in the system auxiliary management controller so as to receive the network data packet sent by the service network port through the packet receiving test program.
2. The method of claim 1, wherein establishing a communication network environment between a service portal of a device system of the device under test and a dedicated portal of a system-assisted management controller in the device under test comprises:
and under the condition that the service network port and the special network port are ensured to keep network connection, setting the IP addresses of the service network port and the special network port to be the same network segment.
3. The method of claim 1, further comprising, prior to running a packet test program in the device system of the device under test:
integrating a first test tool in a device system of the device under test;
acquiring a first test configuration parameter of the first test tool;
compiling the first testing tool in the equipment system of the tested equipment according to the first testing configuration parameters to obtain the package sending testing program.
4. The method of claim 1, further comprising, prior to said running a receive test program in said sbc:
integrating a second test tool in the system assisted management controller;
acquiring a second test configuration parameter of the second test tool;
and compiling the second test tool in the system auxiliary management controller according to the second test configuration parameter to obtain the package receiving test program.
5. The method of claim 1, further comprising:
responding to an information acquisition instruction, and running a multi-thread information acquisition tool in the system auxiliary management controller;
acquiring test information for the system auxiliary management controller in a multithreading mode through the multithreading information acquisition tool;
wherein the test information comprises information types of different dimensions.
6. The method of claim 1, further comprising:
acquiring a network communication state test instruction input by a user to the equipment system of the tested equipment;
and responding to the network communication state test instruction, and testing the network communication state of the special network port of the system auxiliary management controller.
7. The method of any of claims 1-6, wherein the system-assisted management controller is a Baseboard Management Controller (BMC).
8. A network stability testing apparatus, comprising:
the communication network environment establishing module is used for establishing a communication network environment between a service network port of an equipment system of the tested equipment and a special network port of a system auxiliary management controller in the tested equipment;
a network data packet sending module, configured to run a packet sending test program in the device system of the device under test, so as to send a network data packet from the service port to the dedicated port through the packet sending test program;
and the network data packet receiving module is used for running a packet receiving test program in the system auxiliary management controller so as to receive the network data packet sent by the service network port through the packet receiving test program.
9. A device under test, characterized in that the device under test comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the network stability testing method of any of claims 1-7.
10. A computer storage medium, characterized in that the computer-readable storage medium stores computer instructions for causing a processor to implement the network stability testing method of any of claims 1-7 when executed.
CN202211154091.5A 2022-09-21 2022-09-21 Network stability testing method and device, tested equipment and storage medium Pending CN115567431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211154091.5A CN115567431A (en) 2022-09-21 2022-09-21 Network stability testing method and device, tested equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211154091.5A CN115567431A (en) 2022-09-21 2022-09-21 Network stability testing method and device, tested equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115567431A true CN115567431A (en) 2023-01-03

Family

ID=84741841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211154091.5A Pending CN115567431A (en) 2022-09-21 2022-09-21 Network stability testing method and device, tested equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115567431A (en)

Similar Documents

Publication Publication Date Title
US9858137B2 (en) Network test system
EP3886367A1 (en) Automating 5g slices using real-time analytics
EP4032207B1 (en) State machine handling at a proxy node in an ethernet-based fronthaul network
US11032126B2 (en) Diagnostic traffic generation for automatic testing and troubleshooting
US11201812B2 (en) Virtual probes
CN113726607B (en) Network detection method and device, electronic equipment and storage medium
US11336545B2 (en) Network device measurements employing white boxes
CN111966465B (en) Method, system, equipment and medium for modifying host configuration parameters in real time
CN112925652A (en) Application resource deployment method, device, electronic equipment and medium
US20220345371A1 (en) Control configuration for a plurality of endpoint devices
CN114157701A (en) Task testing method, device, equipment and storage medium
CN117176802B (en) Full-link monitoring method and device for service request, electronic equipment and medium
CN115567431A (en) Network stability testing method and device, tested equipment and storage medium
CN110753363A (en) Intelligent device wireless debugging system and method
CN114205414A (en) Data processing method, device, electronic equipment and medium based on service grid
CN111813621A (en) Data processing method, device, equipment and medium based on Flume data middlebox
CN115658218B (en) Method, device, equipment and storage medium for accessing edge equipment to cloud
CN115277506B (en) Load balancing equipment testing method and system
CN116112413A (en) Network equipment testing method, system, device, storage medium and electronic equipment
CN115964243A (en) Interface simulation method, device, electronic equipment and storage medium
CN116260747A (en) Monitoring method and device of terminal test equipment and electronic equipment
CN115168050A (en) Control method, device, equipment and storage medium based on distributed monitoring agent
Jinsong et al. Design of ARINC664 bus Network Test System Based on WinPCap
CN115767786A (en) Multi-cluster communication method and device, electronic equipment and storage medium
CN116132509A (en) Railway safety computer platform communication method, device, equipment and medium

Legal Events

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