The Link Speed test case is designed to verify the data transmit/receive functionality on different link speed modes supported by the switch. The network card speed of SUT and TM need to be higher than the switch ports they are connected to.
The Link Speed test case running environment can be schematically represented as shown in the following figure.
Figure 9 Link Speed Test Case
The following example displays how to set up Link Speed test case.
For a switch, there are three VLANS: VLAN1, VLAN2 and VLAN3:
. show vlan VLAN Name Status Ports ---- -------------------------------- --------- ------------ 5 VLAN1 active Gi1/1, Gi1/2 30 VLAN2 active Gi1/11, Gi1/12 40 VLAN3 active Gi1/21, Gi1/22 The switch administration port IP address for VLAN1: .show int vlan 5 Vlan5 is up, line protocol is up Hardware is Ethernet SVI, address is c471.fe8b.9bff (bia c471.fe8b.9bff) Internet address is 192.168.1.10/24 MTU 9198 bytes, BW 1000000 Kbit, DLY 10 usec, ? ? The switch port speed configuration: .show int Gi1/11 GigabitEthernet1/11 is up, line protocol is up (connected) ... ... Full-duplex, 1000Mb/s, link type is auto, media type is 10/100/1000-TX ... ...
For SUT, there are three links net0, net1, net2 which has to be configured as test links.
root@solairs:~# ifconfig -a net0: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 5 inet 192.168.1.10 netmask ffffff00 broadcast 192.168.1.255 ether 0:10:e0:46:5c:f9 net1: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 8 inet 192.168.10.10 netmask ffffff00 broadcast 192.168.10.255 ether 0:10:e0:46:5c:fa net2: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 9 inet 192.168.11.10 netmask ffffff00 broadcast 192.168.11.255 ether 0:10:e0:46:5c:fb The ethernet network switch certification test configuration file on SUT: root@solairs:~# cat /opt/SUNWhcts/etc/switch.conf ... ... # Link Speed testing # Argument 1: SUT NIC IP Address # Argument 2: TM NIC IP Address # Example: LS 10.10.40.10 10.10.40.11 LS 192.168.10.10 192.168.10.11 LS 192.168.11.10 192.168.11.11 ... ...
For TM, there are two links net0 and net1 which has to be configured as test links.
root@solairs:~# ifconfig -a net0: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 112 inet 192.168.10.11 netmask ffffff00 broadcast 192.168.10.255 ether 0:10:e0:10:15:c7 net1: flags=100001000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,PHYSRUNNING> mtu 1500 index 113 inet 192.168.11.11 netmask ffffff00 broadcast 192.168.11.255 ether 0:10:e0:10:15:c8