Question

In: Computer Science

Consider the following IPv4 forwarding table, using CIDR. As in exercise 1, IP address bytes are...

Consider the following IPv4 forwarding table, using CIDR. As in exercise 1, IP address bytes are in hexadecimal, and “:” is used as the separator as a reminder.

destination next_hop
00:0:0:0/2 A
40:0:0:0/2 B
80:0:0:0/2 C
c0:0:0:0/2 D

(a). To what next_hop would each of the following be routed? 63:b1:82:15, 9e:00:15:01, de:ad:be:ef

(b). Explain why every IP address is routed somewhere, even though there is no default entry. Hint: convert the first bytes to binary

Solutions

Expert Solution

Answer : Given data

* Let us convert the hexadecimal IP's into binary first, it will make our work easier to decide which destination will be taken by which IP.

63:b1:82:15 ---> 01100011 : 10110001 : 10000010 : 00010101

9e:00:15:01 ---> 10011110 : 00000000 : 00010101 : 00000001

de:ad:be:ef ---> 11011110 : 10101101 : 10111110 : 11101111

* Now let us understand the representation 40:0:0:0/2 , this means that out of 32bit only first 2 bits are used to decide Network ID.

* So only bold 2 bit in the above conversion will be used to see next hop. We will match the 2bit Network ID will all possible hops (A, B, C, D) Network ID.

* Whichever match will be found, the packet will be forwarded to that route.

Network ID (first 2 bits)

00:0:0:0/2 A 00000000 :
40:0:0:0/2 B 01000000 :
80:0:0:0/2 C 10000000 :
c0:0:0:0/2 D 11000000 :

From the above discussion, it is very clear that,

63:b1:82:15 -----> B

9e:00:15:01 ------> C

de:ad:be:ef -------> D

* Every IP address is routed to some destination, the reason being the exact match of their Network ID provided in the router table.

__________THE END____________


Related Solutions

IP Security and IPSec Suppose you have an IPv4 packet with 825964 bytes length. Assume that...
IP Security and IPSec Suppose you have an IPv4 packet with 825964 bytes length. Assume that this packet is to be sent through a network having 1500 bytes MTU. Question: (a) How many minimum fragments must be created from the IP packet? (b) What would be the value of “flag” and “offset” fields of the first fragment? Justify your answer. (c) What would be the value of “flag”, “offset”, and “length” fields of the last fragment? Justify your answer. (d)...
Isolating bits and bytes Task: Create a program that manages an IP address. Allow the user...
Isolating bits and bytes Task: Create a program that manages an IP address. Allow the user to enter the IP address as four 8 bit unsigned integer values (just use 4 sequential CIN statements). The program should output the IP address upon the users request as any of the following. As a single 32 bit unsigned integer value, or as four 8 bit unsigned integer values, or as 32 individual bit values which can be requested as a single bit...
Consider a router with the IP address 192.168.1.254/26:
Consider a router with the IP address 192.168.1.254/26: a) Indicate the subnet mask for the above address.b) Demonstrate calculation of the network address (including binary and decimal values).c) Write the relevant DHCP subnet configuration text for this network where the first 50 addresses will be dynamically allocated to hosts.
Your ISP has given you the following CIDR address 196.92.21.0/24. This address will be split among...
Your ISP has given you the following CIDR address 196.92.21.0/24. This address will be split among 3 facilities each with its own subnet consisting of 64 addresses each. Out of the remaining 64 addresses 32 will be split into two subnets for the administrative and accounting departments with 16 addresses each. The remaining addresses will be allocated for guests' access. Write the address range for each subnet in CIDR notation. Show all your workings.
1. Select the correct statement regarding the Internet Protocol version 4 (IPv4). a. IP is a...
1. Select the correct statement regarding the Internet Protocol version 4 (IPv4). a. IP is a connection-oriented protocol b. IP does not guarantee the delivery of correct packet sequencing c. IP guarantees packet delivery d. None of the above are correct 2. QUESTION 14 Select the correct statement(s) regarding the Domain Name System (DNS). a. DNS enables the URL to remain the same even if the associated IP address changes b. DNS enables the building of hierarchical information structures c....
For example My IP address 128. 0. 0. 1 My IP address 53. 20. 62. 201...
For example My IP address 128. 0. 0. 1 My IP address 53. 20. 62. 201 My IP address 77. 122. 180. 76 My IP address 54. 33. 11. 11 My IP address 33. 33. 2. 11 My IP address 202. 29. 205. 69 My IP address 215. 18. 15. 185 My IP address 56. 66. 33. 30 How do you write a regular expression that covers all IP addresses and display all list using a loop in Python
Consider a router with the: IP address 192.168.1.254/26 Subnet mask: 255.255.255.192 Network Address: 192.168.1.192 Write the...
Consider a router with the: IP address 192.168.1.254/26 Subnet mask: 255.255.255.192 Network Address: 192.168.1.192 Write the relevant DHCP subnet configuration text for this network where the first 50 addresses will be dynamically allocated to hosts.
Problem 1. Network Address Suppose an ISP has the following IP address block: 130.12.128.0/23 a. Assume...
Problem 1. Network Address Suppose an ISP has the following IP address block: 130.12.128.0/23 a. Assume that the ISP wants to divide its address block (130.12.128.0/23) into two equal-sized contiguous address blocks, and give one of these address blocks to its customers (C1 and C2). Provide network addresses (of the form a.b.c.d/x) for C1 and C2. b. Now let’s assume that the ISP wants to divide its address block (130.12.128.0/23) into four equal-sized contiguous address blocks, and give one of...
What is the network address if given this IP address and the following subnet mask?  Please note...
What is the network address if given this IP address and the following subnet mask?  Please note that the network may be different if the subnet mask is different. IP address 178.47.188.176 How many network bits if the following subnet masks? 255.254.0.0 255.255.252.0 255.255.255.248    4. 255.128.0.0     
11. Consider a router with the IP address 192.168.1.254/26: a) Indicate the subnet mask for the...
11. Consider a router with the IP address 192.168.1.254/26: a) Indicate the subnet mask for the above address. b) Demonstrate calculation of the network address (including binary and decimal values). c) Write the relevant DHCP subnet configuration text for this network where the first 50 addresses will be dynamically allocated to hosts.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT