CN109450722A - The test method of network interface card rate under a kind of linux system - Google Patents

The test method of network interface card rate under a kind of linux system Download PDF

Info

Publication number
CN109450722A
CN109450722A CN201811166472.9A CN201811166472A CN109450722A CN 109450722 A CN109450722 A CN 109450722A CN 201811166472 A CN201811166472 A CN 201811166472A CN 109450722 A CN109450722 A CN 109450722A
Authority
CN
China
Prior art keywords
test
network interface
interface card
linux system
rate under
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
CN201811166472.9A
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.)
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 CN201811166472.9A priority Critical patent/CN109450722A/en
Publication of CN109450722A publication Critical patent/CN109450722A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The test method of network interface card rate under a kind of linux system proposed by the present invention, by installing testing tool iperf automatically, iperf test script is run, it is not necessary in addition installation manually, all test edit commands are setting completion while installation tool, meet the testing requirement under all situations.Test result can be automatically saved after iperf test script end of run, ensure that the stable state of test environment, and without guard, automatically saves test result, recording test time and log.Automation is fully achieved, it is succinct, time saving, easy to operate, manpower is saved, the automatic test of Servers-all is applicable in.The present invention is suitable for any server, is applicable in the red cap of x86 framework and Centos operating system.The method achieve automation survey, and automate debugging, be easy to use, be conducive to promotion production quality.

Description

The test method of network interface card rate under a kind of linux system
Technical field
The present invention relates to network card performance testing technical field, network interface card speed under more particularly to a kind of linux system The test method of rate.
Background technique
Network interface card is one of the hardware of computer indispensability, is first of critical point of computer communication, and the performance of network interface card determines Receive and transmit the quality of communication service.The performance test of network interface card be brand computer communication services before important leverage.
With the development of information technology and network technology, mass memory and high speed network of the various applications to server data More stringent requirements are proposed for transmission, and then the requirement to network interface card transmission rate also increasingly improves, and therefore, carries out network interface card rate test It is product necessary testing process before factory.
All processor platform servers of industry at present generally use manual mode respectively to each of network interface card before factory Network interface is connected to and carries out rate test, and the testing time is longer, the higher cost of human resources, moreover, once finding the problem can not Automatically it is debugged.
Summary of the invention
In view of the above problems, the purpose of the present invention is to provide a kind of test method of network interface card rate under linux system, energy Enough realize carries out network interface card rate test in a manner of succinct, time saving, automatic, greatly reduce time and human resources at This.
The present invention to achieve the above object, is achieved through the following technical solutions: the survey of network interface card rate under a kind of linux system Method for testing includes the following steps:
Step 1: building linux system test platform, and logged in using ROOT user;
Step 2: respectively at the end Service and the end client configuration of IP, and making both ends can be with intercommunication;
Step 3: operation terminal terminal program carries out rate at the end Service and the input test order of the end client respectively Test;
Step 4: saving test result, determine the theoretical value of each network interface rate;
Step 5: judging whether test result reaches the theoretical value of network interface rate;If so, step 6 is gone to, if not, going to step Rapid 7;
Step 6: test passes through, and obtains network interface card information;
Step 7: test does not pass through, and is transferred to system adjustment and optimization test.
Further, the step 1 includes: adjustment BIOS option, it is ensured that network interface card performance reaches 90%, installs Redhat system And driving, close Linux firewall.
Further, before the step 2 further include: copy ipef tool on linux system desktop to.
Further, the step 2 includes: to configure the network interface at the end Service and the end client using order iptables-F IP, it is ensured that network interface can be logical with Ping.
Further, the step 3 includes:
The end Service executes order ./iperf.sh 1.1.1.1TCP/UDP service;
The end client executes order ./iperf.sh 1.1.1.1TCP/UDP client.
Further, it is 900M, the theoretical value of 10,000,000,000 network interfaces that the theoretical value of the network interface rate, which includes: gigabit network interface theoretical value, For 9.0kM.
Further, the step 6 includes: to check test log file, obtains the exception information in test process.
Further, the step 6 further include: check/var/log/messages file, obtain the record that reports an error.
The prior art is compared, the beneficial effects of the invention are that: network interface card rate under a kind of linux system proposed by the present invention Test method runs iperf test script by installing testing tool iperf automatically, it is not necessary in addition installation manually, all surveys Examination edit commands is setting completion while installation tool, meets the testing requirement under all situations.
Test result can be automatically saved after iperf test script end of run, ensure that the stable state of test environment, and Without guard, test result, recording test time and log are automatically saved.Fully achieve automation, succinct, time saving, easy behaviour Make, saves manpower, be applicable in the automatic test of Servers-all.
The present invention is suitable for any server, is applicable in the red cap of x86 framework and Centos operating system.The method achieve Automation survey, and automate debugging, be easy to use, be conducive to promotion production quality.
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
Attached drawing 1 is the method flow diagram of the embodiment of the present invention one.
Attached drawing 2 is the method flow diagram of the embodiment of the present invention two.
Specific embodiment
It explains with reference to the accompanying drawing to a specific embodiment of the invention.
Embodiment one:
The test method of network interface card rate, includes the following steps: under a kind of linux system as shown in Figure 1
Step 1: building linux system test platform, and logged in using ROOT user.
Step 2: respectively at the end Service and the end client configuration of IP, and making both ends can be with intercommunication.
Step 3: operation terminal terminal program carries out at the end Service and the input test order of the end client respectively Rate test.
Step 4: saving test result, determine the theoretical value of each network interface rate.
Step 5: judging whether test result reaches the theoretical value of network interface rate;If so, step 6 is gone to, if not, turning To step 7.
Step 6: test passes through, and obtains network interface card information.
Step 7: test does not pass through, and is transferred to system adjustment and optimization test.
The test method of network interface card rate under a kind of linux system that the present embodiment proposes, by installing testing tool automatically, Run test script, it is not necessary in addition installation, all test edit commands are setting completion while installation tool manually, Meet the testing requirement under all situations.
Embodiment two:
The test method of network interface card rate, includes the following steps: under a kind of linux system as shown in Figure 2
Step 1: adjustment BIOS option, it is ensured that network interface card performance reaches 90%, installs Redhat system and driving, closes Linux firewall, and logged in using ROOT user.
Step 2: ipef tool is copied on linux system desktop.
Step 3: using order iptables-F, configuring the network interface IP at the end Service and the end client, it is ensured that network interface can be with Ping is logical.
Step 4: operation terminal terminal program executes order ./iperf.sh 1.1.1.1TCP/ at the end Service UDP service executes order ./iperf.sh 1.1.1.1TCP/UDP client at the end client, carries out rate test.
Step 5: saving test result, determine the theoretical value of each network interface rate.
Step 6: judging whether test result reaches the theoretical value of network interface rate;If so, step 7 is gone to, if not, turning To step 8.
Step 7: test passes through, and checks/var/log/messages file, obtains network interface card information and the record that reports an error.
By checking log file, can judge in entire test process tester table whether stable operation, if occur dead The abnormal phenomenon such as machine, power down.
Step 8: test does not pass through, and is transferred to system adjustment and optimization test.
In the present embodiment, it is 900M, the theory of 10,000,000,000 network interfaces that the theoretical value of network interface rate, which includes: gigabit network interface theoretical value, Value is 9.0kM.
The test method of network interface card rate under a kind of linux system that the present embodiment proposes, by installing testing tool automatically Iperf runs iperf test script, can automatically save test result after iperf test script end of run, ensure that test The stable state of environment, and without guard, automatically save test result, recording test time and log.It fully achieves automatic Change, it is succinct, time saving, easy to operate, manpower is saved, the automatic test of Servers-all is applicable in.
On the basis of the above, specific content for script is as follows:
#!/bin/bash
# installs iperf
fi
done
echo$speed
}
function main()
{
#$1serverIP$2TCP/UDP$3server/client
if[!$1]||[!$2]||[!$3]
then
echo"usage$0'serverIP”TCP/UDP”server/client'"
exit 1
fi
setup
If [[$ 3='server']]
Then
server
Elif [[$ 2='TCP']] && [[$ 3='client']]
then
client_TCP
Elif [[$ 2='UDP']] && [[$ 3='client']]
then
client_UDP
else
echo"usage$0'serverIP”TCP/UDP”server/client'"
fi
}
main$1$2$3
With reference to the drawings and specific embodiments, the invention will be further described.It should be understood that these embodiments are merely to illustrate The present invention rather than limit the scope of the invention.In addition, it should also be understood that, after reading the content taught by the present invention, this field Technical staff can make various changes or modifications the present invention, and such equivalent forms equally fall within range defined herein.

Claims (8)

1. the test method of network interface card rate under a kind of linux system, which comprises the steps of:
Step 1: building linux system test platform, and logged in using ROOT user;
Step 2: respectively at the end Service and the end client configuration of IP, and making both ends can be with intercommunication;
Step 3: operation terminal terminal program carries out rate at the end Service and the input test order of the end client respectively Test;
Step 4: saving test result, determine the theoretical value of each network interface rate;
Step 5: judging whether test result reaches the theoretical value of network interface rate;If so, step 6 is gone to, if not, going to step Rapid 7;
Step 6: test passes through, and obtains network interface card information;
Step 7: test does not pass through, and is transferred to system adjustment and optimization test.
2. the test method of network interface card rate under linux system according to claim 1, which is characterized in that step 1 packet It includes: adjustment BIOS option, it is ensured that network interface card performance reaches 90%, installs Redhat system and driving, closes Linux firewall.
3. the test method of network interface card rate under linux system according to claim 1, which is characterized in that in the step 2 Before further include: copy ipef tool on linux system desktop to.
4. the test method of network interface card rate under linux system according to claim 1, which is characterized in that step 2 packet It includes: using order iptables-F, configuring the network interface IP at the end Service and the end client, it is ensured that network interface can be logical with Ping.
5. the test method of network interface card rate under linux system according to claim 3, which is characterized in that step 3 packet It includes:
Order ./iperf.sh 1.1.1.1 TCP/UDP service is executed at the end Service;
Order ./iperf.sh 1.1.1.1 TCP/UDP client is executed at the end client.
6. the test method of network interface card rate under linux system according to claim 1, which is characterized in that the network interface speed The theoretical value of rate includes: that gigabit network interface theoretical value is 900M, and the theoretical value of 10,000,000,000 network interfaces is 9.0kM.
7. the test method of network interface card rate under linux system according to claim 1, which is characterized in that step 6 packet It includes: checking test log file, obtain the exception information in test process.
8. the test method of network interface card rate under linux system according to claim 3, which is characterized in that step 6 packet It includes: checking/var/log/messages file, obtain the record that reports an error.
CN201811166472.9A 2018-10-08 2018-10-08 The test method of network interface card rate under a kind of linux system Pending CN109450722A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811166472.9A CN109450722A (en) 2018-10-08 2018-10-08 The test method of network interface card rate under a kind of linux system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811166472.9A CN109450722A (en) 2018-10-08 2018-10-08 The test method of network interface card rate under a kind of linux system

Publications (1)

Publication Number Publication Date
CN109450722A true CN109450722A (en) 2019-03-08

Family

ID=65546347

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811166472.9A Pending CN109450722A (en) 2018-10-08 2018-10-08 The test method of network interface card rate under a kind of linux system

Country Status (1)

Country Link
CN (1) CN109450722A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995491A (en) * 2019-12-05 2020-04-10 苏州浪潮智能科技有限公司 Method and system for automatically optimizing and testing network pressure
CN111147331A (en) * 2019-12-28 2020-05-12 苏州浪潮智能科技有限公司 Server network card interaction test method, system, terminal and storage medium
CN111355636A (en) * 2020-02-23 2020-06-30 苏州浪潮智能科技有限公司 Test method and system for delay tuning of server network
CN111464378A (en) * 2020-03-13 2020-07-28 苏州浪潮智能科技有限公司 Server network card double-network-speed testing method and system
CN111490909A (en) * 2020-03-08 2020-08-04 苏州浪潮智能科技有限公司 Method for testing server NIC function

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020046642A (en) * 2000-12-15 2002-06-21 구자홍 Apparatus and method for multiple automatic test of internet gateway system
CN105071982A (en) * 2015-07-16 2015-11-18 浪潮电子信息产业股份有限公司 Method for rapid measurement of performance of network card under Linux
CN107948019A (en) * 2017-12-21 2018-04-20 郑州云海信息技术有限公司 A kind of method of automatic test network interface card pressure under linux system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020046642A (en) * 2000-12-15 2002-06-21 구자홍 Apparatus and method for multiple automatic test of internet gateway system
CN105071982A (en) * 2015-07-16 2015-11-18 浪潮电子信息产业股份有限公司 Method for rapid measurement of performance of network card under Linux
CN107948019A (en) * 2017-12-21 2018-04-20 郑州云海信息技术有限公司 A kind of method of automatic test network interface card pressure under linux system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110995491A (en) * 2019-12-05 2020-04-10 苏州浪潮智能科技有限公司 Method and system for automatically optimizing and testing network pressure
CN111147331A (en) * 2019-12-28 2020-05-12 苏州浪潮智能科技有限公司 Server network card interaction test method, system, terminal and storage medium
CN111355636A (en) * 2020-02-23 2020-06-30 苏州浪潮智能科技有限公司 Test method and system for delay tuning of server network
CN111490909A (en) * 2020-03-08 2020-08-04 苏州浪潮智能科技有限公司 Method for testing server NIC function
CN111490909B (en) * 2020-03-08 2022-04-26 苏州浪潮智能科技有限公司 Method for testing server NIC function
CN111464378A (en) * 2020-03-13 2020-07-28 苏州浪潮智能科技有限公司 Server network card double-network-speed testing method and system

Similar Documents

Publication Publication Date Title
CN109450722A (en) The test method of network interface card rate under a kind of linux system
WO2020151483A1 (en) Stress testing system for internet-of-things platform, method, device, and server
CN108768730B (en) Method and device for operating intelligent network card
CN107508727B (en) Automatic network card information checking method and device
CN111211934B (en) Cluster remote communication test method and system
CN113760704A (en) Web UI (user interface) testing method, device, equipment and storage medium
CN106899454B (en) Method and system for automatically testing RoCE performance based on Linux system
CN107229566B (en) Method and system for maintaining functional consistency of SOA service conversion language
CN105071982A (en) Method for rapid measurement of performance of network card under Linux
CN107193699A (en) One kind tests the wide time-delay method of HCA cassette tapes automatically by RDMA modes
CN112463511B (en) Automatic test system and test method for serial port equipment of Internet of things
CN105743707A (en) Method for testing BMC log analyzing function based on Redhat system
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN102868566A (en) Remote speed detection method for network device
CN107566513B (en) Test equipment DOS environmental data acquisition method and system
WO2020147420A1 (en) Application performance data collection method, terminal, computer device, and storage medium
CN105607998A (en) System and method for performing embedded software debug online
WO2021120544A1 (en) Method and apparatus for debugging device
CN111262732A (en) MSP customer-oriented public cloud resource automatic inspection system
CN110730112A (en) Method, system, equipment and storage medium for testing network running speed
CN106649019A (en) Test method for overall automatic PCIE communication quality based on serial port
US20040268318A1 (en) Expert system for intelligent testing
CN110262454A (en) Test macro, the method and device of blower fan control system
CN109522168A (en) A kind of method for testing network interface card performance automatically using netperf under Linux
US20220291283A1 (en) Automatic chip testing system and method

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190308

RJ01 Rejection of invention patent application after publication