Testing a Network Interface by Using the Winsock Performance Test (Windows Embedded CE 6.0)

1/6/2010

You can use the Winsock Performance Test to test any network interface that Winsock supports. Use the following procedure for testing an Ethernet network interface as a model for testing the network interface that you want to test.

The following table shows the hardware requirements for using the Winsock Performance Test to test an Ethernet network interface on a Windows Embedded CE–based device.

Requirements Description

Windows Embedded CE–based device with one network card

A Windows Embedded CE-based device with one network interface installed.

You can optionally install a second network interface over which the Windows Embedded CE–based device communicates with the development workstation running Microsoft Platform Builder and the Windows Embedded CE 6.0 Test Kit (CETK).

Supporting desktop computer with one network card

A Windows–based desktop computer that functions as a supporting desktop computer. On the supporting desktop computer, install an Ethernet network interface that communicates with the tested network interface on the Windows Embedded CE–based device.

Connect the Ethernet network interface on the Windows Embedded CE–based device to a switch to which you also connect the Ethernet network interface for the supporting desktop computer. If the tested interface is a 100-megabits per second (Mbps) adapter, use a 100-Mbps switch and use a 100-Mbps adapter on the supporting desktop computer.

Alternatively, use an Ethernet crossover cable to connect the Ethernet interface on the Windows Embedded CE–based device to the Ethernet interface for the supporting desktop computer.

Optionally, you can use the development workstation on which Platform Builder is installed as the supporting desktop computer. Install two network interfaces on the development workstation. One network interface is the supporting network interface that communicates with the Windows Embedded CE–based device. The second network interface is the interface over which Platform Builder and the CETK communicate with the Windows Embedded CE–based device.

Ethernet hub or switch, or Ethernet crossover cable

If you use a hub or switch, connect to the hub or switch only the target device being tested, the supporting desktop computer, and any other device required by the test. Test results can be significantly affected by sharing the network connection with devices other than those devices used in the test.

To test a network interface by using the Winsock Performance Test

  1. Copy the Perf_winsockd2.exe file from <Platform Builder installation path>\Cepb\Wcetk\Ddtk\Desktop to the supporting desktop computer.

  2. On the supporting desktop computer, run the following command:

    perf_winsockd2 -debug

  3. On the Windows Embedded CE–based device, run the desired test for testing the network interface, as listed in Test Cases for the Winsock Performance Test. For example, to run test 1001, use the following command:

    tux -o -d perf_winsock2 -x 1001 -c"-s server_ip -i ip_version**"**

    - OR -

    If the CETK is connected to the Windows Embedded CE–based device, in the CETK window append -x 1001 -c"-s server_ip -i ip_version**"** to the default command line for the test, then run the test.

Note

If desired, you can append -q udp_recv_queue to the above commands to set the UDP receive queue size.

For information about editing the command line for a test, see Editing the Command-Line for a Test. For information about running a single test, see Running a Single Test in the CETK.

See Also

Other Resources

Winsock Performance Test