COMPSCI 356 Computer Network Architecture: Lab 2 - Test Cases

Test Cases

We will use the following test cases to grade your code. For client, each test case deserves 2 point. For server1 and server2, each test case deserves 1 point.

1. client ping -c 3 192.168.2.2
2. client traceroute -n 192.168.2.2
3. client wget http://192.168.2.2
4. client ping -c 3 172.64.3.1
5. client wget http://192.168.2.1

6. server1 ping -c 3 172.64.3.10
7. server1 traceroute -n 172.64.3.10
8. server1 wget http://172.64.3.10
9. server1 ping -c 3 10.0.1.1
10. server1 ping -c 3 172.64.3.11

11. server2 ping -c 3 10.0.1.100
12. server2 traceroute -n 10.0.1.100
13. server2 ping -c 3 192.168.2.1
14. server2 ping -c 3 10.0.1.101
15. server2 wget http://10.0.1.1
            

Sample output

For each test case, you will see the following output if your code works well.

Test case1:

mininet> client ping -c 3 192.168.2.2
PING 192.168.2.2 (192.168.2.2) 56(84) bytes of data.
64 bytes from 192.168.2.2: icmp_req=1 ttl=63 time=244 ms
64 bytes from 192.168.2.2: icmp_req=2 ttl=63 time=63.1 ms
64 bytes from 192.168.2.2: icmp_req=3 ttl=63 time=77.9 ms

--- 192.168.2.2 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 63.127/128.651/244.875/82.405 ms
            

Test case2:

mininet> client traceroute -n 192.168.2.2
traceroute to 192.168.2.2 (192.168.2.2), 30 hops max, 60 byte packets
    1  10.0.1.1  17.845 ms  18.577 ms  19.526 ms
    2  192.168.2.2  204.687 ms  204.985 ms  205.163 ms
            

Test case3:

mininet> client wget http://192.168.2.2
--2018-03-04 14:27:43--  http://192.168.2.2/
Connecting to 192.168.2.2:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 161 [text/html]
Saving to: `index.html'

        0K                                                       100% 48.5M=0s

2018-03-04 14:27:43 (48.5 MB/s) - `index.html' saved [161/161]                    
            

Test case4:

mininet> client ping -c 3 172.64.3.1
PING 172.64.3.1 (172.64.3.1) 56(84) bytes of data.
64 bytes from 172.64.3.1: icmp_req=1 ttl=255 time=46.1 ms
64 bytes from 172.64.3.1: icmp_req=2 ttl=255 time=10.7 ms
64 bytes from 172.64.3.1: icmp_req=3 ttl=255 time=25.0 ms

--- 172.64.3.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 10.746/27.304/46.158/14.548 ms
            

Test case5:

mininet> client wget http://192.168.2.1
--2018-03-04 14:28:44--  http://192.168.2.1/
Connecting to 192.168.2.1:80... failed: Connection refused.
            

Test case6:

mininet> server1 ping -c 3 172.64.3.10
PING 172.64.3.10 (172.64.3.10) 56(84) bytes of data.
64 bytes from 172.64.3.10: icmp_req=1 ttl=63 time=79.2 ms
64 bytes from 172.64.3.10: icmp_req=2 ttl=63 time=49.9 ms
64 bytes from 172.64.3.10: icmp_req=3 ttl=63 time=192 ms

--- 172.64.3.10 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 49.906/107.348/192.921/61.681 ms                    
            

Test case7:

mininet> server1 traceroute -n 172.64.3.10
traceroute to 172.64.3.10 (172.64.3.10), 30 hops max, 60 byte packets
    1  192.168.2.1  21.052 ms  20.717 ms  21.357 ms
    2  172.64.3.10  205.630 ms  245.314 ms  245.498 ms
            

Test case8:

mininet> server1 wget http://172.64.3.10
--2018-03-04 14:30:13--  http://172.64.3.10/
Connecting to 172.64.3.10:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 161 [text/html]
Saving to: `index.html'

        0K                                                       100% 59.4M=0s

2018-03-04 14:30:14 (59.4 MB/s) - `index.html' saved [161/161]                    
            

Test case9:

mininet> server1 ping -c 3 10.0.1.1
PING 10.0.1.1 (10.0.1.1) 56(84) bytes of data.
64 bytes from 10.0.1.1: icmp_req=1 ttl=255 time=49.2 ms
64 bytes from 10.0.1.1: icmp_req=2 ttl=255 time=13.7 ms
64 bytes from 10.0.1.1: icmp_req=3 ttl=255 time=27.5 ms

--- 10.0.1.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 13.720/30.171/49.206/14.603 ms
            

Test case10:

mininet> server1 ping -c 3 172.64.3.11
PING 172.64.3.11 (172.64.3.11) 56(84) bytes of data.
From 192.168.2.1 icmp_seq=1 Destination Net Unreachable
From 192.168.2.1 icmp_seq=2 Destination Net Unreachable
From 192.168.2.1 icmp_seq=3 Destination Net Unreachable

--- 172.64.3.11 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2002ms
            

Test case11:

mininet> server2 ping -c 3 10.0.1.100
PING 10.0.1.100 (10.0.1.100) 56(84) bytes of data.
64 bytes from 10.0.1.100: icmp_req=1 ttl=63 time=47.4 ms
64 bytes from 10.0.1.100: icmp_req=2 ttl=63 time=61.8 ms
64 bytes from 10.0.1.100: icmp_req=3 ttl=63 time=40.0 ms

--- 10.0.1.100 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 40.091/49.804/61.895/9.062 ms                    
            

Test case12:

mininet> server2 traceroute -n 10.0.1.100
traceroute to 10.0.1.100 (10.0.1.100), 30 hops max, 60 byte packets
    1  172.64.3.1  24.186 ms  62.680 ms  62.538 ms
    2  10.0.1.100  181.277 ms  205.367 ms  205.403 ms
            

Test case13:

mininet> server2 ping -c 3 192.168.2.1
PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
64 bytes from 192.168.2.1: icmp_req=1 ttl=255 time=40.0 ms
64 bytes from 192.168.2.1: icmp_req=2 ttl=255 time=7.48 ms
64 bytes from 192.168.2.1: icmp_req=3 ttl=255 time=22.8 ms

--- 192.168.2.1 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2001ms
rtt min/avg/max/mdev = 7.485/23.455/40.036/13.296 ms
            

Test case14:

mininet> server2 ping -c 3 10.0.1.101
PING 10.0.1.101 (10.0.1.101) 56(84) bytes of data.
From 172.64.3.1 icmp_seq=1 Destination Net Unreachable
From 172.64.3.1 icmp_seq=2 Destination Net Unreachable
From 172.64.3.1 icmp_seq=3 Destination Net Unreachable

--- 10.0.1.101 ping statistics ---
3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2003ms
            

Test case15:

mininet> server2 wget http://10.0.1.1
--2018-03-04 14:33:28--  http://10.0.1.1/
Connecting to 10.0.1.1:80... failed: Connection refused.