[go: up one dir, main page]

CN109802867A - A kind of method and system for testing network interface card NCSI connective stability - Google Patents

A kind of method and system for testing network interface card NCSI connective stability Download PDF

Info

Publication number
CN109802867A
CN109802867A CN201910002737.XA CN201910002737A CN109802867A CN 109802867 A CN109802867 A CN 109802867A CN 201910002737 A CN201910002737 A CN 201910002737A CN 109802867 A CN109802867 A CN 109802867A
Authority
CN
China
Prior art keywords
server
tested
address
test
ncsi
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.)
Granted
Application number
CN201910002737.XA
Other languages
Chinese (zh)
Other versions
CN109802867B (en
Inventor
姜璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201910002737.XA priority Critical patent/CN109802867B/en
Publication of CN109802867A publication Critical patent/CN109802867A/en
Application granted granted Critical
Publication of CN109802867B publication Critical patent/CN109802867B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of methods for testing network interface card NCSI connective stability, it include: to build subtest server in advance, and it is connected by interchanger with cable to the dedicated network interface of BMC and tested shared network interface of server to be measured, wherein equipped with the network interface card to be measured with NCSI function in the server to be measured;Then the automatic test script write in advance is run in subtest server, for testing the NCSI connective stability of network interface card to be measured in server to be measured.In addition, the present invention also provides a kind of systems of test network interface card NCSI connective stability corresponding with the described test method of network interface card NCSI connective stability.The present invention is used to improve the convenience of test network interface card NCSI connective stability.

Description

A kind of method and system for testing network interface card NCSI connective stability
Technical field
The present invention relates to server testing field, it is specifically a kind of test network interface card NCSI connective stability method and be System, for testing the stability of network interface card NCSI connection.
Background technique
NCSI (Network Controller Sideband Interface, network controller side band interface), is one By the industrial standard for the side band interface network controller for supporting server outband management that distributed management task group defines.
The network controller of the industry overwhelming majority all supports NCSI standard, such as the OCP net that server field is general at present The network interface card of card and some off-gauge PCIE, all support NCSI.In addition, outband management function is also obtained in curstomer's site More and more applications, for example Intranet is built, service deployment, operation management etc..Most of client only requires that server exists NCSI not disconnection when doing various operations;Also having a small number of clients, more stringent requirements are proposed, it is desirable that in any shape of server Under state, NCSI cannot packet loss.
Under normal conditions, the emphasis of test during the entire process of the booting of system server, shutting down, restarting NCSI it is steady It is qualitative, and the test method usually used is to carry out ping loss packet test to tested try engine with another server, checks clothes Packet loss situation of the business device in booting, shutdown, restarting process.
But the above-mentioned test method usually used, need labor intensive to be arranged in real time and observe two-server state and Log information, not only time-consuming but also waste of manpower resource, test were inconvenient.
For this purpose, the present invention provides a kind of method and system for testing network interface card NCSI connective stability, it is above-mentioned for solving Technical problem.
Summary of the invention
The technical problem to be solved by the invention is to provide a kind of method for testing network interface card NCSI connective stability and it is System, for improving the convenience of test network interface card NCSI connective stability.
In order to solve the above technical problems, the present invention provides a kind of methods for testing network interface card NCSI connective stability, including Step:
It builds test environment in advance: building subtest server, and it is connected with cable by interchanger to be measured The dedicated network interface of the BMC of server and tested shared network interface;In the server to be measured equipped with NCSI function to survey grid Card;The tested shared network interface, is the shared network interface equipped with the network interface card to be measured of the server to be measured;
Based on the above-mentioned test environment built in advance, the automation write in advance is run in subtest server Test script, for testing the NCSI connective stability of network interface card to be measured in server to be measured.
Wherein, the automatic test script, for testing the NCSI stable connection of network interface card to be measured in server to be measured The method of property comprising steps of
It obtains the IP address of the dedicated network interface of BMC of preconfigured server to be measured and obtains preconfigured to be measured The IP address of the tested shared network interface of server;
Based on the IP address of the acquired dedicated network interface of BMC, controls server to be measured and carry out presetting restarting for number;
Based on the IP address of the acquired dedicated network interface of BMC, corresponding control server to be measured carries out presetting number Shutdown and booting;
During every secondary control Server Restart to be measured, during the server to be measured shutdown of every secondary control, with And during the server booting to be measured of every secondary control, the IP address of the above-mentioned tested shared network interface got is carried out respectively Ping test, and the corresponding packet loss information for obtaining each ping test;
After each corresponding packet loss information for obtaining each corresponding ping test, it is based respectively on accessed packet loss information, The corresponding stability for determining to connect with output network interface card NCSI to be measured.
Wherein, the IP address of the dedicated network interface of BMC of the preconfigured server to be measured of acquisition and acquisition are preparatory The IP address of the tested shared network interface of the server to be measured of configuration, concrete methods of realizing are as follows: by reading in advance described automatic The IP address of the dedicated network interface of server B MC to be measured given in the form of parameter in the title of change test script and clothes to be measured The IP address of the tested shared network interface of business device, the IP address of the corresponding dedicated network interface of BMC for obtaining server to be measured and server to be measured Tested shared network interface IP address.
Wherein, every time based on accessed packet loss information, correspondence determines to connect with output network interface card NCSI to be measured steady After qualitative, further includes: corresponding each related packet loss information of printing to journal file.
Wherein, the IP address of the tested shared network interface of server to be measured, is static ip address or dynamic IP addressing.
In addition, the present invention also provides a kind of systems for testing network interface card NCSI connective stability, comprising:
Server to be measured, it is interior equipped with the network interface card to be measured with NCSI function;
Subtest server is connected the dedicated network interface of BMC of server to be measured by interchanger and is tested with cable Shared network interface;The tested shared network interface, is the shared network interface equipped with the network interface card to be measured of the server to be measured;
Automatic test script, it is to be measured in server to be measured for testing applied to the subtest server The NCSI connective stability of network interface card.
Wherein, the automatic test script includes:
IP address acquiring unit, for obtain the dedicated network interface of BMC of preconfigured server to be measured IP address and Obtain the IP address of the tested shared network interface of preconfigured server to be measured;
Restart test cell, is connected with the IP address acquiring unit, for what is obtained based on IP address acquiring unit The IP address of the dedicated network interface of BMC controls server to be measured and carries out presetting restarting for number;
Switching on and shutting down test cell is connected with the IP address acquiring unit, is respectively used to based on IP address acquiring unit The IP address of the dedicated network interface of the BMC of acquisition, the corresponding shutdown and booting for controlling server to be measured and preset number;
NCSI connective stability test cell, respectively with the IP address acquiring unit, restart test cell and switch Machine test cell is connected, for testing during restarting the every secondary control of test cell Server Restart to be measured, in switching on and shutting down During the server shutdown to be measured of the every secondary control of unit and in the server booting to be measured of the every secondary control of switching on and shutting down test cell During, the IP address of the tested shared network interface read respectively to IP address acquiring unit carries out ping test, and right The packet loss information of each ping test should be obtained;
Test result output unit is connected with the NCSI connective stability test cell, for being based on NCSI connection Each packet loss information that stability test unit is got, the corresponding stability for determining to connect with output network interface card NCSI to be measured.
Wherein, the IP address acquiring unit, by read in advance in the title of the automatic test script with The IP of the IP address of the given dedicated network interface of server B MC to be measured of the form of parameter and the tested shared network interface of server to be measured Address, the IP of the tested shared network interface of the IP address and server to be measured of the corresponding dedicated network interface of BMC for obtaining server to be measured Location.
Wherein, the test result output unit is also used to determine to connect with output network interface card NCSI to be measured in its correspondence After stability, corresponding each related packet loss information of printing to journal file.
Wherein, the IP address of the tested shared network interface of server to be measured, is static ip address or dynamic IP addressing.
Compared with the prior art, the advantages of the present invention are as follows:
(1) method of test network interface card NCSI connective stability of the present invention, in use, need to only put up test in advance Then environment can test the steady of network interface card NCSI connection with automatic test script is run in server in subtest automatically It is qualitative, the state and log information described in background technology being arranged in real time by manpower and observe two-server is avoided, Testing efficiency is improved, the waste of human resources, convenient test are in turn avoided.
(2) method of test network interface card NCSI connective stability of the present invention, automatic test script have and can answer Property processed is only needed when being used to test the stability of network interface card NCSI connection in different server for the automatic test script The IP address of the IP address of the dedicated network interface of BMC in the script name of corresponding modification automatic test script and tested shared network interface Test use can be carried out, it is easy to use.
(3) system of test network interface card NCSI connective stability of the present invention, connects with the test network interface card NCSI The method for connecing stability is corresponding, all advantages of the method with the test network interface card NCSI connective stability, herein no longer It repeats.
It can be seen that compared with prior art, the present invention implementing with substantive distinguishing features outstanding and significant progress Beneficial effect be also obvious.
Detailed description of the invention
Fig. 1 is the method flow schematic diagram of the method for test network interface card NCSI connective stability of the present invention.
Fig. 2 is the structural block diagram schematic diagram of the system of test network interface card NCSI connective stability of the present invention.
Wherein, 1, the dedicated network interface of BMC, 2, tested shared network interface.
Specific embodiment
To keep technical solution of the present invention and advantage clearer, below in conjunction with attached drawing, to technical solution of the present invention It is clearly and completely described.
Fig. 1 is a kind of specific embodiment of the method for test network interface card NCSI connective stability of the present invention.In this reality It applies in mode, the method for the test network interface card NCSI connective stability includes the following steps s1-s2, connects for testing network interface card NCSI The stability connect.
Step s1, it builds test environment in advance: building subtest server, and it is connected by interchanger and cable The dedicated network interface of BMC and tested shared network interface of server are surveyed in reception;It is equipped in the server to be measured with NCSI function Network interface card to be measured;The tested shared network interface, is the shared network interface equipped with the network interface card to be measured of the server to be measured.Later Execute step s2.
In the present embodiment, specific implementation test when building of environment, first assigned in server to be measured it is described to Survey grid card, and be connected in network environment and (can be connected according to actual test demand) using corresponding cable, it then logs in be measured Server (SuSE) Linux OS simultaneously obtains root authority, is operated later according to the different and to be measured server Linux of network interface card to be measured The difference of system version installs the trawl performance of corresponding version;With configuring the IP of the dedicated network interface of BMC of server to be measured later The IP address of the tested shared network interface of location and configuration server to be measured, and configure the network interface of subtest server IP address.
Wherein it should be noted that the IP address of the tested shared network interface of server to be measured, can use static ip address, Dynamic IP addressing can also be used.It is further to note that the network interface IP address of subtest server and service to be measured The IP address of the tested shared network interface of device uses same network segment.
Step s2, run the automatic test script write in advance in subtest server, for test to Survey the NCSI connective stability of network interface card to be measured in server.
Wherein, the automatic test script, for testing the NCSI stable connection of network interface card to be measured in server to be measured The method of property the following steps are included:
It obtains the IP address of the dedicated network interface of BMC of preconfigured server to be measured and obtains preconfigured to be measured The IP address of the tested shared network interface of server;
Based on the IP address of the acquired dedicated network interface of BMC, controls server to be measured and carry out presetting restarting for number;
Based on the IP address of the acquired dedicated network interface of BMC, corresponding control server to be measured carries out presetting number Shutdown and booting;
During every secondary control Server Restart to be measured, during the server to be measured shutdown of every secondary control, with And during the server booting to be measured of every secondary control, the IP address of the above-mentioned tested shared network interface got is carried out respectively Ping test, and the corresponding packet loss information for obtaining each ping test;
After each corresponding packet loss information for obtaining each corresponding ping test, it is based respectively on accessed packet loss information, The corresponding stability for determining to connect with output network interface card NCSI to be measured.
In the present embodiment, the IP address of the dedicated network interface of BMC of the described preconfigured server to be measured of acquisition, with And obtain the IP address of the tested shared network interface of preconfigured server to be measured, concrete methods of realizing are as follows: preparatory by reading The IP address of the dedicated network interface of server B MC to be measured given in the form of parameter in the title of the automatic test script, And the IP address of the tested shared network interface of server to be measured, the IP address of the corresponding dedicated network interface of BMC for obtaining server to be measured and The IP address of the tested shared network interface of server to be measured.
The following are the shell scripts of automatic test script described in present embodiment, wherein the $ 1 and $ 2 in shell script The parameter value after script name to be set in advance in the automatic test script, specifically, $ 1 be it is pre-configured to Network interface is shared for described be tested of pre-configured server to be measured in the IP address of the dedicated network interface of BMC of survey server, 2 IP address;:
Wherein, " i " parameter in above-mentioned shell script represents preset testing time (those skilled in the art can be according to Modify according to needs), both it had been the number for controlling Server Restart to be measured, and had also been the booting for controlling server booting to be measured Number is also the shutdown number of control server shutdown to be measured.
It can be seen that each packet loss information involved in present embodiment includes packet loss (not including packet loss amount), and with packet loss It is judgment basis that whether rate, which is zero, and then determines the stability of network interface card NCSI connection to be measured, and when packet loss is zero, is determined as Otherwise network interface card NCSI stable connection to be measured determines that network interface card NCSI connection to be measured is unstable.
Wherein it should be noted that when the present invention implements, the packet loss information can also include that packet loss amount (is not wrapped Include packet loss), that is, when implementing, whether can also be zero with packet loss amount for judgment basis and then determine network interface card NCSI to be measured The stability of connection.Those skilled in the art can according to actual conditions, select any of them mode carry out using.
In the present embodiment, every time based on accessed packet loss information, corresponding judgement and output network interface card to be measured After the stability of NCSI connection, further includes: corresponding each related packet loss information of printing to journal file (such as in above-mentioned shell script The pinglo.txt of use).Wherein, the use of the journal file connects convenient for tester in test judgement network interface card NCSI to be measured When connecing unstable, understanding packet loss (it is unstable to correspond to network interface card NCSI connection to be measured in the present invention) is occurred in service to be measured in detail The replay phase of device, shut-down-phase, which in start-up phase in stage.
To sum up, the method for test network interface card NCSI connective stability of the present invention, in use, need to only put up survey in advance Then test ring border can test the stabilization of network interface card NCSI connection with automatic test script is run in server in subtest Property, the state and log information described in background technology being arranged in real time by manpower and observe two-server is avoided, i.e., Testing efficiency is improved, the waste of human resources, convenient test are in turn avoided.
In addition, automatic test script described in present embodiment, has reproducibility, it is different when being used for test In server when the stability of network interface card NCSI connection, the BMC in the script name for modifying the automatic test script need to be only corresponded to The IP address of dedicated network interface and the IP address of tested shared network interface can be carried out using easy to use.
Fig. 2 is a kind of specific embodiment of the system of test network interface card NCSI connective stability of the present invention.With it is described Test network interface card NCSI connective stability method embodiment correspondingly, test network interface card NCSI in present embodiment connects The system for connecing stability, comprising:
Server to be measured, it is interior equipped with the network interface card to be measured with NCSI function;
Subtest server is connected the dedicated network interface 1 of BMC of server to be measured by interchanger and is tested with cable Shared network interface 2;The tested shared network interface 2, is the shared network interface equipped with the network interface card to be measured of the server to be measured;
Automatic test script, it is to be measured in server to be measured for testing applied to the subtest server The NCSI connective stability of network interface card.
In use, subtest to be connected by interchanger with cable to the dedicated network interface 1 of BMC of server to be measured with server And be tested and share network interface 2, and automatic test script is copied or is downloaded to the subtest server, operation is somebody's turn to do certainly Dynamicization test script can test the NCSI connective stability of network interface card to be measured in server to be measured.
In the present embodiment, the automatic test script includes:
IP address acquiring unit, the IP address of the dedicated network interface 1 of BMC for obtaining preconfigured server to be measured, with And obtain the IP address of the tested shared network interface 2 of preconfigured server to be measured;
Restart test cell, is connected with the IP address acquiring unit, for what is obtained based on IP address acquiring unit The IP address of the dedicated network interface 1 of BMC controls server to be measured and carries out presetting restarting for number;
Switching on and shutting down test cell is connected with the IP address acquiring unit, is respectively used to based on IP address acquiring unit The IP address of the dedicated network interface 1 of the BMC of acquisition, the corresponding shutdown and booting for controlling server to be measured and preset number;
NCSI connective stability test cell, respectively with the IP address acquiring unit, restart test cell and switch Machine test cell is connected, for testing during restarting the every secondary control of test cell Server Restart to be measured, in switching on and shutting down During the server shutdown to be measured of the every secondary control of unit and in the server booting to be measured of the every secondary control of switching on and shutting down test cell During, the IP address of the tested shared network interface 2 read respectively to IP address acquiring unit carries out ping test, and right The packet loss information of each ping test should be obtained;
Test result output unit is connected with the NCSI connective stability test cell, for being based on NCSI connection Each packet loss information that stability test unit is got, the corresponding stability for determining to connect with output network interface card NCSI to be measured.
In the present embodiment, the IP address acquiring unit, by reading in advance in the automatic test script Title in the IP address of the dedicated network interface 1 of server B MC to be measured that is given in the form of parameter and server to be measured it is tested altogether The IP address of network interface 2 is enjoyed, the tested total of the IP address and server to be measured for obtaining the dedicated network interface 1 of BMC of server to be measured is corresponded to Enjoy the IP address of network interface 2.
In the present embodiment, the test result output unit is also used to correspond to judgement with output to survey grid at it After blocking NCSI connective stability, corresponding each related packet loss information of printing to journal file.
In the present embodiment, the IP address of the tested shared network interface 2 of server to be measured, can use static ip address, Dynamic IP addressing can also be used.
In view of each comprising modules of the system of the test network interface card NCSI connective stability in present embodiment, described The corresponding portion for testing the specific embodiment of the method for network interface card NCSI connective stability has carried out corresponding explanation, herein no longer It repeats.
In addition, system and above-mentioned test network interface card NCSI in view of the test network interface card NCSI connective stability in present embodiment The method of connective stability is corresponding, all advantages of the method with above-mentioned test network interface card NCSI connective stability, herein not It repeats again.
Embodiment of above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned implementation Invention is explained in detail for mode, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are repaired Change or replaces, the range for each embodiment technical solution of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1.一种测试网卡NCSI连接稳定性的方法,其特征在于,包括步骤:1. a method for testing network card NCSI connection stability, is characterized in that, comprises the steps: 预先搭建测试环境:搭建辅助测试用服务器,并将其通过交换机和网线连接待测服务器的BMC专用网口及被测共享网口;所述的待测服务器内安有具有NCSI功能的待测网卡;所述的被测共享网口,为所述待测服务器的安有所述待测网卡的共享网口;Build a test environment in advance: build an auxiliary test server and connect it to the BMC dedicated network port and the tested shared network port of the server to be tested through switches and network cables; the server to be tested has a network card to be tested with NCSI function inside ; The shared network port to be tested is the shared network port of the server to be tested where the network card to be tested is installed; 基于上述预先搭建的测试环境,在辅助测试用服务器内运行预先编写好的自动化测试脚本,用于测试待测服务器内待测网卡的NCSI连接稳定性。Based on the above pre-built test environment, run the pre-written automated test script in the auxiliary test server to test the NCSI connection stability of the network card to be tested in the server to be tested. 2.根据权利要求1所述的测试网卡NCSI连接稳定性的方法,其特征在于,所述的自动化测试脚本,用于测试待测服务器内待测网卡的NCSI连接稳定性的方法包括步骤:2. the method for testing network card NCSI connection stability according to claim 1, is characterized in that, described automated test script, for testing the method for the NCSI connection stability of network card to be tested in the server to be tested comprises the steps: 获取预先配置的待测服务器的BMC专用网口的IP地址、以及获取预先配置的待测服务器的被测共享网口的IP地址;Obtain the pre-configured IP address of the BMC dedicated network port of the server to be tested, and obtain the IP address of the pre-configured shared network port of the server to be tested; 基于所获取的BMC专用网口的IP地址,控制待测服务器进行预先设定次数的重启;Based on the obtained IP address of the BMC dedicated network port, control the server to be tested to restart a preset number of times; 基于所获取的BMC专用网口的IP地址,对应控制待测服务器进行预先设定次数的关机与开机;Based on the obtained IP address of the BMC dedicated network port, the server to be tested is controlled to perform a preset number of shutdowns and startups; 在每次控制待测服务器重启的过程中、在每次控制待测服务器关机的过程中、以及在每次控制待测服务器开机的过程中,分别对上述获取到的被测共享网口的IP地址进行ping测试,并对应获取各ping测试的丢包信息;In each process of controlling the restart of the server under test, in each process of controlling the shutdown of the server under test, and in each process of controlling the startup of the server under test, the IP addresses of the shared network port under test obtained above are respectively Perform a ping test on the address, and obtain the packet loss information of each ping test accordingly; 在每次对应获取各相应ping测试的丢包信息后,分别基于所获取到的丢包信息,对应判定与输出待测网卡NCSI连接的稳定性。After each corresponding acquisition of the packet loss information of each corresponding ping test, based on the acquired packet loss information, correspondingly determine and output the stability of the NCSI connection of the network card to be tested. 3.根据权利要求2所述的测试网卡NCSI连接稳定性的方法,其特征在于,所述的获取预先配置的待测服务器的BMC专用网口的IP地址、以及获取预先配置的待测服务器的被测共享网口的IP地址,具体实现方法为:通过读取预先在所述自动化测试脚本的名称中以参数的形式给定的待测服务器BMC专用网口的IP地址、以及待测服务器被测共享网口的IP地址,对应获取待测服务器的BMC专用网口的IP地址和待测服务器的被测共享网口的IP地址。3. the method for testing network card NCSI connection stability according to claim 2, is characterized in that, the IP address of the BMC dedicated network port of the described acquisition preconfigured server under test and the acquisition of the preconfigured server under test. The IP address of the shared network port to be tested, the specific implementation method is: by reading the IP address of the BMC dedicated network port of the server to be tested given in the form of parameters in the name of the automated test script in advance, and the server to be tested is The IP address of the test shared network port corresponds to the IP address of the BMC dedicated network port of the server to be tested and the IP address of the tested shared network port of the server to be tested. 4.根据权利要求2所述的测试网卡NCSI连接稳定性的方法,其特征在于,在每次基于所获取到的丢包信息,对应判定与输出待测网卡NCSI连接的稳定性后,还包括:对应打印各相关丢包信息至日志文件。4. the method for testing network card NCSI connection stability according to claim 2, is characterized in that, after each time based on the obtained packet loss information, after correspondingly judging and outputting the stability of network card NCSI connection to be tested, also comprising : Correspondingly print the relevant packet loss information to the log file. 5.根据权利要求1或2或3或4所述的测试网卡NCSI连接稳定性的方法,其特征在于,待测服务器的被测共享网口的IP地址,为静态IP地址或动态IP地址。5. The method for testing network card NCSI connection stability according to claim 1 or 2 or 3 or 4, wherein the IP address of the tested shared network port of the server to be tested is a static IP address or a dynamic IP address. 6.一种测试网卡NCSI连接稳定性的系统,其特征在于,包括:6. a system of testing network card NCSI connection stability, is characterized in that, comprises: 待测服务器,其内安有具有NCSI功能的待测网卡;The server to be tested has a network card to be tested with NCSI function installed in it; 辅助测试用服务器,其通过交换机和网线连接待测服务器的BMC专用网口及被测共享网口;所述的被测共享网口,为所述待测服务器的安有所述待测网卡的共享网口;The auxiliary test server is connected to the BMC dedicated network port of the server to be tested and the shared network port to be tested through a switch and a network cable; shared network port; 自动化测试脚本,应用于所述的辅助测试用服务器,用于测试待测服务器内待测网卡的NCSI连接稳定性。An automated test script, applied to the auxiliary test server, is used to test the NCSI connection stability of the network card to be tested in the server to be tested. 7.根据权利要求6所述的测试网卡NCSI连接稳定性的系统,其特征在于,所述的自动化测试脚本包括:7. the system of testing network card NCSI connection stability according to claim 6, is characterized in that, described automated test script comprises: IP地址获取单元,用于获取预先配置的待测服务器的BMC专用网口的IP地址、以及获取预先配置的待测服务器的被测共享网口的IP地址;The IP address obtaining unit is used to obtain the preconfigured IP address of the BMC dedicated network port of the server to be tested, and obtain the IP address of the preconfigured shared network port of the server to be tested; 重启测试单元,与所述的IP地址获取单元相连,用于基于IP地址获取单元获取的BMC专用网口的IP地址,控制待测服务器进行预先设定次数的重启;The restarting test unit is connected to the described IP address obtaining unit, and is used for controlling the server to be tested to restart the preset number of times based on the IP address of the BMC dedicated network port obtained by the IP address obtaining unit; 开关机测试单元,与所述的IP地址获取单元相连,分别用于基于IP地址获取单元获取的BMC专用网口的IP地址,对应控制待测服务器进行预先设定次数的关机与开机;The power-on-off test unit is connected to the IP address acquisition unit, and is respectively used to control the server to be tested to perform pre-set times of shutdown and power-on based on the IP address of the BMC dedicated network port acquired by the IP address acquisition unit; NCSI连接稳定性测试单元,分别与所述的IP地址获取单元、重启测试单元及开关机测试单元相连,用于在重启测试单元每次控制待测服务器重启的过程中、在开关机测试单元每次控制待测服务器关机的过程中、以及在开关机测试单元每次控制待测服务器开机的过程中,分别对IP地址获取单元所读取到的被测共享网口的IP地址进行ping测试,并对应获取各ping测试的丢包信息;The NCSI connection stability test unit is respectively connected with the IP address acquisition unit, the restart test unit and the power-on/off test unit, and is used for each time the restart test unit controls the restart of the server to be tested, and every time the power-on test unit is turned on and off. In the process of controlling the shutdown of the server under test each time, and in the process of controlling the startup of the server under test each time by the power-on/off test unit, perform a ping test on the IP address of the shared network port under test read by the IP address acquisition unit, respectively. And correspondingly obtain the packet loss information of each ping test; 测试结果输出单元,与所述的NCSI连接稳定性测试单元相连,用于基于NCSI连接稳定性测试单元获取到的各丢包信息,对应判定与输出待测网卡NCSI连接的稳定性。The test result output unit is connected to the NCSI connection stability test unit, and is used for correspondingly determining and outputting the NCSI connection stability of the network card to be tested based on the packet loss information obtained by the NCSI connection stability test unit. 8.根据权利要求7所述的测试网卡NCSI连接稳定性的系统,其特征在于,所述的IP地址获取单元,通过读取预先在所述自动化测试脚本的名称中以参数的形式给定的待测服务器BMC专用网口的IP地址、以及待测服务器被测共享网口的IP地址,对应获取待测服务器的BMC专用网口的IP地址和待测服务器的被测共享网口的IP地址。8. the system of testing network card NCSI connection stability according to claim 7, is characterized in that, described IP address acquisition unit, by reading the given in the form of parameter in the name of described automated test script in advance The IP address of the BMC dedicated network port of the server to be tested and the IP address of the shared network port of the server to be tested correspond to the IP address of the BMC dedicated network port of the server to be tested and the IP address of the shared network port of the server to be tested. . 9.根据权利要求7所述的测试网卡NCSI连接稳定性的系统,其特征在于,所述的测试结果输出单元,还用于在其对应判定与输出待测网卡NCSI连接稳定性后,对应打印各相关丢包信息至日志文件。9. the system of testing network card NCSI connection stability according to claim 7, is characterized in that, described test result output unit is also used for after its corresponding judgment and output network card NCSI connection stability to be tested, corresponding printing All relevant packet loss information is sent to the log file. 10.根据权利要求6或7或8或9所述的测试网卡NCSI连接稳定性的系统,其特征在于,待测服务器的被测共享网口的IP地址,为静态IP地址或动态IP地址。10. The system for testing network card NCSI connection stability according to claim 6 or 7 or 8 or 9, wherein the IP address of the tested shared network port of the server to be tested is a static IP address or a dynamic IP address.
CN201910002737.XA 2019-01-02 2019-01-02 A method and system for testing network card NCSI connection stability Active CN109802867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910002737.XA CN109802867B (en) 2019-01-02 2019-01-02 A method and system for testing network card NCSI connection stability

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910002737.XA CN109802867B (en) 2019-01-02 2019-01-02 A method and system for testing network card NCSI connection stability

Publications (2)

Publication Number Publication Date
CN109802867A true CN109802867A (en) 2019-05-24
CN109802867B CN109802867B (en) 2022-04-26

Family

ID=66558399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910002737.XA Active CN109802867B (en) 2019-01-02 2019-01-02 A method and system for testing network card NCSI connection stability

Country Status (1)

Country Link
CN (1) CN109802867B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110581786A (en) * 2019-09-10 2019-12-17 浪潮商用机器有限公司 Method, device, system and medium for testing NCSI network connectivity stability
CN111030892A (en) * 2019-12-26 2020-04-17 苏州浪潮智能科技有限公司 A method, device and medium for testing network function in BMC NCSI adaptive mode
CN111078476A (en) * 2019-10-25 2020-04-28 苏州浪潮智能科技有限公司 Network card drive firmware stability test method, system, terminal and storage medium
CN111327722A (en) * 2020-02-29 2020-06-23 苏州浪潮智能科技有限公司 Conflict detection method, system, terminal and storage medium for static IP and dynamic IP
CN111478824A (en) * 2020-03-20 2020-07-31 苏州浪潮智能科技有限公司 A method, device and system for testing power consumption of network card
CN111901187A (en) * 2020-06-19 2020-11-06 浪潮电子信息产业股份有限公司 Test method, device, equipment and storage medium
CN111934945A (en) * 2020-07-10 2020-11-13 浪潮电子信息产业股份有限公司 A test method and system for plugging and unplugging a BMC sharelink network port
CN112272112A (en) * 2020-10-22 2021-01-26 浪潮商用机器有限公司 Automatic testing method and system for network configuration of BMC (baseboard management controller) management interface
CN112866061A (en) * 2021-01-26 2021-05-28 浪潮电子信息产业股份有限公司 NCSI (network control information system) testing method, device, equipment and medium of onboard network port
CN113872832A (en) * 2021-09-29 2021-12-31 中科可控信息产业有限公司 BMC network Bond function detection method and device, electronic device and storage medium
CN115242696A (en) * 2022-07-26 2022-10-25 浪潮(山东)计算机科技有限公司 Network card test environment building method, device and medium
CN116192686A (en) * 2023-02-22 2023-05-30 宁畅信息产业(北京)有限公司 BMC stability test method, device, equipment and medium
CN116208495A (en) * 2022-12-26 2023-06-02 超聚变数字技术有限公司 Network performance tuning method, BMC and server

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051490A (en) * 2012-11-26 2013-04-17 浪潮电子信息产业股份有限公司 Method for carrying out startup and shutdown testing on blade server
CN103973515A (en) * 2014-05-12 2014-08-06 浪潮电子信息产业股份有限公司 Network card stability testing method
CN104618187A (en) * 2015-02-02 2015-05-13 浪潮电子信息产业股份有限公司 Method for testing functional integrity of NCSI network card on line
CN104899120A (en) * 2015-05-27 2015-09-09 浪潮电子信息产业股份有限公司 Server stability testing method based on BMC (baseboard management controller) startup and shutdown functions
CN105471673A (en) * 2015-11-19 2016-04-06 浪潮电子信息产业股份有限公司 Batch automatic test method for server BMC dedicated network port and shared network port
US20170228237A1 (en) * 2016-02-08 2017-08-10 Dell Products L.P. Systems and methods for configuring bootable network target for boot in a single reboot
CN107257303A (en) * 2017-07-28 2017-10-17 郑州云海信息技术有限公司 A kind of method for carrying out automatic detection to network interface card in server system restarting process
CN109039829A (en) * 2018-09-18 2018-12-18 郑州云海信息技术有限公司 A kind of network card performance testing method, apparatus, terminal and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051490A (en) * 2012-11-26 2013-04-17 浪潮电子信息产业股份有限公司 Method for carrying out startup and shutdown testing on blade server
CN103973515A (en) * 2014-05-12 2014-08-06 浪潮电子信息产业股份有限公司 Network card stability testing method
CN104618187A (en) * 2015-02-02 2015-05-13 浪潮电子信息产业股份有限公司 Method for testing functional integrity of NCSI network card on line
CN104899120A (en) * 2015-05-27 2015-09-09 浪潮电子信息产业股份有限公司 Server stability testing method based on BMC (baseboard management controller) startup and shutdown functions
CN105471673A (en) * 2015-11-19 2016-04-06 浪潮电子信息产业股份有限公司 Batch automatic test method for server BMC dedicated network port and shared network port
US20170228237A1 (en) * 2016-02-08 2017-08-10 Dell Products L.P. Systems and methods for configuring bootable network target for boot in a single reboot
CN107257303A (en) * 2017-07-28 2017-10-17 郑州云海信息技术有限公司 A kind of method for carrying out automatic detection to network interface card in server system restarting process
CN109039829A (en) * 2018-09-18 2018-12-18 郑州云海信息技术有限公司 A kind of network card performance testing method, apparatus, terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HEDUBIAN: "如何测试网络稳定", 《HTTPS://JINGYAN.BAIDU.COM/ARTICLE/86FAE346BE0D6B3C49121A95.HTML》 *
付品林: "基于隔离网卡的并行测试系统的设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110581786A (en) * 2019-09-10 2019-12-17 浪潮商用机器有限公司 Method, device, system and medium for testing NCSI network connectivity stability
CN111078476A (en) * 2019-10-25 2020-04-28 苏州浪潮智能科技有限公司 Network card drive firmware stability test method, system, terminal and storage medium
CN111030892B (en) * 2019-12-26 2021-10-29 苏州浪潮智能科技有限公司 A method, device and medium for testing network function in BMC NCSI adaptive mode
CN111030892A (en) * 2019-12-26 2020-04-17 苏州浪潮智能科技有限公司 A method, device and medium for testing network function in BMC NCSI adaptive mode
CN111327722A (en) * 2020-02-29 2020-06-23 苏州浪潮智能科技有限公司 Conflict detection method, system, terminal and storage medium for static IP and dynamic IP
CN111327722B (en) * 2020-02-29 2022-12-16 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for conflict detection between static IP and dynamic IP
CN111478824A (en) * 2020-03-20 2020-07-31 苏州浪潮智能科技有限公司 A method, device and system for testing power consumption of network card
CN111901187A (en) * 2020-06-19 2020-11-06 浪潮电子信息产业股份有限公司 Test method, device, equipment and storage medium
CN111934945A (en) * 2020-07-10 2020-11-13 浪潮电子信息产业股份有限公司 A test method and system for plugging and unplugging a BMC sharelink network port
CN112272112A (en) * 2020-10-22 2021-01-26 浪潮商用机器有限公司 Automatic testing method and system for network configuration of BMC (baseboard management controller) management interface
CN112866061A (en) * 2021-01-26 2021-05-28 浪潮电子信息产业股份有限公司 NCSI (network control information system) testing method, device, equipment and medium of onboard network port
CN113872832A (en) * 2021-09-29 2021-12-31 中科可控信息产业有限公司 BMC network Bond function detection method and device, electronic device and storage medium
CN115242696A (en) * 2022-07-26 2022-10-25 浪潮(山东)计算机科技有限公司 Network card test environment building method, device and medium
CN116208495A (en) * 2022-12-26 2023-06-02 超聚变数字技术有限公司 Network performance tuning method, BMC and server
CN116192686A (en) * 2023-02-22 2023-05-30 宁畅信息产业(北京)有限公司 BMC stability test method, device, equipment and medium

Also Published As

Publication number Publication date
CN109802867B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
CN109802867A (en) A kind of method and system for testing network interface card NCSI connective stability
US5996016A (en) Reinitiation of bind calls for IP applications concurrently executing with alternate address
CN108694117B (en) Method and device for managing test environment based on container technology
CN102752137B (en) The apparatus and method of virtual machine network parameter are initiatively set
CN106681924B (en) A kind of method for testing software and system
CN104572372A (en) System and method for building server performance testing environment
CN112783646B (en) Stateful application containerized deployment method and device
WO2022151853A1 (en) Method for switching operating system to execute test task, system and medium
CN104580475A (en) Remote control method, terminal equipment, management server and remote control system
CN101251802A (en) The method of unattended automatic installation of Oracle RAC
CN105867975A (en) Method for refreshing BMC in batches based on LINUX platform
CN105512026A (en) Automatic batch testing method
CN105068900A (en) Testing method for remote control server cold reboot
WO2017028574A1 (en) Router testing method and testing device
CN106649003A (en) Method for automatically testing network card performance based on netperf
CN111786810A (en) A method and system for automatic deployment of large-scale test bed nodes
CN113886153A (en) Container-based network card pressure testing method and device
CN107968816B (en) A method for building a cloud platform using a mobile terminal
CN107395747A (en) A kind of high extended method based on STF platforms
CN113849228A (en) Operating system batch deployment method, system, terminal and storage medium
TW201303615A (en) System and method for configuring a client device
CN107071043A (en) The collocation method and device of a kind of network information
CN113312148A (en) Big data service deployment method, device, equipment and medium
CN110489134B (en) A method and system for deploying a PXE server and a high-performance cluster environment
CN106452890A (en) PXE server automatic configuration method under Ubuntu system

Legal Events

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