NAT Throughput

  1. Throughput(吞吐量)表示的是 NAT 每秒能處理的資料量。
  2. NAT 的 Throughput 是 LAN-to-WAN 的 Throughput,而不是 LAN-to-LAN。LAN 是指內部網路,WAN 則是外部網路。為測試 LAN-to-WAN,要在 NAT 內外測試端都安裝 Throughput 測試工具 iperf 安裝。
    [root@dyw219 ~]# yum install iperf -y
    
    [root@deyu ~]# yum install iperf -y
    
  3. 外部測試機作為 iperf server 並啟動。
    [root@dyw219 ~]# iperf -s
    ------------------------------------------------------------
    Server listening on TCP port 5001
    TCP window size: 85.3 KByte (default)
    ------------------------------------------------------------
    
  4. 內部測試機作為 iperf client 並連上外部測試機,測得速度每秒 109Mbytes,頻寬 91.5 Mbits/sec。
    [root@deyu ~]# iperf -c 163.17.27.219
    ------------------------------------------------------------
    Client connecting to 163.17.27.219, TCP port 5001
    TCP window size: 16.0 KByte (default)
    ------------------------------------------------------------
    [  3] local 192.168.1.148 port 34471 connected with 163.17.27.219 port 5001
    [ ID] Interval       Transfer     Bandwidth
    [  3]  0.0-10.0 sec   109 MBytes  91.5 Mbits/sec
    
  5. 回到外部 iperf server,同樣可以觀察到近似的結果。
    [root@dyw219 ~]# iperf -s
    ------------------------------------------------------------
    Server listening on TCP port 5001
    TCP window size: 85.3 KByte (default)
    ------------------------------------------------------------
    [  4] local 163.17.27.219 port 5001 connected with 120.110.10.84 port 34471
    [ ID] Interval       Transfer     Bandwidth
    [  4]  0.0-10.1 sec   109 MBytes  90.6 Mbits/sec