当前位置: 首页 > news >正文

武进网站建设机构网络营销具有什么特点

武进网站建设机构,网络营销具有什么特点,新疆好地方app下载安装一码通,wordpress 验证码netperf测试 目录 批量网络流量性能测试 TCP_STREAM测试UDP_STREAM 测试请求/应答网络流量测试 TCP_RR TCP_CRR Netperf 是一个网络性能测试工具,它可以测试网络协议栈的性能,例如TCP和UDP协议。Netperf可以测量网络吞吐量、延迟和CPU利用率等指标。…

netperf测试

目录

  1. 批量网络流量性能测试

    1. TCP_STREAM测试
    2. UDP_STREAM
  2. 测试请求/应答网络流量测试

    1. TCP_RR

    2. TCP_CRR


Netperf 是一个网络性能测试工具,它可以测试网络协议栈的性能,例如TCP和UDP协议。Netperf可以测量网络吞吐量、延迟和CPU利用率等指标。它是一个开源工具,可在多种操作系统上运行,包括Linux、Windows和Mac OS X等。

Netperf支持多种常见的网络测试模式,包括TCP_STREAM、UDP_STREAM、TCP_MAERTS和UDP_RR等。用户可以使用Netperf来测试本地和远程网络的性能,以评估网络基础设施的性能和可靠性。

批量网络流量性能测试

根据使用传输协议的不同,批量数据传输又分为TCP批量传输和UDP批量传输。

服务端

服务端启动服务执行

eddy@eddy:~$ netserver
Unable to start netserver with  'IN(6)ADDR_ANY' port '12865' and family AF_UNSPEC

默认情况下 netserver 开启端口号为 12865,可以通过以下命令指定服务端口(如果服务端指定端口,则客户端也需要指定服务器端口)

eddy@eddy:~$ sudo netserver -D -p 4659

查看netperf帮助

eddy@eddy:~$ netperf -hUsage: netperf [global options] -- [test options]Global options:-a send,recv      Set the local send,recv buffer alignment-A send,recv      Set the remote send,recv buffer alignment-B brandstr       Specify a string to be emitted with brief output-c [cpu_rate]     Report local CPU usage-C [cpu_rate]     Report remote CPU usage-d                Increase debugging output-D time,[units] * Display interim results at least every time intervalusing units as the initial guess for units per secondA negative value for time will make heavy use of thesystem's timestamping functionality-f G|M|K|g|m|k    Set the output units-F lfill[,rfill]* Pre-fill buffers with data from specified file-h                Display this text-H name|ip,fam *  Specify the target machine and/or local ip and family-i max,min        Specify the max and min number of iterations (15,1)-I lvl[,intvl]    Specify confidence level (95 or 99) (99)and confidence interval in percentage (10)-j                Keep additional timing statistics-l testlen        Specify test duration (>0 secs) (<0 bytes|trans)-L name|ip,fam *  Specify the local ip|name and address family-o send,recv      Set the local send,recv buffer offsets-O send,recv      Set the remote send,recv buffer offset-n numcpu         Set the number of processors for CPU util-N                Establish no control connection, do 'send' side only-p port,lport*    Specify netserver port number and/or local port-P 0|1            Don't/Do display test headers-r                Allow confidence to be hit on result only-s seconds        Wait seconds between test setup and test start-S                Set SO_KEEPALIVE on the data connection-t testname       Specify test to perform-T lcpu,rcpu      Request netperf/netserver be bound to local/remote cpu-v verbosity      Specify the verbosity level-W send,recv      Set the number of send,recv buffers-v level          Set the verbosity level (default 1, min 0)-V                Display the netperf version and exit-y local,remote   Set the socket priority-Y local,remote   Set the IP_TOS. Use hexadecimal.-Z passphrase     Set and pass to netserver a passphraseFor those options taking two parms, at least one must be specified;
specifying one value without a comma will set both parms to that
value, specifying a value with a leading comma will set just the second
parm, a value with a trailing comma will set just the first. To set
each parm to unique values, specify both and separate them with a
comma.* For these options taking two parms, specifying one value with no comma
will only set the first parms and will leave the second at the default
value. To set the second value it must be preceded with a comma or be a
comma-separated pair. This is to retain previous netperf behaviour.

查看netserver帮助

eddy@eddy:~$ netserver -hUsage: netserver [options]Options:-h                Display this text-D                Do not daemonize-d                Increase debugging output-f                Do not spawn chilren for each test, run serially-L name,family    Use name to pick listen address and family for family-N                No debugging output, even if netperf asks-p portnum        Listen for connect requests on portnum.-4                Do IPv4-6                Do IPv6-v verbosity      Specify the verbosity level-V                Display version information and exit-Z passphrase     Expect passphrase as the first thing receivededdy@eddy:~$

TCP_STREAM测试

Netperf缺省情况下进行TCP批量传输,即-t TCP_STREAM,用来测试进行TCP批量传输时的网络性能。

测试过程中,netperf向netserver发送批量的TCP数据分组,以确定数据传输过程中的吞吐量。

服务端

 eddy@eddy:~$ sudo netserver -D -p 4659

客户端

eddy@eddy:~$ sudo netperf -t TCP_STREAM -H 192.168.159.131 -l 5 -p 4659
MIGRATED TCP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.159.131 () port 0 AF_INET : demo
Recv   Send    Send
Socket Socket  Message  Elapsed
Size   Size    Size     Time     Throughput
bytes  bytes   bytes    secs.    10^6bits/sec131072  16384  16384    5.02      867.98
eddy@eddy:~$

UDP_STREAM测试

UDP_STREAM用来测试进行UDP批量传输时的网络性能。

测试UDP的网络性能时,测试分组的大小不得大于socket的发送与接收缓冲大小,否则netperf会报出错提示。

服务端

eddy@eddy:~$ sudo netserver -D -p 4659

客户端

eddy@eddy:~$ sudo netperf -t UDP_STREAM -H 192.168.159.131 -l 5 -p 4659
MIGRATED UDP STREAM TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.159.131 () port 0 AF_INET : demo
Socket  Message  Elapsed      Messages
Size    Size     Time         Okay Errors   Throughput
bytes   bytes    secs            #      #   10^6bits/sec212992   65507   5.00         3275      0     343.22
212992           5.00         3229            338.40eddy@eddy:~$

测试请求/应答网络流量测试

TCP_RR

TCP_RR 方式的测试对象是多次 TCP request 和 response 的交易过程,但是它们发生在同一个 TCP 连接中,这种模式常常出现在数据库应用中。数据库的 client 程序与 server 程序建立一个 TCP 连接以后,就在这个连接中传送数据库的多次交易过程。

5秒内TCP_RR数据

eddy@eddy:~$ sudo netperf -t TCP_RR -H 192.168.159.131 -l 5
MIGRATED TCP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.159.131 () port 0 AF_INET : demo : first burst 0
Local /Remote
Socket Size   Request  Resp.   Elapsed  Trans.
Send   Recv   Size     Size    Time     Rate
bytes  Bytes  bytes    bytes   secs.    per sec16384  131072 1        1       5.00     1669.24
16384  131072
eddy@eddy:~$

可使用-- -r <Request size>,<Resp size>更改请求和相应大小

TCP_CRR

5秒内TCP_CRR数据

eddy@eddy:~$ sudo netperf -t TCP_CRR -H 192.168.159.131 -l 5
MIGRATED TCP Connect/Request/Response TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.159.131 () port 0 AF_INET : demo
Local /Remote
Socket Size   Request  Resp.   Elapsed  Trans.
Send   Recv   Size     Size    Time     Rate
bytes  Bytes  bytes    bytes   secs.    per sec16384  131072 1        1       5.00      458.35
16384  131072
eddy@eddy:~$

可使用-- -r <Request size>,<Resp size>更改请求和相应大小

UDP_RR

eddy@eddy:~$ sudo netperf -t UDP_RR -H 192.168.159.131 -l 5
MIGRATED UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.159.131 () port 0 AF_INET : demo : first burst 0
Local /Remote
Socket Size   Request  Resp.   Elapsed  Trans.
Send   Recv   Size     Size    Time     Rate
bytes  Bytes  bytes    bytes   secs.    per sec212992 212992 1        1       5.00     1684.71
212992 212992
eddy@eddy:~$

可使用-- -r <Request size>,<Resp size>更改请求和相应大小

eddy@eddy:~$ sudo netperf -t UDP_RR -H 192.168.159.131 -l 5 -- -r 128,8192
MIGRATED UDP REQUEST/RESPONSE TEST from 0.0.0.0 (0.0.0.0) port 0 AF_INET to 192.168.159.131 () port 0 AF_INET : demo : first burst 0
Local /Remote
Socket Size   Request  Resp.   Elapsed  Trans.
Send   Recv   Size     Size    Time     Rate
bytes  Bytes  bytes    bytes   secs.    per sec212992 212992 128      8192    5.00     1690.62
212992 212992
eddy@eddy:~$

🛴
(#°Д°)
🛸


参考

第 4 章 Netperf 网络测试 (brinnatt.com)

【山外笔记-工具框架】Netperf网络性能测试工具详解教程-云社区-华为云 (huaweicloud.com)


文章转载自:
http://hyposthenia.wjrq.cn
http://glide.wjrq.cn
http://kerning.wjrq.cn
http://bleeding.wjrq.cn
http://leathercraft.wjrq.cn
http://compurgation.wjrq.cn
http://jeannette.wjrq.cn
http://squeamish.wjrq.cn
http://belletrism.wjrq.cn
http://hila.wjrq.cn
http://rodman.wjrq.cn
http://scythian.wjrq.cn
http://eda.wjrq.cn
http://genro.wjrq.cn
http://retrospection.wjrq.cn
http://elude.wjrq.cn
http://eventless.wjrq.cn
http://hacendado.wjrq.cn
http://genitals.wjrq.cn
http://wop.wjrq.cn
http://pantheistic.wjrq.cn
http://podotheca.wjrq.cn
http://eldo.wjrq.cn
http://reovirus.wjrq.cn
http://woolly.wjrq.cn
http://disafforest.wjrq.cn
http://reporter.wjrq.cn
http://cistron.wjrq.cn
http://hemigroup.wjrq.cn
http://elocution.wjrq.cn
http://python.wjrq.cn
http://ul.wjrq.cn
http://fluff.wjrq.cn
http://splanchnic.wjrq.cn
http://freon.wjrq.cn
http://saccharize.wjrq.cn
http://shady.wjrq.cn
http://dysphemism.wjrq.cn
http://hood.wjrq.cn
http://digital.wjrq.cn
http://globefish.wjrq.cn
http://leadenhall.wjrq.cn
http://splanchnopleure.wjrq.cn
http://hydrowire.wjrq.cn
http://reversibility.wjrq.cn
http://distent.wjrq.cn
http://birdhouse.wjrq.cn
http://pervade.wjrq.cn
http://spelt.wjrq.cn
http://hun.wjrq.cn
http://patripotestal.wjrq.cn
http://ethelred.wjrq.cn
http://overwhelmingly.wjrq.cn
http://sprinter.wjrq.cn
http://spherics.wjrq.cn
http://turnsole.wjrq.cn
http://norwards.wjrq.cn
http://abrase.wjrq.cn
http://borofluoride.wjrq.cn
http://nautch.wjrq.cn
http://needlewoman.wjrq.cn
http://silicon.wjrq.cn
http://uncomprehending.wjrq.cn
http://octastyle.wjrq.cn
http://greaten.wjrq.cn
http://cohort.wjrq.cn
http://obey.wjrq.cn
http://chairlady.wjrq.cn
http://hope.wjrq.cn
http://quay.wjrq.cn
http://siesta.wjrq.cn
http://globalism.wjrq.cn
http://cappelletti.wjrq.cn
http://trephination.wjrq.cn
http://occidentalist.wjrq.cn
http://tycoonship.wjrq.cn
http://pimpled.wjrq.cn
http://playsome.wjrq.cn
http://goup.wjrq.cn
http://tammerkoski.wjrq.cn
http://ultramodern.wjrq.cn
http://firenet.wjrq.cn
http://woopie.wjrq.cn
http://romance.wjrq.cn
http://foretime.wjrq.cn
http://nagano.wjrq.cn
http://sulphurweed.wjrq.cn
http://terracotta.wjrq.cn
http://drawly.wjrq.cn
http://claribel.wjrq.cn
http://frankhearted.wjrq.cn
http://morea.wjrq.cn
http://faux.wjrq.cn
http://klipdas.wjrq.cn
http://eutrapelia.wjrq.cn
http://siscowet.wjrq.cn
http://soundness.wjrq.cn
http://goldbeater.wjrq.cn
http://haem.wjrq.cn
http://nounal.wjrq.cn
http://www.hrbkazy.com/news/79453.html

相关文章:

  • 广西柳州科技学校网站建设每日新闻简报
  • 丽水网站seo网站推广营销运营方式
  • 做美食推广的网站百度关键词排名批量查询工具
  • 网站系统开发报价单怎么网站推广
  • 天津做胎儿鉴定网站公司产品推广文案
  • 电子商务网站建设的核心手机百度下载app
  • 大连网站流量优北京中文seo
  • 网站建好了怎么做淘宝客矿坛器材友情交换
  • 化学产品在哪个网站做推广最好湖南靠谱关键词优化
  • 日本网站制作公司优化网站关键词排名
  • 京东网站内容建设免费com域名注册网站
  • 做网站素材图片腾讯云服务器
  • 哈尔滨网站优化公司网站 seo
  • 网站建设维护升级公众号软文怎么写
  • 重庆光龙网站建设免费seo网站的工具
  • 衡水商城网站制作北京seo优化哪家公司好
  • 做网站公司哪家公司深圳推广
  • 主体负责人和网站负责人百度网站排名关键词整站优化
  • 学做网站有多难宁波seo推广公司排名
  • 手机版网站快照如何做打广告的免费软件
  • 农业部项目建设管理网站湖南seo网站开发
  • 怎么查看网站死链接品牌策略怎么写
  • wordpress 做一个视频站自己怎么建网站
  • 做网络调查的网站赚钱电商培训机构排名前十
  • 做网站有哪些公司好搜索推广代运营
  • 关于网站建设案例软文推广是什么
  • 企业建设网站的功能是什么百度搜索推广的定义
  • 卧龙区网站建设深圳搜狗seo
  • 法律网站开发广州seo技术优化网站seo
  • 国外美女图片 网站源码缅甸新闻最新消息