惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
V2EX - 技术
V2EX - 技术
T
Threat Research - Cisco Blogs
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
T
Tor Project blog
Project Zero
Project Zero
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
P
Privacy & Cybersecurity Law Blog
AWS News Blog
AWS News Blog
Scott Helme
Scott Helme
C
Cisco Blogs
Application and Cybersecurity Blog
Application and Cybersecurity Blog
O
OpenAI News
P
Privacy International News Feed
Google Online Security Blog
Google Online Security Blog
SecWiki News
SecWiki News
The Last Watchdog
The Last Watchdog
NISL@THU
NISL@THU
Attack and Defense Labs
Attack and Defense Labs
G
GRAHAM CLULEY
Security Latest
Security Latest
Help Net Security
Help Net Security
C
Cyber Attacks, Cyber Crime and Cyber Security
Hugging Face - Blog
Hugging Face - Blog
月光博客
月光博客
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
Arctic Wolf
Security Archives - TechRepublic
Security Archives - TechRepublic
S
Security @ Cisco Blogs
腾讯CDC
S
Secure Thoughts
WordPress大学
WordPress大学
P
Proofpoint News Feed
H
Help Net Security
Simon Willison's Weblog
Simon Willison's Weblog
小众软件
小众软件
M
MIT News - Artificial intelligence
博客园 - 叶小钗
IT之家
IT之家
G
Google Developers Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Google DeepMind News
Google DeepMind News
N
News and Events Feed by Topic
N
News and Events Feed by Topic

博客园 - 衡子

Ubuntu24.04更改SSH端口 记录安装过程 Azure CLI创建管理员用户 创建VMSS中的instance 创建不带公网IP的VM Azure LSv3系列VM 自动挂载NVMe本地磁盘 Azure AD访问Azure Storage Azure Linux VM使用Managed Identity获取Key-vault的Secret Azure AD SSO with Google Cloud Identity 通过VM SWAP OS DISK升级VM 通过API获取Azure KeyVault Securet Azure Front Door添加自定义域名 Azure获取access token的方法 VM间记录时延 Windows Terminal的一些配置 安装hping Azure解除不再使用Directory的关联 使用VSCode Remote Containers功能实现开发环境统一 Azure AKS容器网络详解
VM间网络PPS和带宽测试
衡子 · 2021-12-28 · via 博客园 - 衡子

VM间的网络PPS能力测试一般采用netperf/iperf或ntttcp这些工具实现。监控端一般采用nmon和nload这些工具。

1 pps测试

这个测试中采用netperf ,netperf的安装如下:

wget https://github.com/vtrocelab/./netperf-2.7.0/raw/master/./netperf-2.7.0.tar.gz                                                                                                            tar.gz
tar xzvf ./netperf-2.7.0.tar.gz
cd ./netperf-2.7.0
apt-get install gawk
apt-get install gcc
apt-get install make
./configure
make && make install

安装nmon:

开启netperf服务端:

开启netperf客户端:

cat nettest.sh 
#!/bin/bash
netperf -H 10.148.0.2  -t UDP_STREAM -l 300 -- -m 1 -R 1 &
...
netperf -H 10.148.0.2  -t UDP_STREAM -l 300 -- -m 1 -R 1 &

起多个netperf的客户端进程进行测试。

在服务端开启nmon,n键网络,c键CPU使用情况:

可以看到网络的pps和网络带宽:

pps为4.6Mpps,带宽为195111*8=1.56Gbps

 2 带宽测试

带宽测试可以采用ntttcp或iperf实现。

ntttcp安装:

apt-get -y install build-essential  
apt-get -y  install git
git clone https://github.com/Microsoft/ntttcp-for-linux
ntttcp-for-linux/src/
make & make install

ntttcp服务端:

ntttcp客户端:

ntttcp -s10.148.0.2 -t 300

测试结果如下:

用nload也可以查看,但数值略小:

通过iperf也可以测试带宽,iperf安装:

iperf服务端:

iperf客户端,32个进程跑60秒:

iperf -c 10.148.0.2 -P 32 -t 60

跑完后,可以看到带宽总结:

通过网络相关工具,可以方便的测试VM间的各种网络指标。