Chinaunix首页 | 论坛 | 博客
  • 博客访问: 952282
  • 博文数量: 99
  • 博客积分: 3306
  • 博客等级: 中校
  • 技术积分: 1238
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-21 10:14
文章分类

全部博文(99)

文章存档

2012年(37)

2011年(56)

2010年(6)

分类: LINUX

2010-09-21 23:44:27

RG100A-AA是靠Vlan来分出WAN口和LAN口的。之前在恩山上看到有人鄙视RG100A-AA的这种结构,觉得没有原生的WAN口就是鸡肋,不过我们自己到没有啥感觉,无聊就直接在RG100A-AA下接了2个台式机测试了一下,效果还可以吧。
测试硬件:RG100A-AA,外置天线版,标准配置(32M内存)。
LAN口对LAN口带宽在94M左右,其实也不错了
WAN口到LAN口带宽大概在66M左右,对于大部分人来说这样的性能还是戳戳有余了吧。
LAN口到WIFI就弱了点了,有时有22M左右,有时只有10M左右的带宽。不过从自己下载的情况来看大部分时候是可以稳定在1.5MB/S以上的,也就是占用12Mbits带宽,有时可以在2M/S左右。

iperf的使用很简单
在一个机器上服务端执行:
iper -s 启动服务进程
在另外一个机器执行
iperf -c serverip 就行了。

具体的有很多参数可以设置,比如-f指定显示的单位,-n指定发送的数据量,-w指定缓冲区的大小等等。

Client/Server:
-f, –format    [kmKM]   format to report: Kbits, Mbits, KBytes, MBytes
-i, –interval  #        seconds between periodic bandwidth reports
-l, –len       #[KM]    length of buffer to read or write (default 8 KB)
-m, –print_mss          print TCP maximum segment size (MTU – TCP/IP header)
-o, –output    output the report or error message to this specified file
-p, –port      #        server port to listen on/connect to
-u, –udp                use UDP rather than TCP
-w, –window    #[KM]    TCP window size (socket buffer size)
-B, –bind         bind to , an interface or multicast address
-C, –compatibility      for use with older versions does not sent extra msgs
-M, –mss       #        set TCP maximum segment size (MTU – 40 bytes)
-N, –nodelay            set TCP no delay, disabling Nagle’s Algorithm
-V, –IPv6Version        Set the domain to IPv6

Server specific:
-s, –server             run in server mode
-D, –daemon             run the server as a daemon
-R, –remove             remove service in win32

Client specific:
-b, –bandwidth #[KM]    for UDP, bandwidth to send at in bits/sec
(default 1 Mbit/sec, implies -u)
-c, –client       run in client mode, connecting to
-d, –dualtest           Do a bidirectional test simultaneously
-n, –num       #[KM]    number of bytes to transmit (instead of -t)
-r, –tradeoff           Do a bidirectional test individually
-t, –time      #        time in seconds to transmit for (default 10 secs)
-F, –fileinput    input the data to be transmitted from a file
-I, –stdin              input the data to be transmitted from stdin
-L, –listenport #       port to recieve bidirectional tests back on
-P, –parallel  #        number of parallel client threads to run
-T, –ttl       #        time-to-live, for multicast (default 1)

Miscellaneous:
-h, –help               print this message and quit
-v, –version            print version information and quit

[KM] Indicates options that support a K or M suffix for kilo- or mega-

The TCP window size option can be set by the environment variable
TCP_WINDOW_SIZE. Most other options can be set by an environment variable
IPERF_, such as IPERF_BANDWIDTH.


阅读(2569) | 评论(0) | 转发(1) |
给主人留下些什么吧!~~