EC312 Homework 26
Name:
1. In IP addressing, we know the first and last address in the block. Can we find our CIDR?
If the answer is yes, show the process.
2. (c). Rewrite the following IP addresses using dotted-decimal notation:
01010111 10000100 00110111 00001111
3. (b). In classless addressing, what is the size of the block (N) if the value of the prefix (n) is the following:
n = 14
4. (b). Change the following prefix length to a mask in dotted-decimal notation: n=14
5. (b). Change the following mask to a prefix length: 255.240.0.0
6. (a) and (b). Each of the following addresses belong to a block. Find the first and last address in each block:
a. 14.12.72.8/24
b. 200.107.16.17/18
7. Can each of the following be the value of the TTL in a datagram? Explain you answer.
a. 23
b. 0
c. 1
d. 301
8. (a), (c) and (e). An IP datagram has arrived with the following partial information in the
header (in hexadecimal): 45000054 00030000 2006...
a. What is the size of the header?
b. What is the size of the data?
c. How many more routers can the packet travel to?
9. Which fields of the IPv4 header may change from router to router?
10. Circle the best word, or fill in the blanks, to complete the statements below that pertain to IPv4 addresses.
• An IP address is a software/ hardware address which is made up of 16 / 512 / 32 bits.
• An IP address consists of two parts, a ID and a ID.
• If all of the broadcast address.
• If all of the broadcast address.
ID bits of an IP address are zero, then the address is the network /
ID bits of an IP address are one, then the address is the network /
11. Show all work:
(a) What is the network address of 156.143.10.55 / 21 ?
(b) How many hosts can be assigned a unique IP address on this network?
(c) What is the first available IP address that can be assigned to a host?
(d) What is the last available IP address that can be assigned to a host?
12. Can private IPv4 addresses be routed across the Internet? If not, what is the purpose of private IP
addresses? If so, explain how they can be routed across the Internet.