iperf 测试 - 10/100 路由器结果与千兆交叉相同

iperf 测试 - 10/100 路由器结果与千兆交叉相同

正在测试我的 Ubuntu Server 14.04 和 Windows 8.1 笔记本电脑之间的速度。Ubuntu 服务器最近安装了新的 10/100/1000 千兆网卡,一切运行正常,ifconfig 中显示 10/100/100。

因此我通过 10/100 路由器进行了 iperf 测试,速度为 86Mbits/s——足够好了。

然后我使用电缆将笔记本电脑直接连接到服务器,两个以太网卡均配置为千兆位......结果相同...... 86Mbits/s。

我们是否正在查看这里所需的某种形式的软件配置,或者我是否正在做一些明显错误的事情?


Iperf Dump-通过 10/100 路由器

------------------------------------------------------------
Client connecting to 192.168.0.48, TCP port 5001
TCP window size: 63.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.11 port 52708 connected with 192.168.0.48 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   103 MBytes  86.6 Mbits/sec

Iperf Dump - 交叉,均运行 10/100/1000 千兆卡

------------------------------------------------------------
Client connecting to 192.168.0.48, TCP port 5001
TCP window size: 63.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.11 port 52744 connected with 192.168.0.48 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec   104 MBytes  87.0 Mbits/sec

Ubuntu Server 14.04-ethtool,lshw 输出

 server@mediaserver:~$ ethtool eth1
   Settings for eth1:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Half 1000baseT/Full
        Advertised pause frame use: Symmetric Receive-only
        Advertised auto-negotiation: Yes
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
        Link partner advertised pause frame use: Transmit-only
        Link partner advertised auto-negotiation: Yes
        Speed: 100Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
   Cannot get wake-on-lan settings: Operation not permitted
        Current message level: 0x00000033 (51)
                               drv probe ifdown ifup
        Link detected: yes
$ lshw -C network
*-network:0
       description: Ethernet interface
       product: RTL8169 PCI Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:06:00.0
       logical name: eth1
       version: 10
       serial: 14:cc:20:04:1a:5e
       size: 100Mbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 66MHz
       capabilities: pm bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.0.48 latency=64 link=yes maxlatency=64 mingnt=32 multicast=yes port=MII speed=100Mbit/s
       resources: irq:21 ioport:b800(size=256) memory:ff921000-ff9210ff memory:ff900000-ff91ffff

Windows 8.1-wmic 转储

C:\Users\Nick>wmic NIC where NetEnabled=true get Name, Speed
Name                                Speed
Realtek PCIe GBE Family Controller  100000000

大小和容量有什么区别?服务器的大小和容量应该是1Gbits吗?

答案1

Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                     100baseT/Half 100baseT/Full

这意味着连接的另一端没有宣传千兆位能力。在这种情况下,可能就是您的 Windows 8 笔记本电脑,Windows 命令输出确实只显示 100 Mbit/s 的速度。修理您的笔记本电脑。

大小和容量有什么区别?服务器的大小和容量应该是1Gbits吗?

大小是实际连接速度,容量是服务器在该接口上可以支持的容量。如果连接的两端都支持 1G,则两端都是 1G。

相关内容