Computer Networks/Ping/Performance test

From Wikiversity
Jump to navigation Jump to search

The ping command has an option to configure the length or size of the buffer to be transmitted. These activities will show you how to use the ping command with a custom packet length to test network performance.

Preparation[edit | edit source]

To prepare for this activity:

  1. Start Windows.
  2. Log in if necessary.

Activity 1 - Ping the Default Gateway with a Custom Packet Length[edit | edit source]

To ping the default gateway with a custom packet length:

  1. Open a command prompt.
  2. Use ipconfig to display the default gateway address. Note the Default Gateway displayed.
  3. Type ping -l 64000 <default gateway address> where <default gateway address> is the default gateway address displayed above. For example, if the default gateway address was, you would type ping -l 64000 Then press Enter.
  4. Observe the results.

Activity 2 - Ping the Default Gateway with a Custom Packet Length Until Terminated[edit | edit source]

To ping the default gateway with a custom packet length until terminated:

  1. Type ping -t -l 64000 <default gateway address> and press Enter. Note the addition of the -t option to continue until terminated.
  2. Observe the results.
  3. Press Ctrl + C to terminate the command.

Activity 3 - Test Network Performance[edit | edit source]

Note: The following activity may adversely impact network performance for all users on the network. Only perform this activity on a personal or test/lab network.

To test network performance:

  1. Repeat Activity 2 in multiple command prompts at the same time. Sixteen concurrent command prompts would generate approximately one megabyte of data sent and received per second.
  2. Observe the results. On slow hosts or slow networks you will start to see the response time increase and network performance degree as you open and run more ping commands. When you start to see "Request timed out." or similar response, you have reached capacity for the given hosts and network.
  3. Close each command prompt to terminate the commands and complete this activity.

Readings[edit | edit source]

References[edit | edit source]