SSC IMD SA 2017 – Question 166

Question:

A network requires 29 subnets while maximizing the number of available host addresses per subnet. How many bits must be borrowed from the host field to provide the correct subnet mask?

एक नेटवर्क है जिसमें 29 सबनेट की ज़रूरत होती है जो की सबनेट पर उपलब्ध होस्ट एड्रेेस की संख्या को अधिकतम कर होता हैं। सही सबनेट मास्क प्रदान करने के लिए कितने
बिट्स को होस्ट फ़ील्ड से उधार लिया जाना चाहिए?

Options:

  • 3
  • 4
  • 6
  • 5
  • 3
  • 4
  • 6
  • 5

Correct Answer: d)

Explanation:

Detailed Explanation:

The correct answer is d) 5.

Problem Formulation:

We are required to create at least 29 subnets while maximizing the number of host addresses available on each subnet. We need to determine how many bits ($s$) must be borrowed from the host field.

Mathematical Calculation:

  • The number of subnets that can be created by borrowing $s$ bits from the host field is given by the formula:$$\text{Number of Subnets} = 2^s$$
  • We require:$$2^s \ge 29$$
  • Testing integer values for $s$:
    • If $s = 3 \implies 2^3 = 8 < 29$ (Insufficient)
    • If $s = 4 \implies 2^4 = 16 < 29$ (Insufficient)
    • If $s = 5 \implies 2^5 = 32 \ge 29$ (Sufficient)
    • If $s = 6 \implies 2^6 = 64 \ge 29$ (Sufficient, but leaves fewer host bits)
  • To maximize the available host addresses per subnet, we must preserve as many host bits ($h$) as possible, which requires borrowing the minimum number of bits that satisfies the subnet requirement ($2^h – 2$).
  • The minimum value of $s$ that satisfies $2^s \ge 29$ is $s = 5$.

विस्तृत व्याख्या:

सही उत्तर d) 5 है।

समस्या और गणना:

हमें कम से कम 29 सबनेट बनाने हैं और प्रत्येक सबनेट पर उपलब्ध होस्ट एड्रेस की संख्या को अधिकतम रखना है। इसके लिए होस्ट फील्ड से कितने बिट्स उधार (borrow) लिए जाने चाहिए?

सूत्र:

  • होस्ट फील्ड से $s$ बिट्स उधार लेने पर बनने वाले सबनेटों की संख्या:$$\text{सबनेटों की संख्या} = 2^s$$
  • शर्त के अनुसार:$$2^s \ge 29$$
  • मानों की जाँच:
    • यदि $s = 4 \implies 2^4 = 16 < 29$ (अपर्याप्त, केवल 16 सबनेट बनेंगे)
    • यदि $s = 5 \implies 2^5 = 32 \ge 29$ (पर्याप्त, 32 सबनेट बनेंगे)
  • प्रत्येक सबनेट पर होस्ट पतों की संख्या ($2^h – 2$) को अधिकतम रखने के लिए हमें होस्ट फील्ड से कम से कम बिट्स उधार लेने होंगे।
  • अतः 29 सबनेट की आवश्यकता पूरी करने के लिए न्यूनतम 5 बिट्स उधार लेने होंगे।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top