The ping command

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

The ping command

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which command checks whether another device replies and how long it takes?
A ping 8.8.8.8
B print 8.8.8.8
2. What does ping send to the other device?
A A copy of all your files
B A small test message
3. Reply time in a ping result is measured in which unit?
A Megabytes (MB)
B Milliseconds (ms)
4. Which ping command uses a domain name instead of an IP address?
A ping google.com
B ping = google.com
5. A ping shows 'Request timed out'. What does this mean?
A No reply came back in time
B The reply came back very fast

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1ping 8.8.8.8 AThe device answered and the round trip took 24 milliseconds
2Reply from 8.8.8.8: time=24ms BThere is no space between the command and the address, so the computer reads it as one unknown word. It should be ping 8.8.8.8.
3Ping can test a website by using its domain name instead of an IP address CSends a test message to the IP address 8.8.8.8 and reports whether it replied
4A ping that gets no answer shows a message saying the request timed out Dping example.com
5ping8.8.8.8 EThe IP address has only three numbers. An IPv4 address needs four parts, such as 8.8.8.8, so ping cannot find a real device.
6ping 8.8.8 FRequest timed out.

Definitions

ping address

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
____ 8.8.8.8
2.
ping 8.8.8.8 Reply from 8.8.8.8: time=24__
3.
ping 8.8.8.8 Request _________.
4.
____ example.com
5.
ping 8.8.8.8 Reply from _______: bytes=32 time=24ms

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A ping 8.8.8.8
B Reply from 8.8.8.8: time=14ms
C Reply from 8.8.8.8: time=15ms
D Reply from 8.8.8.8: time=13GB
Question 2
A ping google.com
B Reply from 142.250.1.1: 20ms
C ping http://www.example.com
Question 3
A ping 192.168.1.50
B Request timed out.
C Request timed out.
D Sent=2, Received=2, Lost=2
Question 4
A ping 8.8.8.8
B Reply from 8.8.4.4: time=9ms
C Reply from 8.8.8.8: time=11ms
Question 5
A ping 192.168.1.1
B Reply from 192.168.1.1: 3ms
C ping 8.8.8.256

Answer Key

The ping command
Section A: Quick Questions
Q1
A — ping 8.8.8.8
Q2
B — A small test message
Q3
B — Milliseconds (ms)
Q4
A — ping google.com
Q5
A — No reply came back in time
Section B: Match the Pairs
Q1
ping 8.8.8.8 → Sends a test message to the IP address 8.8.8.8 and reports whether it replied
Q2
Reply from 8.8.8.8: time=24ms → The device answered and the round trip took 24 milliseconds
Q3
Ping can test a website by using its domain name instead of an IP address → ping example.com
Q4
A ping that gets no answer shows a message saying the request timed out → Request timed out.
Q5
ping8.8.8.8 → There is no space between the command and the address, so the computer reads it as one unknown word. It should be ping 8.8.8.8.
Q6
ping 8.8.8 → The IP address has only three numbers. An IPv4 address needs four parts, such as 8.8.8.8, so ping cannot find a real device.
Section C: Definitions
Q1
ping address — A command that sends a small test message to another device and reports whether it replied and how long the reply took in milliseconds. Example: ping 8.8.8.8
Section D: Fill in the Blanks
Q1
ping 8.8.8.8
Q2
ping 8.8.8.8 Reply from 8.8.8.8: time=24ms
Q3
ping 8.8.8.8 Request timed out.
Q4
ping example.com
Q5
ping 8.8.8.8 Reply from 8.8.8.8: bytes=32 time=24ms
Section E: Spot the Error
Q1
D — Ping reports reply time in milliseconds (ms), not gigabytes. It should be time=13ms.
Q2
C — Ping needs a domain name or IP address, not a full URL. Remove http:// and write ping www.example.com.
Q3
D — Both requests timed out, so no replies came back. It should say Received=0, Lost=2.
Q4
B — The reply must come from the address that was pinged. It should be Reply from 8.8.8.8, not 8.8.4.4.
Q5
C — Each part of an IPv4 address can only be 0 to 255, so 256 is invalid. It should be ping 8.8.8.8.