0% found this document useful (0 votes)
12 views

Written Assignment Unit 4

Written Assignment Unit 4 - uop

Uploaded by

Majd Haddad
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Written Assignment Unit 4

Written Assignment Unit 4 - uop

Uploaded by

Majd Haddad
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Written Assignment Unit 4

CS 2204-01 Communications and Networking - AY2023-T5

University of the People

Majd Alhaddad

1. For each IPv4 network prefix given (with length), identify which of the
subsequent IPv4 addresses are part of the same subnet.

(a). 10.0.130.0/23: 10.0.130.23, 10.0.129.1, 10.0.131.12, 10.0.132.7

((Subnet Range = 10.0.130.0 -> 10.0.131.255))


Range Same Subnet
10.0.130.23 Yes
10.0.129.1 No
10.0.131.12 Yes
10.0.132.7 No

(b). 10.0.132.0/22: 00001010.00000000.10001000.00000000/22

((Subnet Range =: 10.0.132.0 -> 10.0.135.255))


Range Same Subnet
10.0.130.23 No
10.0.135.1 Yes
10.0.134.12 Yes
10.0.136.7 No

(c). 10.0.64.0/18: 00001010.00000000.01000000.00000000/18

((Subnet Range = 10.0.64.0 -> 10.0.127.255))


Range Same Subnet
10.0.65.13 Yes
10.0.32.4 No
10.0.127.3 Yes
10.0.128.4 No
(d). 10.0.168.0/21: 00001010.00000000.10101000.00000000/21

((Subnet Range = 10.0.168.0 -> 10.0.175.255))


Range Same Subnet
10.0.166.1 No
10.0.170.3 Yes
10.0.174.5 Yes
10.0.177.7 No

(e). 10.0.0.64/26: 00001010.00000000.00000000.01000000/26

((Subnet Range = 10.0.0.64 -> 10.0.0.127))


Range Same Subnet
10.0.0.125 Yes
10.0.0.66 Yes
10.0.0.130 No
10.0.0.62 No

2. Convert the following subnet masks to /k notation, and vice-versa:

Subnet Masks Subnet Masks Binary /k notation


Decimal
255.255.240.0 11111111.11111111.11110000.0000000 /20
0
255.255.248.0 11111111.11111111.11111000.0000000 /21
0
255.255.255.192 11111111.11111111.11111111.1100000 /26
0

/k notation Subnet Masks Binary Subnet Masks


Decimal
/20 11111111.11111111.11110000.00000000 255.255.240.0
/22 11111111.11111111.11111100.00000000 255.255.252.0
/27 11111111.11111111.11111111.11100000 255.255.255.224

3. Suppose an Ethernet packet represents a TCP acknowledgment; that is,


the packet contains an IPv4 header with no options and a 20-byte TCP
header but nothing else. Is the IPv4 packet here smaller than the Ethernet
minimum packet size, and, if so, by how much? What if the packet is IPv6
with no extension headers?
It is known that the minimum Ethernet packet size is 64 bytes

- The default Ethernet packet representing the TCP acknowledgement is 40 bytes


in size

(20 bytes TCP header size + 20 bytes IPv4 header size without additions)

Thus, it can be concluded that the IPv4 packet size (20 bytes) is 44 bytes less
than the minimum Ethernet packet size (64 bytes).

- The Ethernet packet consisting of IPv6 without extensions is 78 bytes in size

(14 bytes for the Ethernet header, including type and addresses + 40 bytes for the
size of the IPv6 header without extensions + 20 bytes for the TCP header size + 4
bytes for FCS)

Thus, the total IPv6 packet size is greater than the minimum Ethernet packet size.

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?

The MAC address of the remote computer must be determined first.

You might also like