- 浏览: 1578563 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
nich002:
原网站失效了。撸主简单粗暴的复制过来,可读性极差!差评!
Apache配置详解(最好的APACHE配置教程) -
107x:
不错,谢谢!
LINUX下查看文件夹下的文件个数! -
Hypereo:
好你妹,连个格式都没有!
Apache配置详解(最好的APACHE配置教程) -
resteater:
代码排版感觉有点乱!收发信息代码可读性不强!请问第一次发服务器 ...
java socket例子 -
resteater:
代码排版感觉有点乱!收发信息代码可读性不强!请问第一次发服务器 ...
java socket例子
http://linux.die.net/man/8/nuttcp
nuttcp - network performance measurement tool nuttcp -h nuttcp is a network performance measurement tool intended for use by network and system managers. Its most basic usage is to determine the raw TCP (or UDP) network layer throughput by transferring memory buffers from a source system across an interconnecting network to a destination system, either transferring data for a specified time interval, or alternatively transferring a specified number of buffers. In addition to reporting the achieved network throughput in Mbps, nuttcp also provides additional useful information related to the data transfer such as user, system, and wall-clock time, transmitter and receiver CPU utilization, and loss percentage (for UDP transfers). nuttcp is based on nttcp, which in turn was an enhancement by someone at Silicon Graphics (SGI) on the original ttcp, which was written by Mike Muuss at BRL sometime before December 1984, to compare the performance of TCP stacks by U.C. Berkeley and BBN to help DARPA decide which version to place in the first BSD Unix release. nuttcp has several useful features beyond those of the basic ttcp/nttcp, such as a server mode, rate limiting, multiple parallel streams, and timer based usage. nuttcp is also continuing to evolve to meet new requirements that arise and to add desired new features. nuttcp has been successfully tested and used on a variety of Solaris, SGI, and PPC/X86 Linux systems, and should probably work fine on most flavors of Unix. There are two basic modes of operation for nuttcp. The original or classic mode is the transmitter/receiver mode, which is also the way the original ttcp and nttcp worked. In this mode, a receiver is first initiated on the destination host using "nuttcp -r", and then a transmitter must be started on the source host using "nuttcp -t". This mode is somewhat deprecated and is no longer recommended for general use. The preferred and recommended mode of operation for nuttcp is the new client/server mode. With this mode, a server is first started on one system using "nuttcp -S" (or "nuttcp -1"), and then a client may either transmit data to (using "nuttcp -t") or receive data from (using "nuttcp -r") the server system. All the information provided by nuttcp is reported by the client, including the information from the server, thus providing a full snapshot of both the transmitter and receiver ends of the data transfer. The server may be started by a normal, non-privileged user by issuing either a "nuttcp -S" or a "nuttcp -1" command. However, the optimal and recommended method of running a server is to run "nuttcp -S" via the inetd/xinetd daemon. This method has several significant advantages, including being more robust, allowing multiple simultaneous connections, and providing for access control over who is allowed to use the nuttcp server via the hosts.allow (and hosts.deny) file. By default, the nuttcp server listens for commands on port 5000, and the actual nuttcp data transfers take place on port 5001. The host parameter must be specified for the transmitter, and provides the host name or IP address of the receiver. In classic transmitter/receiver mode, the host parameter may not be specified for the receiver. In client/server mode, when the client is the receiver, the host parameter specifies the host name or IP address of the transmitter (server). Normally, a nuttcp data transfer is memory-to-memory. However, by using the "-s" option, it is possible to also perform memory-to-disk, disk-to-memory, and disk-to-disk data transfers. Using the "-s" option with the transmitter will cause nuttcp to read its data from the standard input instead of using a prefabricated memory buffer, while using the "-s" option on the receiver causes nuttcp to write its data to standard output. All these types of data transfers are possible with the classic transmitter/receiver mode. For security reasons, the "-s" option is disabled on the server, so it is not possible to access the disk on the server side of a data transfer. The allowed options to nuttcp are: Print out a usage statement. Running nuttcp with no arguments will also produce a usage statement. -V Prints the nuttcp version number. The nuttcp version is also printed as part of the normal nuttcp output when the "-v" verbose output is used (but not when using the default brief output). In client/server mode, the version number of both the client and server is identified. -t Indicates that this nuttcp is the transmitter. In client/server mode, this means the server specified by the host parameter is the receiver. -r Indicates that this nuttcp is the receiver. In client/server mode, this means the server specified by the host parameter is the transmitter. -S Indicates that this nuttcp is the server. The only option that may be specified to the server is the "-P" option, which allows one to change the control port used by the server, but only when the server is started by a normal, non-privileged user. When the server is initiated by inetd/xinetd, the server control port should be specified in the services file. -1 Basically the same as the "-S" option, but indicates a one-shot server, i.e. the server exits after the first data transfer initiated by a client. The "-1" option should only be used when the server is started by a normal, non-privileged user. This option will probably rarely need to be used, but can be useful for a quick test and eliminates the possibilty of leaving a non-access controlled nuttcp server running on the system (which can happen when using the "-S" option and forgetting to kill the nuttcp server after finishing a series of tests). -b Produce brief one-line output, which includes the amount of data transferred in MB (1024**2 bytes), the time interval in seconds, the TCP (or UDP) network throughput in Mbps (millions of bits per second), the transmitter and/or receiver CPU utilization, and for UDP data transfers also outputs the loss percentage. In client/server mode, most of the printed statistics are from the viewpoint of the receiver. This is the default output format. -B This option is only valid for the receiver, and forces the receiver to read a full buffer (as specified by the "-l" buffer length option) from the network. It is mainly intended to be used with the "-s" option to only output full buffers to standard output (e.g. for use with tar). It is also implicitly set whenever the number of streams as specified by the "-N" option is greater than 1. This option is not passed to the server. -d For TCP data transfers, sets the SO_DEBUG option on the data socket. This option is not passed to the server. It is a rarely used option which may possibly be removed or renamed in a future version of nuttcp. -D This option is only valid for the transmitter, and only for TCP data transfers, in which case it sets the TCP_NODELAY option on the data socket, which turns off the Nagle algorithm causing data packets to be sent as soon as possible without introducing any unnecessary delays. This option is not passed to the server. It is a rarely used option which may possibly be removed or renamed in a future version of nuttcp. -s Setting the "-s" option causes nuttcp to either read its data from standard input rather than using prefabricated memory buffers (for "nuttcp -t"), or to write its data out to standard output (for "nuttcp -r"). The "-s" option is disabled for security reasons on the server. -u Use UDP for the data transfer instead of the default of TCP. -v Verbose output that provides some additional information related to the data transfer. In client/server mode, the server is always verbose (implicit "-v" option), but the client controls the extent and type of output via the "-v" and "-b" options. Normally, to conserve memory, the transmitter only sets the TCP send socket buffer size and the receiver only sets the TCP receive socket buffer size. However, if the "-wb" option is used, the transmitter will also set the TCP receive socket buffer size and the receiver will also set the TCP send socket buffer size. Under normal circumstances, this should never be necessary. This option was implemented because certain early braindead Solaris 2.8 systems would not properly set the TCP window size unless both the TCP send and receive socket buffer sizes were set (later Solaris 2.8 systems have corrected this deficiency). Thus the 'b' in this option can stand either for "braindead" or "both". Under Construction For now, consult the README file for basic usage guidelines. Under Construction For now, see the examples.txt file for some examples of using nuttcp. ping(8), traceroute(8), tracepath(8), pathchar(8), netstat(1), mtrace(8) Developed by Bill Fink based on nttcp which in turn was an enhancement of the original ttcp developed by Mike Muuss at BRL. IPv6 capability and some other fixes and enhancements contributed by Rob Scott. Many useful suggestions and testing performed by Phil Dykstra and others. The current version is available via anonymous ftp from: Please send bug reports to nuttcp-bugs@lcp.nrl.navy.mil.Name
Synopsis
nuttcp -V
nuttcp -t [ -bdDsuv ] [ -cdscp_value ] [ -lbuffer_len ] [ -nnum_bufs ]
nuttcp -1 [ -Pcontrol_port ]Description
Options
Usage
Examples
See Also
Authors
Bugs
发表评论
-
SHELL重定向【转】
2011-08-23 09:51 1739From:http://hi.baidu.com/fywsp/ ... -
NodeJs相关资料
2011-08-18 14:55 3018NodeJs获取参数: proces ... -
使用Shell对数字按照出现次数排序
2011-02-11 18:57 2197今天遇到一个需求: 在一个文本中有上万的i ... -
shell脚本整理
2009-11-13 12:36 2429fdisk -l mkfs.ext2 /dev/ ... -
php socket链接超时问题
2009-09-16 13:50 2943今天处理一个流程时发现使用HTTP/client.php连接时 ... -
wget手册 wget命令使用方法
2009-07-17 20:24 1647From: http://jimey.com/2009/03/ ... -
CentOS笔记:svn命令行使用说明
2009-06-09 12:14 2325From: http://www.svn8.com/SVNSY ... -
LINUX下查看文件夹下的文件个数!
2009-05-16 20:41 21212From:http://hi.baidu.com/biduo/ ... -
使用wget获取一个需要登陆的页面
2009-05-07 19:07 4023应用判断是否一个用户是否登录主要是通过cookie,而浏 ... -
linux脚本技巧总结
2009-04-27 17:29 1380chown mysql:mysql -R abc 修改 ... -
telnet退出的命令
2009-03-26 19:41 10970折腾了半天总算知道如何退出telnet了,很简单:ctrl+] ... -
Linux下常用压缩格式的压缩与解压方法
2009-02-25 21:39 1183From:http://www.21ds.net/articl ... -
TRACEROUTE的介绍与功能
2009-02-20 23:24 1401From: http://www.linkwan.com/gb ... -
apache + resin的多机部署方案实现方法
2009-02-19 11:29 1250From:http://www.cppblog.com/coo ... -
Linux系统利用Crontab命令实现定时重启
2009-02-18 19:09 1540From: http://tech.sina.com.cn/ ... -
linux下常用压缩格式的压缩与解压方法
2008-11-07 13:54 996From: http://doc.linuxpk.com/19 ... -
Linux下Resin+JSP+MySQL的安装和配置
2008-11-07 10:37 1611From: http://www.webjx.com/html ... -
linux下安装软件
2008-11-07 10:08 1376yum介绍:http://www.onlyblog.com/b ... -
linux的read命令[z]
2008-09-19 10:03 11300From: http://www.linuxsense.or ... -
Tree命令
2008-08-07 15:03 1781用来获取文件目录结构,在window下的用法为:tree bl ...
相关推荐
nuttcp探针烟熏的IP性能探头 。 可用于简单的带宽测量,或使用不同的特性来模拟不同类型的IP流量。 例如用于SIP的RTP媒体,不同QoS类别内的性能等。 设置测试时,请进行一些计算,以便您确信它们不会重叠。 如果对...
iperf3还具有其他工具(例如nuttcp和netperf)中发现的许多功能,但是原始iperf中却没有这些功能。 例如,其中包括零复制模式和可选的JSON输出。 注意,iperf3与原始iperf向后不兼容。 iperf3的主要开发在CentOS ...
戈本 goben是一个golang工具,用于测量主机之间的TCP / UDP传输层吞吐量。... 后来我找到了另一个名为nuttcp的惊人工具。 可以在这里阅读有关nepim和nuttcp的信息: nepim和nuttcp 。 goben旨在解决nepim的缺点:
UDP测试可以使用nuttcp、hping3等工具进行。 在"Tcp_Udp测试"这个压缩包中,可能包含了一些用于TCP和UDP通信测试的工具或者示例代码,用于帮助开发者理解这两种协议的工作原理,或者评估特定网络环境下的性能。这些...