Written Assignment 4
Written Assignment 4
Written Assignment 4
1. For each IPv4 network prefix given (with length), identify which of the
subsequent IPv4 addresses are part of the same subnet.
Part C:
Step 3: Count the number of consecutive 1’s from the left: There are 26
consecutive 1’s.
The /k notation is /26.
Part F:
The Ethernet frame imposes a minimum payload size of 46 bytes. In the case of an
IPv4 packet with a TCP header but no accompanying data, the total size adds up
to a mere 40 bytes (20 bytes for each header). This falls short of the Ethernet
frame's minimum payload requirement, necessitating the inclusion of an additional
6 bytes as padding to reach compliance with the minimum size criterion.
Now, if the packet happens to be IPv6 and devoid of any extension headers, it still
fails to meet the minimum Ethernet frame payload size. An IPv6 header consumes
40 bytes, and a TCP header occupies 20 bytes, resulting in a combined size of 60
bytes. While this size satisfies the minimum Ethernet frame payload requirement,
no additional padding is required in this particular scenario.
4. In newer implementations, repeat ARP queries about a timed-out entry are first
sent unicast, in order to reduce broadcast traffic. What would have to happen to
create a situation where the repeated unicast query for a given IP address fails,
but a follow-up broadcast query for that same IP address succeeds?
In newer setups, when ARP queries need to be repeated due to a timed-out entry,
they are initially sent using unicast to reduce the overall broadcast traffic.
A scenario where a repeated unicast ARP query for a specific IP address fails while
a subsequent broadcast query for the same IP address succeeds can arise when
the associated MAC address for that IP has changed. This change might occur if
the IP address has been allocated to a different device or if the network interface
card on the original device has been swapped out. In such a situation, the device
initiating the ARP query might still possess the old MAC address in its ARP cache
and thus directs the unicast query to that address. However, upon not receiving a
response, it resorts to sending a broadcast query, which reaches all devices within
the local network segment.
References:
Dordal, P. (2019). An introduction to computer networks.
Peterson, L. L., & Davie, B. S. (2022). Computer Networks: A systems approach. Morgan
Kaufmann Publishers, an imprint of Elsevier.