测试环境
- Cisco Catalyst WS2960G-8TC-L,系统版本c2960-lanbasek9-mz.150-2.SE11
- 四台电脑,均千兆网卡
配置
交换机:
首先需要设置sdm prefer lanbase-routing
然后重启。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
version 15.0 no service pad service timestamps debug datetime msec service timestamps log datetime msec ! system mtu routing 1500 ip routing ! spanning-tree mode pvst spanning-tree extend system-id ! vlan internal allocation policy ascending ! interface GigabitEthernet0/1 switchport mode access spanning-tree portfast ! interface GigabitEthernet0/2 switchport access vlan 2 switchport mode access spanning-tree portfast ! interface GigabitEthernet0/3 switchport access vlan 3 switchport mode access spanning-tree portfast ! interface GigabitEthernet0/4 switchport mode access spanning-tree portfast ! interface GigabitEthernet0/5 spanning-tree portfast ! interface GigabitEthernet0/6 spanning-tree portfast ! interface GigabitEthernet0/7 spanning-tree portfast ! interface GigabitEthernet0/8 spanning-tree portfast ! interface Vlan1 ip address 192.168.1.1 255.255.255.0 ! interface Vlan2 ip address 192.168.2.1 255.255.255.0 ! interface Vlan3 ip address 192.168.3.1 255.255.255.0 ! |
四台电脑分别配置IP地址192.168.1.2,192.168.1.3,192.168.2.2,192.168.3.2,随机选择两台启动iperf3服务器,两台作为iperf3客户端。
测试结果
- 两个单线程iperf3 session同时开始,一个跑到了931Mbps,另一个跑到了830Mbps
- 都打开20线程,一个能跑到894Mbps,另一个能跑735Mbps
注
部分电脑使用的是USB 3.0千兆网卡,以及其中有一组服务器和客户端运行在Windows上,对测试结果有所影响。