True (select A in the homework system) or false (B).
Consider the following forwarding table.
Destination IP Address Range -> Link Interface
11100000 00000000 00000000 00000000 through 11100000 00111111 11111111 11111111 -> 0
11100000 01000000 00000000 00000000 through 11100000 01000000 11111111 11111111 -> 1
11100000 01000001 00000000 00000000 through 11100001 01111111 11111111 11111111 -> 2
otherwise -> 3
0: 224.0.0.0 – 224.63.255.255
1: 224.64.0.0 – 224.64.255.255
2: 224.65.0.0 – 225.127.255.255
3: others
Q1. A datagram whose destination IP is 11001000 10010001 01010001 01010101, and this datagram will be forwarded to interface 1?
B. False. 200.145.81.85 goes to interface 3.
Q2. 11100001 01000000 11000011 00111100 will goes to interface 2?
A. True. 225.64.195.60 goes to interface 2.
Q3. 11100001 10000000 00010001 01110111 will goes to interface 3?
B. False. 225.128.17.119 goes to interface 3.
Q4. Give an IP 192.168.0.1 and its netmask is /24. The subnet ID of this LAN is 11000000 10101000 00000000 00000000.
IP: 11000000 10101000 00000000 00000001
MASK: 11111111 11111111 11111111 00000000
ID: 11000000 10101000 00000000 00000000
Q5. Give an IP 192.168.0.1 and its netmask is /22. The subnet ID of this LAN is 11000000 10101000 00000000 00000000.
IP: 11000000 10101000 00000000 00000001
MASK: 11111111 11111111 11111100 00000000
ID: 11000000 10101000 00000000 00000000
Q6. A /25 subnet has a mask 255.255.255.128 and it contains 128 addresses.
A. True.
MASK: 11111111 11111111 11111111 10000000
=> 255.255.255.128
It has 7 bits for differentiating hosts. 2^7 = 128.
Q7. Give a host IP address 192.168.1.123 in a subnet with a netmask 255.255.255.192. The last address of this subnet is 192.168.1.127.
A. True.
IP: 11000000 10101000 00000001 01111011
MASK: 11111111 11111111 11111111 11000000
ID: 11000000 10101000 00000001 01000000
Last IP: 11000000 10101000 00000001 01111111 -> 192.168.1.127
Q8. Given a 172.16.32.1 IP in a /20 subnet, the subnet’s last IP address is 172.16.47.255.
A. True.
IP: 10101100 00010000 00100000 00000001
MASK: 11111111 11111111 11110000 00000000
ID: 10101100 00010000 00100000 00000000
Last IP: 10101100 00010000 00101111 111111111 -> 172.16.47.255
0: 224.0.0.0 – 224.63.255.255
1: 224.64.0.0 – 224.64.255.255
2: 224.65.0.0 – 225.127.255.255
3: others