CN109460334A - A kind of network interface card bit error rate automatic test device and method - Google Patents
A kind of network interface card bit error rate automatic test device and method Download PDFInfo
- Publication number
- CN109460334A CN109460334A CN201811346895.9A CN201811346895A CN109460334A CN 109460334 A CN109460334 A CN 109460334A CN 201811346895 A CN201811346895 A CN 201811346895A CN 109460334 A CN109460334 A CN 109460334A
- Authority
- CN
- China
- Prior art keywords
- test
- error rate
- network interface
- bit error
- interface card
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
- G06F11/2221—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention discloses a kind of network interface card bit error rate automatic test device and method, which includes: the automatic execution module of preparation routine before testing: for executing the preparation routine before test automatically;Testing time preserving module: for saving time when test;The bit error rate grabs preserving module: for grabbing and saving the bit error rate;Time interval setup module: for the time interval of the crawl bit error rate to be arranged;The automatic execution module of program after test: for program after execution test automatically.The present invention does not need the operation of complexity before isolated operation test, has saved the testing time.Error rate test can be within a specified time grabbed in test process, without real time monitoring, save manpower.
Description
Technical field
The present invention relates to network interface card testing fields, and in particular to a kind of network interface card bit error rate automatic test device and method.
Background technique
More operation is needed in network interface card error rate test, before test, is generally completed at present by manual operation, it is time-consuming to take
Power.In addition, though test when will record the bit error rate as a result, but not monitor in real time, if the variation of error rate value makes in test
Manually real-time monitoring is more time-consuming.
Summary of the invention
To solve the above problems, the present invention provides a kind of network interface card bit error rate automatic test device and method, reduction is manual
Operation monitors the bit error rate in real time, improves testing efficiency.
The technical scheme is that a kind of network interface card bit error rate automatic test device, comprising:
The automatic execution module of preparation routine before testing: for executing the preparation routine before testing automatically;
Testing time preserving module: for saving time when test;
The bit error rate grabs preserving module: for grabbing and saving the bit error rate;
Time interval setup module: for the time interval of the crawl bit error rate to be arranged;
The automatic execution module of program after test: for program after execution test automatically.
Further, the automatic execution module of preparation routine includes: before the test
Submodule is opened in mst service: for opening mst service;
Absolute path grabs submodule: for grabbing the absolute path of network interface card;
Historical record, which is deleted, saves submodule: for importing absolute path, deleting and saving the error rate test before test
Historical record;
Troubleshooting information inspection saves submodule: for importing absolute path, and checking and saves
Troubleshooting information;
First network interface send and receive packets information scratching saves submodule: before testing, crawl network interface send and receive packets statistical information is simultaneously
It saves;
Submodule is arranged in crawl number: for the number of crawl network interface send and receive packets statistical information to be arranged.
Further, the automatic execution module of program includes: after the test
Mec information scratching submodule: for grabbing mec information to be debugged;
Second network interface send and receive packets information scratching saves submodule: after testing, crawl network interface send and receive packets statistical information is simultaneously
It saves.
Further, the network interface card is Mellanox network interface card.
The present invention also provides a kind of network interface card bit error rate automated testing methods, comprising:
Update trawl performance and firmware;
Mft tool and iperf tool are installed;
Run iperf pressure test;
Automatized script is run, error rate test is carried out, grabs the bit error rate during the test.
Further, the operation automatized script carries out error rate test, grabs the bit error rate during the test, wraps
It includes:
The automatic preparation routine executed before test;
Save time when test;
The time interval of the crawl bit error rate is set;
It grabs and saves the bit error rate;
Automatic program after executing test.
Further, the preparation routine before the automatic execution test, comprising:
Open mst service;
Grab the absolute path of network interface card;
Absolute path is imported, and checks and save Troubleshooting information;
Absolute path is imported, delete and saves the error rate test historical record before test;
According to set crawl number, before testing, grabs network interface send and receive packets statistical information and save.
Further, program after the automatic execution test, comprising:
Mec information is grabbed to be debugged;
After test, grabs network interface send and receive packets statistical information and save.
Network interface card bit error rate automatic test device provided by the invention and method do not need the preceding complexity of isolated operation test
Operation, has saved the testing time.Error rate test can be within a specified time grabbed in test process, without real time monitoring, section
Manpower is saved.
Detailed description of the invention
Fig. 1 is one structural schematic block diagram of the specific embodiment of the invention.
Fig. 2 is two method flow schematic diagram of the specific embodiment of the invention.
Specific embodiment
The present invention will be described in detail with reference to the accompanying drawing and by specific embodiment, and following embodiment is to the present invention
Explanation, and the invention is not limited to following implementation.
During network interface card error rate test, the operation needed before test is more, and can not monitor mistake in test process in real time
Code rate numerical value change is tested time-consuming and laborious.The present invention operates the bit error rate operation before test with the bit error rate in test process
It is arranged, realizes automated execution, manual operation is reduced to most short, completion bit error rate operation quickly and efficiently.
Embodiment one
As shown in Figure 1, the present embodiment provides a kind of network interface card bit error rate automatic test devices, comprising:
The automatic execution module 1 of preparation routine before testing: for executing the preparation routine before testing automatically;
Testing time preserving module 2: for saving time when test;
The bit error rate grabs preserving module 3: for grabbing and saving the bit error rate;
Time interval setup module 4: for the time interval of the crawl bit error rate to be arranged;
The automatic execution module 5 of program after test: for program after execution test automatically.
Wherein, the automatic execution module 1 of preparation routine includes following submodule before testing, for executing the standard before testing automatically
Standby work:
Submodule 1-1 is opened in mst service: for opening mst service;
Absolute path grabs submodule 1-2: for grabbing the absolute path of network interface card;
Historical record, which is deleted, saves submodule 1-3: for importing absolute path, deleting and saves the bit error rate before test and survey
Try historical record;
Troubleshooting information inspection saves submodule 1-4: for importing absolute path, and checking and saves
Troubleshooting information;
First network interface send and receive packets information scratching saves submodule 1-5: before testing, grabbing network interface send and receive packets statistical information
And it saves;
Submodule 1-6 is arranged in crawl number: for the number of crawl network interface send and receive packets statistical information to be arranged.
Wherein, the automatic execution module 6 of program includes following submodule after test, for program after execution test automatically:
Mec information scratching submodule 6-1: for grabbing mec information to be debugged;
Second network interface send and receive packets information scratching saves submodule 6-2: after testing, grabbing network interface send and receive packets statistical information
And it saves.
The present apparatus can carry out error rate test to Mellanox network interface card, and test is more efficiently and quick.
Embodiment two
As shown in Fig. 2, the present embodiment provides a kind of network interface card bit error rate automated testing methods, comprising the following steps:
S1: trawl performance and firmware are updated;
It should be noted that updating the trawl performance and network interface card FW of network interface card according to test request, after restarting, confirmation just makes
The version that trawl performance and network interface card FW are needed with test is consistent.
S2: installation mft tool and iperf tool;
Mft tool is related to the absolute path of equipment for obtaining in subsequent commands;Iperf tool is tested for network interface card
When need operational network pressure.
S3: operation iperf pressure test;
It should be noted that need to be run when iperf network stress test when test, need first to close service
The firewall at end and the end client.And the iperf service at the end service is opened, while the end client carries out iperf survey
Examination.
S4: operation automatized script carries out error rate test, grabs the bit error rate during the test.
It should be noted that this method passes through operation automatized script, Lai Shixian error rate test, the beam worker before test
Work can be realized by script, and grab the bit error rate during the test.
Specifically includes the following steps:
S4-1: the automatic preparation routine executed before test;
S4-2: time when test is saved;
S4-3: the time interval of the setting crawl bit error rate;
S4-4: grabbing and saves the bit error rate;
S4-5: automatic program after executing test.
Wherein, the preparation routine that step S4-1 executes before test automatically specifically includes:
S4-1-1: mst service is opened;
S4-1-2: the absolute path of network interface card is grabbed;
S4-1-3: absolute path is imported, and checks and save Troubleshooting information;
S4-1-4: importing absolute path, deletes and saves the error rate test historical record before test;
S4-1-5: it according to set crawl number, before testing, grabs network interface send and receive packets statistical information and saves.
Wherein, program specifically includes after step S4-5 executes test automatically:
S4-5-1: crawl mec information is to be debugged;
S4-5-2: it after test, grabs network interface send and receive packets statistical information and saves.
Further to be explained to the present invention, automatized script is illustrated below.
Content for script is as follows:
#!/bin/bash
Mst start > > link.log " opens mst service "
DEV=`mst status | grep mst | the absolute path of awk-F " " ' { print $ 1 } ' ` " capture apparatus "
Mlxlink-d $ DEV-e | tee-a link.log " imports absolute path, checks Troubleshooting Info
Information simultaneously saves "
Imlxlink-d $ DEV--pc | tee-a link.log " imports absolute path, the error rate test before deleting test
Historical record simultaneously saves "
Ethtool-S enp23s0 | before tee-a nic_before.log " test, grab network interface send and receive packets statistical information
And save "
For i in { 1..* } " No. * be crawl number "
do
Date | tee-a nic.log " saves the time at this time "
Mlxlink-d $ DEV-c | tee-a link.log " the crawl bit error rate simultaneously saves "
Sleep# " No. # is the interval time for grabbing the bit error rate "
done
Mlxlink-d $ DEV-mec | tee-a mec.log " grabs mec information to be debugged "
Ethtool-S enp23s0 | after tee-a nic_after.log " test, crawl network interface send and receive packets statistical information is simultaneously
It saves "
Disclosed above is only the preferred embodiment of the present invention, but the present invention is not limited to this, any this field
What technical staff can think does not have creative variation, and without departing from the principles of the present invention made by several improvement and
Retouching, should all be within the scope of the present invention.
Claims (8)
1. a kind of network interface card bit error rate automatic test device characterized by comprising
The automatic execution module of preparation routine before testing: for executing the preparation routine before testing automatically;
Testing time preserving module: for saving time when test;
The bit error rate grabs preserving module: for grabbing and saving the bit error rate;
Time interval setup module: for the time interval of the crawl bit error rate to be arranged;
The automatic execution module of program after test: for program after execution test automatically.
2. network interface card bit error rate automatic test device according to claim 1, which is characterized in that prepare journey before the test
The automatic execution module of sequence includes:
Submodule is opened in mst service: for opening mst service;
Absolute path grabs submodule: for grabbing the absolute path of network interface card;
Historical record, which is deleted, saves submodule: for importing absolute path, deleting and saving the error rate test history before test
Record;
Troubleshoot ing information inspection saves submodule: for importing absolute path, and checking and saves
Troubleshoot ing information;
First network interface send and receive packets information scratching saves submodule: before testing, grabbing network interface send and receive packets statistical information and saves;
Submodule is arranged in crawl number: for the number of crawl network interface send and receive packets statistical information to be arranged.
3. network interface card bit error rate automatic test device according to claim 1, which is characterized in that after the test program from
Dynamic execution module includes:
Mec information scratching submodule: for grabbing mec information to be debugged;
Second network interface send and receive packets information scratching saves submodule: after testing, grabbing network interface send and receive packets statistical information and saves.
4. according to claim 1,2 or 3 described in any item network interface card bit error rate automatic test devices, which is characterized in that described
Network interface card is Mel lanox network interface card.
5. a kind of network interface card bit error rate automated testing method characterized by comprising
Update trawl performance and firmware;
Mft tool and iperf tool are installed;
Run iperf pressure test;
Automatized script is run, error rate test is carried out, grabs the bit error rate during the test.
6. network interface card bit error rate automated testing method according to claim 5, which is characterized in that the operation automates foot
This, carries out error rate test, grabs the bit error rate during the test, comprising:
The automatic preparation routine executed before test;
Save time when test;
The time interval of the crawl bit error rate is set;
It grabs and saves the bit error rate;
Automatic program after executing test.
7. network interface card bit error rate automated testing method according to claim 6, which is characterized in that described automatic to execute test
Preceding preparation routine, comprising:
Open ms t service;
Grab the absolute path of network interface card;
Absolute path is imported, and checks and save Troubleshoot ing information;
Absolute path is imported, delete and saves the error rate test historical record before test;
According to set crawl number, before testing, grabs network interface send and receive packets statistical information and save.
8. network interface card bit error rate automated testing method according to claim 6, which is characterized in that described automatic to execute test
Program afterwards, comprising:
Mec information is grabbed to be debugged;
After test, grabs network interface send and receive packets statistical information and save.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811346895.9A CN109460334B (en) | 2018-11-13 | 2018-11-13 | Automatic testing device and method for network card error rate |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811346895.9A CN109460334B (en) | 2018-11-13 | 2018-11-13 | Automatic testing device and method for network card error rate |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109460334A true CN109460334A (en) | 2019-03-12 |
CN109460334B CN109460334B (en) | 2022-02-18 |
Family
ID=65610284
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811346895.9A Active CN109460334B (en) | 2018-11-13 | 2018-11-13 | Automatic testing device and method for network card error rate |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109460334B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140362895A1 (en) * | 2013-06-06 | 2014-12-11 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. | Method, program product, and test device for testing bit error rate of network module |
CN104375914A (en) * | 2014-11-24 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Automatic testing method for internal pressure change of server |
US20170353375A1 (en) * | 2016-06-03 | 2017-12-07 | Ebay Inc. | Application program interface endpoint monitoring |
CN108304286A (en) * | 2018-01-17 | 2018-07-20 | 杭州当虹科技有限公司 | A kind of system and method carrying out automatic test to transcoding server concurrency performance |
-
2018
- 2018-11-13 CN CN201811346895.9A patent/CN109460334B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140362895A1 (en) * | 2013-06-06 | 2014-12-11 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. | Method, program product, and test device for testing bit error rate of network module |
CN104375914A (en) * | 2014-11-24 | 2015-02-25 | 浪潮电子信息产业股份有限公司 | Automatic testing method for internal pressure change of server |
US20170353375A1 (en) * | 2016-06-03 | 2017-12-07 | Ebay Inc. | Application program interface endpoint monitoring |
CN108304286A (en) * | 2018-01-17 | 2018-07-20 | 杭州当虹科技有限公司 | A kind of system and method carrying out automatic test to transcoding server concurrency performance |
Non-Patent Citations (2)
Title |
---|
A. BRINKMANN 等: "A Microdriver Architecture for Error Correcting Codes inside the Linux Kernel", 《ACM》 * |
罗耀荣 等: "基于FSK调制方式的2.4GHz无线Mesh网卡的设计与实现", 《设计与实现》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109460334B (en) | 2022-02-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103812726B (en) | Automated testing method and device for data communication equipment | |
CN107291565B (en) | Operation and maintenance visual automatic operation platform and implementation method | |
CN102693183A (en) | Method and system for realizing automatic software testing | |
CN106992903A (en) | A kind of data collecting system and method based on the network equipment | |
CN112084008B (en) | Method for rapidly deploying cloud pipe system based on container technology | |
CN113849244B (en) | Configuration method for realizing custom service scene based on orchestration engine | |
CN107634860A (en) | A kind of weblogic clusters patch batch automatically updating method | |
CN109344071A (en) | The method for automatically generating LoadRunner performance test script | |
CN104895547A (en) | Intelligent mobile monitoring and full-automatic maintenance method and device of electric control system of drilling machine | |
CN104778118A (en) | Improvement method for automatic testing technology | |
CN108776625A (en) | A kind of restorative procedure of service fault, device and storage medium | |
CN106161144A (en) | Method for testing network performance of Smart Rack cabinet server | |
CN104572428A (en) | Complicated control testing method based on windows operating system | |
CN104123397A (en) | Automatic test device and method for Web page | |
CN111800299A (en) | Operation maintenance system and method of edge cloud | |
KR100794130B1 (en) | Automatic Function Testing Equipment for Application Software and Additional Service of Mobile Communication Terminal | |
CN109460334A (en) | A kind of network interface card bit error rate automatic test device and method | |
CN106686134A (en) | Non-intrusive fiber link cloud monitoring system and method | |
CN107911410B (en) | Distributed service process resource consumption statistical method and device | |
CN113672502A (en) | Program multi-system testing method and corresponding device, equipment and medium | |
CN113626306A (en) | Jenkins-based BMC automatic testing method and device | |
CN104915291B (en) | Terminal restarts verification method and system | |
CN105827462A (en) | Method and tool for detecting network device | |
CN112860555B (en) | Software remote upgrading verification testing device and method | |
CN102520370B (en) | Server switching power supply testing method and server switching power supply testing device |
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 |