∑GateAndNet
Practice MCQs
GATE CS / Computer Networks
Edit
INTERMEDIATE🔥 High-Yield Exam Topic 4 min read 4 views

IPv4 CIDR Subnetting, CSMA/CD Minimum Frame & Sliding Window Math

Host count, subnet mask binary math, L >= 2Tp*B efficiency formula, Go-Back-N vs Selective Repeat window sizes, and TCP AIMD.

Sliding Window Sequence Number Bits (kk bits   ⟹  2k\implies 2^k Seq Numbers)

ProtocolSender Window WsW_sReceiver Window WrW_rMin Seq Numbers Required (Ws+Wr≤2kW_s + W_r \le 2^k)
Stop-and-Wait ARQ111122 (11-bit sequence: 0, 1)
Go-Back-N (GBN)2k−12^k - 111Ws+1≤2kW_s + 1 \le 2^k
Selective Repeat (SR)2k−12^{k-1}2k−12^{k-1}2⋅Ws≤2k2 \cdot W_s \le 2^k

IPv4 CIDR Block Calculations

Given prefix A.B.C.D / n (0≤n≤320 \le n \le 32):

  • Host bits: h=32−nh = 32 - n
  • Total IP addresses in block: 232−n2^{32 - n}
  • Usable Host IPs: 232−n−22^{32 - n} - 2 (subtract Network ID all-0s & Directed Broadcast all-1s; exception /31 point-to-point RFC 3021).
📐 Quick Revision Formula Sheet
Sliding Window Link Utilization (Efficiency)
η=min⁡ ⁣(1,  W1+2a),where a=TpTt\eta = \min\!\left(1,\; \frac{W}{1 + 2a}\right), \quad \text{where } a = \frac{T_p}{T_t}
💡 Stop-and-Wait: W = 1; Go-Back-N (k-bit seq): W_max = 2^k - 1; Selective Repeat: W_max = 2^{k-1}
CSMA/CD Minimum Frame Length
Tt≥2 Tp  ⟹  Lmin⁡=2×Tp×B=2⋅d⋅BvT_t \ge 2\,T_p \implies L_{\min} = 2 \times T_p \times B = \frac{2 \cdot d \cdot B}{v}
💡 Doubling bandwidth B requires doubling L_min or halving cable distance d!
#Computer Networks#IPv4#CIDR#Sliding Window#TCP

🎯 Practice PYQs on This Topic (4)

Q1.GATE CS Networks NATNATMEDIUM
+2 Marks • No Negative

An Ethernet LAN operating at 100 Mbps100\text{ Mbps} uses CSMA/CD over a cable of length 2 km2\text{ km} where signal propagation speed is 2×108 m/s2 \times 10^8\text{ m/s}. What is the minimum frame size required (in bytes)?

Q2.GATE CS NetworksMCQMEDIUM
+2 Marks • -0.67 Neg

In a Selective Repeat sliding window protocol using k=4k = 4 bits for frame sequence numbers, what is the maximum permissible sender window size WsW_s to avoid sequence ambiguity?

Q3.GATE CS NetworksMCQEASY
+1 Marks • -0.33 Neg

How many usable host IPv4 addresses are available in a /26 CIDR subnet (subnet mask 255.255.255.192)?

Q4.GATE CS NetworksMCQMEDIUM
+2 Marks • -0.67 Neg

In CRC error detection, if the generator polynomial is G(x)=x4+x+1G(x) = x^4 + x + 1, how many CRC redundant check bits are appended to the dataword?

Previous TopicConflict Serializability (Precedence Graph) & B+ Tree Order MathNext Topic TCP 3-Way Handshake, AIMD Congestion Control & Routing (Distance Vector vs OSPF)