Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the bandwidth Test of Gigabit Network Card under CentOS

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "how to realize the bandwidth test of gigabit network card under CentOS". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Iperf is a pure bandwidth testing software based on Cramp S model, which can test the throughput of network cards.

The advantage of iperf is pure packet sending and receiving, preventing the hard drive from dragging its feet and affecting the test results.

In this paper, the gigabit network card Bcom 5720 is tested and the environment CentOS 6.4x64 is used.

Install iperf on both machines

Yum install iperf-enablerepo=epel

Start as a server in one of them, and open firewall port 5001

Iperf-s-I 1-w 448k

The startup result is as follows:

Server listening on TCP port 5001

TCP window size: 448 KByte

On the other, connect to the server as a client and test for 10 minutes

Iperf-c 10.10.10.22-I 1-w 448k-t 600

At this point, the server displays the following information

[4] local 10.10.10.22 port 5001 connected with 10.10.10.11 port 56251

[ID] Interval Transfer Bandwidth

[4] 0-1.0 sec 112 MBytes 941 Mbits/sec

[4] 1.0-2.0 sec 112 MBytes 941 Mbits/sec

[4] 2.0-3.0 sec 112 MBytes 941 Mbits/sec

[4] 3.0-4.0 sec 112 MBytes 941 Mbits/sec

[4] 4.0-5.0 sec 112 MBytes 941 Mbits/sec

[4] 5.0-6.0 sec 112 MBytes 941 Mbits/sec

[4] 6.0-7.0 sec 112 MBytes 941 Mbits/sec

[4] 7.0-8.0 sec 112 MBytes 941 Mbits/sec

The client message is

3] 46.0-47.0 sec 112 MBytes 942 Mbits/sec

[ID] Interval Transfer Bandwidth

[3] 47.048.0 sec 112 MBytes 941 Mbits/sec

[ID] Interval Transfer Bandwidth

[3] 48.0-49.0 sec 112 MBytes 942 Mbits/sec

[ID] Interval Transfer Bandwidth

[3] 49.0-50.0 sec 112 MBytes 941 Mbits/sec

[ID] Interval Transfer Bandwidth

[3] 50.0-51.0 sec 112 MBytes 942 Mbits/sec

[ID] Interval Transfer Bandwidth

[3] 51.0-52.0 sec 112 MBytes 941 Mbits/sec

[ID] Interval Transfer Bandwidth

[3] 52.0-53.0 sec 112 MBytes 941 Mbits/sec

[ID] Interval Transfer Bandwidth

[3] 53.0-54.0 sec 112 MBytes 942 Mbits/sec

[ID] Interval Transfer Bandwidth

[3] 54.0-55.0 sec 112 MBytes 941 Mbits/sec

The above information shows that the current transmission speed of the network card is about 940Mbit/s, which is close to the theoretical speed 1G/s, the download speed 112M/s, and also close to the theoretical speed 125M/s. The above statistical results are also displayed through cacti bandwidth monitoring.

At this point, the gigabit network card is verified.

In addition, there are many possible reasons that affect bandwidth:

1. The switch is 100 megabytes and the communication hub.

2. The gigabit network card works in 100-megabit mode, and none of the machines involved in the test can work at 100-megabit.

3. Testing with real hard disk files, the speed of the hard disk slows down.

This is the end of the content of "how to achieve Gigabit Network Card bandwidth Test under CentOS". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report