GateMCQSCIENTIFIC PREP LAB
PlanSign Up
INTERMEDIATEFrequently Tested 4 min read 22 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).
Key Formulas Summary
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}
Note: 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}
Note: Doubling bandwidth B requires doubling L_min or halving cable distance d!
#Computer Networks#IPv4#CIDR#Sliding Window#TCP

Practice Questions on This Chapter (8)

Q1GATE CS Networks NATNATMEDIUM
+2M • 0 Neg

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)?

Q2GATE CS NetworksMCQMEDIUM
+2M • -0.67

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?

⚡ Click an option above to verify instantly
Q3GATE CS NetworksMCQEASY
+1M • -0.33

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

⚡ Click an option above to verify instantly
Q4GATE CS NetworksMCQMEDIUM
+2M • -0.67

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?

⚡ Click an option above to verify instantly
Q5GATE CS 2024 Set-1NATMEDIUM
+2M • 0 Neg

A 1 Gbps1\text{ Gbps} link (109 bps10^9\text{ bps}) of one-way propagation delay Tp=12 msT_p = 12\text{ ms} uses Stop-and-Wait ARQ with frame size L=1,000 bytes=8,000 bitsL = 1,000\text{ bytes} = 8,000\text{ bits} (ignore ACK size & processing). What is the link utilization percentage (rounded to two decimal places)?

Q6GATE CS 2022NATMEDIUM
+2M • 0 Neg

In a CSMA/CD Ethernet network operating at 100 Mbps100\text{ Mbps} (108 bps10^8\text{ bps}) over a 2 km2\text{ km} cable with signal speed 2×108 m/s2 \times 10^8\text{ m/s}, what is the minimum frame size in bytes required for guaranteed collision detection?

Q7GATE CS 2023MCQMEDIUM
+2M • -0.67

A router has four routing table entries: 10.1.0.0/16 -> R1, 10.1.128.0/17 -> R2, 10.1.192.0/18 -> R3, and 0.0.0.0/0 -> R4. Under Longest Prefix Matching, where is a packet destined to 10.1.200.5 forwarded?

⚡ Click an option above to verify instantly
Q8GATE CS 2015MCQMEDIUM
+2M • -0.67

What is the CRC remainder bits appended when data bit-string 100100 is transmitted using generator polynomial G(x)=x3+x2+1G(x) = x^3 + x^2 + 1 (1101)?

⚡ Click an option above to verify instantly
Previous TopicDBMS 2027 Rank-Decider: Relational Division (R ÷ S), SQL Double-NOT-EXISTS & ARIES WAL RecoveryNext Topic TCP 3-Way Handshake, AIMD Congestion Control & Routing (Distance Vector vs OSPF)