Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Host A (with IP address 192.168.0.10) wants to communicate with Host B (with IP

ID: 3846161 • Letter: H

Question

Host A (with IP address 192.168.0.10) wants to communicate with Host B (with IP address 192.168.20.2).

If the subnet mask for Host A is 255.255.255.0, will the hosts communicate using local transmissions or will they send information to the default gateway?

Show the workings for the ANDing process below.

Source IP

Source Subnet Mask                                                                               

                                                                                                               =

AND Result

Destination IP

Source Subnet Mask

                                                                                                               =

AND Result

Source IP

Source Subnet Mask                                                                               

                                                                                                               =

AND Result

Destination IP

Source Subnet Mask

                                                                                                               =

AND Result

Explanation / Answer

source IP 192.168.0.10
source subnet mask 255.255.255.0
IP address in binary       11000000.10101000.00000000.00001010
subnet mask in binary      11111111.11111111.11111111.00000000
AND result       11000000.10101000.00000000.00000000

source IP 192.168.20.2
source subnet mask 255.255.255.0

IP address in binary         11000000.10101000.00010100.00000010
  subnet mask in binary     11111111.11111111.11111111.00000000
AND result      11000000.10101000.00010100.00000000

Since, both AND results are differ, Host A and B are in different
in subnet. Therefore, Host A uses the default gateway for the
transmission to Host B