首页 > 其他分享 >使用nc进行tcp测速

使用nc进行tcp测速

时间:2022-12-08 19:46:43浏览次数:37  
标签:count 1024 eg nc dev tcp bs 测速

# server
nc -l IP PORT > /dev/null

eg: nc -l 192.168.144.1 8080 > /dev/null
# client bs单位块大小 count块数量,bs不要太大不然内存不够
dd if=/dev/zero bs=10485760 count=1024 | nc IP PORT

eg: dd if=/dev/zero bs=10485760 count=1024 | nc 192.168.144.1 8080

output: 
	1024+0 records in
	1024+0 records out
	10737418240 bytes (11 GB) copied, 15.9945 s, 671 MB/s

标签:count,1024,eg,nc,dev,tcp,bs,测速
From: https://www.cnblogs.com/oscar2960/p/16967085.html

相关文章