GATE / CS ARCHIVE

SUBJECT COLLECTION

Computer Networks

196 questions, newest first

Download PDF with answers Questions-only PDF

Browse topics
Topic weightage, 2017–2026

Average marks per 100-mark paper across the 15 papers of 2017–2026, with how many questions were asked in that time. Compare subjects

  1. IP Addressing, Fragmentation & Address Resolution1.919 questions
  2. Transport, Congestion Control & Traffic Shaping1.616 questions
  3. Data Link, Framing, Error Control & ARQ1.310 questions
  4. Routing Algorithms1.110 questions
  5. Physical Layer & Transmission0.54 questions
  6. Application Protocols0.56 questions
  7. Medium Access & Ethernet0.43 questions
  8. Network Layers & Devices0.34 questions
  9. Network Security Not in GATE 2027 syllabus0.33 questions
  10. Other / Mixed Topics0.11 question
Topic frequency by year
Questions by topic and year
Topic199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026
Network Layers & Devices000000000000021210000111000110000110
Physical Layer & Transmission001010010000011020100101101000010101
Data Link, Framing, Error Control & ARQ030020100001101220200002323000201022
Medium Access & Ethernet000000000000111010000011130100100100
IP Addressing, Fragmentation & Address Resolution000000000000122211020214321121210533
Routing Algorithms000000000000110000022003101001122120
Transport, Congestion Control & Traffic Shaping000000000000101015100212412201211214
Application Protocols000000000000000000011002220011011101
Network Security000000000000000000101012122010000000
Other / Mixed Topics000000000000000000000000000000000010

Show
1 mark · MCQ
Report issue

TCP establishment and simultaneous close

Transport, Congestion Control & Traffic Shaping

Question 18, GATE 2026: Choose the true TCP statement: A establishment uses a two-way handshake; B only the client may initiate closing; C TCP is half-duplex; D client and server may initiate closing simultaneously.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Givens and goal

Choose the true TCP statement: A establishment uses a two-way handshake; B only the client may initiate closing; C TCP is half-duplex; D client and server may initiate closing simultaneously.

Approach

Distinguish connection establishment, directional data flow, and each endpoint’s independent ability to send FIN.

Step-by-step solution

1. Ordinary TCP establishment uses SYN, SYN+ACK and ACK, a three-way handshake. Therefore A’s two-way-handshake description is incorrect.
2. A TCP connection supports data in both directions independently. Either endpoint may transmit while receiving, so it is full-duplex rather than half-duplex; C is false.
3. Either endpoint can initiate closing its sending direction by sending FIN. The server need not wait for the client to begin, so B is false.
4. Both endpoints may independently send FIN before receiving the other endpoint’s FIN. TCP handles this simultaneous close by acknowledging each FIN and completing the state transitions. Thus D is true.
5. Closing is not a rule that only a designated “client side” may invoke: client and server describe connection establishment roles, not permanent ownership of shutdown.

Original paper, page 15 · Answer key

1 mark · MSQ
Report issue

HTTP/1.1 persistence and pipelining

Application Protocols

Question 19, GATE 2026: For ordinary direct browser-to-origin HTTP/1.1, evaluate: A several same-page objects on one server can use one TCP connection; B objects on different servers can use that same direct TCP connection; C another request may be sent before the prior object finishes downloading; D several pages on one server may share a TCP connection.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, C, D

Givens and goal

For ordinary direct browser-to-origin HTTP/1.1, evaluate: A several same-page objects on one server can use one TCP connection; B objects on different servers can use that same direct TCP connection; C another request may be sent before the prior object finishes downloading; D several pages on one server may share a TCP connection.

Approach

Separate persistent connections from pipelining and from changing the remote TCP endpoint.

Step-by-step solution

1. A persistent connection can carry successive request/response exchanges with its server. Its lifetime is not limited to one embedded object, nor to one HTML page. Hence A and D are supported.
2. Pipelining permits a client to send another request before the preceding response has finished arriving. Responses still arrive in request order; pipelining is not arbitrary interleaving of response bodies. Thus C is supported.
3. A direct TCP connection has a fixed remote endpoint. It cannot become a direct connection to another server merely because the next resource belongs to the same webpage. Under the question's ordinary browser-to-origin-server interpretation, B is false.

Standards cross-check: [RFC 9112, section 9.3](https://httpwg.org/specs/rfc9112.html#persistent.connections) describes persistent connections and section 9.3.2 describes pipelining. Protocol support does not imply that every browser currently enables pipelining.

Interpretation caveat: A connection to a forward proxy can carry requests for multiple origins. Therefore the explanation rejects B for direct browser-to-server connections, not as an absolute statement about every HTTP deployment. This caveat does not change the published key.

Worked connection example: a browser can request /index.html, /style.css and /logo.png from the same origin through one persistent TCP connection. With pipelining it may send the later requests before the first response body is complete, although HTTP/1.1 preserves response order. It can later request /about.html on that still-open connection too. This explains A, C and D without assuming that pipelining provides HTTP/2-style multiplexing.

Original paper, page 15 · Answer key

2 marks · MCQ
Report issue

TCP slow start and an omitted initial window

Transport, Congestion Control & Traffic Shaping

Question 44, GATE 2026: A TCP connection has slow-start threshold 10000 segments, fixed RTT 1 ms, unlimited queued data, no losses, and segment numbering from 1. Find the interval when segment 2000 begins: A [9,10), B [10,11), C [11,12), D [12,13) ms. The initial congestion window and precise time origin are not explicitly stated.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Our answer: B under the implicit initial-window=1 convention; otherwise under-specified.

Givens and goal

A TCP connection has slow-start threshold 10000 segments, fixed RTT 1 ms, unlimited queued data, no losses, and segment numbering from 1. Find the interval when segment 2000 begins: A [9,10), B [10,11), C [11,12), D [12,13) ms. The initial congestion window and precise time origin are not explicitly stated.

Approach

Derive the official result under the usual one-segment, idealized-round convention, then identify which missing assumptions it uses.

Step-by-step solution

1. Assume the first segment starts at time 0, the initial congestion window is one segment, and each RTT doubles the allowed batch during slow start. The sending windows are 1,2,4,8,… .
2. Number rounds from r=0. Round r starts at r milliseconds and sends 2r segments. Through the end of round r the cumulative number is 1+2+…+2r=2r+1−1.
3. Through round 9 the cumulative count is 210−1=1023. Round 10 has window 1024 and covers segment numbers 1024 through 2047. Therefore segment 2000 belongs to the sending interval [10,11) ms, giving official option B.
4. The slow-start threshold does not change this calculation because the relevant window, 1024, is well below 10000.
5. The initial window is material. If it were ten segments, cumulative counts would be 10(2r+1−1). Through round 6 this is 1270; round 7 reaches 2550. The same segment would then begin in [7,8) under the same idealized batch convention.

CS-2026-S1-Q44-IW. Official B depends on initial window 1, the chosen post-establishment time origin, and the textbook round model. The stated parameters alone do not uniquely determine the interval. This is not a claim that a revised official key exists.

Original paper, page 33 · Answer key

2 marks · MCQ
Report issue

Window size for full link utilization

Data Link, Framing, Error Control & ARQ

Question 45, GATE 2026: A lossless sliding-window link sends 1000-bit frames at 100 kbps (100000 bits/s). One-way propagation is 100 ms; processing and ACK transmission times are zero. Find the smallest window W for 100% utilization among 10,21,20,11 frames.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (5 steps)

Givens and goal

A lossless sliding-window link sends 1000-bit frames at 100 kbps (100000 bits/s). One-way propagation is 100 ms; processing and ACK transmission times are zero. Find the smallest window W for 100% utilization among 10,21,20,11 frames.

Approach

Find when the first frame’s acknowledgement returns, then require the initial window to keep the transmitter busy until that instant.

Step-by-step solution

1. Frame transmission time is T_tx=1000/100000 s=0.01 s=10 ms. Propagation time is T_prop=100 ms in each direction.
2. Start frame 1 at time 0. Its last bit leaves the sender at 10 ms and reaches the receiver at 110 ms. With zero processing and ACK transmission time, its ACK is sent then and reaches the sender at 210 ms.
3. Sending W frames back-to-back occupies the sender for W·10 ms. If this duration is less than 210 ms, the sender exhausts its window before the first ACK returns and must sit idle.
4. Full utilization requires 10W≥210, giving W≥21. With W=21, the first ACK arrives exactly when frame 21 finishes, allowing frame 22 to start without a gap. Later acknowledgements then arrive at the same spacing as new frames are sent.
5. Therefore the minimum is 21 frames, option B. W=20 covers only the 200-ms propagation round trip and overlooks the first frame’s own 10-ms transmission. W=10 or 11 is also too small.

The equivalent formula is W≥1+2T_prop/T_tx=1+20=21. It assumes acknowledgements are issued after full frame reception as in the stated textbook link model.

Original paper, page 34 · Answer key

2 marks · MSQ
Report issue

CIDR capacity and network alignment

IP Addressing, Fragmentation & Address Resolution

Question 56, GATE 2026: An ISP controls 202.16.0.0/15 and must allocate a single CIDR block able to hold 6000 addresses. Which proposed allocations are valid: A 202.16.0.0/19; B 202.17.64.0/19; C 202.16.32.0/19; D 202.17.24.0/19?
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, B, C

Step through it (6 steps)

Givens and goal

An ISP controls 202.16.0.0/15 and must allocate a single CIDR block able to hold 6000 addresses. Which proposed allocations are valid: A 202.16.0.0/19; B 202.17.64.0/19; C 202.16.32.0/19; D 202.17.24.0/19?

Approach

Round the requested count up to a power of two, then check both containment in the parent network and alignment of the network address.

Step-by-step solution

1. A single CIDR allocation must have a power-of-two address count. Since 212=4096<6000≤8192=213, the smallest fitting block is /19, containing 8192 addresses.
2. A /19 boundary leaves thirteen host bits. Its mask is 255.255.224.0, so the fourth octet must be zero and the third octet must be a multiple of 32.
3. The ISP's /15 block spans second-octet values 16 and 17 with first octet 202. The candidates in A, B and C are all within that range and use aligned third octets 0, 64 and 32 respectively.
4. D uses third octet 24, which is not a multiple of 32. It is a host address inside the /19 network starting at third octet 0, not the canonical start of a distinct /19 allocation. Therefore exclude D.

Interpretation note: A request for 6000 addresses is rounded up to a CIDR block that can hold at least that many; a single /19 does not contain exactly 6000. The eligibility result is unchanged if a conventional subnet reserves two addresses, since 8190 remains sufficient.

Network-range check: A spans 202.16.0.0 through 202.16.31.255; C spans 202.16.32.0 through 202.16.63.255; B spans 202.17.64.0 through 202.17.95.255. All lie inside the parent range 202.16.0.0 through 202.17.255.255. For D, masking third octet 24 by 224 gives 0, demonstrating that 202.17.24.0/19 normalizes to 202.17.0.0/19 rather than naming an aligned block beginning at 24.

Original paper, page 43 · Answer key

1 mark · MCQ
Report issue

File-transfer bottleneck and packetization

Physical Layer & Transmission

Question 21, GATE 2026: A 4-million-byte file crosses consecutive links of 2 Mbps, 500 kbps, and 1 Mbps. Propagation, processing, other traffic, and overhead are ignored; M=10⁶ and k=10³. Choose transfer time: A 731 s; B 64 s; C 8 s; D 16 s. Packet size and forwarding mode are not specified.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Givens and goal

A 4-million-byte file crosses consecutive links of 2 Mbps, 500 kbps, and 1 Mbps. Propagation, processing, other traffic, and overhead are ignored; M=10⁶ and k=10³. Choose transfer time: A 731 s; B 64 s; C 8 s; D 16 s. Packet size and forwarding mode are not specified.

Approach

Compute the intended bottleneck throughput, then separate it from exact store-and-forward completion time.

Step-by-step solution

1. Convert the file to bits: F=4×10⁶×8=32×10⁶ bits. The three rates are 2×10⁶, 0.5×10⁶, and 1×10⁶ bits per second.
2. In continuous pipelined transfer the slowest link determines sustained throughput: R=min(R1,R2,R3)=0.5×10⁶. Therefore F/R=64 seconds, the published answer B.
3. For a more explicit model, split the file into N equal store-and-forward packets of L bits, NL=F. The first packet needs L/R1+L/R2+L/R3 to traverse the path. Each later packet completes one bottleneck service time L/R2 after the preceding one.
4. The exact expression is L/R1+L/R2+L/R3+(N−1)L/R2=64+1.5×10⁻⁶L seconds. It approaches 64 as fill/drain effects become negligible. If the whole file is one stored unit, the time is 16+64+32=112 seconds.
5. Thus retain official B under the intended idealized throughput convention. Negligible propagation and processing do not themselves specify packet size or eliminate all serialization transients; 64 is not a forwarding-model-independent result.

Original paper, page 17 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Why DHCP uses broadcasts

IP Addressing, Fragmentation & Address Resolution

Question 22, GATE 2026: Which protocol may need to broadcast some application messages? A SMTP; B FTP; C DHCP; D HTTP.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Givens and goal

Which protocol may need to broadcast some application messages? A SMTP; B FTP; C DHCP; D HTTP.

Approach

Consider what a client knows before it has an IP configuration.

Step-by-step solution

1. A newly connected DHCP client may have neither a usable IP address nor the address of a DHCP server. It cannot begin by directing all messages to a known server address.
2. It can broadcast a DHCPDISCOVER message so reachable DHCP servers can respond. Depending on the state and flags, later DHCP messages may also be broadcast.
3. SMTP transfers mail, FTP transfers files, and HTTP exchanges web requests and responses conventionally using unicast communication with an identified endpoint. They do not have the same initial address-discovery requirement.
4. Therefore C is correct. The word may matters: DHCP can also use unicast in appropriate states; the claim is not that every DHCP message is broadcast. Link-layer discovery used beneath another protocol should not be confused with that protocol’s application messages.

Original paper, page 18 · Answer key

1 mark · NAT
Report issue

Usable addresses in a slash-20 subnet

IP Addressing, Fragmentation & Address Resolution

Question 33, GATE 2026: An IPv4 subnet has mask 255.255.240.0. Find the maximum number of conventional network-interface addresses assignable in that subnet.
Tap to enlarge
Answer & solution

Official answer: 4094

Step through it (3 steps)

Givens and goal

An IPv4 subnet has mask 255.255.240.0. Find the maximum number of conventional network-interface addresses assignable in that subnet.

Approach

Count host bits and remove the two reserved endpoint addresses.

Step-by-step solution

1. The mask in binary is 11111111.11111111.11110000.00000000. It contains 8+8+4=20 leading ones, so the prefix length is /20.
2. An IPv4 address has 32 bits. The host portion therefore has 32−20=12 bits and permits 2¹²=4096 different bit patterns.
3. The all-zero host field denotes the subnet itself, while the all-one host field is the subnet-directed broadcast address. Neither is assigned to a conventional interface in this subnet.
4. Thus the usable count is 4096−2=4094. The special treatment of /31 point-to-point links is irrelevant to a /20 subnet. Reserving addresses administratively would reduce a particular deployment’s capacity, but no such reservation is specified.

Original paper, page 23 · Answer key

2 marks · MCQ
Report issue

Computing a CRC remainder

Data Link, Framing, Error Control & ARQ

Question 43, GATE 2026: Data bits 110001011 use CRC generator 1001. Which 3-bit remainder is appended? A 011; B 101; C 000; D 100.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Step through it (9 steps)

Givens and goal

Data bits 110001011 use CRC generator 1001. Which 3-bit remainder is appended? A 011; B 101; C 000; D 100.

Approach

Divide the zero-extended message by the generator over GF(2).

Step-by-step solution

1. The generator has degree 3, so append three zeros: 110001011000. In polynomial form the message is M=x⁸+x⁷+x³+x+1 and the divisor is G=x³+1.
2. Long division starts with x¹¹+x¹⁰+x⁶+x⁴+x³. XOR x⁸G to cancel x¹¹, leaving x¹⁰+x⁸+x⁶+x⁴+x³. XOR x⁷G to leave x⁸+x⁷+x⁶+x⁴+x³.
3. Continue XOR division: subtract x⁵G to obtain x⁷+x⁶+x⁵+x⁴+x³; subtract x⁴G to obtain x⁶+x⁵+x³; subtract x³G to obtain x⁵; finally subtract x²G to obtain x². Each subtraction is XOR, so duplicate monomials cancel.
4. Thus the remainder is x², represented by 100, option D. A shorter independent check uses x³≡1 modulo G: x⁸+x⁷+x³+x+1 reduces to x²+x+1+x+1=x², and the appended factor x³ does not change it.
5. The transmitted bits are 110001011100. XORing this remainder into the zero-extended message makes it divisible by 1001. CRC division uses XOR, never carries or ordinary integer subtraction.

Original paper, page 30 · Answer key

2 marks · NAT
Report issue

Slow-start rounds and the initial-window convention

Transport, Congestion Control & Traffic Shaping

Question 58, GATE 2026: A new TCP connection has constant receive window 48 KB, MSS 2 KB, and slow-start threshold 16 KB, with no timeouts or duplicate ACKs. How many transmission rounds are needed to reach congestion avoidance? The initial congestion window and round-count convention are not explicitly stated.
Tap to enlarge
Answer & solution

Official answer: 4

Givens and goal

A new TCP connection has constant receive window 48 KB, MSS 2 KB, and slow-start threshold 16 KB, with no timeouts or duplicate ACKs. How many transmission rounds are needed to reach congestion avoidance? The initial congestion window and round-count convention are not explicitly stated.

Approach

Use the textbook one-MSS start for the published answer and explain the dependency on that assumption.

Step-by-step solution

1. Under the conventional exercise assumption, the initial congestion window is one MSS=2 KB. In idealized slow start, one successful round doubles the window because acknowledgements increase the congestion window for the next round.
2. The sending-window sequence is round 1:2 KB, round 2:4 KB, round 3:8 KB, round 4:16 KB. The threshold 16 KB is first reached in the fourth sending round.
3. The receive window is 48 KB, larger than every window in this sequence, so it never limits the growth before the threshold. Using the threshold-round index gives the official answer 4.
4. However, only three completed doubling rounds separate the initial 2 KB window from 16 KB. Counting completed slow-start rounds instead of labeling the first threshold sending round changes the wording of the answer by one.
5. Moreover the initial congestion window is not specified; starting at 4 KB would give sending windows 4,8,16 and an index of 3. Modern TCP implementation defaults need not be one MSS. Therefore retain 4 as the published scoring answer with these implicit assumptions, rather than asserting an implementation-independent fact.

Original paper, page 40 · Answer key

2 marks · NAT
Report issue

Sequence-number space for a full-rate link

Transport, Congestion Control & Traffic Shaping

Question 65, GATE 2026: Two hosts use a lossless 3000 km link of bandwidth 10⁸ bits/s and propagation delay 5 ns/m. Every data byte gets a sequence number. Find the minimum sequence-field width N so numbers do not wrap before 60 s and full utilization is possible.
Tap to enlarge
Answer & solution

Official answer: 30

Givens and goal

Two hosts use a lossless 3000 km link of bandwidth 10⁸ bits/s and propagation delay 5 ns/m. Every data byte gets a sequence number. Find the minimum sequence-field width N so numbers do not wrap before 60 s and full utilization is possible.

Approach

Compare the long-term no-wrap requirement with the in-flight window requirement.

Step-by-step solution

1. At full rate the byte rate is 10⁸/8=12.5×10⁶ bytes/s. In 60 seconds the sender transmits 60×12.5×10⁶=750,000,000 bytes, requiring at least that many distinct sequence numbers before reuse.
2. An N-bit field has 2N possible values. Since 2²⁹=536,870,912<750,000,000 and 2³⁰=1,073,741,824≥750,000,000, the no-wrap condition requires N≥30.
3. Convert the link length to 3,000,000 m. One-way propagation is 3,000,000×5 ns=15 ms, so propagation round trip is 30 ms when other delays are ignored.
4. The bandwidth-delay product for that round trip is 12.5×10⁶×0.030=375,000 bytes. A window supporting that many outstanding bytes can keep the link busy. Even a selective-repeat-style sequence-space requirement of twice that window is only 750,000 values, far below 2³⁰.
5. Thus the 60-second nonwrapping condition dominates and N=30. This uses the question’s idealized data rate and ignores unspecified header, acknowledgement-transmission, and processing overhead; those details are not needed to overturn the much larger no-wrap bound.

Original paper, page 42 · Answer key

1 mark · MCQ
Report issue

Matching OSI layers to functions

Network Layers & Devices

Question 16, GATE 2025: Match layers (a) network, (b) transport, (c) data link to functions (I) packet routing, (II) framing and error handling, (III) host-to-host communication. A a-I,b-II,c-III; B a-I,b-III,c-II; C a-II,b-I,c-III; D a-III,b-II,c-I.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Approach: Identify the most specific layer functions before assigning the less precise phrase.
The network layer handles packet routing across networks, so a must match I. The data-link layer groups bits into frames for a link and handles link-level error detection or control, so c matches II. Those two matches already identify B among the choices.
The remaining b-III match is the question’s intended description of transport-layer end-to-end communication. More precisely, transport protocols provide process-to-process service using endpoint identifiers such as ports; “host-to-host” is broader wording than the usual precise definition.
A misassigns framing to transport; C assigns framing to network; D assigns routing to data link. Thus B is correct in the supplied matching scheme. Error handling can also exist at other layers, but “framing and error handling” together points to the data-link layer here.

Original paper, page 16 · Answer key

1 mark · MSQ
Report issue

Reading flags in the TCP handshake

Transport, Congestion Control & Traffic Shaping

Question 22, GATE 2025: Let P1,P2,P3 be the three successive packets of the ordinary TCP connection-establishment handshake. Select true claims: A P3 has SYN=1,ACK=1; B P2 has SYN=1,ACK=1; C P2 has SYN=0,ACK=1; D P1 has SYN=1.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, D

Approach: Separate the request to synchronize sequence numbers from the acknowledgment of the peer’s request.
P1 is the initiating SYN: it starts synchronization with SYN=1 and, in the ordinary initial handshake, ACK=0. Hence D is true.
P2 both acknowledges the first SYN and announces the responding endpoint’s own initial sequence number. Its flags are SYN=1 and ACK=1. This makes B true and C false.
P3 acknowledges the responder’s SYN. It is an ACK with SYN=0,ACK=1, so A is false. The correct selection is B and D.
The ACK flag indicates that the acknowledgment-number field is valid; it is not merely a generic statement that a packet arrived. This question is about the standard three-way establishment sequence, not simultaneous open or later connection teardown.

Original paper, page 22 · Answer key

2 marks · MCQ
Report issue

Applying longest-prefix IP routing

Routing Algorithms

Question 40, GATE 2025: Destination 145.36.109.70 arrives at a router with entries 145.36.0.0/16→E1; 145.36.128.0/17→E2; 145.36.64.0/18→E3; 145.36.255.0/24→E4; default→E5. Which outgoing interface is selected? A E3; B E1; C E2; D E5.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (3 steps)

Approach: First find all matching network prefixes, then choose the most specific (longest) one.
The first two destination octets are 145.36, so the /16 E1 entry matches. The /17 E2 entry additionally requires the high bit of the third octet to be 1, meaning a third octet from 128 through 255. The destination’s third octet is 109, so that entry does not match.
The /18 E3 prefix fixes the first two bits of the third octet to 01, covering 64 through 127. Since 109 lies in that range, it matches. The /24 E4 entry requires third octet 255, so it does not match.
Among E1’s /16, E3’s /18 and the default, /18 is longest. Thus forward to E3, option A. Routing is not a first-listed-match decision, and a longer prefix is relevant only if it actually matches.

Original paper, page 40 · Answer key

2 marks · NAT
Report issue

Computing an error-free transmission probability

Data Link, Framing, Error Control & ARQ

Question 56, GATE 2025: A five-bit message is sent through a channel that independently flips each bit with probability 0.01. What is the probability of receiving the entire message error-free, rounded to three decimal places?
Tap to enlarge
Answer & solution

Official answer: 0.949 to 0.952

Our answer: 0.951

Approach: An error-free message requires all five separate “not flipped” events to occur.
For each bit, P(no flip)=1−0.01=0.99. Since the bit-flip events are independent, their complements are independent as well, and the probability of all five correct bits is the product 0.995.
Calculating gives 0.9509900499, which rounds to 0.951 at three decimal places. This lies in the official accepted interval 0.949–0.952.
The expression 1−5×0.01=0.95 is only a first-order approximation: it treats the five error events as if they were disjoint, even though two or more bits may flip together. Alternatively, the number of errors is binomial with parameters 5 and 0.01, and its zero-error probability is C(5,0)(0.01)0(0.99)5, the same result.

Original paper, page 56 · Answer key

2 marks · NAT
Report issue

Fragmenting an IPv4 message across two MTUs

IP Addressing, Fragmentation & Address Resolution

Question 57, GATE 2025: A 15000-byte message travels Source→Router 1→Router 2→Destination. Router 1 has MTU 5000 bytes and Router 2 MTU 3000 bytes, each including its IPv4 header. How many fragments reach the destination? Use ordinary IPv4 fragmentation; no reassembly takes place at intermediate routers.
Tap to enlarge
Answer & solution

Official answer: 7

Approach: Fragment at the first MTU, then split each existing fragment separately at the second MTU. Nonfinal IPv4 fragment payloads must be multiples of eight bytes.
Using a standard 20-byte header, Router 1 can carry at most floor((5000−20)/8)×8=4976 payload bytes in a nonfinal fragment. Treating 15000 as payload gives fragment payloads 4976,4976,4976,72, so four fragments leave Router 1.
At Router 2, the aligned maximum is floor((3000−20)/8)×8=2976. Each 4976-byte payload splits into 2976 and 2000 bytes, producing two fragments. The final 72-byte payload already fits and stays as one. Thus the destination receives 2+2+2+1=7 fragments.
It would be wrong to divide the original payload by Router 2’s MTU as though all first-stage fragments were reassembled; IPv4 routers do not coalesce them. If the original 15000 bytes includes its header, the first-stage remainder becomes 52 instead of 72, with the same total count. The count also remains seven for ordinary legal IPv4 header lengths.

Original paper, page 57 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Other / Mixed Topics

Question 16, GATE 2025: Assess two statements: (i) ARP maps an IP address to the corresponding hardware/link-layer address; (ii) a TCP segment from S to R cannot simultaneously contain S-to-R data and an acknowledgment for R-to-S traffic.
Options: A. both true; B. (i) true and (ii) false; C. (i) false and (ii) true; D. both false.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

For the IPv4 local-link setting, ARP resolves a next-hop IPv4 address to a link-layer address, such as an Ethernet MAC address. A host broadcasts an ARP request for the local next hop, and the reply supplies the hardware address used in the frame. This makes (i) true; ARP is not a mechanism for finding an arbitrary remote host's MAC through multiple routers.

TCP is full duplex. A segment has separate sequence-number and acknowledgment-number fields as well as a payload. The payload can carry bytes from S to R while the acknowledgment field, with ACK set, reports bytes already received by S from R. Combining them is called acknowledgment piggybacking and saves a separate ACK-only packet. Therefore (ii), which says they cannot be combined, is false. Answer: B.

Original paper, page 14 · Answer key

1 mark · MCQ
Report issue

Routing Algorithms

Question 17, GATE 2025: Match routing methods with their usual shortest-path algorithm: (i) distance-vector routing; (ii) link-state routing. Algorithms are (a) Bellman–Ford and (b) Dijkstra.
Options: A. i→a, ii→b; B. i→a, ii→a; C. i→b, ii→a; D. i→b, ii→b.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Distance-vector routing maintains estimates to destinations and exchanges these with neighbors. Router x updates its distance to y using
Dx(y)=min over neighbors v of [cost(x,v)+Dv(y)].
This is the Bellman–Ford recurrence, applied in a distributed fashion. Thus (i) matches (a).

A link-state router learns the network's connectivity and link costs through link-state advertisements. With this graph available locally, it computes a shortest-path tree rooted at itself, conventionally using Dijkstra's algorithm for nonnegative link costs. Thus (ii) matches (b). The important distinction is neighbor distance estimates versus an advertised topology map, not simply that both seek shortest routes. The two correct matches appear together only in A.

Original paper, page 15 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

IP Addressing, Fragmentation & Address Resolution

Question 18, GATE 2025: An IPv4 packet's Protocol field names the protocol carried immediately inside IPv4. Which listed protocol is not normally a possible direct value for this purpose?
Options: A. ICMP; B. IGMP; C. OSPF; D. RIP.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

The IPv4 Protocol field identifies the next encapsulated protocol, not every protocol that may appear farther inside the payload. ICMP, IGMP, and OSPF all run directly over IP and have assigned IPv4 protocol numbers 1, 2, and 89 respectively. Therefore A, B, and C are possible.

RIP messages are carried in UDP datagrams, conventionally using UDP port 520 for RIPv2. In such a packet the IP Protocol field is 17, identifying UDP. RIP is recognized by the transport-layer port and its message format rather than by a direct RIP value in this field. Thus D is the required exclusion. OSPF and RIP are both routing protocols, but they use different encapsulation, so their shared purpose does not imply the same packet layering.

Original paper, page 16 · Answer key

1 mark · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 23, GATE 2025: Ethernet can carry at most 1500 bytes in its data field. IPv4 uses a 20-byte header with no options. A UDP datagram has 7488 bytes of application data. After IPv4 fragmentation, how many fragments are sent, and what is the total size of the last fragment including its IPv4 header?
Options: A. 5 and 1488 bytes; B. 6 and 88 bytes; C. 6 and 108 bytes; D. 6 and 116 bytes.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Step through it (4 steps)

UDP adds one 8-byte header to its 7488 data bytes. The payload of the original IPv4 datagram is therefore 7496 bytes. Each fragment must fit the 1500-byte Ethernet data field, and each has its own 20-byte IPv4 header. A full fragment can consequently carry 1500−20=1480 payload bytes.

Except for the last fragment, IPv4 fragment payload lengths must be multiples of 8 because fragment offsets are in 8-byte units. Here 1480=185·8, so the full payload size is usable. Divide the original payload: 7496=5·1480+96. There are five full fragments and one final fragment, hence six in total. The last has 96 payload bytes plus a 20-byte IPv4 header, or 116 bytes.

The UDP header is part of the original payload and appears only in the first fragment, not in every fragment. Omitting it would incorrectly give 88 bytes of last payload and 108 bytes including IP; 88 alone would additionally omit the final IP header. Answer: D.

Original paper, page 20 · Answer key

2 marks · MCQ
Report issue

Data Link, Framing, Error Control & ARQ

Question 36, GATE 2025: Stop-and-wait sends 3000-bit frames on a 2000-bit/s channel. One-way propagation delay is 100 ms. Ignore processing time and ACK transmission time. Which offered percentage best approximates channel utilization?
Options: A. 88.23; B. 93.75; C. 85.44; D. 66.67.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (4 steps)

Frame transmission takes T_tx=3000/2000=1.5 seconds. Once the last data bit leaves the sender it still needs 0.1 seconds to reach the receiver. The negligibly short ACK then needs another 0.1 seconds to propagate back. Therefore the interval from starting one frame until being allowed to start the next is T_cycle=1.5+0.1+0.1=1.7 seconds.

The sender uses the channel to transmit data for 1.5 seconds of each 1.7-second cycle, so utilization is U=1.5/1.7=15/17≈0.88235294, or 88.235294 percent. Equivalently U=1/(1+2a), where a=T_prop/T_tx.

A is the nearest listed choice. The displayed 88.23 is a truncated/approximate option; conventional rounding of the calculated percentage to two decimal places gives 88.24. Ignoring the return propagation would overestimate utilization, while treating the 100 ms as a round trip would change the supplied assumption. Answer: A.

Original paper, page 27 · Answer key

1 mark · MCQ
Report issue

Order the first packets of web browsing

Application Protocols

Question 16, GATE 2024: A browser fetches an index page and its embedded images from one server over one TCP connection. DNS and browser caches start empty. Put these outgoing packets in chronological order: (i) GET index, (ii) DNS request, (iii) GET image, (iv) TCP SYN. A iv,ii,iii,i; B ii,iv,iii,i; C ii,iv,i,iii; D iv,ii,i,iii.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Approach: Identify what information or connection each operation needs before it can happen.
1. The browser begins with the server's name but, because the DNS cache is empty, must resolve that name to an IP address. The DNS request (ii) comes first.
2. Once the address is known, TCP connection establishment begins with the SYN packet (iv). HTTP requests use the established connection.
3. The browser requests the top-level index document (i). It must receive and parse that document to discover the embedded image references in this model.
4. It can then request an image object (iii), reusing the one TCP connection.
Answer: C, ii → iv → i → iii. DNS replies and the rest of the TCP handshake occur between these events, but are not among the four packets the question asks us to order.

Original paper, page 11 · Answer key

1 mark · MSQ
Report issue

TCP SYN sequence-space accounting

Transport, Congestion Control & Traffic Shaping

Question 29, GATE 2024: Client P successfully connects to TCP server Q. NP is the sequence number in P's SYN; NQ is the acknowledgment number in Q's SYN-ACK. Which claims are correct? A NP is randomly chosen by P. B NP is always 0 for a new connection. C NQ=NP. D NQ=NP+1.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, D

Approach: Separate the choice of the initial sequence number from the rule for acknowledging a SYN.
1. A new TCP connection does not always begin at sequence number zero. The initial sequence number is chosen by the endpoint using a scheme intended to make it difficult to predict and to separate old connection traffic from new traffic. This is the randomized or pseudorandom selection described by A; B is false.
2. TCP acknowledgment numbers identify the next sequence number expected from the peer. A SYN consumes one position in sequence space even though it is not an ordinary payload byte.
3. After receiving a SYN with sequence NP, Q therefore acknowledges NP+1, with arithmetic modulo 2³². This makes D true and C false.
Answer: A and D. Actual initial-sequence algorithms may combine a clock with a keyed pseudorandom function; the key's “randomly” should not be read as requiring a fresh independent uniform draw.

Original paper, page 19 · Answer key

1 mark · MSQ
Report issue

Outbound NAT and the IPv4 header checksum

IP Addressing, Fragmentation & Address Resolution

Question 31, GATE 2024: For a packet moving from an internal network to an external network through ordinary source NAT, which listed IP-header fields are modified? A Source IP; B Destination IP; C Header Checksum; D Total Length.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, C

Approach: Identify the address translated by outbound NAT, then consider which dependent header field must be repaired.
1. Outbound source NAT replaces the private/internal source address with an externally visible source address. The remote recipient needs an address to which replies can be routed. Select A.
2. The destination remains the remote host requested by the sender in this standard source-NAT scenario. Destination translation is a different function, so B is not selected.
3. IPv4's header checksum covers the IPv4 header, including the source address. Altering that address requires a checksum update so the new header validates. Select C.
4. Replacing one fixed-width address with another neither inserts nor removes bytes. Total Length therefore does not change merely because of NAT; D is false.
Answer: A and C. A device performing port translation also updates relevant transport-header fields, but those are not among these choices. The checksum option identifies the intended IPv4 model.

Original paper, page 20 · Answer key

2 marks · MCQ
Report issue

Pipeline packet serialization over two links

Physical Layer & Transmission

Question 36, GATE 2024: A file of 10⁶ bytes travels P→Q→R in consecutive 10³-byte chunks. Each link is 10⁶ bits/s. Chunk headers, propagation, processing and queueing are negligible; chunks are below the MTU. Router Q forwards each complete received packet and can receive one while transmitting another. P starts at t=0. When does R finish receiving? A 8.000 s; B 8.008 s; C 15.992 s; D 16.000 s.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Approach: Separate the time to fill the two-link pipeline from the steady interval between completed packets.
1. The file has 10⁶/10³=1,000 chunks. Each chunk contains 1,000×8=8,000 bits, so one link serializes it in τ=8,000/10⁶=0.008 s.
2. Q receives the first complete chunk at t=τ and transmits it on the second link during the next interval. R therefore finishes the first chunk at 2τ.
3. While Q transmits chunk 1, it receives chunk 2. Both links have the same rate, so each later chunk finishes at R exactly τ after its predecessor. Chunk k finishes at (k+1)τ.
4. The last chunk therefore finishes at 1,001×0.008=8.008 s.
Answer: B. Multiplying the whole-file time by two ignores pipelining; using only 8.000 s ignores the final second-link serialization. Negligible propagation does not mean zero transmission time.

Original paper, page 22 · Answer key

2 marks · NAT
Report issue

Choose the longest matching IP prefix

Routing Algorithms

Question 58, GATE 2024: A router has routes 10.1.1.0/24→R1, 10.1.1.128/25→R2, 10.1.1.64/26→R3 and 10.1.1.192/26→R4. It sends 20 packets to each of 10.1.1.16, .72, .132, .191 and .205. How many packets use R2? The abbreviated destinations share prefix 10.1.1.
Tap to enlarge
Answer & solution

Official answer: 40

Step through it (7 steps)

Approach: A router uses the matching route with the greatest prefix length, not the first matching row or every matching route.
1. The /24 covers last-octet values 0–255. The /25 beginning at 128 covers 128–255. The /26 beginning at 64 covers 64–127, and the /26 beginning at 192 covers 192–255.
2. Destination .16 matches only the /24 and uses R1. Destination .72 matches the /24 and the 64/26; the longer /26 wins, so it uses R3.
3. Destinations .132 and .191 match the /24 and the 128/25, with no matching /26. Both therefore use R2.
4. Destination .205 also matches R2's /25, but it matches the more specific 192/26, so it uses R4 instead.
Exactly two hosts use R2, each with 20 packets: 2×20=40.
Answer: 40. Counting .205 for R2 would ignore longest-prefix selection.

Original paper, page 34 · Answer key

2 marks · NAT
Report issue

Fragment each existing fragment at the next MTU

IP Addressing, Fragmentation & Address Resolution

Question 65, GATE 2024: An IPv4 datagram totals 1420 bytes including a 20-byte header. It traverses a sender-to-router link with MTU 542, then a router-to-receiver link with MTU 360. Assuming ordinary permitted fragmentation and 20-byte fragment headers, how many fragments reach the receiver?
Tap to enlarge
Answer & solution

Official answer: 6

Step through it (8 steps)

Approach: MTU includes each fragment's header. Nonfinal payload boundaries must align to eight-byte units, and the intermediate router fragments existing fragments rather than reassembling the original datagram.
1. Original payload is 1420−20=1400 bytes. On the first link, raw payload capacity is 542−20=522 bytes. Round down to a multiple of 8: floor(522/8)×8=520 bytes.
2. The sender creates payloads 520,520,360, each with a 20-byte header. Their original-data starting offsets are 0,520,1040 bytes.
3. On the second link, raw capacity is 360−20=340 bytes, with aligned nonfinal capacity floor(340/8)×8=336 bytes. Each 520-byte payload splits into 336+184; the 360-byte payload splits into 336+24.
4. Six payload fragments arrive: 336,184,336,184,336,24. Their starting offsets, in eight-byte units, are 0,42,65,107,130,172. Only the last has no more-fragments flag; total payload still sums to 1400.
Answer: 6. Applying ceil(1400/336)=5 directly at the second link incorrectly assumes that the router reassembles and repacks the first-link fragments. Normal IPv4 forwarding leaves reassembly to the final destination, and fragmentation presumes DF is unset.

Original paper, page 36 · Answer key

1 mark · MSQ
Report issue

Separate the IP destination from the Ethernet next hop

Network Layers & Devices

Question 23, GATE 2024: X sends a TCP packet to Y through router R; Ethernet switch S is the first switch between X and R. At departure from X, which statements hold? A destination IP is R; B destination IP is Y; C destination MAC is S; D destination MAC is Y.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B

Approach: Use end-to-end addressing for the IP packet and local-link addressing for its enclosing frame.

1. Derivation. The network-layer destination remains final host Y. Because R is the next IP hop beyond the local Ethernet, the frame’s destination MAC is the local interface of R, not the switch S or remote host Y. A switch forwards that frame without being its destination. Thus only B is true, under ordinary routing without destination NAT.

2. Explanation and checks. X chooses R as the next-hop router and obtains the MAC address of R’s local interface, normally through ARP. S reads that destination MAC to forward the frame, but is not itself the frame recipient. R later removes the incoming link header and constructs a new one for the next link. This changes link addresses without replacing the final IP destination Y under ordinary routing. TCP does not make a distant host directly reachable on the local Ethernet.

Original paper, page 17 · Answer key

1 mark · MSQ
Report issue

IPv4 fragmentation and the DF bit

IP Addressing, Fragmentation & Address Resolution

Question 28, GATE 2024: Which IPv4 statements are intended to be true? A only the source fragments; B any router fragments a datagram exceeding its outgoing MTU; C reassembly occurs only at the destination; D every intermediate router reassembles. The printed B does not mention the Don’t Fragment bit.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C

Our answer: B;C when DF=0; C without that qualification

Approach: State the fragmentation-permitted model separately from the literal unrestricted assertion.

1. Derivation. In ordinary IPv4 with fragmentation permitted, an intermediate router can fragment a datagram larger than its outgoing MTU, and reassembly occurs only at the final IP destination. This gives the official B, C. However B is overbroad without the DF-bit condition: when Don’t Fragment is set, the router drops an oversized datagram and normally sends an ICMP fragmentation-needed message instead of fragmenting it. Thus B is not an unconditional statement about every IPv4 datagram. A and D are false; C remains true. Preserve official B, C, and distinguish the intended DF=0 model from the literal unrestricted claim.

2. Explanation and checks. A fragment is itself an IP packet and can follow routing decisions independently, so intermediate reassembly would both require storage and assume all fragments meet at the same router. Destination-only reassembly avoids that assumption. When DF=0 an oversized fragment or datagram may be fragmented further. When DF=1, B’s asserted behavior cannot occur: the router must not fragment.

Original paper, page 19 · Answer key

1 mark · MSQ
Report issue

IPv4 fields updated on forwarding

IP Addressing, Fragmentation & Address Resolution

Question 32, GATE 2024: Which IP-header fields are always updated by an ordinary forwarding router in the IPv4 model? A source IP; B protocol; C TTL; D header checksum.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: C, D

Approach: Find the field representing the remaining hop lifetime, then account for header integrity.

1. Derivation. An IPv4 router decrements TTL before forwarding. TTL is covered by the IPv4 header checksum, which must therefore be updated. Ordinary routing need not alter the source IP address or the upper-layer protocol field. Thus C, D. The header-checksum option makes the IPv4 model implicit.

2. Explanation and checks. TTL decreases as a packet is forwarded; if it expires the packet is discarded rather than forwarded. Changing TTL changes the header over which the IPv4 checksum is defined, so the checksum must be recomputed or incrementally adjusted. The protocol value still indicates the same encapsulated transport protocol. Source address changes can occur under NAT, but NAT is not a necessary operation of every router. IPv6 is a different header format and has no IPv4-style header checksum.

Original paper, page 22 · Answer key

2 marks · MCQ
Report issue

An exactly aligned CIDR block

IP Addressing, Fragmentation & Address Resolution

Question 38, GATE 2024: Which prefix exactly covers 10.12.2.0 through 10.12.3.255 inclusive? A 10.12.2.0/23; B 10.12.2.0/24; C 10.12.0.0/22; D 10.12.2.0/22.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (6 steps)

Approach: Find the common binary prefix and verify both size and alignment.

1. Derivation. The range contains two consecutive /24 blocks, third octets 2 and 3. Their common prefix fixes the first 7 bits of that octet, yielding 16+7=23 network bits and 9 host bits. The aligned base is 10.12.2.0, so the exact 512-address range is 10.12.2.0/23, option A.

2. Explanation and checks. The third octets are 00000010 and 00000011: their first seven bits agree and their final bit varies. Together with the entire final octet, that leaves nine variable bits and 29=512 addresses. A /24 contains only 256 addresses. A /22 leaves ten host bits and spans four third-octet values, too many; moreover 10.12.2.0 is not an aligned /22 network base. Both endpoints of A agree exactly with the requested range.

Original paper, page 25 · Answer key

2 marks · NAT
Report issue

Window size in the third RTT after a timeout

Transport, Congestion Control & Traffic Shaping

Question 54, GATE 2024: A TCP connection has congestion window 12 MSS when a timeout occurs. All segments in the next two RTTs are acknowledged successfully. Under textbook timeout slow start, what is the congestion window during the third RTT, in MSS?
Tap to enlarge
Answer & solution

Official answer: 4

Step through it (4 steps)

Approach: Distinguish the window used during an RTT from its value after that RTT’s acknowledgements.

1. Derivation. Under the standard timeout slow-start model, a timeout sets ssthresh to half the old congestion window, 6MSS, and resets cwnd to 1MSS. The first subsequent RTT uses 1 and its successful ACKs grow cwnd to 2; the second uses 2 and grows it to 4. Thus during the third RTT cwnd is 4MSS, still below the threshold. This assumes the textbook one-MSS post-timeout reset and per-round doubling.

2. Explanation and checks. The timeout halves the threshold, not the new sending window: ssthresh becomes 6 while cwnd restarts at 1. Thus the three rounds begin with windows 1,2,4 respectively. Doubling the third round’s window to 8 would describe a later update, and would also require handling the threshold transition. The requested third round begins below ssthresh, so that boundary detail does not affect the answer. This is the stipulated textbook congestion-control model, not a universal statement about every modern TCP implementation.

Original paper, page 37 · Answer key

2 marks · NAT
Report issue

Collision detection requires round-trip propagation time

Medium Access & Ethernet

Question 55, GATE 2024: An Ethernet segment transmits at 10^8 bits/s, has maximum length 500 m and signal propagation speed 2×10^8 m/s. What theoretical minimum frame length in bits permits collision detection?
Tap to enlarge
Answer & solution

Official answer: 500

Approach: Ensure that the sender is still transmitting when a worst-case collision indication returns.

1. Derivation. The one-way propagation delay is 500/(2×10⁸)=2.5μs. To detect a collision originating at the far end, transmission must continue for at least the round-trip delay 5μs. At10⁸bits/s this requires 10⁸×5×10⁻⁶=500 bits. This is the theoretical collision-detection minimum from the supplied parameters, not the separate standardized512-bit Ethernet minimum.

2. Explanation and checks. A distant node may begin transmitting just before the first signal reaches it. Evidence of that collision must then travel back to the original sender, making the worst-case duration approximately twice the one-way propagation delay. Frame transmission time L/R must therefore satisfy L/R≥2d/v, or L≥2dR/v. Substituting gives 500 bits. Using only the one-way delay yields 250 bits and can let the sender finish too early to detect the collision.

Original paper, page 37 · Answer key

1 mark · MCQ
Report issue

Data Link, Framing, Error Control & ARQ

Question 17, GATE 2023: Two hosts use stop-and-wait on a point-to-point link. For the same frame size, which combination gives lowest utilization? A longer link/lower bit rate; B longer link/higher bit rate; C shorter link/lower bit rate; D shorter link/higher bit rate.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Ignoring a negligible ACK, stop-and-wait utilization is T_tx/(T_tx+2T_prop)=1/(1+2T_prop R/L) for fixed frame size L. A longer link raises propagation time, and a higher transmission rate R shortens transmission time relative to the wait. Both decrease utilization, so the lowest is B.

Teaching detail. Let L be frame bits, R link bits/second, and d one-way propagation time. The sender spends L/R seconds transmitting, then approximately 2d waiting for propagation and acknowledgment before the next frame. Thus the useful busy fraction is (L/R)/(L/R+2d). Faster transmission can improve absolute throughput while lowering this fraction, because a short burst is followed by the same propagation wait. This distinction between utilization and raw link speed is the main trap in the options.

Original paper, page 14 · Answer key

1 mark · MSQ
Report issue

Routing Algorithms

Question 25, GATE 2023: Select the incorrect OSPF statements: A it uses Bellman–Ford; B it uses Dijkstra's least-cost paths; C it is an inter-domain protocol; D it supports hierarchical routing.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A, C

OSPF is a link-state intra-domain routing protocol that applies Dijkstra’s shortest-path algorithm. It also supports hierarchical areas with a backbone. Bellman-Ford is associated with distance-vector protocols, and inter-domain routing is not OSPF’s role. The incorrect statements are A, C.

Teaching detail. OSPF routers distribute link-state information within an autonomous system, build a topology view, and compute shortest paths using Dijkstra. Areas provide hierarchy, normally tied together by a backbone area. Inter-domain routing means routing between autonomous systems and is associated with BGP rather than OSPF. Notice that the question asks for incorrect statements: selecting the two true statements B,D would reverse the answer even if the protocol facts were understood correctly.

Original paper, page 23 · Answer key

2 marks · MSQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 50, GATE 2023: A TCP-like byte-stream protocol runs at 100 Mbps, RTT 150 ms, and maximum segment lifetime 2 minutes. Which sequence-number field lengths prevent reuse within a segment lifetime at full rate? A 30 bits; B 32; C 34; D 36.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, C, D

At100Mbps a byte-stream consumes 100×10⁶/8=12.5×10⁶ sequence numbers per second. During the 120-second maximum segment lifetime it can send 1.5×10⁹ bytes. The sequence space must exceed that count to avoid wraparound while old data can still exist. Since2³⁰≈1.074×10⁹ is too small and 2³¹≈2.147×10⁹ is sufficient, the listed 32-, 34-, 36-bit fields work, but 30 bits does not. Thus B, C, D. RTT affects window sizing, not this lifetime wraparound bound.

Teaching detail. Sequence numbers label bytes, not bits or whole packets, so the conversion from 100 megabits/second to bytes/second is essential. For b bits, wrap time is 2b/(12.5×106) seconds; it must exceed 120 seconds in the intended model. A 30-bit space wraps in about 85.9 seconds, whereas 32 bits lasts about 343.6 seconds. The mathematical minimum is 31 bits, which is absent from the offered choices; that does not make 32 the sole valid answer, because larger listed fields also work.

Original paper, page 53 · Answer key

2 marks · MSQ
Report issue

Application Protocols

Question 52, GATE 2023: A browser and all DNS servers have empty caches. Resolving a hostname requires iterative queries through three DNS tiers, each costing RTT. Fetching its small HTML reveals ten small same-server objects; all transmission/rendering times are negligible and web-server RTT is identical. Which totals are correct? A 7 RTT for nonpersistent HTTP with five parallel connections; B 5 RTT for persistent pipelining; C 9 RTT for nonpersistent/five parallel; D 6 RTT for persistent/pipelining.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: C, D

The three uncached DNS tiers require three sequential round trips. Fetching the base HTML adds one TCP-handshake RTT and one request/response RTT. With non-persistent HTTP and five parallel connections, the ten objects take two batches, each needing two RTTs, so the total is 3+2+4=9 RTTs (C). With a persistent connection and pipelining, all ten object requests share one further RTT after parsing the HTML, giving 3+2+1=6 RTTs (D). This is the stipulated negligible-transmission, classic HTTP-over-TCP model; no extra TLS handshake is included.

Teaching detail. Write a dependency timeline: DNS root, DNS next tier, DNS authoritative lookup, TCP connection for HTML, then HTML request/response. This consumes five RTTs before the browser learns the object URLs. Parallel nonpersistent transfers then require two waves of five, each with a connection RTT and a response RTT. Persistent pipelining reuses the HTML connection and places all ten requests in flight together, requiring just one further RTT. The objects cannot be requested before their references are learned; disregarding that dependency undercounts the total.

Original paper, page 55 · Answer key

2 marks · NAT
Report issue

Routing Algorithms

Question 65, GATE 2023: Routes are 200.150.0.0/16→1, 200.150.64.0/19→2, 200.150.68.0/24→3, 200.150.68.64/27→4, and default→0. Which interface receives destination 200.150.68.118 under longest-prefix matching?
Tap to enlarge
Answer & solution

Official answer: 3

Step through it (3 steps)

The destination matches 200.150.0.0/16 and 200.150.64.0/19, and it also matches 200.150.68.0/24. The /27 entry 200.150.68.64 covers last-octet values 64 through 95, so it does not match 118. The longest matching prefix is consequently the /24 entry, whose interface ID is 3.

Teaching detail. Check network matches rather than selecting the most specific row unconditionally. The /19 mask fixes the top three bits of the third octet and covers third-octet values 64 through 95, including 68. The /24 fixes the entire third octet to 68. The /27 additionally divides the last octet into groups of 32; its network 64 covers 64..95, whereas 118 lies in 96..127. The /27 is more specific but fails to match, leaving /24 as the longest matching row. The default is used only when no more specific route matches.

Original paper, page 69 · Answer key

1 mark · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 22, GATE 2022: Count internal enterprise subnets in this topology: Internet—firewall; firewall—left router; firewall—top router; top router—right router; top router—web server; left router—Ethernet LAN 1; right router—Ethernet LAN 2. Each LAN has several hosts. Exclude the Internet-facing external link. A 3; B 12; C 6; D 8.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Count the separately routed internal links/LANs: two Ethernet LANs, firewall–left router, firewall–top router, top router–right router, and top router–web server. These are six subnets. The external Internet-facing link is outside the enterprise count. Thus C under the depicted routed-interface model.

A subnet groups interfaces sharing a layer-3 link, not individual computers. Therefore each multi-host Ethernet contributes one, not its host count. The four remaining internal point-to-point/server links each contribute one, making 2+4=6.

Original paper, page 18 · Answer key

1 mark · NAT
Report issue

Application Protocols

Question 35, GATE 2022: An uncached DNS resolver iteratively resolves www.gate.org.in. Under the intended separate-delegation model for each domain level, how many query-response pairs are required? Distinguish this convention from what the domain name alone guarantees.
Tap to enlarge
Answer & solution

Official answer: 4

Our answer: 4 under one delegation per named level

In the intended uncached iterative resolution, query the root, then the in server, then org.in, then gate.org.in for the www record. That is four query-response pairs. This counts the resolver’s outbound iterative exchanges, not a separate stub-to-resolver request. Four assumes a separate delegation at every shown domain level and no additional aliases; domain labels alone do not guarantee actual zone boundaries.

The logical exchange sequence is resolver→root (referral to .in), →.in (referral to org.in), →org.in (referral to gate.org.in), →gate.org.in (www address). Each request together with its response counts as one pair, not two. Real deployments can combine labels into one zone, so this is the examination hierarchy assumption.

Original paper, page 23 · Answer key

2 marks · MSQ
Report issue

Routing Algorithms

Question 55, GATE 2022: Routing entries are 12.20.164.0 mask 255.255.252.0→R1; 12.20.170.0 mask 255.255.254.0→R2; 12.20.168.0 with /23→interface 0; 12.20.166.0 with /23→interface 1; default→R3. Which offered prefixes collectively aggregate the nondefault address set? A 12.20.164.0/20; B 12.20.164.0/22; C 12.20.164.0/21; D 12.20.168.0/22.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B,D

The nondefault entries cover third-octet ranges 164-167, 170-171, 168-169 and 166-167. Their union is exactly 164-171. It is covered by the two aligned prefixes 12.20.164.0/22 (164-167) and 12.20.168.0/22 (168-171), giving B, D. A /21 containing 164 begins at 160 and covers 160-167; a /20 containing it begins at 160 and covers 160-175. The offered /21 and /20 addresses are not canonical network starts and would include extra destinations when masked. This answer describes address-set aggregation, not replacing all forwarding entries with two routes while preserving their different next hops; the more-specific routes are still needed for those next-hop distinctions.

A /22 fixes the top six bits of the third octet, so its network begins on a multiple of four and covers four consecutive values. Ranges 164–167 and 168–171 straddle a /21 boundary and cannot be replaced by the offered /21 without changing the address set. Longest-prefix forwarding details remain distinct from this coverage calculation.

Original paper, page 37 · Answer key

2 marks · NAT
Report issue

Routing Algorithms

Question 57, GATE 2022: Unit-cost routers form P—Q—R. Distance-vector tables have converged when Q—R fails. P and Q send updates at random times at the same average rate. Find, to one decimal place, the intended probability of a P↔Q loop and count-to-infinity; explain the stochastic assumptions needed.
Tap to enlarge
Answer & solution

Official answer: 0.5

Before failure, P believes R is two hops away via Q, and Q has a one-hop route. After detecting Q-R failure, Q can be misled if P advertises its stale route first: Q installs distance 3 via P while P still routes via Q, forming a loop. If Q announces unreachability first, P removes the route and avoids that loop. In the intended symmetric independent update-race model, either router is equally likely to send first, so the probability is 1/2=0.5. The stated equality of average update rates alone does not mathematically specify this race probability: identical/exchangeable timing distributions and no relevant delivery delay are additional assumptions. The example also assumes ordinary distance vector without split horizon or poisoned reverse; those safeguards change the result.

For independent exponential update clocks of rate λ, P(P sends first)=∫₀∞ λe−λte−λtdt=1/2. Equal mean intervals without identical residual-time distributions do not justify this integral. In the loop, Q installs 3 via P, then P learns 4 via Q, then Q learns 5, illustrating count-to-infinity.

Original paper, page 38 · Answer key

2 marks · NAT
Report issue

Physical Layer & Transmission

Question 59, GATE 2022: A 100 Mbps earth-to-satellite link spans 2100 km; propagation speed is 3×10^8 m/s. How many milliseconds elapse from starting transmission until a 1000-byte packet is completely received? Round to two decimals.
Tap to enlarge
Answer & solution

Official answer: 7.07 to 7.09

Our answer: 7.08

Propagation takes 2100000/(3*108)=0.007 seconds=7 ms. Serializing 1000 bytes at 100*106 bits per second takes 8000/(100*106)=0.00008 seconds=0.08 ms. Complete reception occurs after one propagation delay plus serialization, not a round trip. Total 7.08 ms lies in the official 7.07-7.09 range.

Use decimal networking units: 100 Mbps=100,000,000 bits/s and 1000 bytes=8000 bits. The first bit arrives at 7 ms; the last bit starts 0.08 ms later and experiences the same propagation delay, arriving at 7.08 ms. Acknowledgment or round-trip delays are not requested.

Original paper, page 39 · Answer key

2 marks · NAT
Report issue

Transport, Congestion Control & Traffic Shaping

Question 60, GATE 2022: TCP sends over 1 Gbps with maximum segment lifetime 60 seconds. What minimum sequence-number bit width avoids wrapping during that lifetime?
Tap to enlarge
Answer & solution

Official answer: 33

TCP sequence numbers identify bytes. At 109 bits per second, the stream uses 109/8=125000000 sequence numbers per second and 7500000000 in 60 seconds. A nonwrapping sequence space must accommodate that many distinct bytes during the MSL. Since 232=4294967296 is too small but 233=8589934592 is enough, 33 bits are required.

The bound is 2b≥rate_in_bytes_per_second×MSL. Taking a ceiling gives b=ceil(log2(7.5×109))=33. Counting bits rather than bytes would give the wrong sequence-space requirement because TCP increments sequence numbers per payload byte.

Original paper, page 39 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

IP Addressing, Fragmentation & Address Resolution

Question 8, GATE 2021: S1: The destination MAC address of an ARP reply is a broadcast address. S2: The destination MAC address of an ARP request is a broadcast address. Which is correct? A both true; B S1 true/S2 false; C S1 false/S2 true; D both false.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

In ordinary Ethernet ARP address resolution, a requester broadcasts because it does not yet know the target MAC address. The target learns the requester’s MAC from that request and unicasts the reply to it. Thus S1 is false and S2 true, C. This describes the normal request/reply exchange, not gratuitous ARP or implementation-specific unicast refresh traffic.

The requester already knows the destination IP but lacks its link-layer address. It therefore sends an Ethernet broadcast asking which host owns that IP. The request includes the requester's own sender MAC/IP, so the responding target has the information needed for a unicast reply. Do not confuse the IP address being resolved with the Ethernet destination field the statements ask about.

Original paper, page 15 · Answer key

2 marks · MSQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 44, GATE 2021: A TCP server listens on port P of host S and has an active client connection. S crashes and reboots. The client uses no TCP keepalive timer. Select possible behaviors: A a client waiting for a packet may wait indefinitely; B the restarted server can listen again on P; C a client packet after reboot receives RST; D a client packet after reboot receives FIN.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A; B; C

A passive client with no keepalive, no pending retransmission and no application timeout can wait indefinitely after a silent server crash, so A is possible. After reboot the server can bind and listen on the same port again, so B is possible. The old established connection state is gone; a segment from that old connection can elicit a reset, not an orderly FIN, giving C rather than D. This is the standard reachable-server TCP response model; actual delivery can still be affected by packet loss or filtering, and a listening socket does not restore the lost connection.

A crash does not perform an orderly TCP close, so no reliable FIN is sent merely because the old connection disappeared. After reboot the endpoint has no matching established-connection state. A valid arriving old-connection segment is therefore rejected/reset in the standard reachable-host model rather than resuming that connection. Waiting indefinitely is a possibility, not a promise: an application timeout, retransmission timeout, keepalive, or network error could instead terminate a particular client's wait.

Original paper, page 36 · Answer key

2 marks · MSQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 45, GATE 2021: P sends a 1400-byte TCP segment to Q through router R. MTUs are 1500 bytes on P–R and 820 bytes on R–Q; IP headers are 20 bytes, identification 0x1234, and DF=0. Select true statements: A R creates two fragments and the second IP datagram is 620 bytes; B if the second fragment is lost, R retransmits it with ID 0x1234; C if it is lost, P must resend the whole TCP segment; D the TCP destination port can be obtained from the second fragment alone.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: A; C

The TCP segment is the 1400-byte IP payload. The original IP datagram is 1420 bytes and fits the first MTU. The second link allows 820-20=800 payload bytes per fragment, a multiple of eight. Fragment payloads are therefore 800 and 600 bytes, giving datagram sizes 820 and 620, so A holds. IP routers do not retransmit lost fragments, so B is false. Loss prevents reassembly of the original segment and TCP at P retransmits the unacknowledged data, corresponding to C in the ordinary unchanged-segmentation model. TCP may resegment retransmitted bytes in a more general implementation; it does not repair just the missing IP fragment. The TCP header is only in the first fragment, so the second alone does not reveal the destination port and D is false.

IPv4 fragment offsets count eight-byte units. The first fragment has offset 0, payload 800, total 820 and MF=1; the second has offset 100, payload 600, total 620 and MF=0. Both retain the original identification for reassembly. The receiver needs both to reconstruct the TCP segment. Reliable delivery belongs to TCP endpoints, not an IP router's fragment-repair service. A later TCP retransmission may choose new segmentation or a new IP identification; retaining the exam answer does not justify claiming otherwise.

Original paper, page 36 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 49, GATE 2021: A sliding-window protocol uses a full-duplex error-free link with negligible frame/ACK processing, unlimited queued frames, 2000-bit data frames, 10-bit ACK frames, 1 Mbps in each direction, and 100 ms one-way propagation. What is the minimum sender window in frames needed for 50% utilization (source asks nearest-integer rounding)?
Tap to enlarge
Answer & solution

Official answer: 50 to 52

Our answer: 51

Step through it (6 steps)

A data frame takes 2000/106=2 ms to serialize; an ACK takes 10/106=0.01 ms. The earliest ACK for the first frame returns after 2+100+0.01+100=202.01 ms. For an unsaturated sliding window of W frames, utilization is W*2/202.01. Requiring at least 0.5 gives W>=50.5025, so the smallest integer window is 51. The official accepted interval is 50 to 52 and is retained, but the explicit ACK serialization and minimum-integer calculation give 51.

A cycle for the first frame includes its serialization, forward propagation, ACK serialization, and reverse propagation: 202.01 ms. In that interval W frames occupy the forward link for 2W ms, unless the link is already saturated. Hence utilization is min(1,2W/202.01). W=50 gives about 49.5025%, below the target, whereas W=51 gives about 50.4925%. This directly checks the minimum-integer result and explains why the wider official interval is preserved separately from the derivation.

Original paper, page 39 · Answer key

1 mark · MCQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 7, GATE 2021: TCP hosts P,Q choose initial sequence numbers X,Y. P sends SYN=1,SEQ=X,ACK=0; Q accepts. Select Q's response (SYN,SEQ,ACK,ACKnumber,FIN): A (1,X+1,0,Y,0); B (0,X+1,0,Y,1); C (1,Y,1,X+1,0); D (1,Y,1,X,0).
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Q sends SYN+ACK using its own initial sequence Y and acknowledging X+1 because SYN consumes one sequence number. Thus SYN=1, SEQ=Y, ACK=1, ACKnumber=X+1, FIN=0, C; sequence arithmetic is modulo 2³².

TCP sequence spaces are independent in the two directions. Q must announce Y, not X+1, as its own sequence number. The acknowledgment X+1 says that P's SYN was consumed and the next expected sequence is X+1. FIN is zero because the response establishes rather than closes the connection.

Original paper, page 58 · Answer key

2 marks · MCQ
Report issue

Data Link, Framing, Error Control & ARQ

Question 34, GATE 2021: CRC generator x³+x+1; message 11000. Append three check bits to obtain a divisible transmitted polynomial over GF(2). Find check bits. A 101; B 110; C 100; D 111.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step through it (6 steps)

Append three zeros to 11000, obtaining 11000000. Divide over GF(2) by 1011. XOR at the leading positions gives 11000000 XOR10110000=01110000, then XOR01011000=00101000, then XOR00101100=00000100. The three-bit remainder is 100, so C. Appending100 makes the transmitted polynomial divisible by the generator.

In polynomial arithmetic coefficients are mod 2, so subtraction is XOR without borrows. Generator degree three fixes a three-bit remainder, including any leading zero. As a verification, 11000100 divided by 1011 has zero remainder. Dividing the unshifted message instead would generate the wrong checksum.

Original paper, page 74 · Answer key

2 marks · MSQ
Report issue

Routing Algorithms

Question 45, GATE 2021: Distance-vector routing: R→X,Y,Z link costs 3,2,5. Advertised distances X,Y,Z→P are 7,6,5; to Q are 4,6,8. Update R. A P distance 10; B Q distance 7; C P next hop Y; D Q next hop Z.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B; C

Bellman-Ford updates R-to-P with min(3+7, 2+6, 5+5)=8, reached through Y. For Q it uses min(3+4, 2+6, 5+8)=7, reached through X. Hence B, C, not A or D.

The update formula is D_R(v)=min_N(c(R,N)+D_N(v)). For P the three candidates are 10,8,10; for Q they are 7,8,13. Store both the minimum cost and its minimizing neighbor. Choosing the neighbor with the cheapest direct link alone would pick Y for both and be wrong for Q.

Original paper, page 82 · Answer key

2 marks · NAT
Report issue

Medium Access & Ethernet

Question 54, GATE 2021: Pure ALOHA frames are 1000 bits over 1Mbps. All attempts, including retries, are Poisson at 1000 frames/s. Find successful frames/s, rounded to nearest integer.
Tap to enlarge
Answer & solution

Official answer: 130 to 140

Our answer: 135

A frame occupies 1000/106=0.001 seconds. For pure ALOHA the vulnerable period is twice that, 0.002 seconds. Given the stated Poisson attempt rate 1000 per second, the chance of no competing attempt in that interval is exp(-1000*0.002)=e-2. Successful throughput is 1000e-2=135.335 frames/second, rounding to 135, within the official 130–140 interval.

Let frame duration τ=0.001s and total offered load G=λτ=1. Pure ALOHA success probability is e−2G, unlike slotted ALOHA's e−G. Thus normalized throughput is Ge−2G frames per frame-time, or λe−2G frames/s. Retry attempts are already included in λ and must not be added again.

Original paper, page 87 · Answer key

1 mark · MCQ
Report issue

Routing Algorithms

Question 15, GATE 2020: Which IP-router claims are true? I Forwarding never modifies IP packets. II A router need not implement a routing protocol. III It should reassemble fragments when outgoing-link MTU exceeds incoming-packet size. Options: A I,II; B I only; C II,III; D II only.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Worked explanation

Distinguish the forwarding plane from the control plane. Forwarding uses an existing destination-prefix table; a human can configure static routes, so a dynamic routing protocol is not mandatory. Forwarding is not a bit-for-bit copy of the IP header: hop lifetime is decremented, and IPv4’s header checksum must reflect that. A larger next-link MTU merely permits larger packets; it does not make a transit router the reassembly destination. Fragments may follow different paths, another reason end-to-end reassembly belongs at the destination. Thus only II survives.

Derivation and answer

A router changes at least TTL/hop limit while forwarding and, in IPv4, adjusts the header checksum, so I is false. It can use a static forwarding/routing table without a dynamic routing protocol, so II is true. Ordinary IP fragment reassembly is performed at the destination, not by transit routers merely because the next MTU is larger, so III is false. Thus D.

Original paper, page 7 · Answer key

1 mark · NAT
Report issue

Application Protocols

Question 25, GATE 2020: An empty-cache browser fetches a page with text and five very small separately referenced images using nonpersistent HTTP. What is the minimum number of TCP connections needed to display it completely?
Tap to enlarge
Answer & solution

Official answer: 6

Worked explanation

First retrieve the HTML/text document. Its references reveal five image resources, each of which must then be requested because the cache starts empty. Nonpersistent HTTP closes a connection after one request/response object, so the six objects require six connections. Concurrently opening image connections may reduce elapsed time but cannot reduce the count. “Very small” changes transmission duration, not HTTP’s connection-reuse rule. Persistent HTTP would permit reuse, but the question expressly excludes it.

Derivation and answer

Nonpersistent HTTP uses a separate TCP connection for each retrieved object. There is one HTML/text object and five image objects, so six connections. This uses the standard interpretation of separate externally referenced images, not inline data embedded in the HTML.

Original paper, page 9 · Answer key

2 marks · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 38, GATE 2020: An ISP owns 202.61.0.0/17 and wants one aggregatable block for 1500 computers. Candidate network starts: I 202.61.84.0/21; II 202.61.104.0/21; III 202.61.64.0/21; IV 202.61.144.0/21. Which candidates are valid? A I,II; B II,III; C III,IV; D I,IV.
Question 38, GATE 2020: An ISP owns 202.61.0.0/17 and wants one aggregatable block for 1500 computers. Candidate network starts: I 202.61.84.0/21; II 202.61.104.0/21; III 202.61.64.0/21; IV 202.61.144.0/21. Which candidates are valid? A I,II; B II,III; C III,IV; D I,IV.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (6 steps)

Worked explanation

Host capacity first: /22 has 1024 total addresses and cannot serve 1500 machines; /21 has 2048 total, conventionally 2046 usable, so it suffices. A /21 mask is 255.255.248.0, making its third-octet start a multiple of 8. The available /17 spans third octets 0 through 127. I fails alignment because 84 mod 8=4. II starts at 104 and ends at 111, inside the allocation. III spans 64–71, also inside. IV is aligned but spans 144–151 outside the /17. Interpreting 84.0/21 as an arbitrary address within the 80.0/21 network would silently change the listed network start; the intended assessment uses actual aligned block bases.

Derivation and answer

A/21 block provides 2048 addresses, enough for 1500 hosts, and must begin on a multiple-of 8 boundary in the third octet.104 and 64 are aligned and lie within the/17 allocation’s third-octet range 0–127.84 is not an aligned network address, and 144 lies outside the allocation. Thus II andIII, B. This treats the supplied address as the claimed network start rather than silently normalizing a host-bearing prefix.

Original paper, page 13 · Answer key

2 marks · NAT
Report issue

Transport, Congestion Control & Traffic Shaping

Question 55, GATE 2020: TCP is established at t=0, RTT=6 ms, receiver advertised window=50 KB, client slow-start threshold=32 KB, MSS=2 KB, no errors or timeouts. Find congestion window after all ACKs at t=60 ms. Initial cwnd and ACK growth convention are not stated; give the intended classic-model answer with that caveat.
Tap to enlarge
Answer & solution

Official answer: 44

Our answer: 44 under classic one-MSS initial window

Worked explanation

There are 60/6=10 completed RTT rounds. In the intended one-MSS initial model the window in MSS after rounds 0…10 is 1,2,4,8,16,17,18,19,20,21,22. Multiply by 2 KB to get 2,4,8,16,32,34,36,38,40,42,44 KB at times 0,6,…,60 ms. The threshold 32 KB is reached after round 4, leaving six additive-increase rounds, not ten. The advertised receiver window limits allowed outstanding data to min(cwnd,rwnd), but here 44<50, so it does not bind. This table is conditional on the classic RTT-based growth and stated initial-window assumption; it is not a claim that all compliant TCP implementations must start at 2 KB.

Derivation and answer

In the classic round-based model, start cwnd at one MSS=2KB when t=0. After RTTs at 6, 12, 18, 24ms, slow start gives 4, 8, 16, 32KB. Then congestion avoidance adds one MSS=2KB per RTT; the next six acknowledgments rounds through 60ms give 34, 36, 38, 40, 42, 44KB. The50KB receiver window does not bind. Thus official 44KB follows. The initial congestion window and ACK growth convention are not explicitly specified; modern larger initial windows or different ACK accounting can change the result. Retain44 as the intended historical model, not a universal TCP outcome.

Original paper, page 16 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Protocols for sending and retrieving email

Application Protocols

Question 16, GATE 2019: Choose the protocol pair for sending and then retrieving email, in that order: A IMAP and POP3; B SMTP and POP3; C SMTP and MIME; D IMAP and SMTP.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Method: assign each named standard its actual role, keeping the requested order.

1. SMTP, Simple Mail Transfer Protocol, handles mail submission and transfer between mail servers. It supplies the sending role.
2. POP3, Post Office Protocol version 3, lets a client retrieve messages from a mailbox server. It supplies the retrieval role, so SMTP followed by POP3 works.
3. IMAP also supports mailbox access and retrieval, but is not the sending protocol in A or D. MIME describes message content formats, encodings, and attachments; it is not a mailbox-retrieval protocol, so C fails in its second position.

Result: B, SMTP and POP3. This does not mean POP3 is the only way to read email; an SMTP/IMAP pair would also be valid if it were offered in the correct order.

Original paper, page 6 · Answer key

2 marks · MCQ
Report issue

Subnet comparison using a /30 mask

IP Addressing, Fragmentation & Address Resolution

Question 28, GATE 2019: Machines M, N, P have IPv4 addresses 100.10.5.2, 100.10.5.5, 100.10.5.6 and all use mask 255.255.255.252. Are all in one subnet (A), only M/N together (B), only N/P together (C), or all in different subnets (D)?
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step through it (5 steps)

1. Two IPv4 interfaces are in the same subnet when bitwise AND of each address with the subnet mask yields the same network address. The first three octets are identical here, so only the last octet needs calculation.
2. The last mask octet 252 is binary 11111100. Thus the two low bits are host bits and each subnet spans four consecutive addresses, starting at multiples of four.
3. M has last octet 2=00000010; AND with 11111100 gives 0. Its network is 100.10.5.0/30, covering last octets 0 through 3.
4. N has 5=00000101 and P has 6=00000110. Masking either gives 4=00000100. Both belong to 100.10.5.4/30, covering 4 through 7.
5. Only N and P share a subnet, so C is correct. Comparing the first three octets alone would incorrectly assume a /24 mask; the supplied /30 mask is decisive.

Original paper, page 10 · Answer key

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Resolving a local IP address with ARP

IP Addressing, Fragmentation & Address Resolution

Question 29, GATE 2019: In an IP-over-Ethernet network, X needs the MAC address of Y in the same subnet. Choose between sending an ARP request to the gateway IP (A), gateway MAC (B), local broadcast MAC (C), or local broadcast IP (D).
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. The task is address resolution: X knows Y's IP address but needs the link-layer destination address for an Ethernet frame on the local network.
2. ARP carries the target IP address in its request. Since X does not yet know Y's MAC address, it sends the Ethernet frame to FF:FF:FF:FF:FF:FF, the broadcast MAC address, so local hosts can inspect the request.
3. Y recognizes its own IP in the request and normally replies with its MAC address. X can then cache the mapping and send ordinary unicast Ethernet frames to Y.
4. Therefore C describes the needed technique. Neither gateway option is the ordinary same-subnet procedure: a router is used for off-subnet forwarding, not required to identify this local neighbor.
5. D confuses protocol layers. An ARP request is carried directly in an Ethernet frame; it is not an IP datagram sent to a broadcast IP destination. Its broadcast delivery is at the MAC layer.

Original paper, page 10 · Answer key

2 marks · NAT
Report issue

Switch ports consumed by uplinks

Network Layers & Devices

Question 49, GATE 2019: Connect 15 machines into one LAN using 8-port Ethernet switches with no separate uplink ports. What is the smallest number of switches required?
Tap to enlarge
Answer & solution

Official answer: 3

1. Each machine connection consumes one switch port. Connecting switches to each other also consumes a port at each end because there are no extra uplink ports.
2. A connected arrangement of k switches requires at least k−1 inter-switch links. Using a tree achieves that minimum, consuming 2(k−1) ports in total.
3. The greatest possible number of machine ports is consequently 8k−2(k−1)=6k+2. For k=2 this is 14, insufficient for 15 machines; one switch is plainly insufficient as well.
4. For k=3 the bound becomes 20. A chain of three switches uses one port on each outer switch and two on the middle switch, leaving capacities 7,6,7 for machines.
5. Allocate five machines to each switch, for example. The outer switches then use six ports each and the middle uses seven, all within their eight-port limits. Thus three switches are feasible and two are impossible: minimum 3.
6. Simply dividing 15 by 8 and rounding up misses the ports consumed by the link between the two proposed switches. Extra cycles between switches only consume more ports and cannot improve the minimum.

Original paper, page 15 · Answer key

2 marks · NAT
Not in GATE 2027 syllabusReport issue

Factoring an RSA modulus from its totient

Network Security

Question 54, GATE 2019: For a two-prime RSA modulus n=3007, Euler's totient φ(n)=2880. Find the prime factor of n that exceeds 50.
Tap to enlarge
Answer & solution

Official answer: 97

1. In the standard RSA construction n=pq for distinct primes p,q, and φ(n)=(p−1)(q−1). Expanding gives φ(n)=pq−p−q+1=n−(p+q)+1.
2. Rearrange to recover the prime sum: p+q=n+1−φ(n)=3007+1−2880=128. Their product is already known: pq=3007.
3. Numbers with this sum and product are roots of t²−128t+3007=0. Its discriminant is 128²−4×3007=16384−12028=4356=66².
4. The roots are (128+66)/2=97 and (128−66)/2=31. Both are prime, and their product 97×31=3007 verifies the factorization.
5. Also (97−1)(31−1)=96×30=2880, verifying the given totient. Only 97 is greater than 50, so the required answer is 97.
6. The useful method is recovering p+q from the totient; trial-dividing n is unnecessary. The formula used here relies on the stated RSA two-distinct-prime setting.

Original paper, page 16 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Network field widths

Network Layers & Devices

Question 13, GATE 2018: Match P UDP port, Q Ethernet MAC address, R IPv6 Next Header, S TCP sequence number to I 48, II 8, III 32, IV 16 bits. Options: A P-III,Q-IV,R-II,S-I; B P-II,Q-I,R-IV,S-III; C P-IV,Q-I,R-II,S-III; D P-IV,Q-I,R-III,S-II.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Method

A UDP source or destination port is a 16-bit field, allowing 65536 numeric values. A conventional Ethernet address is six octets, hence 48 bits. IPv6 Next Header is a one-octet protocol identifier, not a pointer-sized field. TCP’s sequence space has 232 byte positions. These independent facts yield the complete matching; confusing byte lengths with bit lengths is the main arithmetic trap.

Solution

UDP port numbers have 16 bits; Ethernet MAC addresses 48; IPv6 Next Header8; TCP sequence numbers 32. Therefore P-IV, Q-I, R-II, S-III, C.

Original paper, page 7 · Answer key

1 mark · MCQ
Report issue

TCP slow start per ACK and per RTT

Transport, Congestion Control & Traffic Shaping

Question 14, GATE 2018: During textbook slow start consider: i cwnd increases by 2 MSS per ACK; ii doubles per ACK; iii increases by 1 MSS per RTT; iv approximately doubles per RTT. Choose A ii,iii; B i,iii; C iv only; D i,iv.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Method

Suppose cwnd is w MSS at the start of a round, so approximately w full segments are sent. Each successful ACK adds roughly one MSS, and the w acknowledgments add w MSS in total. The next round therefore starts near 2w MSS. This is exponential growth by rounds, not by individual ACKs. A one-MSS increase per RTT describes the rough congestion-avoidance behavior instead of slow start.

Solution

In textbook slow start, each ACK increases cwnd by approximately one MSS. With one ACK per segment in a full window, one RTT supplies about cwnd/MSS ACKs, approximately doubling the window. Only iv is true, C. Delayed ACKs and implementation details qualify the approximate doubling.

Original paper, page 8 · Answer key

1 mark · NAT
Report issue

TCP sequence-number wrap time

Transport, Congestion Control & Traffic Shaping

Question 25, GATE 2018: A long-lived TCP connection sends at 10^9 bits/s and starts at sequence number 1234. Find the minimum time in seconds before that number can recur, rounded to an integer.
Tap to enlarge
Answer & solution

Official answer: 34 to 35

Our answer: 34 seconds

Method

A TCP sequence number labels a byte, so a full modulo-2^32 cycle consumes 4294967296 bytes, or 34359738368 bits. Divide by the bit rate, maintaining consistent units. The initial value 1234 affects which label comes first, but not how many increments return to it. This is a sequence-space throughput calculation; it does not independently establish that reusing the number is safe from delayed old packets.

Solution

TCP sequence numbers count bytes modulo 232. At109 bits/s, consuming the full sequence space requires 232·8/109≈34.359738 seconds, rounded 34. The starting number 1234 only shifts the cycle and does not change its length.

Original paper, page 10 · Answer key

2 marks · NAT
Report issue

IPv4 fragment offset

IP Addressing, Fragmentation & Address Resolution

Question 54, GATE 2018: An IPv4 packet is 4500 bytes including a 20-byte IP header and 40-byte TCP header. Router MTU is 600 bytes; each fragment has a 20-byte IP header and the first offset is zero. Find the third fragment’s stored offset.
Tap to enlarge
Answer & solution

Official answer: 144

Step through it (4 steps)

Method

Fragment offset is measured in eight-byte units from the original IP payload start, not from the original IP header. A full fragment may hold 580 payload bytes by MTU, but a nonfinal fragment must end on an eight-byte boundary, so round down to 576. The first occupies payload bytes 0–575, the second 576–1151, and the third starts at 1152. Their stored offsets are 0,72,144. The TCP header travels as part of the first payload, without a new TCP header in later fragments.

Solution

Each fragment has room for 600−20=580 payload bytes. Nonfinal payload lengths must be multiples of 8, so use 576 bytes per full fragment. The third fragment starts after 2*576=1152 bytes of original IP payload, giving stored offset 1152/8=144. The40-byte TCP header is part of the IP payload and is not repeated or subtracted from every fragment. Fragmentation is assumed permitted, as the question prescribes outgoing fragments.

Original paper, page 22 · Answer key

2 marks · NAT
Report issue

Carrier sensing and propagation delay

Medium Access & Ethernet

Question 55, GATE 2018: Two nodes P,Q are d metres apart, propagation speed 10 m/time-unit. Nodes sense for 5 units then transmit next; on detecting another transmission they wait for it to end and sense again. Transmissions last 20 units without collision detection. P begins at t=0; Q begins sensing at t=0. Find largest collision-avoiding d, rounded to metres.
Tap to enlarge
Answer & solution

Official answer: 50

Method

Q cannot sense P immediately at a distance: P’s leading signal arrives at t=d/10. To suppress Q’s pending transmission, that arrival must occur by the sensing decision at t=5 under the intended endpoint convention. At d=50 the signal reaches Q at the boundary and remains present for the next 20 units as P’s packet propagates past Q. A larger propagation delay leaves Q’s sensing interval apparently idle, so the protocol can launch an overlapping transmission. The limiting equation uses sensing time, not packet duration.

Solution

P’s signal reaches Q after propagation delay d/10 time units. To defer, Q must observe it during the five-unit sensing interval before Q starts transmission. Thus the intended boundary is d/10≤5, giving d≤50 metres. The answer 50 uses the convention that an arrival at the end of sensing is observed before the decision to transmit. If exact simultaneous-event ordering is not specified, 50 is the limiting distance; a strict-before model would use d<50, with the same rounded boundary. P transmits for 20 units, so its signal is still ongoing when first detected at this boundary.

Original paper, page 23 · Answer key

1 mark · MCQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 14, GATE 2017: After TCP data transfer, a client calls close, sends FIN, and receives the server’s ACK. In which RFC793 state does the client now wait for the server FIN? A LAST-ACK; B TIME-WAIT; C FIN-WAIT-1; D FIN-WAIT-2.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

1. The client is the active closer because it sends FIN first. Sending FIN moves it from ESTABLISHED into FIN-WAIT-1.

2. The ACK acknowledges that outgoing FIN. The client has finished its own send direction but the server has not yet sent its FIN, so it enters FIN-WAIT-2.

3. Receiving the peer FIN and acknowledging it leads to TIME-WAIT. LAST-ACK belongs to the passive closer awaiting acknowledgment of its own FIN. Therefore D.

Original paper, page 8 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Network Security

Question 15, GATE 2017: S digitally signs message m with its private key and sends it to R. Who can use a birthday attack to replace m with a fraudulent message? I S; II a third-party attacker; III R. A I and II; B I only; C II only; D II and III.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

1. A birthday collision attack searches for any two distinct messages with the same digest; it does not efficiently target one already fixed digest. For an n-bit digest its generic collision cost is about 2n/2, versus 2n for a fixed-target second preimage.

2. The signer can prepare many harmless and fraudulent variants before selecting what to sign, find a colliding pair, and reuse the signature on the fraudulent member. This makes I possible in the intended hash-then-sign setting.

3. The receiver or outside attacker only receives the fixed signed m. Replacing that requires a second preimage, not the freely chosen birthday pair. Thus II and III do not follow, and B is intended.

Original paper, page 9 · Answer key

2 marks · MCQ
Report issue

Data Link, Framing, Error Control & ARQ

Question 32, GATE 2017: A network uses CRC over GF(2), eight information bits and generator x³+x+1. How is message 01011011 transmitted? A 01011011010; B 01011011011; C 01011011101; D 01011011100.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step through it (6 steps)

1. The degree-three generator requires three check bits. Append three zeros to 01011011, obtaining dividend 01011011000; generator bits are 1011.

2. Division in GF(2) uses XOR instead of subtraction. As integers the aligned XORs are 728 XOR (11<<6)=24; 24 XOR (11<<1)=14; 14 XOR 11=5. The remainder 5 is three-bit 101.

3. Replace the three zero placeholders with 101: transmitted bits are 01011011101, C. Dividing this final codeword by 1011 yields remainder zero, an independent check.

Original paper, page 15 · Answer key

2 marks · NAT
Not in GATE 2027 syllabusReport issue

Network Security

Question 44, GATE 2017: RSA uses primes p=13,q=17 and public exponent 35. Find the private exponent (least positive modular inverse).
Tap to enlarge
Answer & solution

Official answer: 11.0

Our answer: 11

1. RSA modulus N=pq=13×17=221. Since p and q are distinct primes, φ(N)=(p−1)(q−1)=12×16=192.

2. The private exponent d must satisfy ed≡1 mod φ(N), so solve 35d≡1 mod192. Euclid gives 192=5×35+17 and 35=2×17+1.

3. Back substitute: 1=35−2(192−5×35)=11×35−2×192. Hence d=11 is the least positive inverse. Check 35×11=385=2×192+1.

Original paper, page 20 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 45, GATE 2017: Stop-and-wait ARQ: bit rate 1 Mbps; one-way propagation 0.75 ms; frame processing time 0.25 ms; information-frame length 1980 bytes; ACK length 20 bytes; information-frame overhead 20 bytes. No errors. Find useful-data transmission efficiency as a percentage to two decimals.
Tap to enlarge
Answer & solution

Official answer: 86.5 to 89.5

Our answer: 87.11 under stated whole-frame convention

1. Interpret 1980 bytes as total information-frame length including its 20 overhead bytes. Useful payload=1960 bytes, so useful transmission time is 1960×8/106 s=15.68 ms.

2. A full stop-and-wait cycle includes information transmission 1980×8/10^6=15.84 ms; outward and return propagation 2×0.75=1.50 ms; ACK transmission 20×8/10^6=0.16 ms; and two received-frame processing times 2×0.25=0.50 ms. Total=18.00 ms.

3. Efficiency=useful payload time/cycle time=15.68/18=0.871111..., or 87.11%. If “1980” instead denotes payload before overhead, use 15.84/18.16, giving 87.22%.

Original paper, page 20 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Routing Algorithms

Question 9, GATE 2017: For IPv4 routing, assess I:RIP uses distance-vector routing; II:RIP packets use UDP; III:OSPF packets use TCP; IV:OSPF uses link-state routing. A:I,IV. B:I,II,III. C:I,II,IV. D:II,III,IV.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. RIP exchanges distance estimates with neighbors and uses a distance-vector approach, so I is true. Its routing messages are carried in UDP datagrams, making II true.

2. OSPF distributes link-state information and computes shortest paths from its link-state database, so IV is true. Its packets run directly over IP using protocol number 89, not through TCP, so III is false.

3. The true set is I,II,IV, option C. Routing algorithm type and transport encapsulation are separate properties; identifying OSPF as link-state does not imply that it uses TCP.

Original paper, page 4 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Transport, Congestion Control & Traffic Shaping

Question 18, GATE 2017: On Linux, a connected UDP socket is one on which connect has been called. Assess I:A connected UDP socket can communicate with multiple peers simultaneously. II:A process can successfully call connect again on an already connected UDP socket. A:I only. B:II only. C:both. D:neither.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Our answer: B under single bidirectional peer interpretation

1. UDP connect does not establish a TCP-like reliable connection. It associates a default destination with the socket and ordinarily restricts incoming datagrams to that peer, allowing send/write calls without specifying an address.

2. Another connect call can change the peer association, so II is true. Under the exam's interpretation of communicate as simultaneous default, bidirectional peer associations, I is false and the intended answer is B.

3. Preserve the Linux API caveat: a connected UDP socket may still send a datagram to another destination explicitly supplied to sendto/sendmsg. Thus it is inaccurate to say that a connected UDP socket can never send to multiple peers. The unique B answer relies on the bidirectional/default-peer interpretation.

Original paper, page 7 · Answer key

1 mark · NAT
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 20, GATE 2017: What is the maximum number of IPv4 router addresses that can be listed in the Record Route (RR) option field of one IPv4 header?
Tap to enlarge
Answer & solution

Official answer: 9.0

Our answer: 9

1. The IPv4 IHL field can specify at most 15 words of 4 bytes, giving a 60-byte maximum header. The fixed header takes 20 bytes, leaving at most 40 for options and padding.

2. The Record Route option uses three control bytes: type, length and pointer. Therefore at most 40-3=37 bytes remain for recorded addresses. Each IPv4 address needs 4 bytes.

3. The maximum integer count is floor(37/4)=9. Nine addresses occupy 36 bytes plus 3 control bytes, and one padding byte brings the header options area to 40. Ten addresses would need 43 option bytes and cannot fit.

Original paper, page 8 · Answer key

2 marks · MCQ
Report issue

Data Link, Framing, Error Control & ARQ

Question 34, GATE 2017: A binary code has valid words 00000,01011,10101,11110. Let p be its minimum Hamming distance and q the maximum guaranteed correctable number of bit errors. A:p=3,q=1. B:p=3,q=2. C:p=4,q=1. D:p=4,q=2.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (8 steps)

1. Hamming distance counts differing positions, obtainable by counting ones in the XOR. Against 00000 the other three words have weights 3,3,4, giving the first three distances.

2. The remaining pairs have distances d(01011,10101)=4, d(01011,11110)=3 and d(10101,11110)=3. Hence the minimum over all six pairs is p=3.

3. To correct every pattern of q errors, radius-q neighborhoods of distinct codewords must not overlap, requiring 2q<p. Thus q=floor((p-1)/2)=1. Select A. A distance-3 code can detect two errors, but guaranteed correction of two errors would require minimum distance at least 5.

Original paper, page 13 · Answer key

2 marks · MCQ
Report issue

Physical Layer & Transmission

Question 35, GATE 2017: Hosts X and Y have a direct link of rate 10^6 bits/s, length 10,000 km, and propagation speed 2×10^8 m/s. X continuously sends 50,000 bytes as one large message. Find transmission p and propagation q delays in ms. A:(50,100). B:(50,400). C:(100,50). D:(400,50).
Tap to enlarge
Your answer
Answer & solution

Official answer: D

1. Transmission delay is the time to put all message bits onto the link. Convert bytes to bits: 50,000×8=400,000 bits. Divide by 106 bits/s to get 0.4 seconds, or p=400 ms.

2. Propagation delay is the travel time of a bit from one end to the other. Convert the distance: 10,000 km=107 m. Divide by 2×108 m/s to get 0.05 seconds, or q=50 ms.

3. Thus D gives the requested ordered pair. These are different delays: message size affects transmission, while distance affects propagation. Under the ideal assumptions the last bit arrives after their sum, 450 ms, but the question asks for the two components separately.

Original paper, page 13 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

IP Addressing, Fragmentation & Address Resolution

Question 24, GATE 2016: Which protocol is NOT used to resolve one form of address to another? A: DNS. B: ARP. C: DHCP. D: RARP.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

DNS resolves names to addresses, ARP resolves network-layer addresses to link-layer addresses, and RARP performs the reverse mapping. DHCP leases/configures host addressing rather than acting as an address-resolution protocol. Thus C.

Think of the direction of each lookup: DNS maps a domain name to an IP address; ARP maps a local network-layer address to a hardware address; RARP requests a protocol address from a hardware-address identity. DHCP instead assigns a lease and supplies configuration such as a subnet mask and default gateway. It may use address information internally, but that does not make its primary role address resolution in the sense asked here.

Original paper, page 11 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Application Protocols

Question 25, GATE 2016: Which are stateful application-layer protocols? i:HTTP; ii:FTP; iii:TCP; iv:POP 3. A: i,ii only. B: ii,iii only. C: ii,iv only. D: iv only.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

FTP maintains control-session state and POP 3 proceeds through authorization, transaction and update states. HTTP is conventionally stateless at the protocol level despite application cookies, while TCP is stateful but belongs to the transport layer. Therefore FTP and POP 3, C.

Apply both filters in the question: stateful, and application-layer. TCP satisfies the first but fails the second because it is a transport protocol. HTTP's request semantics do not require retained server session context; a website's cookies or login sessions are application mechanisms layered on HTTP. FTP keeps connection, authentication and transfer-mode context, while POP 3 has protocol states with different permitted commands. Only ii and iv satisfy both filters.

Original paper, page 11 · Answer key

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Network Security

Question 52, GATE 2016: B digitally signs message m for A. Kx− denotes x's private key, Kx+ its public key; Kx(m) denotes the paper's encryption notation and H(m) its message digest. Which pair should B send? A:{m,KB+(H(m))}. B:{m,KB−(H(m))}. C:{m,KA−(H(m))}. D:{m,KA+(m)}.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

The signer is B, so the signature is produced with B’s private key on the message digest. A verifies it with B’s public key. The transmitted pair is {m, KB−(H(m))}, B. This is the exam’s simplified signature notation; practical signatures use a secure signature construction and encoding rather than arbitrary raw encryption.

A digital signature authenticates the sender and detects message modification; it does not by itself hide the message. The public key is for verification, not for creating a signature attributable only to B. Using A's key would authenticate the wrong party or provide encryption rather than a B signature. A verifies the received digest signature using B's public key and compares it to the digest independently computed from m. Practical schemes supply the necessary secure padding and signature encoding.

Original paper, page 20 · Answer key

2 marks · NAT
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 53, GATE 2016: A router receives a 1000-byte IP datagram, including a 20-byte IP header, and must forward it over a link of MTU 100 bytes. Find the number of fragments, assuming IPv 4 fragmentation is permitted and each fragment has a 20-byte header.
Tap to enlarge
Answer & solution

Official answer: 13.0 : 13.0

Our answer: 13

Step through it (4 steps)

The original datagram contains 1000−20=980 payload bytes. Each fragment can hold 100−20=80 payload bytes, already a multiple of 8 as required for nonfinal IPv 4 fragments. Twelve fragments carry 960 bytes and a thirteenth carries 20, so 13 fragments. This assumes IPv 4 fragmentation is permitted (DF=0); otherwise the router drops rather than fragments the datagram.

The MTU bounds each entire fragment, including its own header. Thus divide the 980-byte payload by 80, not the original 1000-byte datagram by 100. Each nonfinal fragment's payload must be a multiple of 8 for IPv 4 fragment offsets, and 80 already qualifies. The last fragment has 20 payload bytes plus its 20-byte header, for 40 bytes total; the other twelve total 100 bytes each. Repeated headers make aggregate transmitted bytes 1240, which is larger than the original datagram.

Original paper, page 20 · Answer key

2 marks · NAT
Not in GATE 2027 syllabusReport issue

Transport, Congestion Control & Traffic Shaping

Question 54, GATE 2016: A token bucket is full with capacity 1 MB. Tokens arrive at 10 MB/s and the maximum output link rate is 20 MB/s. Find the minimum time to send 12 MB in the fluid token-bucket model.
Tap to enlarge
Answer & solution

Official answer: 1.1 : 1.1

Our answer: 1.1

Token conservation imposes transmitted data≤1+10t megabytes, so sending 12 MB needs t≥1.1s. The output-rate bound additionally gives t≥12/20=0.6s. Attain 1.1s by sending at 20 MB/s for 0.1s, consuming the initial 1 MB net token reserve while transmitting 2 MB, then at 10 MB/s for 1s for the remaining 10 MB. This is the standard fluid token-bucket model, with no additional packet-granularity overhead.

A full bucket permits an initial burst above the sustained token rate. While transmitting at 20 MB/s, tokens are consumed net at 20−10=10 MB/s, so the initial 1 MB reserve lasts 0.1s. During that interval 2 MB are sent, not 1 MB, because new tokens keep arriving. The remaining 10 MB then require 1s at the sustained 10 MB/s rate. The token conservation lower bound proves no alternative schedule can beat this 1.1s construction.

Original paper, page 20 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 55, GATE 2016: A sender uses stop-and-wait ARQ with 1000-byte frames at 80 Kbps. ACKs have 100 bytes and the receiver sends them at 8 Kbps. One-way propagation is 100 ms;1 Kbps=1000 bits/s. Assuming no loss and no processing delay, find sender throughput in bytes/s.
Tap to enlarge
Answer & solution

Official answer: 2500.0 : 2500.0

Our answer: 2500

Step through it (5 steps)

Data serialization takes 8000/80000=0.1s. ACK serialization takes 800/8000=0.1s, and round-trip propagation contributes 0.2s. With no specified processing delay, each stop-and-wait cycle is 0.4s and carries 1000 bytes. Throughput=1000/0.4=2500 bytes/s.

A stop-and-wait cycle includes four serial intervals: data transmission 0.1s, forward propagation 0.1s, ACK transmission 0.1s and return propagation 0.1s. The next frame cannot begin until the ACK finishes arriving. Only 1000 data bytes are useful sender throughput per cycle; adding ACK bytes to the numerator would measure a different quantity. Convert bits to bytes consistently: the data frame is 8000 bits and the ACK is 800 bits, so their unequal link rates nevertheless produce equal serialization times.

Original paper, page 20 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Network Security

Question 23, GATE 2016: Anarkali digitally signs a message and sends it to Salim. What key does Salim need to verify? A Anarkali’s public; B Salim’s public; C Salim’s private; D Anarkali’s private.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

A digital signature is verified using the signer’s public key. Since Anarkali signed, Salim uses Anarkali’s public key, A.

Signing and encryption serve different purposes. Anarkali signs with her private key; anyone holding an authentic copy of her public key can verify origin and integrity. Salim’s private key would be relevant to decrypting content encrypted for him, not verifying someone else’s signature. Verification also presupposes that the public key really belongs to Anarkali.

Original paper, page 31 · Answer key

1 mark · MCQ
Report issue

Medium Access & Ethernet

Question 24, GATE 2016: In an Ethernet LAN, which is true? A a station stops sensing once transmitting; B jam pads short frames; C transmission continues after detecting a collision; D exponential backoff reduces collision probability on retransmission.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

In shared half-duplex CSMA/CD Ethernet, random exponential backoff spreads retransmission times after a collision and reduces renewed collision probability. Stations monitor during transmission, abort the data frame on collision, and send a jam signal to make the collision detectable. Thus D.

After repeated collisions, the random waiting range grows, making identical retries less likely among contenders. A jam signal announces a collision so all participants abandon the damaged frame; it is not padding to reach minimum length. These statements concern collision-detecting shared Ethernet, not collision-free full-duplex switched operation.

Original paper, page 31 · Answer key

1 mark · MCQ
Report issue

Application Protocols

Question 25, GATE 2016: A just-restarted host’s browser requests a remote webpage. Choose the order among the listed packets: A HTTP GET,DNS query,TCP SYN; B DNS query,HTTP GET,TCP SYN; C DNS query,TCP SYN,HTTP GET; D TCP SYN,DNS query,HTTP GET.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

In the conventional uncached HTTP-over-TCP scenario, resolve the server name by DNS, initiate the TCP connection with SYN, then send HTTP GET after connection establishment. This order is C. Other bootstrap traffic such as DHCP/ARP and modern alternative transports are outside the listed sequence.

DNS provides the destination IP address required before the TCP SYN can be directed to that server. TCP’s handshake establishes the byte stream carrying the HTTP request. The question asks relative order of three named messages, not a complete packet trace: SYN-ACK, ACK and link-layer address resolution may occur between them.

Original paper, page 32 · Answer key

2 marks · NAT
Report issue

Medium Access & Ethernet

Question 53, GATE 2016: A 20×10^6 bit/s CSMA/CD network has maximum one-way propagation time 40 μs. Find the minimum collision-detecting frame size in bytes.
Tap to enlarge
Answer & solution

Official answer: 200.0 : 200.0

Our answer: 200

To detect a worst-case collision, the sender must still be transmitting after the round-trip propagation interval 2*40microseconds. Minimum frame bits=20*106*80*10−6=1600, or 200 bytes. This is the theoretical CSMA/CD collision-detection bound from the supplied rate/delay, not a claim about a standard Ethernet minimum frame.

A far-end station may begin just before the first sender’s signal reaches it. Evidence of that collision then needs another propagation interval to travel back. Therefore transmission must last at least 80 μs; using 40 μs would incorrectly halve the answer. Divide the calculated bit count by eight only after multiplying bandwidth by round-trip time.

Original paper, page 42 · Answer key

2 marks · MCQ
Report issue

Medium Access & Ethernet

Question 54, GATE 2016: IEEE 802.11 statements: I at least three nonoverlapping channels are available; II RTS-CTS is for collision detection; III unicast frames are acknowledged. A I,II,III; B I,III; C II,III; D II only.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Under the conventional legacy2.4GHz channel plan, channels1, 6, 11 provide three non-overlapping channels, making I the intended true statement. RTS/CTS reserves the medium and mitigates hidden-terminal collisions; it is collision avoidance, not detection, so II is false. Ordinary unicast data frames are acknowledged, so III is true and B follows. Channel availability depends on PHY/channel width/regulatory domain, and ACK policies have protocol exceptions; the answer uses the textbook ordinary-data-frame model.

A hidden terminal may hear the receiver’s CTS even when it cannot hear the sender, causing it to defer. This prevents many collisions before data transmission rather than detecting a collision while transmitting. An ACK gives the sender evidence of successful reception; lack of an ACK triggers retry behavior under the ordinary unicast model used here.

Original paper, page 43 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 55, GATE 2016: A 128×10^3 bit/s satellite link has 150 ms one-way propagation delay. Selective repeat sends 1-kilobyte frames; ACK serialization is negligible. Find minimum sequence-number bits needed for 100% utilization.
Tap to enlarge
Answer & solution

Official answer: 4.0 : 4.0

Our answer: 4

Step through it (6 steps)

Using1 KiB=1024 bytes, frame serialization takes 8192/128000=0.064s. To keep the link busy for serialization plus 0.3s round-trip propagation requires W≥ceil(1+0.3/0.064)=6 frames. Selective repeat requires a sequence space of at least 2W=12, so ceil(log2 12)=4 bits. Decimal1KB gives W=ceil(1+0.3/0.0625)=6 as well, so the answer does not depend on that unit convention.

The first ACK can return only after one frame serialization plus a round trip, at 0.064+0.300=0.364 s. Six serializations span 0.384 s and avoid an idle gap; five span only 0.320 s. With m sequence bits, selective repeat requires W≤2^(m−1), so three bits allow only four outstanding frames, whereas four allow eight.

Original paper, page 43 · Answer key

1 mark · MCQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 23, GATE 2015: Two hosts transfer a large file over TCP. Which claims are false? I a segment numbered m is always followed by m+1; II estimated RTT t implies retransmission timeout≥t; III advertised window size never changes; IV unacknowledged bytes are always≤advertised window. A III only; B I and III; C I and IV; D II and IV.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Our answer: B under nonshrinking-window textbook model

A segment carrying L data bytes advances the data sequence number by L, not by one, so a 1000-byte segment beginning at m normally leads to m+1000. The receive window tracks available receiver buffer space and can change as data arrives and is consumed. The textbook RTO adds a delay-variation allowance to the smoothed RTT. The intended flow-control invariant yields B, but the absolute “always” in IV must retain the inherited window-shrink qualification: a new smaller advertisement does not retract bytes already in flight.

Solution: Sequence numbers count bytes, so I is false. RTO includes estimated RTT plus a nonnegative variability margin, making II true in the usual model. The receiver-advertised window varies, so III is false. With a nonshrinking receive-window right edge, outstanding data respects the advertised window, giving IV true and false statements I and III, official B. The word always in IV needs qualification: a receiver can shrink its window after data was sent, leaving more outstanding bytes than its new advertisement. TCP discourages shrinking but implementations must tolerate it. Therefore B assumes the simplified flow-control model.

Original paper, page 10 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Network Security

Question 24, GATE 2015: N people want pairwise secret communication using symmetric encryption, confidential even from other group members. How many keys are needed in the whole system? A 2N; B N(N−1); C N(N−1)/2; D (N−1)^2.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

A symmetric key can serve both directions of one pair's communication. Count unordered pairs: choose the first member in N ways and the second in N−1 ways, then divide by two because each pair was counted twice. One group-wide key would violate secrecy from other members, while N(N−1) unnecessarily counts two directional keys per pair.

Solution: Every unordered pair needs its own secret key so that third members cannot decode its traffic. There are C(N, 2)=N(N−1)/2 pairs, C.

Original paper, page 10 · Answer key

1 mark · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 26, GATE 2015: Which IPv4 header field is NOT modified by a typical IP router? A checksum; B source address; C Time To Live; D length.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

A forwarding router decrements TTL to prevent indefinite circulation and must recompute the header checksum accordingly. If it fragments an IPv4 datagram, each fragment's total length differs from the original. Routing alone leaves the source address identifying the originating host. NAT is a separate address-rewriting function and is outside the typical-forwarding premise.

Solution: Ordinary IPv4 forwarding preserves the source address, B. A router decrements TTL and updates the header checksum; fragmentation can alter total length. Address translation is an additional NAT function, not assumed here.

Original paper, page 11 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Application Protocols

Question 27, GATE 2015: Which pair of protocols can both use multiple TCP connections between the same client and server? A HTTP,FTP; B HTTP,TELNET; C FTP,SMTP; D HTTP,SMTP.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Traditional web clients may fetch multiple resources using parallel HTTP TCP connections. FTP separates its control conversation from data transfer, so its ordinary operation uses multiple connections. This explains A under the exam's application-session model. Merely counting arbitrary concurrent sessions is a different interpretation, since multiple independent TELNET or SMTP sessions between two hosts are also possible.

Solution: HTTP may use parallel TCP connections for a page’s resources, and FTP uses separate control and data TCP connections. Thus both HTTP and FTP, A, under the intended application-session comparison. This does not prohibit multiple simultaneous SMTP sessions or transport connections between the same pair of machines.

Original paper, page 11 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 36, GATE 2015: Stop-and-wait uses a 64-kilobit/s link with “20 milliseconds propagation delay.” ACK transmission and node processing are negligible. Find the minimum frame size in bytes for at least 50% utilization.
Tap to enlarge
Answer & solution

Official answer: 160

Our answer: 320 bytes for one-way 20ms; official 160

For frame transmission time T and one-way propagation d, a cycle lasts T+2d: the last data bit travels outward and the ACK returns. Requiring T/(T+2d)≥1/2 gives T≥2d. At d=0.020 s this requires 0.040 s of data transmission, or 64000×0.040/8=320 bytes. The official 160 gives only 1/3 utilization under that model, but gives 1/2 if the stated 20 ms is RTT. Retain both interpretation and official scoring explicitly.

Solution: Ignoring ACK serialization, stop-and-wait utilization is T/(T+2Tp). At50%, T=2Tp. With the stated propagation delay Tp=20ms, T=40ms and frame size 64000·0.040=2560 bits=320 bytes. The official 160 bytes instead treats 20ms as the entire round-trip delay. The one-way versus round-trip interpretation changes the answer and is explicitly unresolved.

Original paper, page 14 · Answer key

1 mark · MCQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 33, GATE 2015: Order UNIX listening-server calls: A listen, accept, bind, recv; B bind, listen, accept, recv; C bind, accept, listen, recv; D accept, listen, bind, recv.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

A listening server binds its local address, listens for connections, accepts one, then receives on the accepted connected socket. Thus bind, listen, accept, recv, B.

Binding associates the socket with its local address/port. Listening converts it into a passive connection endpoint. Accept waits for and returns a connected socket for one client. Receive then reads data on that connected socket. Calling accept before listen or before binding a specified listening address does not implement the requested server sequence. The original listening socket and the accepted connection socket have different roles.

Original paper, page 37 · Answer key

1 mark · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 34, GATE 2015: Stop-and-wait link rate 10^6 bits/s, 1000-byte data packets, negligible ACK transmission/processing, and equal forward/back propagation. Efficiency 25%. Find one-way propagation delay in ms.
Tap to enlarge
Answer & solution

Official answer: 12

Step through it (3 steps)

Transmission time is 8000/106=8 ms. Efficiency 8/(8+2Tp)=1/4 gives 8+2Tp=32, hence Tp=12 ms.

Data transmission time is 1000×8/106=.008 seconds=8 ms. One complete stop-and-wait cycle is 8+2t_pms when ACK transmission and processing are negligible. Efficiency is useful transmission time divided by cycle time, so 8/(8+2t_p)=.25. Multiply through to get 8+2t_p=32 and tp=12 ms. The two propagation traversals explain why the leftover 24 msmust be halved.

Original paper, page 37 · Answer key

1 mark · MCQ
Report issue

Application Protocols

Question 35, GATE 2015: Which cookie claim is NOT correct? A a cookie is executable code capable of compromising user security; B cookies arrive via HTTP headers; C a cookie has expiry date/time; D cookies can track browsing at a site.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

A cookie is stored data, not executable code, so A is false. Servers set cookies through HTTP headers and they can support tracking. Persistent cookies have expiration metadata; session cookies can instead omit an explicit expiration and expire with the session, qualifying the blanket wording of C.

A cookie is an HTTP state value stored and resent by the user agent, not a script executed as a program. It can still carry sensitive identifiers or enable tracking, so “not code” does not imply “no privacy/security risk.” Set-Cookie is an HTTP response header, and subsequent Cookie headers return applicable values. The expiry statement needs a distinction: persistent cookies have an expiry/max-age, whereas session cookies may omit that field. The intended false definition is A, but C is not universal as literally worded.

Original paper, page 37 · Answer key

2 marks · MCQ
Report issue

Routing Algorithms

Question 36, GATE 2015: Routing entries:128.96.170.0/23→interface 0; 128.96.168.0/23→interface 1; 128.96.166.0/23→R2; 128.96.164.0/22→R3; default→R4. Destinations i128.96.171.92, ii 128.96.167.151, iii 128.96.163.151, iv 128.96.165.121. Labels ainterface 0, binterface 1, cR2, dR3, eR4. A i-a, ii-c, iii-e, iv-d; B i-a, ii-d, iii-b, iv-e; C i-b, ii-c, iii-d, iv-e; D i-b, ii-c, iii-e, iv-d.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (6 steps)

Longest-prefix matching sends 171.92 through 170.0/23 to interface 0; 167.151 matches 166.0/23 and 164.0/22, choosing the longer/23 to R2; 163.151 matches only default R4; 165.121 matches 164.0/22 to R3. Thus i-a, ii-c, iii-e, iv-d, A.

A /23 mask covers two adjacent third-octet values, so 170.0/23 covers 170–171 and 166.0/23 covers 166–167. A /22 mask starting 164 covers 164–167. Thus 171 uses interface 0; 167 matches both R2 and R3 but the longer/23 wins; 163 matches neither specific block and uses default R4; 165 matches only 164/22 and uses R3. Never stop at the first matching broad prefix without checking whether a more specific one exists.

Original paper, page 38 · Answer key

2 marks · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 37, GATE 2015: UDP user data 8880 bytes, UDP header 8 bytes, IPv4 header 20 bytes, no options, Ethernet MTU1500. Find number of IPv4 fragments and final fragment offset: A6, 925; B6, 7400; C7, 1110; D7, 8880.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step through it (4 steps)

IP payload includes the 8-byte UDP header, totaling 8888 bytes. Each full fragment holds 1500−20=1480 bytes, a multiple of 8. Six hold 8880 bytes, leaving 8 bytes for a seventh. Its offset is 8880/8=1110. Thus 7 fragments and 1110, C.

Fragmentation splits the IP payload, which already includes the entire UDP header:8880+8=8888 bytes. Each fragment gets its own 20-byte IP header, leaving 1480 payload bytes within the 1500MTU.1480 is divisible by 8, so six full payloads consume 8880 bytes and an 8-byte remainder requires a seventh fragment. The final fragment begins after 8880 original-IP-payload bytes; divide by the 8-byte offset unit to get 1110. Omitting the UDP header incorrectly gives only six fragments.

Original paper, page 38 · Answer key

2 marks · MCQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 38, GATE 2015: At TCP bandwidth 1048560 bits/s, find RTT threshold α(in nearest integer ms)above which the unscaled receive window limits full use, and largest scaled window β. Options combine α63 or 500 ms with β65535×2^14 or 65535×2^16 bytes; correct-labelled C pairs 500 with 2^14.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

An unscaled window holds 65535 bytes=524280 bits. At1048560 bits/s this spans 0.5s=500 ms. The maximum scale shift is 14, giving 65535·214 bytes. Therefore C, for sustaining the stated bandwidth without receive-window limitation.

The 16-bit unscaled advertised receive window represents at most 65535 bytes. To sustain rate R over round-trip time T, the flight capacity must be at leastRT. Express the window as 524280 bits, then T=524280/1048560=.5 seconds. Larger RTT requires scaling for full bandwidth use. TCP’s maximum permitted scale shift is 14, not 16; therefore maximum represented window is 65535×214 bytes. The threshold is a receive-window capacity calculation, not a claim that congestion control always sends at that rate.

Original paper, page 39 · Answer key

1 mark · MCQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 19, GATE 2015: Consider: I. TCP connections are full duplex. II. TCP has no option for selective acknowledgment. III. TCP connections are message streams. Which are correct? (A) I only; (B) I and III; (C) II and III; (D) all three.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

1. Full duplex means each endpoint can send while also receiving on the same connection. The TCP selective-acknowledgment option reports received data blocks beyond a gap, so statement II is false. Applications see an ordered byte stream: one send need not correspond to one receive, so statement III is false.

2. TCP is full-duplex, has a selective-acknowledgment option, and exposes a byte stream rather than preserving application-message boundaries. Therefore only I is correct, A.

Original paper, page 59 · Answer key

1 mark · MCQ
Report issue

Medium Access & Ethernet

Question 35, GATE 2015: A CSMA/CD network transmits at 100 Mbps (10⁸ bits/s) over a 1 km cable without repeaters. Its required minimum frame size is 1250 bytes. Find signal speed in km/s, using the collision-detection minimum-frame condition. Options: (A) 8000; (B) 10000; (C) 16000; (D) 20000.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

1. A transmitting station must still be transmitting when a worst-case collision indication returns from the far end of the cable. Therefore frame serialization time must cover two one-way propagation delays. Convert bytes to bits before comparing the frame size with the bit rate.

2. Minimum frame serialization time is 1250·8/108=10−4s, which must equal the cable’s round-trip propagation time at the minimum. One-way delay=5·10−5s, so speed 1km/(5·10−5s)=20000km/s, D.

Original paper, page 65 · Answer key

2 marks · NAT
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 46, GATE 2015: For the IPv4 network containing address 200.10.11.144/27, give the fourth octet in decimal of its last assignable host address. The printed address is not necessarily the canonical network base.
Tap to enlarge
Answer & solution

Official answer: 158

Step through it (4 steps)

1. A/27 mask gives blocks of 32.

2. Address144 lies in 128..159, so network address 128 and broadcast 159 leave last usable host 158. The displayed 144/27 is a host/prefix designation, not the canonical subnet-base address.

Original paper, page 69 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 47, GATE 2015: Two systems are separated by 8000 km. The link rate is 500×10⁶ bits/s, propagation speed is 4×10⁶ m/s, and average packet size is 10⁷ bits. Design a Go-Back-N sliding-window protocol that fully utilizes the link, neglecting processing delays and using the standard negligible-ACK-transmission model. What minimum number of sequence-number bits is required?
Tap to enlarge
Answer & solution

Official answer: 8

Step through it (6 steps)

1. Full utilization requires enough outstanding packets to bridge a packet’s serialization plus the round-trip propagation before its ACK permits reuse. A 201-packet window meets this bound; the Go-Back-N sequence space must contain at least 202 distinct sequence numbers to avoid old/new ambiguity.

2. One-way propagation=8·106/(4·106)=2s. Packet serialization=107/(500·106)=0.02s. To stay busy with negligible ACK time, window≥1+2·2/0.02=201 packets. Go-Back-N requires W≤2k−1; 27−1=127 is insufficient and 28−1=255 suffices. Thus8 bits.

Original paper, page 69 · Answer key

2 marks · NAT
Report issue

Physical Layer & Transmission

Question 56, GATE 2015: Two hosts are connected through one packet switch by two links, each of rate 10⁷ bits/s and propagation delay 20 microseconds. The switch starts forwarding a packet 35 microseconds after receiving that packet. A total of 10000 bits is transmitted as two 5000-bit packets. Under the standard store-and-forward, back-to-back transmission model, how many microseconds elapse between transmission of the first data bit at the source and reception of the last data bit at the destination?
Tap to enlarge
Answer & solution

Official answer: 1575

1. Each5000-bit packet takes 500microseconds to serialize at 107 bits/s.

2. Packet1 fully reaches the switch at 520, begins forwarding at 555, and finishes arriving at the destination at 1075. Packet2 reaches the switch at 1020 and becomes ready at 1055, exactly when the first packet finishes using the outgoing link. It transmits 1055–1555 and its last bit arrives at 1575. This assumes store-and-forward receipt of a complete packet, independent links and processing that can overlap forwarding, as in the standard switch model.

Original paper, page 75 · Answer key

1 mark · MCQ
Report issue

Routing Algorithms

Question 23, GATE 2014: For a network with 500 nodes and 4000 links, evaluate these textbook routing statements. S1: Link-state has higher computational overhead than distance-vector. S2: Distance-vector with split horizon avoids persistent routing loops, unlike link-state. S3: After topology change, link-state converges faster than distance-vector. A: all true. B: all false. C: S1,S2 true and S3 false. D: S1,S3 true and S2 false.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Our answer: D under the standard protocol comparison

1. Method and setup. A link-state router builds a topology view and computes routes locally; distance-vector routers repeatedly exchange route estimates. Split horizon prevents advertising a route back along the interface from which it was learned, but this only directly addresses a two-router pattern, not every multirouter loop.

2. Work through the result and its assumptions. Link-state routing maintains topology and runs a shortest-path computation, conventionally costing more local computation but converging faster than iterative distance-vector updates. Split horizon does not eliminate all loops involving three or more routers, so S2 is false. The textbook comparison is S1/S3 true, D; actual convergence depends on timers, implementation and failure pattern, not the node/link counts alone.

Original paper, page 13 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Network Security

Question 24, GATE 2014: Which listed algorithms generate message digests in network-security protocols? P: RSA. Q: SHA-1. R: DES. S: MD5. A: P,R only. B: Q,R only. C: Q,S only. D: R,S only.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. Method and setup. Classify algorithms by function rather than by the broad label “security.” A message digest is produced by a hash function. Encryption and public-key operations may be used alongside hashes in protocols, but that does not make the encryption algorithm itself the digest algorithm.

2. Work through the result and its assumptions. SHA-1 and MD5 are message-digest hash functions. RSA is a public-key scheme and DES a block cipher. Thus Q and S, C. This historical identification is not a recommendation to use these now-broken collision-resistant hashes.

Original paper, page 13 · Answer key

1 mark · MCQ
Report issue

Application Protocols

Question 25, GATE 2014: Order these actions for a conventional fresh browser/server interaction: 1 send an HTTP webpage request; 2 establish TCP; 3 server sends the webpage using HTTP; 4 resolve the domain via DNS. A: 4,2,1,3. B: 1,2,3,4. C: 4,1,2,3. D: 2,4,1,3.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

1. Method and setup. The browser first needs a destination IP address, then a transport connection, before it can send the application request. The server’s response depends on receiving that request. This is the dependency order for the listed HTTP-over-TCP setup, not a claim about cached or connection-reusing requests or HTTP/3.

2. Work through the result and its assumptions. For a fresh conventional HTTP-over-TCP fetch, resolve the server using DNS, establish TCP, send the HTTP request, then receive the HTTP response: 4, 2, 1, 3, A. Cached DNS or an existing connection can skip steps, but do not change their dependency order when all listed steps occur.

Original paper, page 13 · Answer key

2 marks · NAT
Report issue

Medium Access & Ethernet

Question 26, GATE 2014: A 2 km token ring has ten stations including a monitoring station. Signals propagate at 2×10⁸ m/s. Token transmission time is ignored, and each station may hold the token for 2 μs. What minimum wait in μs should the monitoring station allow before considering the token lost?
Tap to enlarge
Answer & solution

Official answer: 28 to 30

Our answer: 28 or 30 microseconds by timer origin

1. Method and setup. The return delay contains two distinct components: propagation around the physical ring and permitted holding delays at stations. Convert kilometers to meters before dividing by speed. Whether to include the monitor’s own holding period depends on whether its timer starts when acquiring or releasing the token.

2. Work through the result and its assumptions. Ring propagation is 2000/(2×10⁸)=10μs. After the monitor releases the token, nine other stations may hold it for 18μs, giving 28μs until its return. Counting from acquisition and including the monitor’s own 2μs gives 30μs. Both lie in the official 28 to 30 interval; the timer origin is not explicit.

Original paper, page 13 · Answer key

2 marks · NAT
Report issue

Transport, Congestion Control & Traffic Shaping

Question 27, GATE 2014: A TCP connection has congestion window 32 KB when a timeout occurs. RTT is 100 ms and maximum segment size is 2 KB. Under the usual slow-start/congestion-avoidance model, how long in milliseconds until the window returns to 32 KB?
Tap to enlarge
Answer & solution

Official answer: 1100 to 1300

Our answer: 1100 ms in the standard round model

Step through it (13 steps)

1. Method and setup. A timeout does not simply halve the congestion window and continue linearly: classic TCP resets the window to one segment while setting the slow-start threshold to half the previous window. Count exponential-growth rounds up to that threshold, then linear-growth rounds of one segment each.

2. Work through the result and its assumptions. After timeout, take ssthresh=16KB and cwnd=1MSS=2KB. Slow start doubles 2→4→8→16 in 3 RTTs. Congestion avoidance then adds one 2KB MSS each RTT, taking 8 more RTTs to 32KB. Thus11×100=1100ms, accepted by 1100 to 1300. This uses classic loss recovery, fixed RTT, no further loss, and the usual window-per-round accounting; implementation-specific ACK growth can alter timing.

Original paper, page 13 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 28, GATE 2014: Selective-repeat ARQ sends 1 KB frames over a 1.5 Mbps link with one-way latency 50 ms. For 60% link utilization, what is the minimum number of sequence-number bits?
Tap to enlarge
Answer & solution

Official answer: 5

1. Method and setup. Ignoring acknowledgment transmission time, a window of W frames occupies W frame-transmission times during a cycle of one transmission plus a round-trip propagation delay. Thus utilization is min(1,W·Tframe/(Tframe+2Tprop)). First round the required window upward; then ensure the selective-repeat sequence space is at least twice that window.

2. Work through the result and its assumptions. With1KB=1024 bytes, transmission time is 8192/1.5×10⁶≈5.461ms. Required window W≥.6(1+100/5.461)≈11.586, hence W≥12. Selective repeat needs sequence space at least 2W=24, so ceil(log₂24)=5 bits. Decimal KB also gives 12 frames and 5 bits.

Original paper, page 13 · Answer key

1 mark · MCQ
Report issue

Routing Algorithms

Question 23, GATE 2014: Which statement about RIP and OSPF is true? A RIP uses distance-vector routing; OSPF uses link-state routing. B OSPF uses distance-vector; RIP uses link-state. C both use link-state. D both use distance-vector.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

1. Set up the reasoning. Classify the information routers exchange: distance-vector protocols communicate distance estimates via neighbors, while link-state protocols advertise local links so routers can reconstruct a topology.

2. Derive the result. RIP exchanges distance vectors and uses hop counts. OSPF floods link-state information and computes shortest paths over topology. Thus A.

3. Check the interpretation. RIP's standard hop-count updates fit the first model. OSPF uses link-state advertisements and shortest-path computation, fitting the second. Both are interior gateway protocols, but that shared role does not imply a shared routing algorithm.

Original paper, page 34 · Answer key

1 mark · MCQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 24, GATE 2014: Which socket API call changes an unconnected active TCP socket into a passive socket? A connect; B bind; C listen; D accept.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. Set up the reasoning. A server first creates a socket and binds its local address, then marks it as a listener. The change of role occurs before an incoming connection is accepted.

2. Derive the result. listen marks a bound, unconnected TCP socket as passive, ready to receive incoming connection requests. accept then creates a connected socket for one accepted connection; bind sets a local address. Thus C.

3. Check the interpretation. connect initiates an outgoing connection; bind assigns a local endpoint; accept obtains a connected socket for an arriving client. listen is the call that establishes the passive listening role.

Original paper, page 34 · Answer key

1 mark · NAT
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 25, GATE 2014: An IP packet follows the illustrated path from sender S on Ethernet LAN L1, through ISP1 and ISP2, to receiver R on Token-Ring LAN L2. Textual diagram equivalent: the drawn path traverses six forwarding router boxes (including two adjacent boxes at L1's exit), with additional LAN stations shown as non-router symbols. Links inside and between ISPs are point-to-point optical links. Starting TTL is 32. What is the maximum TTL on arrival at R?
Tap to enlarge
Answer & solution

Official answer: 26

1. Set up the reasoning. Count IP forwarding routers rather than hosts, link-layer stations, or physical link segments. Each router must decrement TTL by at least one; maximum remaining TTL uses a decrement of exactly one at every forwarding step.

2. Derive the result. The drawn path crosses six router boxes between the source and receiver, including the LAN-facing router before the first ISP. Each forwarding router reduces TTL by at least 1. Ordinary link-layer traversal does not reduce it, so the maximum final TTL is 32−6=26.

3. Check the interpretation. The Ethernet and Token-Ring media do not by themselves consume TTL. Counting the six boxes on the actual path gives six decrements, so the different LAN technologies do not alter the arithmetic.

Original paper, page 34 · Answer key

2 marks · MCQ
Report issue

Physical Layer & Transmission

Question 26, GATE 2014: A store-and-forward path A→R1→R2→B has three links, each 10^6 bytes/s. A sends a 10^3-byte file as: one packet (time T1), 10 equal payload packets (T2), or 20 equal payload packets (T3). Each packet adds a 100-byte header. Ignore propagation, processing, queuing, errors. Which holds? A T1<T2<T3; B T1>T2>T3; C T2=T3<T1; D T1=T3>T2.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

1. Set up the reasoning. For p equal packets, one packet takes (1000/p+100)/106 seconds per link. Store-and-forward needs three such intervals for the first packet, then one additional interval for each remaining packet.

2. Derive the result. With p equal-sized packets over 3 store-and-forward links, the pipelined time is(p+2) times one packet’s transmission time. T1=3·1100/10⁶=.0033s; T2=12·200/10⁶=.0024s; T3=22·150/10⁶=.0033s. Thus T1=T3>T2, D.

3. Check the interpretation. The pipeline therefore occupies p+2 packet-transmission intervals, not 3p intervals. More packets improve pipelining but increase header overhead; this trade-off explains why twenty packets are not automatically faster than ten.

Original paper, page 35 · Answer key

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Network Security

Question 27, GATE 2014: Q downloads a file over HTTP from H via routers Q→R1→R2→R3→H. Session-layer encryption uses DES with a shared key. Information items: I1 file URL; I2 TCP port numbers at Q and H; I3 IP addresses of Q and H; I4 link-layer addresses of Q and H. By sniffing only at R2, which can an intruder learn? A only I1,I2; B only I1; C only I2,I3; D only I3,I4.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

1. Set up the reasoning. Track which protocol headers remain visible after encrypting the session payload. The HTTP URL is in the protected content, while TCP and IP routing information must remain available to carry the packet.

2. Derive the result. Session-layer encryption hides the HTTP URL payload, while TCP and IP headers still reveal endpoint ports and IP addresses. Link-layer headers at R2 identify its neighboring hops, not the remote hosts Q and H. Thus I2 and I3 only, C, under the stated encrypted-payload model without cryptanalysis.

3. Check the interpretation. Link-layer addresses change from hop to hop. A frame observed at an intermediate router need not contain either end host's hardware address. The answer assumes the stated encryption model, not successful DES cryptanalysis or other side channels.

Original paper, page 35 · Answer key

2 marks · MCQ
Report issue

Application Protocols

Question 28, GATE 2014: A graphical browser at client Q loads an uncached static HTML page from HTTP server S. The page contains exactly one separate static embedded image, also on S. Which is correct for loading both? A At least two HTTP requests, necessarily on separate TCP connections. B At least two HTTP requests, but one TCP connection suffices. C One HTTP request suffices, and one TCP connection is necessary. D One HTTP request suffices without a TCP connection.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

1. Set up the reasoning. The document and separately referenced image are two resources. A browser first obtains HTML and then requests the image URL, but a persistent HTTP connection can carry multiple requests.

2. Derive the result. The HTML document and its separate image require two HTTP requests when neither is cached. HTTP persistent connections can carry both requests on one TCP connection. Thus B under the conventional separate-resource HTTP-over-TCP model.

3. Check the interpretation. Do not equate request count with connection count. The intended conventional HTTP-over-TCP setting permits connection reuse, so one connection is sufficient even though one request is not.

Original paper, page 36 · Answer key

1 mark · MCQ
Report issue

Network Layers & Devices

Question 23, GATE 2014: Which OSI layer/function pair is incorrect? A network/routing; B data link/bit synchronization; C transport/end-to-end process communication; D MAC sublayer/channel sharing.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step 1: Routing is a network-layer responsibility, and transport connects application processes end to end. MAC governs access to a shared communication medium. These match A, C and D. Step 2: Bit synchronization concerns physical timing: identifying bit boundaries in a signal. That belongs to the physical layer rather than the data-link layer. Step 3: Hence B is the incorrect pair. Distinguish bit timing from data-link framing and error detection.

Original paper, page 58 · Answer key

1 mark · MCQ
Report issue

Data Link, Framing, Error Control & ARQ

Question 24, GATE 2014: A bit-stuffing framing protocol uses delimiter 01111110. The stuffed payload is 01111100101. Recover its input bits. A 0111110100; B 0111110101; C 0111111101; D 0111111111.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step 1: To prevent payload data from imitating the flag, the transmitter inserts a zero after every run of five consecutive ones. The receiver removes only that inserted zero. Step 2: Parse the given output as 0,11111,0(stuffed),0101. Removing the marked zero leaves 0,11111,0101=0111110101. Step 3: That is B. The zero immediately following the inserted zero belongs to the original payload and must not also be removed.

Original paper, page 58 · Answer key

1 mark · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 25, GATE 2014: Host A sends an IPv4 datagram to host B on another network without transmission errors. Which fields may differ when it reaches B: (i) TTL; (ii) header checksum; (iii) fragment offset? A i only; B i,ii only; C ii,iii only; D i,ii,iii.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

Step 1: Every forwarding router decrements TTL. Since TTL is part of the IPv4 header, the router updates the header checksum even on an error-free path. Thus i and ii can differ. Step 2: A smaller outgoing MTU can require fragmentation. Later fragments carry nonzero fragment offsets even if the original unfragmented datagram had offset zero. Step 3: Therefore all three may differ, D, when considering received fragment headers before reassembly. No-error transmission rules out corruption, not ordinary forwarding changes or fragmentation. A fully reassembled abstract datagram needs separate interpretation.

Original paper, page 58 · Answer key

2 marks · NAT
Report issue

Routing Algorithms

Question 26, GATE 2014: A CIDR router receives destination 131.23.151.76. Its prefix→interface table is 131.16.0.0/12→3; 131.28.0.0/14→5; 131.19.0.0/16→2; 131.22.0.0/15→1. Which output interface is selected?
Tap to enlarge
Answer & solution

Official answer: 1

Step through it (3 steps)

Step 1: Compare prefixes rather than numerical closeness. With the first octet fixed at 131, /12 covers second octets 16…31, so it matches 23. The /14 entry covers 28…31 and does not match; /16 requires exactly 19 and does not match. Step 2: The /15 entry fixes the top seven bits of the second octet, covering 22 and 23, so it matches. Step 3: CIDR chooses the longest matching prefix, /15 rather than /12. Its output interface is 1.

Original paper, page 58 · Answer key

2 marks · NAT
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 27, GATE 2014: Each IPv4 host has a battery-backed real-time clock with 1-second resolution and a globally unique IPv4 address. Each must generate up to 1000 unique identifiers per second. Design a 50-bit global ID; after how many seconds does a host's identifier time field wrap around?
Tap to enlarge
Answer & solution

Official answer: 256

Step 1: In the conventional fixed-field construction, reserve 32 bits for the globally unique IPv4 address so different hosts cannot collide. Step 2: To distinguish up to 1000 IDs generated in the same second, reserve ceil(log₂1000)=10 counter bits, because 2⁹<1000≤2¹⁰. Step 3: This leaves 50−32−10=8 bits for the timestamp in seconds. The timestamp cycles through 2⁸=256 values, so wraparound occurs after 256 seconds. This construction assumes no clock rollback and no counter reuse within a second; global uniqueness is limited by the timestamp wrap interval.

Original paper, page 59 · Answer key

2 marks · MCQ
Report issue

IP Addressing, Fragmentation & Address Resolution

Question 28, GATE 2014: A router with MTU 1500 bytes receives a 4404-byte IPv4 packet whose header is 20 bytes. What are the third fragment's (MF,total length,offset) fields? A (0,1444,370); B (1,1424,185); C (1,1500,370); D (0,1424,2960).
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (4 steps)

Step 1: Remove the original header to get 4404−20=4384 payload bytes. Each full fragment can carry 1500−20=1480 bytes; this is a multiple of eight, as required for nonfinal fragment payloads. Step 2: Two full fragments carry 2960 payload bytes, leaving 4384−2960=1424 bytes for the third fragment. Add its own 20-byte header: total length 1444. Step 3: Its starting payload offset is 2960 bytes, stored in eight-byte units as 2960/8=370. It is the last fragment, so MF=0. Therefore A, assuming fragmentation is permitted and the arriving packet is an unfragmented original.

Original paper, page 59 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Application transport protocols

Transport, Congestion Control & Traffic Shaping

Question 12, GATE 2013: Choose conventional transport protocols for real-time multimedia, file transfer, DNS, email, respectively. A TCP/UDP/UDP/TCP; B UDP/TCP/TCP/UDP; C UDP/TCP/UDP/TCP; D TCP/UDP/TCP/UDP.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

For the actual listed applications, real-time multimedia conventionally uses UDP to avoid retransmission delays; file transfer uses reliable TCP; DNS lookup commonly uses UDP; email transfer uses TCP. The order is UDP, TCP, UDP, TCP, C. DNS can also use TCP and multimedia can use other transports; this is the conventional application mapping, not an exclusive claim about every implementation.

The classification concerns conventional transports, not application-layer names. Multimedia often values timeliness over retransmitting late packets, favoring UDP. File transfer and email need reliable ordered delivery, favoring TCP. Ordinary DNS query/response fits UDP. Therefore the pattern is UDP, TCP, UDP, TCP. The DNS answer is not a claim that DNS never uses TCP: large responses, truncation fallback and zone transfers are familiar exceptions.

Original paper, page 3 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Confidential authenticated public-key message

Network Security

Question 13, GATE 2013: X signs message M, encrypts the message/signature pair for Y, and Y decrypts and verifies. Choose the ordered key sequence. A sender private, recipient private;sender public, recipient public. B sender private, recipient public;sender public, recipient private. C sender public, recipient private;recipient public, sender private. D sender private, recipient public;recipient private, sender public.
Tap to enlarge
Your answer
Answer & solution

Official answer: D

X authenticates by signing with X’s private key and protects confidentiality for Y using Y’s public key. Y decrypts with Y’s private key and verifies the signature with X’s public key. This matches D. Actual signature schemes need not literally encrypt the whole message with the signing key; signing/verification is the appropriate cryptographic interpretation.

Authentication and confidentiality have different key owners. Only X should be able to create X’s signature, so signing uses X’s private key. Anyone may encrypt a message for Y using Y’s public key, but only Y’s private key decrypts it. Since encryption is the outer layer, Y must first remove that layer and only then verify X’s signature with X’s public key. D has that receive-side order; B reverses the two receive operations. Real signatures use a signature algorithm, usually over a digest, rather than literal message encryption.

Original paper, page 3 · Answer key

1 mark · MCQ
Report issue

Layer processing across two routers

Network Layers & Devices

Question 14, GATE 2013: S sends a packet to D via two routers, S–R1–R2–D. Count network-layer and data-link-layer visits, respectively. A4/4; B4/3; C4/6; D2/6.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

The network layer is visited at the source, each of the two routers, and the destination: 4 times. There are three links, and each requires a data-link send and receive, so the data-link layer is visited 6 times. Hence C.

Count at nodes and links separately. Network-layer processing occurs at S, R1, R2, D, once at each. The links are S–R1, R1–R2, R2–D. Each link has a sending data-link action and a receiving data-link action, so three links contribute six visits. A router participates in two data-link interfaces: it receives one frame and constructs/transmits another, while forwarding the enclosed network packet.

Original paper, page 4 · Answer key

2 marks · MCQ
Report issue

Ethernet collision-detection cable length

Medium Access & Ethernet

Question 36, GATE 2013: Ethernet data rate 500 Mbps, frame length 10000 bits, propagation speed 200000 km/s. Ignoring other delays, maximum cable length for collision detection: A1, B2, C2.5, D5 km.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Frame transmission time=10000/(500×106)=20μs. Collision detection requires the round-trip propagation time not to exceed this, so one-way delay≤10μs. At200000 km/s the maximum length is 2 km, B, neglecting other delays as in the question.

A transmitter must still be sending when a collision signal from the far end could return. A frame occupies 10000/(500×106)=20×10−6 seconds on the wire. Therefore the round trip 2L/v must be at most 20 microseconds. Solving L≤v·10 microseconds with v=200000 km/s gives 2 km. Using one-way propagation alone would incorrectly double the allowed length. This ideal collision-domain calculation excludes repeater and transceiver delays.

Original paper, page 8 · Answer key

2 marks · MCQ
Report issue

IPv4 last-fragment byte range

IP Addressing, Fragmentation & Address Resolution

Question 37, GATE 2013: IPv4 has MF=0, HLEN=10, total length 400 bytes and fragment offset 300. Choose position and first/last payload byte indexes. A last, 2400, 2789; B first, 2400, 2759; C last, 2400, 2759; D middle, 300, 689.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Step through it (4 steps)

MF=0 indicates the last fragment; its positive offset shows it is not the sole initial fragment. The first payload byte has zero-based index 300×8=2400. HLEN10 means 40 header bytes, leaving 400−40=360 payload bytes. The last byte index is 2400+360−1=2759. Therefore C.

The fragment offset unit is 8 bytes, not 1byte, so offset 300 starts at original payload byte2400. HLEN counts 32-bit words:10 words=40 bytes of header. Subtracting that from total length 400 leaves 360payload bytes. Inclusive indexing makes the final byte2400+359=2759. MF=0 says no more fragments follow; because the offset is nonzero, this is a final fragment rather than a complete unfragmented datagram beginning at 0.

Original paper, page 8 · Answer key

1 mark · MCQ
Report issue

Application-layer protocol data unit

Network Layers & Devices

Question 10, GATE 2012: The protocol data unit (PDU) for the application layer in the Internet stack is
        (A) Segment             (B) Datagram               (C) Message            (D) Frame
Tap to enlarge
Your answer
Answer & solution

Official answer: C

The generic PDU at the application layer is a message. Segment is associated with TCP at transport, datagram with connectionless network/transport use, and frame with the data-link layer. Hence C.

Check: Encapsulation gives the useful hierarchy: application message, transport segment (TCP), network datagram or packet, and link frame. The question asks for the application unit before lower-layer headers are added.

Original paper, page 3 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Transport protocol supporting email

Transport, Congestion Control & Traffic Shaping

Question 22, GATE 2012: Which of the following transport layer protocols is used to support electronic mail?
        (A) SMTP                (B) IP                   (C) TCP                  (D) UDP
Tap to enlarge
Your answer
Answer & solution

Official answer: C

SMTP carries electronic mail at the application layer but normally relies on TCP for reliable transport. The question explicitly asks for the transport-layer protocol, so TCP, C, is correct. IP is network-layer and SMTP itself is not transport-layer.

Check: The service needs ordered, reliable delivery rather than raw IP datagrams. TCP supplies these transport properties; SMTP supplies mail-transfer commands above it. Selecting SMTP would answer which mail application protocol is used, a different layer question.

Original paper, page 5 · Answer key

1 mark · MCQ
Report issue

Class C network-number count

IP Addressing, Fragmentation & Address Resolution

Question 23, GATE 2012: In classful IPv4 addressing, how many Class C network numbers are allowed?
(A) 2^14 (B) 2^7 (C) 2^21 (D) 2^24.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Class C addresses begin with the three fixed bits 110. The first 24 bits identify the classful network, leaving 24−3=21 variable network-number bits. Thus the class has 221 network numbers, C. The last eight bits identify hosts within each network; this is historical classful counting, not modern CIDR allocation.

Check: There are 32 total address bits: three class-prefix bits, 21 variable network bits, and eight host bits. The question counts networks, not usable hosts, so subtracting network/broadcast host addresses from 28 is irrelevant.

Original paper, page 5 · Answer key

2 marks · MCQ
Report issue

Disjoint half and quarter CIDR blocks

IP Addressing, Fragmentation & Address Resolution

Question 34, GATE 2012: An Internet Service Provider (ISP) has the following chunk of CIDR-based IP addresses available
        with it: 245.248.128.0/20. The ISP wants to give half of this chunk of addresses to Organization A,
        and a quarter to Organization B, while retaining the remaining with itself. Which of the following is
        a valid allocation of addresses to A and B?
        (A) 245.248.136.0/21 and 245.248.128.0/22
        (B) 245.248.128.0/21 and 245.248.128.0/22
        (C) 245.248.132.0/22 and 245.248.132.0/21
        (D) 245.248.136.0/24 and 245.248.132.0/21
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Step through it (14 steps)

The /20 block spans third-octet values 128–143 and has 4096 addresses. A needs 2048 addresses, a /21 aligned on a multiple of 8, and B needs 1024 addresses, a /22 aligned on a multiple of 4. Option A assigns A the range 136–143 and B the range 128–131, disjoint and within the parent block, leaving 132–135. B overlaps its blocks; C has wrong sizes and an unaligned /21; D has wrong sizes. Hence A as subnet arithmetic. The supplied 245.x address lies in reserved 240.0.0.0/4 rather than ordinary public ISP unicast space, so the scenario is hypothetical.

Check: Splitting a /20 in half adds one prefix bit, giving /21; splitting it into quarters adds two, giving /22. The allocation to A must have twice as many addresses as B, and both blocks must also satisfy their alignment boundaries.

Original paper, page 8 · Answer key

2 marks · MCQ
Report issue

Packet pipeline across three equal links

Physical Layer & Transmission

Question 44, GATE 2012: A source S sends a 10^6-bit file to D through two store-and-forward routers R1,R2 and three links S→R1→R2→D. Every link is 100 km long, has bandwidth 1 Mbps, and signal speed 10^8 m/s. The file is split into 1000 packets of 1000 bits each. Find the elapsed transmission-plus-propagation delay for the whole file, without additional processing or queuing delay.
(A) 1005 ms (B) 1010 ms (C) 3000 ms (D) 3003 ms.
Tap to enlarge
Your answer
Answer & solution

Official answer: A

A packet takes 1000/10⁶ s=1 ms to transmit on each link. Each link propagation delay is 100, 000/10⁸ s=1 ms. With store-and-forward routers and no extra processing/queueing delays, the first packet reaches D after 3×(1+1)=6 ms. Subsequent packets emerge from the equal-rate pipeline 1 ms apart, so the final packet arrives at 6+999=1005 ms, A. Equivalently, total elapsed completion time is (1000+3−1)×1+3×1 ms. Summing the service time separately over all packets is not the elapsed file-transfer time asked for.

Check: For a single packet, store-and-forward requires all three serial transmissions plus all three propagations. For many packets, transmissions overlap on different links; only 999 additional packet times follow the first packet, rather than 999 complete end-to-end delays.

Original paper, page 11 · Answer key

2 marks · MCQ
Report issue

TCP congestion window after timeout

Transport, Congestion Control & Traffic Shaping

Question 45, GATE 2012: Consider an instance of TCP’s Additive Increase Multiplicative Decrease (AIMD) algorithm where
        the window size at the start of the slow start phase is 2 MSS and the threshold at the start of the first
        transmission is 8 MSS. Assume that a timeout occurs during the fifth transmission. Find the
        congestion window size at the end of the tenth transmission.
        (A) 8 MSS                 (B) 14 MSS                  (C) 7 MSS               (D) 12 MSS
Tap to enlarge
Your answer
Answer & solution

Official answer: Marks to All

Our answer: No unique numerical answer asserted; conditional round models yield 8 MSS (A) or 7 MSS (C).

The official Code A key awards Marks to All; it does not supply a numerical answer or an official explanation. To expose the conventions needed, take transmissions as RTT-sized rounds: the initial windows are 2, 4, 8, 9, 10 MSS, so a timeout in round 5 sets a halved threshold of 5 MSS under the usual round model. If the post-timeout window resets to the stated slow-start value 2 and slow-start growth is capped at the threshold, rounds 6–10 end with windows 4, 5, 6, 7, 8 MSS (A). With a one-MSS timeout restart and the same threshold-capping convention, they end with 2, 4, 5, 6, 7 MSS (C). Literal doubling across the threshold gives still other round traces. ACK-level growth and whether the quoted window belongs to the beginning or end of a transmission also need a convention. These conditional examples explain why one should not present a uniquely established numerical result from this wording; they are not claimed as the exam authority’s reason for the award.

Check: The timeout point matters because halving acts on the current window, not the original threshold. With the stated round trace the current window is 10 MSS, giving a threshold of 5, after which the restart convention determines which option can follow.

Original paper, page 11 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Layer-four firewall limitation

Network Security

Question 2, GATE 2011: A layer-4 firewall can inspect all protocol headers up to the transport layer. Which action can it NOT perform?

(A) Block all HTTP traffic between 9:00 PM and 5:00 AM
(B) Block all ICMP traffic
(C) Block incoming traffic from a specific IP address but allow outgoing traffic to that address
(D) Block TCP traffic from a specific user on a multi-user system between 9:00 PM and 5:00 AM
Tap to enlarge
Your answer
Answer & solution

Official answer: D

IP addresses, protocol numbers and transport ports are present in network/transport headers, allowing conventional address, protocol and port-based time rules. A particular logged-in user on a shared machine is not identified by these headers, so a layer-four firewall alone cannot implement D. The HTTP option assumes the conventional known service ports, rather than universal application identification on arbitrary ports.

Separate the information needed for each rule from the information available in a packet. A time rule can consult the firewall's clock; an IP rule can inspect the source/destination address; ICMP is identified by the network protocol field. A TCP segment identifies ports and endpoints, not which operating-system user owns its connection. Enforcing that last distinction needs additional identity information, such as a host agent or authenticated application proxy.

Original paper, page 2 · Answer key

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Email application protocols

Application Protocols

Question 4, GATE 2011: Match email activities to application protocols: m1 sends email from a mail client to a mail server; m2 downloads email from a mailbox server to a mail client; m3 checks email using a web browser.

(A) m1 HTTP; m2 SMTP; m3 POP
(B) m1 SMTP; m2 FTP; m3 HTTP
(C) m1 SMTP; m2 POP; m3 HTTP
(D) m1 POP; m2 SMTP; m3 IMAP
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Mail submission uses SMTP; downloading from a mailbox in the listed mapping uses POP; browser-based access uses HTTP. Therefore C. IMAP is another mail-access protocol, but it is not the correct mapping of the supplied alternatives.

Follow the direction and interface of each operation rather than treating all email traffic as one protocol. SMTP transfers outgoing messages to the mail infrastructure. POP retrieves stored mailbox messages. In webmail, the browser communicates with a web server over HTTP, even though that server may use other mail protocols behind the scenes. In B, FTP is a file-transfer protocol, not the specified mailbox retrieval protocol; A and D reverse the submission/retrieval roles.

Original paper, page 2 · Answer key

2 marks · MCQ
Report issue

Distance-vector update after a reduced link cost

Routing Algorithms

Question 52, GATE 2011: A symmetric distance-vector network has edges N1-N2:1, N2-N3:6, N3-N4:2, N4-N5:4, N5-N2:3. Stabilized vectors in destination order N1,...,N5 are N1=(0,1,7,8,4), N2=(1,0,6,7,3), N3=(7,6,0,2,6), N4=(8,7,2,0,4), N5=(4,3,6,4,0). Each round all nodes first exchange current vectors, then update. Between rounds a link-cost change modifies only the directly incident entry at each endpoint. If N2-N3 decreases to 2, what is N3's vector after the next round?

(A) 3,2,0,2,5
(B) 3,2,0,2,6
(C) 7,2,0,2,5
(D) 7,2,0,2,6
Question 52, GATE 2011: A symmetric distance-vector network has edges N1-N2:1, N2-N3:6, N3-N4:2, N4-N5:4, N5-N2:3. Stabilized vectors in destination order N1,...,N5 are N1=(0,1,7,8,4), N2=(1,0,6,7,3), N3=(7,6,0,2,6), N4=(8,7,2,0,4), N5=(4,3,6,4,0). Each round all nodes first exchange current vectors, then update. Between rounds a link-cost change modifies only the directly incident entry at each endpoint. If N2-N3 decreases to 2, what is N3's vector after the next round?

(A) 3,2,0,2,5
(B) 3,2,0,2,6
(C) 7,2,0,2,5
(D) 7,2,0,2,6
Tap to enlarge
Your answer
Answer & solution

Official answer: A

Before the next exchange, only the incident entries change: N2 sets its distance to N3 to 2, and N3 sets its distance to N2 to 2. In particular N2 still advertises distances 1 to N1 and 3 to N5; N4 advertises 8 to N1 and 4 to N5. N3 recomputes through neighbors N2 (link cost 2) and N4 (link cost 2): to N1, min(2+1, 2+8)=3; to N2, min(2+0, 2+7)=2; to itself, 0; to N4, min(2+7, 2+0)=2; to N5, min(2+3, 2+4)=5. Its vector becomes (3, 2, 0, 2, 5), option A.

The distance-vector recurrence is D3(j)=min over neighbors k of [cost(3,k)+Dk(j)], with D3(3)=0. The exchange occurs before recomputation, so N3 cannot use routes N2 or N4 will discover later in this same round. In particular, destination N5 improves via N2 from 6 to 2+3=5, while N1 improves to 2+1=3. Mixing updated and old advertisements would model an asynchronous cascade rather than the specified one-round calculation.

Original paper, page 15 · Answer key

2 marks · MCQ
Report issue

One synchronous round after a routing link failure

Routing Algorithms

Question 53, GATE 2011: Use the symmetric network edges N1-N2:1,N2-N3:6,N3-N4:2,N4-N5:4,N5-N2:3 and stabilized vectors N1=(0,1,7,8,4),N2=(1,0,6,7,3),N3=(7,6,0,2,6),N4=(8,7,2,0,4),N5=(4,3,6,4,0). Nodes exchange current vectors synchronously, then update; between rounds only incident entries change. First reduce N2-N3 to 2 and perform exactly one round as in the preceding question. Then N1-N2 fails; N2 immediately changes its N1 entry to infinity. After the NEXT round, what cost to N1 does N3 record?

(A) 3
(B) 9
(C) 10
(D) Infinity
Question 53, GATE 2011: Use the symmetric network edges N1-N2:1,N2-N3:6,N3-N4:2,N4-N5:4,N5-N2:3 and stabilized vectors N1=(0,1,7,8,4),N2=(1,0,6,7,3),N3=(7,6,0,2,6),N4=(8,7,2,0,4),N5=(4,3,6,4,0). Nodes exchange current vectors synchronously, then update; between rounds only incident entries change. First reduce N2-N3 to 2 and perform exactly one round as in the preceding question. Then N1-N2 fails; N2 immediately changes its N1 entry to infinity. After the NEXT round, what cost to N1 does N3 record?

(A) 3
(B) 9
(C) 10
(D) Infinity
Question 53, GATE 2011: Use the symmetric network edges N1-N2:1,N2-N3:6,N3-N4:2,N4-N5:4,N5-N2:3 and stabilized vectors N1=(0,1,7,8,4),N2=(1,0,6,7,3),N3=(7,6,0,2,6),N4=(8,7,2,0,4),N5=(4,3,6,4,0). Nodes exchange current vectors synchronously, then update; between rounds only incident entries change. First reduce N2-N3 to 2 and perform exactly one round as in the preceding question. Then N1-N2 fails; N2 immediately changes its N1 entry to infinity. After the NEXT round, what cost to N1 does N3 record?

(A) 3
(B) 9
(C) 10
(D) Infinity
Tap to enlarge
Your answer
Answer & solution

Official answer: C

This is the round immediately after the update in printed question 52, not a converged routing table. In that previous round N4 retained distance 8 to N1: via N3 it saw the old advertised distance 7, giving 2+7=9, while via N5 it obtained 4+4=8. When link N1–N2 fails, N2 immediately changes its N1 entry to infinity. In the next exchange N3 therefore sees N2 advertise infinity and N4 advertise 8 to N1. Its new distance to N1 is min(2+infinity, 2+8)=10, option C. Ordinary distance-vector updating uses neighbors’ current advertisements; it does not retain its obsolete distance 3 as an independent route.

The crucial neighbor advertisement is N4's, so reconstruct it from the previous round: to N1, via N3 costs 2+7=9 using the old N3 vector, while via N5 costs 4+4=8; thus N4 advertises 8. Following failure, N3 hears no usable N1 route from N2 but still hears N4's stale value. Its update to 10 illustrates distance-vector count-to-infinity behavior: a finite advertised route can temporarily survive even though N1 is physically disconnected.

Original paper, page 15 · Answer key

1 mark · MCQ
Report issue

Purpose of IP TTL

IP Addressing, Fragmentation & Address Resolution

Question 15, GATE 2010: Which statement best explains why an IP datagram has a Time-to-Live (TTL) header field?
Options: (A) To prioritize packets; (B) To reduce delays; (C) To optimize throughput; (D) To prevent packet looping.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Routers decrement TTL as a datagram is forwarded and discard it when the limit is exhausted. A packet caught in a routing loop therefore cannot circulate indefinitely. This bounds packet lifetime rather than prioritizing traffic, directly reducing delay or optimizing throughput: D.

If routers A and B mistakenly route a destination through each other, the same packet can alternate indefinitely without a hop/lifetime bound. TTL makes each traversal consume part of a finite budget. It does not repair the routing error itself; it limits the damage by eventually dropping the circulating datagram.

Original paper, page 4

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Ping versus client-server applications

Application Protocols

Question 16, GATE 2010: Which is not a client–server application in the conventional networking classification?
Options: (A) Internet chat; (B) Web browsing; (C) E-mail; (D) Ping.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Ping uses ICMP echo requests and replies handled by the network protocol stack, rather than a conventional application-layer client talking to an application server. Web browsing, ordinary email and server-based Internet chat use client-server application models. Thus D is the intended classification; request–reply alone does not make a utility an application-layer client-server service.

The relevant distinction is the protocol layer and service model, not merely whether one machine sends and another responds. A web server, mail server or chat server implements an application service. Ping normally asks the remote IP/ICMP stack to generate an echo reply, without a separately running user-level application server.

Original paper, page 4

2 marks · MCQ
Report issue

Netmask separating two IPv4 hosts

IP Addressing, Fragmentation & Address Resolution

Question 47, GATE 2010: Hosts A and B have IP addresses 10.105.1.113 and 10.105.1.91, with a common netmask N. Which mask must not be used if they are to belong to the same network?
Options: (A) 255.255.255.0; (B) 255.255.255.128; (C) 255.255.255.192; (D) 255.255.255.224.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step through it (6 steps)

The last octets are 113=01110001₂ and 91=01011011₂. A /24 mask gives the same network. A /25 mask (128) gives last-octet network 0 for both; a /26 mask (192) gives 64 for both. A /27 mask (224) gives 96 for 113 and 64 for 91, placing the hosts in different subnets. Therefore 255.255.255.224 must not be used, option D.

Network membership is determined by bitwise AND of address and mask. Since the first three octets agree, only the final octet matters. /26 partitions that octet into ranges 0–63,64–127,128–191,192–255, so both hosts are in 64–127. /27 splits it further into 64–95 and 96–127, separating 91 from 113.

Original paper, page 11

2 marks · MCQ
Report issue

Unused links after distance-vector convergence

Routing Algorithms

Question 54, GATE 2010: An undirected router network has exactly these links and weights: R1–R2:6, R1–R3:3, R2–R3:2, R2–R4:7, R3–R5:9, R4–R5:1, R4–R6:8, R5–R6:4. Routers use distance-vector routing, starting with neighbor entries equal to direct-link weights. After routing tables stabilize, how many links are never used to carry data?
Options: (A) 4; (B) 3; (C) 2; (D) 1.
Question 54, GATE 2010: An undirected router network has exactly these links and weights: R1–R2:6, R1–R3:3, R2–R3:2, R2–R4:7, R3–R5:9, R4–R5:1, R4–R6:8, R5–R6:4. Routers use distance-vector routing, starting with neighbor entries equal to direct-link weights. After routing tables stabilize, how many links are never used to carry data?
Options: (A) 4; (B) 3; (C) 2; (D) 1.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

With positive link weights, an edge is unusable by any shortest path exactly when another path between its endpoints is strictly shorter. Link R1–R2 has weight 6 but R1–R3–R2 costs 3+2=5, so it is unused. Link R4–R6 has weight 8 but R4–R5–R6 costs 1+4=5, so it is also unused. Every remaining edge is itself a shortest path between its endpoints: R1–R3=3, R2–R3=2, R2–R4=7, R3–R5=9 and R4–R5=1, R5–R6=4. In particular the alternative to R3–R5 through R2,R4 costs 2+7+1=10, greater than 9. Thus exactly two links will never be selected, C. This assumes stabilized shortest-path routing, with data available for any source/destination pair.

To prove that an edge is never needed, replace it in any purported shortest route by the cheaper endpoint-to-endpoint route; the result is a shorter walk and, with positive weights, can be reduced to a path. Conversely, an edge strictly shortest between its own endpoints is needed for that endpoint pair. This avoids enumerating every source–destination routing table.

Original paper, page 14

2 marks · MCQ
Report issue

Unused links after weight changes

Routing Algorithms

Question 55, GATE 2010: An undirected router network has exactly these links and weights: R1–R2:6, R1–R3:3, R2–R3:2, R2–R4:7, R3–R5:9, R4–R5:1, R4–R6:8, R5–R6:4. Routers use distance-vector routing, starting with neighbor entries equal to direct-link weights. First determine the links never used after stabilization. Change every such link’s weight to 2 and rerun distance-vector routing until stable. How many links are now unused?
Options: (A) 0; (B) 1; (C) 2; (D) 3.
Question 55, GATE 2010: An undirected router network has exactly these links and weights: R1–R2:6, R1–R3:3, R2–R3:2, R2–R4:7, R3–R5:9, R4–R5:1, R4–R6:8, R5–R6:4. Routers use distance-vector routing, starting with neighbor entries equal to direct-link weights. First determine the links never used after stabilization. Change every such link’s weight to 2 and rerun distance-vector routing until stable. How many links are now unused?
Options: (A) 0; (B) 1; (C) 2; (D) 3.
Question 55, GATE 2010: An undirected router network has exactly these links and weights: R1–R2:6, R1–R3:3, R2–R3:2, R2–R4:7, R3–R5:9, R4–R5:1, R4–R6:8, R5–R6:4. Routers use distance-vector routing, starting with neighbor entries equal to direct-link weights. First determine the links never used after stabilization. Change every such link’s weight to 2 and rerun distance-vector routing until stable. How many links are now unused?
Options: (A) 0; (B) 1; (C) 2; (D) 3.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Change precisely the two previously unused links R1–R2 and R4–R6 to weight 2. Now R5–R6 has direct weight 4 but R5–R4–R6 costs 1+2=3, so it becomes unused. All other links remain shortest between their endpoints: the changed links have weight 2; R1–R3=3 beats R1–R2–R3=4; R2–R3=2; R2–R4=7 beats R2–R3–R5–R4=12; R3–R5=9 beats R3–R2–R4–R5=10; and R4–R5=1. Hence one link remains unused, B. Recompute routes after the weight changes rather than retaining the previous unused set.

Changing edge weights requires recomputing shortest paths globally. The former R4–R6 bypass is now the cheap direct edge of weight two; together with R4–R5 of weight one it undercuts R5–R6. The changed R1–R2 edge does not undercut R1–R3, since 2+2=4>3. These comparisons explain why the unused set changes rather than merely shrinking.

Original paper, page 14

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

RSA exponent and modulus conditions

Network Security

Question 46, GATE 2009: RSA has n=pq and φ(n)=(p−1)(q−1), message 0<M<n. The source calls(e, n) private and(d, n) public. Assess I M′=M^e mod n and M=(M′)^d mod n; II ed≡1 mod n; III ed≡1 mod φ(n); IV both message exponentiations use modulusφ(n). A I/II; B I/III; C II/IV; D III/IV.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

RSA exponentiation is modulo n=pq, and the chosen exponents obey ed≡1 (mod φ(n)), with φ(n)=(p−1)(q−1). Thus statements I and III are correct, option B. Writing ed=1+kφ(n), Euler’s theorem proves Med≡M modulo n when M is coprime to n; reduction separately modulo p and q, followed by the Chinese remainder theorem, also proves it for non-coprime messages. Statement II incorrectly uses modulus n for the exponent-inverse condition; IV incorrectly performs message arithmetic modulo φ(n). The question reverses the usual names of e and d (calling e private and d public), but RSA’s mathematical inversion works either way and the answer is unchanged.

Two different moduli serve different roles. Messages live modulo n, while the inverse relationship between exponents is taken moduloφ(n) (or a suitable Carmichael modulus in other formulations). Combining the message exponentiations gives Med; choosing ed=1+kφ(n) returns M. This explains I and III and rejects the distractors that interchange these moduli. The source’s naming of e and d is reversed from many textbooks but does not alter the algebra.

Original paper, page 10

2 marks · MCQ
Report issue

Minimum sequence-number progression

Transport, Congestion Control & Traffic Shaping

Question 47, GATE 2009: TCP initial sequence numbers use the low 32 bits of a persistent time-of-day counter incremented once per millisecond. Maximum packet lifetime 64 s. The source asks the minimum permissible rate of sequence-number increase in a connection. Choices A 0.015/s; B 0.064/s; C 0.135/s; D 0.327/s. Connection duration is not specified; the listed-result derivation requires an explicit extra model.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Let S=232, clock rate C=1000/s, packet lifetime M=64 s, and a constant-rate connection start at time 0 with initial sequence number 0, so its sequence trajectory is q(t)=rt. For r<C, the next occurrence of this sequence value on the returning clock trajectory is at time (S+rt)/C. To let a packet sent at t expire before that clock reuse, require (S+rt)/C−t≥M, equivalently (C−r)t≤S−CM. Requiring this throughout a connection of duration D therefore gives r≥C−(S−CM)/D (with nonnegative rates understood). If the intended duration is one clock cycle, D=S/C, this becomes r≥C²M/S=1000²×64/232=0.0149011612/s, closest to A, 0.015/s. This is an exact conditional derivation under the stated constant-rate, returning-clock model. The question does not actually specify D: the tiny minimum is therefore conditional on the one-clock-cycle interpretation, not a universal minimum. In particular, every r<C eventually reaches the returning forbidden strip if the connection continues indefinitely. The original 1/M shortcut is unjustified and is not used. Conceptual reference: Tanenbaum, Computer Networks, 5th edition, Figure 6-10 (clock-based forbidden regions); https://csc-knu.github.io/sys-prog/books/Andrew%20S.%20Tanenbaum%20-%20Computer%20Networks.pdf .

Do not infer a universal rate from 64 seconds alone:1/64 is not derived from the supplied 32-bit clock. Under a constant-rate trajectory and a connection lasting exactly one clock wrap, substitution yields r≥1000²·64/2³²≈0.014901/s, nearest A. The baseline derives the time-to-reuse inequality and shows where that extra duration enters. For an indefinitely long connection, any rate below the clock slope eventually meets the returning forbidden region. Thus the numeric choice is conditional; absent the duration/model assumption, the prompt does not uniquely define that minimum.

Original paper, page 11

2 marks · MCQ
Report issue

CRC detection of odd-weight errors

Data Link, Framing, Error Control & ARQ

Question 48, GATE 2009: What condition on CRC generator G(x) detects all odd-weight bit errors? A more than two terms; B G does not divide 1+x^k for any k within frame length; C 1+x divides G; D an odd number of terms.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Over GF(2), an error polynomial E(x) with an odd number of nonzero coefficients satisfies E(1)=1. If x+1 divides G(x), every multiple of G(x) evaluates to zero at x=1. Therefore no odd-weight E(x) is divisible by G(x), and every such error has a nonzero CRC syndrome. Hence C. Option B instead addresses two-bit errors of the form xi(1+xk); merely having more than two terms is insufficient, and an odd number of terms makes G(1)=1 rather than giving the needed x+1 factor.

A polynomial has factor x+1 over GF(2) exactly when its value at 1 is 0, meaning an even number of nonzero coefficients. An odd-weight error has E(1)=1, so it cannot be a multiple of a generator that vanishes at 1. Therefore its division remainder cannot be zero, and the CRC detects it. This parity argument establishes C without enumerating error positions. The condition about 1+xk is associated with two-bit errors, not all odd-weight errors.

Original paper, page 11

2 marks · MCQ
Report issue

Sequence bits for frames in flight

Physical Layer & Transmission

Question 57, GATE 2009: Frames 1000 bits traverse a 10^6 bps duplex link with one-way propagation 25 ms, packed back-to-back in transit. Minimum bits l to distinguish frames physically in the link? A 2; B 3; C 4; D 5.
Question 57, GATE 2009: Frames 1000 bits traverse a 10^6 bps duplex link with one-way propagation 25 ms, packed back-to-back in transit. Minimum bits l to distinguish frames physically in the link? A 2; B 3; C 4; D 5.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Frame transmission time is 1000/106=0.001 s=1 ms. One-way propagation time is 25 ms, so the link can hold (106×0.025)/1000=25 frames in transit. Distinguishing these requires l=ceil(log2 25)=5 bits, option D. This question asks about frames physically within the one-way link, not the sender window needed to cover a complete data-plus-ACK round trip; that latter calculation is not the quantity requested here.

Transmission consumes 1 ms per frame. During the 25 ms one-way propagation delay, 25 complete frame-lengths can occupy the channel, so at least 25 distinct labels are needed. Four bits give only 16 labels; five give 32 and suffice. The quantity is one-way in-flight frames, not the round-trip bandwidth-delay product for a continuously busy sender. That distinction prevents mistakenly demanding six bits here.

Original paper, page 13

2 marks · MCQ
Report issue

Waiting after a full sliding window

Data Link, Framing, Error Control & ARQ

Question 58, GATE 2009: Using the preceding l, sender window is 2^l frames and ACKs always piggyback on return frames. After the initial full window, minimum wait before next transmission, ignoring processing? A 16; B 18; C 20; D 22 ms. Immediate equal-size return frame is the timing convention.
Question 58, GATE 2009: Using the preceding l, sender window is 2^l frames and ACKs always piggyback on return frames. After the initial full window, minimum wait before next transmission, ignoring processing? A 16; B 18; C 20; D 22 ms. Immediate equal-size return frame is the timing convention.
Question 58, GATE 2009: Using the preceding l, sender window is 2^l frames and ACKs always piggyback on return frames. After the initial full window, minimum wait before next transmission, ignoring processing? A 16; B 18; C 20; D 22 ms. Immediate equal-size return frame is the timing convention.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

From Q57 l=5, so the stated sender window is 2^5=32 frames. Sending those frames takes 32×1=32 ms. The first frame is fully received after 1+25=26 ms. With an immediately sent equal-sized return frame carrying the piggybacked acknowledgment, its serialization takes 1 ms and propagation another 25 ms, so the ACK is fully received at 52 ms. The sender thus waits 52−32=20 ms after its initial burst, option C. This is the minimum: any delay waiting for a return data frame would increase it. The question stipulates the window size; do not replace it with protocol-specific Go-Back-N or Selective-Repeat sequence-space restrictions.

The first outgoing frame finishes transmission at 1 ms and arrives fully at 26 ms. An immediately transmitted 1000-bit return frame finishes its own serialization at 27 ms and arrives fully back at 52 ms. The initial 32-frame window completes sending at 32 ms. Thus the minimum additional wait is 20 ms. Waiting for return application data would increase it, so immediate piggybacking is the minimum-time assumption, not a guaranteed real traffic pattern.

Original paper, page 13

1 mark · MCQ
Report issue

Application data size passed to TCP

Transport, Congestion Control & Traffic Shaping

Question 14, GATE 2008: What is the maximum size of data the application layer can pass to TCP?

(A) Any size
(B) 2^16 bytes minus TCP-header size
(C) 2^16 bytes
(D) 1500 bytes
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. TCP offers applications an ordered byte stream, rather than one application-message-per-packet service.
2. TCP divides that stream into segments; IP and link-layer limits constrain individual packets/frames, not the total stream length.
3. Thus neither 1500 nor 216 bytes is a maximum application stream size. A is intended. Real API calls may still impose implementation-specific buffer limits.

Original paper, page 4

1 mark · MCQ
Report issue

Socket operation initiating TCP handshake

Transport, Congestion Control & Traffic Shaping

Question 17, GATE 2008: Which system call results in sending SYN packets?

(A) socket
(B) bind
(C) listen
(D) connect
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. socket creates a socket, bind assigns a local endpoint, and listen makes a TCP socket passive.
2. connect initiates the active TCP open, starting the three-way handshake by sending SYN.
3. The requested call is therefore D. This reasoning is specifically for TCP; UDP connect does not initiate a TCP handshake.

Original paper, page 4

2 marks · MCQ
Report issue

TCP slow-start congestion-window growth

Transport, Congestion Control & Traffic Shaping

Question 56, GATE 2008: During TCP slow start, how does the congestion-window size grow over successive round trips?

(A) Does not increase
(B) Linearly
(C) Quadratically
(D) Exponentially
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. The congestion window grows exponentially over successive round-trip times in slow start, option D. In the simplified textbook model each acknowledged segment increases the window by one MSS; a window of W segments produces about W acknowledgments in one RTT, so the window becomes approximately 2W.
2. After k such rounds it is approximately 2k times its initial value, until reaching a threshold or encountering loss. Growth is per ACK rather than continuous time; delayed ACKs and practical implementations affect the precise factor but not the intended exponential-versus-linear distinction.

Original paper, page 11

2 marks · MCQ
Report issue

Usable hosts under a /21 IPv4 mask

IP Addressing, Fragmentation & Address Resolution

Question 57, GATE 2008: A Class B network uses subnet mask 255.255.248.0. What is the maximum number of hosts per subnet?

(A) 1022
(B) 1023
(C) 2046
(D) 2047
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step through it (3 steps)

Step 1: 255.255.248.0 has 8+8+5=21 leading one bits because 248=11111000₂. Thus 32−21=11 host bits remain.
Step 2: A subnet has 211=2048 addresses; reserving the all-zero host part for the subnet address and the all-one host part for broadcast leaves 2046 usable host addresses, option C. The original Class B label does not change the host count once the subnet mask is supplied.

Original paper, page 11

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Maximum token-bucket burst duration

Transport, Congestion Control & Traffic Shaping

Question 58, GATE 2008: A computer transmits on a 10-Mbit/s network through a token bucket replenished at 2 Mbit/s. Initially it holds its full capacity of 16 Mbits. How long can transmission continue at the full 10 Mbit/s?

(A) 1.6 seconds
(B) 2 seconds
(C) 5 seconds
(D) 8 seconds
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. At full output rate 10 Mbit/s, tokens are consumed at 10 Mbit/s while replenishment continues at 2 Mbit/s. The initially full 16-Mbit bucket therefore drains at a net rate of 8 Mbit/s.
2. Its maximum full-rate burst lasts 16/(10−2)=2 seconds, option B. Equivalently 10t≤16+2t gives t≤2.
3. Ignoring concurrent refill would incorrectly produce 1.6 seconds.

Original paper, page 11

2 marks · MCQ
Report issue

TCP connect before the server calls accept

Transport, Congestion Control & Traffic Shaping

Question 59, GATE 2008: A TCP server executes socket(), bind(), listen(), then is preempted before any accept(). A client executes socket() and connect() to it. Which event can occur in the intended normal setting?

(A) connect() returns successfully
(B) connect() blocks
(C) connect() returns an error
(D) connect() causes a core dump
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. The client connect() can return successfully, option A. After socket(), bind() and listen(), the server kernel has a listening TCP endpoint and can complete the three-way handshake while the server process is descheduled.
2. The resulting established connection waits in the listener’s accept queue; accept() subsequently removes an entry and returns a connected socket to the server process. Hence user-space accept() is not required for the client handshake to complete.
3. The intended setting assumes an available backlog slot and normal network operation; incidental loss, queue exhaustion or unrelated errors can of course affect real calls.

Original paper, page 11

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Manchester bit and signal-element rates

Physical Layer & Transmission

Question 19, GATE 2007: In Ethernet using Manchester encoding, the bit rate is which of the following?
Options:
(A) Half the baud rate
(B) Twice the baud rate
(C) Equal to the baud rate
(D) None of these
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Approach. One data bit occupies two half-bit signal intervals. Under the convention in the question, count these intervals as signal elements when computing baud.

2. Derivation and interpretation. Manchester uses two half-bit signal elements to encode each bit, with a transition in the middle. Under the conventional signal-element definition of baud, baud rate is twice bit rate, so the bit rate is half the baud rate, A. This is not a claim that every bit causes exactly two transitions.

Original paper, page 4

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Application using UDP

Transport, Congestion Control & Traffic Shaping

Question 20, GATE 2007: Which listed protocol conventionally uses UDP as its transport protocol?
Options:
(A) HTTP
(B) Telnet
(C) DNS
(D) SMTP
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Approach. Use the traditional protocol stack assumed by this 2007 paper. The common short DNS request/reply exchange uses UDP; distinguish this from claiming that DNS never uses TCP.

2. Derivation and interpretation. Traditional DNS queries commonly use UDP, while the listed historical HTTP, Telnet and SMTP mappings use TCP. Thus C. DNS can also use TCP, and later HTTP versions may use QUIC; the answer follows the era and conventional protocol mapping.

Original paper, page 4

2 marks · MCQ
Report issue

Exactly one slotted-LAN transmission

Medium Access & Ethernet

Question 65, GATE 2007: A slotted LAN has n stations. Each station independently attempts to transmit with probability p in a slot. What is the probability that exactly one station transmits?
Options:
(A) np(1−p)^(n−1)
(B) (1−p)^(n−1)
(C) p(1−p)^(n−1)
(D) 1−(1−p)^(n−1)
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Approach. Choose which station is the sole sender, then require it to transmit and every other station to remain silent. The n resulting events are mutually exclusive, so add their probabilities.

2. Derivation and interpretation. Assuming independent station attempts, a fixed station transmits alone with probability p(1-p)n-1. There are n disjoint choices for the sole transmitter, giving np(1-p)n-1, option A.

Original paper, page 16

2 marks · MCQ
Report issue

Cable length of one bit delay

Physical Layer & Transmission

Question 66, GATE 2007: A token-ring network transmits at 10^7 bits/s and signals propagate at 200 metres per microsecond. What cable length corresponds to a one-bit delay?
Options:
(A) 500 metres
(B) 200 metres
(C) 20 metres
(D) 50 metres
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Approach. Convert bit rate to time per bit by taking the reciprocal. Express that time in microseconds before multiplying by the propagation speed to avoid a factor-of-a-million unit error.

2. Derivation and interpretation. At 107 bits/s, one bit takes 10-7 s = 0.1 microsecond. During this time a signal travels 200 metres/microsecond times 0.1 microsecond = 20 metres. Answer C.

Original paper, page 16

2 marks · MCQ
Report issue

Class B subnet and host counts

IP Addressing, Fragmentation & Address Resolution

Question 67, GATE 2007: A class B address is divided into subnets using a 6-bit subnet number. What maximum numbers of subnets and hosts per subnet are intended?
Options:
(A) 62 subnets,262142 hosts
(B) 64 subnets,262142 hosts
(C) 62 subnets,1022 hosts
(D) 64 subnets,1024 hosts
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Approach. A class B prefix originally leaves 16 bits. Assigning six of those to subnet IDs leaves ten for hosts. Distinguish historical reserved subnet IDs from reserved host IDs and modern subnet conventions.

2. Derivation and interpretation. A class B network leaves 16 bits after its network prefix. Borrowing 6 subnet bits leaves 10 host bits, so usable ordinary unicast hosts per subnet are 210-2=1022. Under the historical convention excluding all-zero and all-one subnet numbers, the subnet count is 26-2=62, giving C. Modern subnetting permits those two subnet numbers and gives 64 subnets with 1022 hosts each; that pair is absent from the options. C is conditional on the obsolete convention, not a modern universal maximum.

Original paper, page 16

2 marks · MCQ
Report issue

CRC using polynomial x cubed plus one

Data Link, Framing, Error Control & ARQ

Question 68, GATE 2007: Protect message 11001001 using CRC generator x³+1. Which bit string should be transmitted?
Options:
(A) 11001001000
(B) 11001001011
(C) 11001010
(D) 110010010011
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Step through it (8 steps)

1. Approach. The generator degree is three, so append exactly three zero bits before polynomial division. Subtraction over GF(2) is XOR, with no borrowing. Replace the three zero placeholders by the remainder.

2. Derivation and interpretation. The generator x3+1 is binary 1001. Append three zeroes to 11001001, obtaining 11001001000. Modulo-2 division by 1001 has remainder 011. Replace the trailing zeroes by this remainder to transmit 11001001011, option B. Dividing this codeword by 1001 gives zero remainder.

Original paper, page 16

2 marks · MCQ
Report issue

Sliding-window sequence field width

Data Link, Framing, Error Control & ARQ

Question 69, GATE 2007: Stations M,N are L kilometres apart. Frames have K bits; propagation delay is t seconds per kilometre; channel capacity is R bits/s; processing delay is negligible. What minimum sequence-number bit width is intended for maximum utilization with the stated “sliding window” protocol? ACK timing and protocol variant are not explicitly specified.
Options:
(A) ceil(log₂((2LtR+2K)/K))
(B) ceil(log₂(2LtR/K))
(C) ceil(log₂((2LtR+K)/K))
(D) ceil(log₂((2LtR+K)/(2K)))
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. Approach. A frame takes K/R seconds to serialize and an ACK takes a round trip of approximately 2Lt after the frame is sent. First find the necessary window in frames, then apply the Go-Back-N sequence-space constraint; do not confuse window size with number of labels.

2. Derivation and interpretation. Let transmission time T=K/R and one-way propagation time P=Lt. With negligible ACK serialization, full utilization needs an integer window W >= ceil(1+2P/T). For Go-Back-N with an m-bit sequence field, W <= 2m-1, hence m >= ceil(log2(2+2LtR/K)); this is option A. The problem says only sliding window, not Go-Back-N, and does not state ACK timing: Selective Repeat instead needs sequence space at least 2W, while counting merely enough distinct labels without the Go-Back-N guard gives a different expression. Therefore A requires the standard Go-Back-N/negligible-ACK interpretation; the generic wording alone does not uniquely fix the answer.

Original paper, page 17

2 marks · MCQ
Not in GATE 2027 syllabusReport issue

Protocols matched to functional network layers

Network Layers & Devices

Question 70, GATE 2007: Match P: SMTP, Q: BGP, R: TCP, S: PPP to 1: Application, 2: Transport, 3: Data link, 4: Network, 5: Physical layer.
Options:
(A) P-2,Q-1,R-3,S-5
(B) P-1,Q-4,R-2,S-3
(C) P-1,Q-4,R-2,S-5
(D) P-2,Q-4,R-1,S-3
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. Approach. SMTP transfers mail, TCP provides end-to-end transport, and PPP frames data on a link. The offered matching classifies BGP by its routing function; its TCP-based transport is a separate layering nuance.

2. Derivation and interpretation. SMTP provides application-layer mail transfer (1); BGP performs interdomain routing, conventionally classified here by its network-layer function (4); TCP is transport-layer (2); PPP is data-link-layer (3). Thus P-1,Q-4,R-2,S-3, option B. BGP actually exchanges control messages over TCP, so its implementation can also be described as an application-layer protocol; the offered matching uses routing function.

Original paper, page 17

1 mark · MCQ
Report issue

Purpose of IPv4 TTL

IP Addressing, Fragmentation & Address Resolution

Question 5, GATE 2006: Why does IP put a Time-to-Live (TTL) field in the datagram header?
Options:
(A) Ensure delivery within that time
(B) Discard packets that reach the destination later than that time
(C) Prevent packets looping indefinitely
(D) Limit the time spent queued in intermediate routers
Question 5, GATE 2006: Why does IP put a Time-to-Live (TTL) field in the datagram header?
Options:
(A) Ensure delivery within that time
(B) Discard packets that reach the destination later than that time
(C) Prevent packets looping indefinitely
(D) Limit the time spent queued in intermediate routers
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

1. Every forwarding router decreases TTL, and a datagram is discarded when it expires. This bounds forwarding through a routing loop rather than promising delivery within a deadline.

2. Therefore C, preventing indefinite looping.

3. Teaching check: A routing loop may keep forwarding a datagram without delivering it. Decrementing a finite counter at each router eventually destroys that datagram even if the routing error persists. TTL does not reserve network resources or provide an end-to-end latency guarantee.

Original paper, page 1

2 marks · MCQ
Report issue

Sliding-window bandwidth-delay product

Data Link, Framing, Error Control & ARQ

Question 44, GATE 2006: A sends 32-byte packets to B with a sliding-window protocol. Round-trip delay is 80 ms and bottleneck bandwidth is 128 kbps. Which window size is optimal under the conventional bandwidth-delay-product model?
Options:
(A) 20 packets
(B) 40 packets
(C) 160 packets
(D) 320 packets
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. The bandwidth-delay product is 128000×0.080=10240 bits. A packet carries 32×8=256 bits, so 10240/256=40 packets fill the round-trip pipe (B).

2. This uses the problem's conventional bandwidth-delay-product interpretation of round-trip delay. If the given delay excludes serialization and ACK turnaround is measured from the last bit, a strict no-idle bound can require one additional packet; that convention is not represented in the options.

3. Teaching check: Convert bytes to bits and milliseconds to seconds consistently. The bandwidth-delay product measures the amount of data that must remain outstanding to keep the channel busy. Divide this bit count by packet size; do not use 32 directly as a bit count.

Original paper, page 6

2 marks · MCQ
Report issue

Hosts with unequal subnet masks

IP Addressing, Fragmentation & Address Resolution

Question 45, GATE 2006: C1 has IP address 203.197.2.53 and mask 255.255.128.0. C2 has 203.197.75.201 and mask 255.255.192.0. What does each infer about the other’s network?
Options:
(A) Both consider the other local
(B) C2 considers C1 local, but C1 considers C2 remote
(C) C1 considers C2 local, but C2 considers C1 remote
(D) Both consider the other remote
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step through it (4 steps)

1. C1 uses /17, so both 203.197.2.53 and 203.197.75.201 map to 203.197.0.0. C2 uses /18, mapping itself to 203.197.64.0 and C1 to 203.197.0.0.

2. Therefore C1 treats C2 as local while C2 treats C1 as remote: C.

3. Teaching check: Each machine applies its own mask to both addresses. C1’s /17 groups third octets 0–127; C2’s /18 separates 0–63 from 64–127. Because the masks differ, being “on the same subnet” need not be a symmetric belief between these misconfigured hosts.

Original paper, page 6

2 marks · MCQ
Report issue

Go-back-N with periodic transmission losses

Data Link, Framing, Error Control & ARQ

Question 46, GATE 2006: A sends nine immediately available packets to B using go-back-N and window size 3. Every fifth transmission attempt by A is lost, counting retransmissions; acknowledgments are never lost. Under the standard full-window go-back-N interpretation, how many packet transmissions complete delivery?
Options:
(A) 12
(B) 14
(C) 16
(D) 18
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step through it (21 steps)

1. Number transmission attempts, including retransmissions. The transmitted packet labels are 1,2,3,4,5,6,7,5,6,7,8,9,7,8,9,9.

2. Attempts 5,10,15 are lost. After each loss the later in-window packets are discarded, and the sender retransmits from the missing packet.

3. All nine packets arrive in order after attempt 16 (C). This is the standard full-window, cumulative-ACK go-back-N model used by the question.

4. Teaching check: Lost attempts are numbered globally, not separately for each packet. After losing packet 5, later out-of-order packets are discarded by go-back-N even if physically received. Replaying packet labels while marking attempt numbers 5,10,15 avoids confusing packet identity with loss periodicity.

Original paper, page 6

2 marks · MCQ
Report issue

Spanning-tree bridge traversal

Network Layers & Devices

Question 82, GATE 2006: Transparent bridges B1,…,B5 connect six LANs. The following connection list fully specifies the figure; Bk:p denotes port p of bridge k:
LAN H1,H2: B1:1, B5:2, B3:4.
LAN H3,H4: B1:2, B5:3, B3:3.
LAN H5,H6: B5:1, B3:1, B4:1, B2:2.
LAN H7,H8: B5:4, B3:2, B4:2, B2:1.
LAN H9,H10: B4:3.
LAN H11,H12: B2:3.
The bridge with lowest serial number is root. Every bridge selects a shortest path to the root; equal root-port choices prefer lower port index. For forwarding onto a LAN, bridges closer to the root win, then lower bridge serial number. Which listed order is a depth-first traversal of the resulting bridge spanning tree?
Options:
(A) B1,B5,B3,B4,B2
(B) B1,B3,B5,B2,B4
(C) B1,B5,B2,B3,B4
(D) B1,B3,B4,B5,B2
Question 82, GATE 2006: Transparent bridges B1,…,B5 connect six LANs. The following connection list fully specifies the figure; Bk:p denotes port p of bridge k:
LAN H1,H2: B1:1, B5:2, B3:4.
LAN H3,H4: B1:2, B5:3, B3:3.
LAN H5,H6: B5:1, B3:1, B4:1, B2:2.
LAN H7,H8: B5:4, B3:2, B4:2, B2:1.
LAN H9,H10: B4:3.
LAN H11,H12: B2:3.
The bridge with lowest serial number is root. Every bridge selects a shortest path to the root; equal root-port choices prefer lower port index. For forwarding onto a LAN, bridges closer to the root win, then lower bridge serial number. Which listed order is a depth-first traversal of the resulting bridge spanning tree?
Options:
(A) B1,B5,B3,B4,B2
(B) B1,B3,B5,B2,B4
(C) B1,B5,B2,B3,B4
(D) B1,B3,B4,B5,B2
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. B1 is the root (lowest serial number). B5 and B3 both connect directly to the two top LANs: B5 chooses root port 2 over 3, while B3 chooses root port 3 over 4.

2. On each middle LAN B3 wins the designated-bridge tie against B5 because 3<5. B4 chooses its root port 1 via the H5/H6 LAN; B2 chooses root port 1 via the H7/H8 LAN.

3. Thus the bridge tree has edges B1–B5, B1–B3, B3–B4, B3–B2. Among listed sequences only B1,B5,B3,B4,B2 is a depth-first traversal, A.

4. (Other child orders can give other valid DFS sequences, but the other listed sequences leave B3’s subtree prematurely.)

5. Teaching check: After choosing root ports, compare B3 and B5 on the middle LANs: both are one bridge-hop from B1, so B3’s smaller ID wins. B4 and B2 consequently attach under B3. A depth-first traversal must finish B3’s children before returning to visit sibling B5.

Original paper, page 13

2 marks · MCQ
Report issue

Forwarding ports on bridge B3

Network Layers & Devices

Question 83, GATE 2006: Transparent bridges B1,…,B5 connect six LANs. The following connection list fully specifies the figure; Bk:p denotes port p of bridge k:
LAN H1,H2: B1:1, B5:2, B3:4.
LAN H3,H4: B1:2, B5:3, B3:3.
LAN H5,H6: B5:1, B3:1, B4:1, B2:2.
LAN H7,H8: B5:4, B3:2, B4:2, B2:1.
LAN H9,H10: B4:3.
LAN H11,H12: B2:3.
The bridge with lowest serial number is root. Every bridge selects a shortest path to the root; equal root-port choices prefer lower port index. For forwarding onto a LAN, bridges closer to the root win, then lower bridge serial number. For the resulting tree, after H1 sends a broadcast ping, which listed forwarding table describes B3? Tables list destination groups and outgoing port. D retains the reproduced H7 duplication.
Options:
(A) H1,H2,H3,H4→3; H5,H6,H9,H10→1; H7,H8,H11,H12→2
(B) H1,H2→4; H3,H4→3; H5,H6→1; H7,H8,H9,H10,H11,H12→2
(C) H3,H4→3; H5,H6,H9,H10→1; H1,H2→4; H7,H8,H11,H12→2
(D) H1,H2,H3,H4→3; H5,H7,H9,H10→1; H7,H8,H11,H12→4
Question 83, GATE 2006: Transparent bridges B1,…,B5 connect six LANs. The following connection list fully specifies the figure; Bk:p denotes port p of bridge k:
LAN H1,H2: B1:1, B5:2, B3:4.
LAN H3,H4: B1:2, B5:3, B3:3.
LAN H5,H6: B5:1, B3:1, B4:1, B2:2.
LAN H7,H8: B5:4, B3:2, B4:2, B2:1.
LAN H9,H10: B4:3.
LAN H11,H12: B2:3.
The bridge with lowest serial number is root. Every bridge selects a shortest path to the root; equal root-port choices prefer lower port index. For forwarding onto a LAN, bridges closer to the root win, then lower bridge serial number. For the resulting tree, after H1 sends a broadcast ping, which listed forwarding table describes B3? Tables list destination groups and outgoing port. D retains the reproduced H7 duplication.
Options:
(A) H1,H2,H3,H4→3; H5,H6,H9,H10→1; H7,H8,H11,H12→2
(B) H1,H2→4; H3,H4→3; H5,H6→1; H7,H8,H9,H10,H11,H12→2
(C) H3,H4→3; H5,H6,H9,H10→1; H1,H2→4; H7,H8,H11,H12→2
(D) H1,H2,H3,H4→3; H5,H7,H9,H10→1; H7,H8,H11,H12→4
Question 83, GATE 2006: Transparent bridges B1,…,B5 connect six LANs. The following connection list fully specifies the figure; Bk:p denotes port p of bridge k:
LAN H1,H2: B1:1, B5:2, B3:4.
LAN H3,H4: B1:2, B5:3, B3:3.
LAN H5,H6: B5:1, B3:1, B4:1, B2:2.
LAN H7,H8: B5:4, B3:2, B4:2, B2:1.
LAN H9,H10: B4:3.
LAN H11,H12: B2:3.
The bridge with lowest serial number is root. Every bridge selects a shortest path to the root; equal root-port choices prefer lower port index. For forwarding onto a LAN, bridges closer to the root win, then lower bridge serial number. For the resulting tree, after H1 sends a broadcast ping, which listed forwarding table describes B3? Tables list destination groups and outgoing port. D retains the reproduced H7 duplication.
Options:
(A) H1,H2,H3,H4→3; H5,H6,H9,H10→1; H7,H8,H11,H12→2
(B) H1,H2→4; H3,H4→3; H5,H6→1; H7,H8,H9,H10,H11,H12→2
(C) H3,H4→3; H5,H6,H9,H10→1; H1,H2→4; H7,H8,H11,H12→2
(D) H1,H2,H3,H4→3; H5,H7,H9,H10→1; H7,H8,H11,H12→4
Question 83, GATE 2006: Transparent bridges B1,…,B5 connect six LANs. The following connection list fully specifies the figure; Bk:p denotes port p of bridge k:
LAN H1,H2: B1:1, B5:2, B3:4.
LAN H3,H4: B1:2, B5:3, B3:3.
LAN H5,H6: B5:1, B3:1, B4:1, B2:2.
LAN H7,H8: B5:4, B3:2, B4:2, B2:1.
LAN H9,H10: B4:3.
LAN H11,H12: B2:3.
The bridge with lowest serial number is root. Every bridge selects a shortest path to the root; equal root-port choices prefer lower port index. For forwarding onto a LAN, bridges closer to the root win, then lower bridge serial number. For the resulting tree, after H1 sends a broadcast ping, which listed forwarding table describes B3? Tables list destination groups and outgoing port. D retains the reproduced H7 duplication.
Options:
(A) H1,H2,H3,H4→3; H5,H6,H9,H10→1; H7,H8,H11,H12→2
(B) H1,H2→4; H3,H4→3; H5,H6→1; H7,H8,H9,H10,H11,H12→2
(C) H3,H4→3; H5,H6,H9,H10→1; H1,H2→4; H7,H8,H11,H12→2
(D) H1,H2,H3,H4→3; H5,H7,H9,H10→1; H7,H8,H11,H12→4
Tap to enlarge
Your answer
Answer & solution

Answer: A, as complete topology-consistent forwarding table (no official key was published)

1. Using Q82’s spanning tree, B3 reaches both top LANs through root port 3: H1,H2,H3,H4→3. Its port 1 connects the H5/H6 LAN and B4 leading to H9/H10: H5,H6,H9,H10→1.

2. Port 2 connects the H7/H8 LAN and B2 leading to H11/H12: H7,H8,H11,H12→2. This is A; B3 port 4 is blocked.

3. A broadcast from H1 arrives at B3 on port 3.

4. Teaching check: Interpret the table as the forwarding directions implied by the converged spanning tree. A single broadcast frame teaches a learning bridge only the source’s direction, not every destination entry by itself. The full table in the options therefore describes the tree-based routes, rather than a complete table learned solely from that one frame.

Original paper, page 13

1 mark · MCQ
Report issue

Routes for packets in a session

Transport, Congestion Control & Traffic Shaping

Question 23, GATE 2005: Packets in one session may take different routes under: A TCP only; B TCP and UDP; C UDP only; D neither.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

Both TCP segments and UDP datagrams are carried by IP, whose routing decisions can vary over time or across paths. TCP’s connection and ordering guarantees do not reserve one network route. Thus packets may take different paths for both, B.

TCP and UDP are transport protocols carried by IP. IP forwarding can change routes between packets, independent of whether the transport maintains a connection. TCP reconstructs ordering and retransmits as needed; those guarantees do not reserve a physical path. UDP likewise imposes no route consistency. Therefore both may traverse different paths, B.

Original paper, page 3

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Address resolution protocol

IP Addressing, Fragmentation & Address Resolution

Question 24, GATE 2005: ARP is used to find: A IP address from DNS; B default gateway IP; C IP corresponding to a MAC; D MAC corresponding to an IP.
Question 24, GATE 2005: ARP is used to find: A IP address from DNS; B default gateway IP; C IP corresponding to a MAC; D MAC corresponding to an IP.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

On an IPv4 local link, ARP resolves a known next-hop IPv4 address to the corresponding link-layer/MAC address, D. It does not perform DNS name resolution or discover the default gateway’s IP configuration.

To send a local-link Ethernet frame, the sender needs a destination MAC address. Given the next-hop IPv4 address, ARP requests who owns it and learns the corresponding MAC, D. Name-to-IP lookup is DNS; determining which gateway to use comes from routing/configuration; reverse resolution is a different function. For a remote destination, the resolved MAC normally belongs to its next-hop router.

Original paper, page 3

1 mark · MCQ
Report issue

Selective-repeat sequence space

Data Link, Framing, Error Control & ARQ

Question 25, GATE 2005: Maximum selective-repeat/reject window with n-bit sequence numbers? A 2^n; B 2^(n−1); C 2^n−1; D 2^(n−2).
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

With n sequence bits there are 2n labels. To prevent a delayed old frame from being confused with a new frame after wraparound, equal sender/receiver windows must occupy at most half the label space. Hence W≤2n−1, B, under the standard selective-repeat model.

There are 2n distinct labels. In selective repeat, receivers may accept out-of-order frames, so old and new receive windows must not overlap after sequence wrap. With equal window sizes W, the standard safety condition is 2W≤2n, hence W≤2n−1. The half-space restriction distinguishes this protocol from the different Go-Back-N bound.

Original paper, page 3

1 mark · MCQ
Report issue

Purpose of a bridge spanning tree

Network Layers & Devices

Question 26, GATE 2005: Why use spanning tree among LAN bridges? A shortest paths; B avoid forwarding loops; C fault tolerance; D minimize collisions.
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

A spanning tree leaves a connected forwarding topology without cycles. This prevents frames, especially flooded broadcasts/unknown unicasts, from circulating indefinitely and being duplicated. Thus B; spanning-tree forwarding does not promise pairwise shortest routes.

Flooded frames do not have an IP-style hop limit at the bridging layer. A forwarding cycle can therefore cause copies to circulate and multiply. The spanning-tree protocol disables redundant paths to leave a connected acyclic active topology, preventing that loop. It can reconfigure after faults, but the question’s direct purpose is B; pairwise routes need not be shortest.

Original paper, page 3

1 mark · MCQ
Report issue

Sixty-four subnets of a class B network

IP Addressing, Fragmentation & Address Resolution

Question 27, GATE 2005: A class-B network needs 64 departmental subnets. Mask? A255.255.0.0; B255.255.64.0; C255.255.128.0; D255.255.252.0.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Step through it (3 steps)

Starting with a /16 class-B network, borrow 6 bits to obtain 26=64 subnets. The /22 mask is 255.255.252.0, D. This uses all subnet numbers; the obsolete convention excluding all-zero/all-one subnets would require a different count and is not applied.

A class-B prefix starts with 16 network bits. Six additional subnet bits give 64 patterns, leaving 10 host bits. The resulting prefix length 22 has mask 11111111.11111111.11111100.00000000, or 255.255.252.0. This uses all 64 subnet numbers under the modern convention, rather than subtracting two obsolete reserved subnet patterns.

Original paper, page 3

2 marks · MCQ
Report issue

Optimal packet size on three links

Physical Layer & Transmission

Question 73, GATE 2005: A24-byte message traverses a single packet-switched path with two intermediate nodes (three equal-rate store-and-forward links). Every packet has a 3-byte header. Optimum total packet size: A4; B6; C7; D9 bytes. Use equal payload segments and neglect packet-independent propagation.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

Let payload size be p bytes, so each packet has size p+3 and there are 24/p packets. Across three equal-rate store-and-forward links the serialization makespan, apart from constant propagation terms, is (24/p+2)(p+3)=30+2p+72/p byte-times. Its derivative is 2−72/p², giving p=6 bytes. This divides 24 exactly, and the total packet size is 6+3=9 bytes, option D. Packet size includes the header; six is only the payload.

For k packets of lengthp+3, a three-link pipeline needs k+2 packet transmission times: three for the first packet, one for each later packet. Substituting k=24/p gives 30+2p+72/p. Its derivative vanishes atp=6 and the second derivative 144/p³ is positive. Payload 6 divides 24, so no unequal final packet is needed. Adding its 3-byte header gives total 9, distinguishing the asked packet size from payload size.

Original paper, page 10

2 marks · MCQ
Report issue

Ethernet collision slot length

Medium Access & Ethernet

Question 74, GATE 2005: A10 Mbps Ethernet has round-trip propagation 46.4 microseconds and 48-bit jam allowance. Intended minimum frame size in bits: A94; B416; C464; D512.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

The round-trip propagation delay corresponds to 10×106×46.4×10−6=464 bit-times. Including the stated 48-bit jam allowance gives 464+48=512 bits, or 64 bytes, option D. This uses the question’s intended collision-slot budgeting convention; the jam is collision handling, not an extra field appended to every successful frame.

At 10 million bits/s, propagation 46.4 microseconds spans 464 bit times. Under the supplied collision-slot convention, add 48 bit times for jamming, giving 512 bits. Dividing by 8 gives 64 bytes, but the choices are in bits. The jam is not an ordinary payload/header field to append to every successful Ethernet frame; it belongs to the stated collision handling budget.

Original paper, page 10

1 mark · MCQ
Report issue

Layer-function matching

Network Layers & Devices

Question 15, GATE 2004: Match layers P=data link, Q=network, R=transport with: (1) reliable transfer over a physical point-to-point link; (2) encode/decode data for physical transmission; (3) end-to-end communication between processes; (4) route data from one network node to the next.
Options:
(A) P-1,Q-4,R-3
(B) P-2,Q-4,R-1
(C) P-2,Q-3,R-1
(D) P-1,Q-3,R-2
Question 15, GATE 2004: Match layers P=data link, Q=network, R=transport with: (1) reliable transfer over a physical point-to-point link; (2) encode/decode data for physical transmission; (3) end-to-end communication between processes; (4) route data from one network node to the next.
Options:
(A) P-1,Q-4,R-3
(B) P-2,Q-4,R-1
(C) P-2,Q-3,R-1
(D) P-1,Q-3,R-2
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

1. The data-link layer supplies link-local transfer/reliability, P→1; the network layer routes between nodes, Q→4; the transport layer supports end-to-end process communication, R→3. Thus A.

2. Physical encoding/decoding belongs to the physical layer rather than these three.

3. Teaching check: Ask what the communication endpoints are: adjacent link endpoints identify the data-link layer; hosts or network nodes identify routing; application processes identify transport. Encoding bits onto a physical medium is the unused physical-layer description, not a network-layer function.

Original paper, page 2

1 mark · MCQ
Report issue

Bridge and router addressing

Network Layers & Devices

Question 16, GATE 2004: Which statement about a transparent bridge and a router is NOT true?
Options:
(A) Both selectively forward data packets
(B) A bridge uses IP addresses while a router uses MAC addresses
(C) A bridge builds its forwarding table by inspecting incoming packets
(D) A router can connect a LAN to a WAN
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. A transparent bridge forwards using learned MAC addresses, while an IP router forwards using network-layer IP addresses. Option B reverses these roles and is false.

2. Both can selectively forward, bridges learn source addresses from arriving frames, and routers can join LANs to WANs.

3. Teaching check: A learning bridge records the source MAC and incoming port of received frames, then consults destination MACs for forwarding. A router performs a network-prefix lookup on a destination IP address. Reversing these address families is the decisive false statement.

Original paper, page 3

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Asynchronous serial character rate

Physical Layer & Transmission

Question 22, GATE 2004: A 9600-baud asynchronous serial link sends each 8-bit character with one start bit, eight data bits, two stop bits and one parity bit. Under binary signaling, how many characters per second can it send?
Options:
(A) 600
(B) 800
(C) 876
(D) 1200
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. Each character occupies 1 start+8 data+2 stop+1 parity=12 transmitted bits. Under binary serial signaling,9600 baud means 9600 bits/s, yielding 9600/12=800 characters/s, B.

2. No additional idle time is assumed.

3. Teaching check: Framing overhead is four bits per character, making twelve transmitted bits for eight useful bits. The useful-data fraction is 8/12, but the question asks characters per second, so divide by 12 rather than reporting a bit rate.

Original paper, page 3

2 marks · MCQ
Report issue

Ethernet binary exponential backoff race

Medium Access & Ethernet

Question 54, GATE 2004: A,B are the only Ethernet stations, each with a steady frame queue. Their first frames collide; A wins the first backoff race and transmits successfully. They transmit again and collide. What is the probability A wins the second backoff race?
Options:
(A) 0.5
(B) 0.625
(C) 0.75
(D) 1.0
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. After A succeeds, its next frame starts with collision count reset; following the next collision A chooses uniformly from{0,1}. B’s still-unsent frame has now collided twice, so B chooses uniformly from{0,1,2,3}.

2. Of the 8 equally likely pairs, A wins strictly when(A,B) is(0,1),(0,2),(0,3),(1,2),(1,3), giving 5/8=0.625. Equal choices cause another collision, not a win.

3. This evaluates the stated next backoff race, not eventual success after arbitrarily many tied races.

4. Teaching check: Binary exponential backoff counts collisions for the current frame, not for the station forever. A has a new frame while B retries its old one. Among A’s two and B’s four choices, five of eight pairs give A the strictly smaller delay; ties are new collisions.

Original paper, page 8

2 marks · MCQ
Report issue

Longest-prefix routing and host route

Routing Algorithms

Question 55, GATE 2004: Router entries (destination,mask,interface) are (128.75.43.0,255.255.255.0,Eth0), (128.75.43.0,255.255.255.128,Eth1), (192.12.17.5,255.255.255.255,Eth3), and default→Eth2. Which interfaces forward destinations 128.75.43.16 and 192.12.17.10 respectively?
Options:
(A) Eth1,Eth2
(B) Eth0,Eth2
(C) Eth0,Eth3
(D) Eth1,Eth3
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step through it (4 steps)

Step 1: 128.75.43.16 matches both 128.75.43.0/24 and 128.75.43.0/25; the longer /25 prefix selects Eth1.192.12.17.10 does not equal the only 192.12.17.* explicit route, the /32 host route 192.12.17.5 via Eth3, so it uses default Eth2. Matching the first three octets does not make a /32 host route a subnet route.

Step 2: Teaching check: The /25 mask covers last-octet values 0–127, including 16, and outranks /24. The /32 entry matches exactly 192.12.17.5, not all addresses beginning 192.12.17. Any other unmatched destination, including .10, uses default.

Original paper, page 8

2 marks · MCQ
Report issue

IP fragmentation and header overhead

IP Addressing, Fragmentation & Address Resolution

Question 56, GATE 2004: Networks A→B→C connect host HA in A to host HC in C. Every application message has 180 bytes; TCP adds a 20-byte header. Maximum IP packet sizes including a 20-byte IP header are A:1000 bytes, B:100 bytes, C:1000 bytes. A–B is 1 Mbps and B–C is 512 Kbps. GateForum labels the second link 512 Mbps in its diagram but 512 Kbps in prose; use the common GFG/prose reading, retaining this discrepancy. Assuming correct delivery and data packets only, how many total bytes including headers reach the destination IP layer for one application message in the best case?
Options:
(A) 200
(B) 220
(C) 240
(D) 260
Question 56, GATE 2004: Networks A→B→C connect host HA in A to host HC in C. Every application message has 180 bytes; TCP adds a 20-byte header. Maximum IP packet sizes including a 20-byte IP header are A:1000 bytes, B:100 bytes, C:1000 bytes. A–B is 1 Mbps and B–C is 512 Kbps. GateForum labels the second link 512 Mbps in its diagram but 512 Kbps in prose; use the common GFG/prose reading, retaining this discrepancy. Assuming correct delivery and data packets only, how many total bytes including headers reach the destination IP layer for one application message in the best case?
Options:
(A) 200
(B) 220
(C) 240
(D) 260
Question 56, GATE 2004: Networks A→B→C connect host HA in A to host HC in C. Every application message has 180 bytes; TCP adds a 20-byte header. Maximum IP packet sizes including a 20-byte IP header are A:1000 bytes, B:100 bytes, C:1000 bytes. A–B is 1 Mbps and B–C is 512 Kbps. GateForum labels the second link 512 Mbps in its diagram but 512 Kbps in prose; use the common GFG/prose reading, retaining this discrepancy. Assuming correct delivery and data packets only, how many total bytes including headers reach the destination IP layer for one application message in the best case?
Options:
(A) 200
(B) 220
(C) 240
(D) 260
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Each application message contributes 180 bytes plus 20 TCP-header bytes, so the IP payload is 200 bytes. The100-byte MTU in network B leaves 80 payload bytes per fragment.

2. Three fragments carry 80,80,40 bytes with their own 20-byte IP headers, totaling 100+100+60=260 bytes delivered to the destination IP layer.80 is divisible by the IPv4 fragment-offset unit 8, so this split is valid. Routers do not reassemble merely because the following network has a larger MTU.

3. Teaching check: Only IP headers are repeated per fragment; the TCP header belongs to the original 200-byte payload and is not added to each fragment. Payload sizes 80,80,40 need three IP headers, so 200+3×20=260 bytes.

Original paper, page 8

2 marks · MCQ
Report issue

Fragmentation-limited application goodput

IP Addressing, Fragmentation & Address Resolution

Question 57, GATE 2004: Networks A→B→C connect host HA in A to host HC in C. Every application message has 180 bytes; TCP adds a 20-byte header. Maximum IP packet sizes including a 20-byte IP header are A:1000 bytes, B:100 bytes, C:1000 bytes. A–B is 1 Mbps and B–C is 512 Kbps. GateForum labels the second link 512 Mbps in its diagram but 512 Kbps in prose; use the common GFG/prose reading, retaining this discrepancy. What is the sustained application-data rate to HC, ignoring errors, acknowledgements and other overhead?
Options:
(A) 325.5 Kbps
(B) 354.5 Kbps
(C) 409.6 Kbps
(D) 512.0 Kbps
Question 57, GATE 2004: Networks A→B→C connect host HA in A to host HC in C. Every application message has 180 bytes; TCP adds a 20-byte header. Maximum IP packet sizes including a 20-byte IP header are A:1000 bytes, B:100 bytes, C:1000 bytes. A–B is 1 Mbps and B–C is 512 Kbps. GateForum labels the second link 512 Mbps in its diagram but 512 Kbps in prose; use the common GFG/prose reading, retaining this discrepancy. What is the sustained application-data rate to HC, ignoring errors, acknowledgements and other overhead?
Options:
(A) 325.5 Kbps
(B) 354.5 Kbps
(C) 409.6 Kbps
(D) 512.0 Kbps
Question 57, GATE 2004: Networks A→B→C connect host HA in A to host HC in C. Every application message has 180 bytes; TCP adds a 20-byte header. Maximum IP packet sizes including a 20-byte IP header are A:1000 bytes, B:100 bytes, C:1000 bytes. A–B is 1 Mbps and B–C is 512 Kbps. GateForum labels the second link 512 Mbps in its diagram but 512 Kbps in prose; use the common GFG/prose reading, retaining this discrepancy. What is the sustained application-data rate to HC, ignoring errors, acknowledgements and other overhead?
Options:
(A) 325.5 Kbps
(B) 354.5 Kbps
(C) 409.6 Kbps
(D) 512.0 Kbps
Tap to enlarge
Your answer
Answer & solution

Answer: B (no official key was published)

1. Per message the bottleneck B→C link transports260 bytes, of which 180 are application data. Its sustained goodput is 512×180/260=354.4615Kbps, rounding to 354.5Kbps.

2. The1Mbps link is not the bottleneck. This uses pipelined steady-state traffic, ignoring stated overheads; it is not the reciprocal of end-to-end latency of one isolated message.

4. Teaching check: Goodput counts useful application bits, not all bits on the bottleneck. Each 260 transmitted bytes delivers 180 application bytes, giving efficiency 9/13. Multiplying 512 Kbps by that efficiency yields 354.46 Kbps; using 200 useful bytes would incorrectly include TCP overhead.

Original paper, page 8

1 mark · MCQ
Report issue

IP source-routing capability

Routing Algorithms

Question 27, GATE 2003: Which assertion about Internet Protocol is false? A. A computer can have several IP addresses; B. Packets from the same source to the same destination can take different routes; C. A packet is discarded if it cannot reach its destination within a bounded number of hops; D. A source cannot set an outgoing packet’s route, which is determined only by router routing tables.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. A and B are compatible with multiple interfaces and datagram routing. For C, IPv4 routers decrement TTL and discard expired packets. To refute D it suffices to cite the historical source-route options; their rarity or filtering in current networks does not make the categorical protocol statement true.

2. Historical IPv 4 includes loose/strict source-route options that allow a sender to influence/specify a route. Therefore the categorical assertion that only router tables can determine the route is false, D. Multiple addresses and differing packet routes are possible, while TTL limits forwarding hops. Source routing is commonly filtered or disabled operationally, which does not erase the protocol capability considered by this historical question.

Original paper, page 3

1 mark · MCQ
Report issue

Essential transport-layer function

Transport, Congestion Control & Traffic Shaping

Question 28, GATE 2003: Which functionality must the transport protocol provide over and above network-layer service? A. Recovery from packet losses; B. Detection of duplicate packets; C. Correct-order packet delivery; D. End-to-end connectivity.
Question 28, GATE 2003: Which functionality must the transport protocol provide over and above network-layer service? A. Recovery from packet losses; B. Detection of duplicate packets; C. Correct-order packet delivery; D. End-to-end connectivity.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Network delivery addresses hosts; transport adds end-to-end communication between application endpoints, usually identified by ports. TCP implements the first three enhancements, whereas UDP provides transport service without promising any of them. Hence they cannot be universal requirements of the layer.

2. Transport supplies end-to-end process communication above network-layer host delivery, D. Reliability, duplicate suppression and in-order delivery are features of some transport protocols, notably TCP, but are not required of all: UDP does not guarantee them. End-to-end connectivity here means communication service, not necessarily a connection-oriented handshake.

Original paper, page 3

2 marks · MCQ
Report issue

Subnet equality under a noncontiguous mask

IP Addressing, Fragmentation & Address Resolution

Question 82, GATE 2003: A network uses the printed subnet mask 255.255.31.0. Which pair of addresses could belong to that network?
A. 172.57.88.62 and 172.56.87.233
B. 10.35.28.2 and 10.35.29.4
C. 191.203.31.87 and 191.234.31.88 [GFG; GateForum prints 191.03.31.87 as the first address.]
D. 128.8.129.43 and 128.8.161.55
The printed mask is noncontiguous; apply its literal bitwise AND, not an assumed CIDR repair.
Question 82, GATE 2003: A network uses the printed subnet mask 255.255.31.0. Which pair of addresses could belong to that network?
A. 172.57.88.62 and 172.56.87.233
B. 10.35.28.2 and 10.35.29.4
C. 191.203.31.87 and 191.234.31.88 [GFG; GateForum prints 191.03.31.87 as the first address.]
D. 128.8.129.43 and 128.8.161.55
The printed mask is noncontiguous; apply its literal bitwise AND, not an assumed CIDR repair.
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. Membership under the printed mask requires address 1 AND mask = address 2 AND mask. Its first two 255 octets preserve both first octets, while the final zero octet discards the host's last octet.
2. A fails because 57≠56 in octet two; C fails because 203≠234. B's first two octets match, but 28 AND 31=28 and 29 AND 31=29, so it fails too.
3. For D, 129=10000001₂ and 161=10100001₂. AND with 31=00011111₂ gives 00000001₂ for both. Both network values are 128.8.1.0.
4. Thus the literal calculation selects D. Because 00011111 is not a contiguous prefix-mask octet, this is not a valid ordinary CIDR mask; that caveat must remain explicit.

Solution: Compare the bitwise AND of each address with the printed mask. Options A and C have unequal second octets, which are fully retained. Option B retains third octets 28 and 29 under AND 31, so they differ. For D, 129 AND 31=1 and 161 AND 31=1; both addresses therefore map to 128.8.1.0. The raw mask calculation gives D. The printed 31 octet is 00011111, so this is a noncontiguous mask and cannot be expressed as a standard CIDR prefix; it must not be silently changed to 224 or another contiguous-mask octet.

Original paper, page 12

2 marks · MCQ
Report issue

Collision-detection minimum frame transmission time

Medium Access & Ethernet

Question 83, GATE 2003: A broadcast LAN is 2 km long, has bandwidth 10^7 bits/s and uses CSMA/CD. Signals propagate along its wire at 2×10^8 m/s. What is the minimum packet size usable on the network?
A. 50 bytes  B. 100 bytes  C. 200 bytes  D. None of the above
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. In the worst case a remote transmitter starts just before hearing the first transmitter. The collision indication must travel back, requiring nearly a full round-trip propagation time.
2. One-way propagation is 2000/(2×108)=10−5 s=10 μs. Therefore a frame must last at least 20 μs for collision detection while transmission is still in progress.
3. At 107 bits/s the minimum length is 107×20×10−6=200 bits. Divide by eight to convert to bytes: 25 bytes.
4. None of the listed numerical byte sizes equals that theoretical minimum, so D. The 200 in the computation is bits, not the 200-byte option C.

Solution: The one-way propagation delay is 2000/(2×108)=10 microseconds. To detect the worst-case collision, transmission must continue for at least twice this delay, 20 microseconds. At 107 bits/s this requires 107×20×10−6=200 bits=25 bytes. Since the offered sizes are 50,100,200 bytes and none-of-the-above, the theoretical minimum is D. This calculation uses the idealized LAN parameters; it does not import Ethernet's independently standardized minimum-frame overhead.

Original paper, page 12

2 marks · MCQ
Report issue

Sliding-window throughput and bit-byte mismatch

Data Link, Framing, Error Control & ARQ

Question 84, GATE 2003: A sends data to B over a full-duplex link using a sliding-window protocol. Send and receive windows each hold five packets. Data packets are 1000 bytes and take 50 μs to transmit. ACKs travel only B→A and have negligible transmission time. One-way propagation is 200 μs. What is maximum achievable throughput?
A. 7.69×10^6 bps
B. 11.11×10^6 bps
C. 12.33×10^6 bps
D. 15.00×10^6 bps
Both reproductions print packet size in bytes and options in bits per second.
Tap to enlarge
Your answer
Answer & solution

Answer: None (no official key was published)

1. The raw link rate is 1000×8/(50×10−6)=160×106 bits/s.
2. Packet 1 finishes leaving A at 50 μs and reaches B at 250 μs. Its immediate ACK returns to A at 450 μs. Meanwhile A can send packets 1–5 during 0–250 μs and must wait before sending packet 6 at 450 μs.
3. The ACKs then space subsequent transmissions 50 μs apart, giving recurrent batches of five packets per 450 μs. Window-limited throughput=5×1000×8/(450×10−6)=88.888... Mbit/s, below the raw rate.
4. No option matches. 5000/(450 μs)=11.111... million bytes/s, numerically close to B but with the wrong unit. Accepting B would silently discard the factor eight, so the baseline unanswered status is retained.

Solution: The physical data rate is 1000×8/(50 microseconds)=160 Mbit/s. The acknowledgment for the first packet can return after one packet transmission plus two propagation delays: 50+2×200=450 microseconds. A window of five permits 5×1000×8=40000 transmitted bits during that interval, hence the achievable steady-state rate is min(160 Mbit/s,40000/450 microseconds)=88.888… Mbit/s. None of the printed options equals this. Dividing 5000 bytes by 450 microseconds gives 11.111… million bytes/s, which numerically resembles option B but is not 11.11 million bits/s. The packet size is printed in bytes and every answer is printed in bps in both sources, so B cannot be accepted without changing a unit.

Original paper, page 12

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Start and stop bits in serial transmission

Data Link, Framing, Error Control & ARQ

Question 1.11, GATE 2002: In serial transmission, a byte is preceded by 0 and followed by one or two 1 bits. What is the purpose?
(A) Synchronize the receiver for byte reception.
(B) Recover lost 0s and 1s from those extra bits.
(C) Use those extra bits for parity calculation.
(D) None of these.
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Step 1: Explain why each byte needs a framing event.

Step 2: The receiver and transmitter need not share one continuously aligned clock. The falling transition into the start bit establishes the reference for sampling the following data bits; the stop interval checks framing and separates successive bytes. A fixed start/stop pattern cannot reconstruct arbitrary lost bits and does not calculate whether the data contains an odd or even number of ones.

Conclusion: Asynchronous reception detects the low start bit to establish the bit-sampling phase for that byte; the high stop interval returns the line to its idle condition and permits framing. These bits synchronize byte reception, A. They are not parity or recovery codes.

Original paper, page 2

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Serial framing and minimum baud

Physical Layer & Transmission

Question 1.16, GATE 1998: Send 300 characters/s using 8 data bits, one parity bit, two stop bits. Choose 2400, 19200, 4800, 1200 baud.
Tap to enlarge
Your answer
Answer & solution

Answer: C is the smallest listed adequate rate; literal minimum 3600 baud with a start bit (no official key was published)

Asynchronous framing also uses one start bit. Each character therefore occupies 1+8+1+2=12 binary symbols, requiring 300·12=3600 symbols/s. With one bit per symbol, that is 3600 baud. Of the listed choices, 2400 and 1200 are too slow;4800 is the smallest sufficient choice, C. The literal minimum is not listed. If no start bit were intended, the arithmetic would instead give 3300; it still would not equal 4800. The choice is therefore a standard/listed-rate selection, not an exact unconstrained minimum.

Original paper, page 2

1 mark · MCQ
Not in GATE 2027 syllabusReport issue

Purpose of an asynchronous start bit

Data Link, Framing, Error Control & ARQ

Question 2.3, GATE 1997: Does an RS232-style start bit synchronize each received byte, a whole byte sequence, provide parity, or synchronize only the last byte?
Tap to enlarge
Your answer
Answer & solution

Answer: A (no official key was published)

Between asynchronous frames the line is idle. The start-bit transition tells the receiver that a new character frame has begun, allowing it to align sampling instants for that frame’s data bits. This resynchronization occurs for each byte, A. It is not a parity check and does not establish one permanent clock phase for an unlimited sequence. Strictly RS232 specifies electrical/interface aspects; the question refers to the familiar asynchronous framing used over that interface.

Original paper, page 2

1 mark · MCQ
Report issue

Minimum distance of a binary code

Data Link, Framing, Error Control & ARQ

Question 1.12, GATE 1995: Find minimum Hamming distance of {000000,010101,101010,000111,011001,111111}; GateForum omits 101010.
Tap to enlarge
Your answer
Answer & solution

Answer: A: 2 (no official key was published)

Hamming distance counts differing bit positions. For example 010101 and 000111 differ in exactly two positions, so the minimum is at most two. Checking the other distinct pairs finds no pair differing in one position; their distances are two, three, four or six. Hence the minimum is two. The additional the paper codeword 101010 has distances three or six to some words and does not introduce a distance-one pair.

Original paper, page 2

Report issue

Frame a seven-bit serial string

Data Link, Framing, Error Control & ARQ

Question 17(a.i), GATE 1995: An asynchronous start-stop link uses seven data bits, one odd-parity bit and one stop bit at 1200 bits/s. Give the complete transmitted frame for data string 0110101. State bit-order convention.
Question 17(a.i), GATE 1995: An asynchronous start-stop link uses seven data bits, one odd-parity bit and one stop bit at 1200 bits/s. Give the complete transmitted frame for data string 0110101. State bit-order convention.
Tap to enlarge
Answer & solution

Answer: As-written data order: 0|0110101|1|1 = 0011010111; LSB-first numeric order: 0|1010110|1|1 = 0101011011. (no official key was published)

The data string 0110101 contains four ones. Odd parity requires the total number of ones in the data plus parity field to be odd, so the parity bit must be 1, giving five ones. In ordinary asynchronous binary framing, the line is idle high, the start bit is 0, and the stop bit is 1. The order is start, seven data bits, parity, stop.

If the supplied string lists the data in temporal transmission order, the frame is 0 | 0110101 | 1 | 1, or 0011010111. This is the direct as-written interpretation.

UARTs conventionally transmit the least significant data bit first. If 0110101 instead denotes a seven-bit numerical value written most-significant-bit first, reverse its data order to 1010110, producing 0 | 1010110 | 1 | 1, or 0101011011. Reversal does not change parity. The question does not explicitly specify how the written string maps to bit significance, so both interpretations are identified rather than silently choosing one. Neither idle time before the start nor voltage-level inversion is an additional data bit.

Original paper, page 7

Report issue

Compute framed serial throughput

Physical Layer & Transmission

Question 17(a.ii), GATE 1995: An asynchronous link transmits seven-bit strings with one start bit, one odd-parity bit and one stop bit, at 1200 bits/s. How many strings per second can it transmit?
Question 17(a.ii), GATE 1995: An asynchronous link transmits seven-bit strings with one start bit, one odd-parity bit and one stop bit, at 1200 bits/s. How many strings per second can it transmit?
Tap to enlarge
Answer & solution

Answer: 120 strings/s with consecutive frames and no extra idle gaps. (no official key was published)

Count every transmitted bit, not just payload. Each frame has one start bit, seven data bits, one parity bit and one stop bit: 1+7+1+1=10 bits. A rate of 1200 bits/s therefore supports 1200/10=120 complete strings per second, assuming frames are sent back-to-back.

Equivalently, one bit lasts 1/1200 second, so one frame lasts 10/1200=1/120 second, about 8.333ms. The reciprocal is again 120 frames/s. The payload rate is 7×120=840 data bits/s and framing efficiency is 7/10=70%.

The odd-parity value and the order of the seven data bits do not affect frame length. Asynchronous operation permits extra idle time between frames, so 120 is the maximum sustained count under the stated framing, not a guarantee if the sender inserts delays. Dividing 1200 by seven would ignore required framing and overstate throughput.

Original paper, page 7

2 marks · MSQ
Not in GATE 2027 syllabusReport issue

Asynchronous character throughput

Physical Layer & Transmission

Question 6.4, GATE 1993: An asynchronous serial line sends 8-bit characters at 2400 baud with two stop bits. Choose the character rate among 109,216,218,219,240.
Tap to enlarge
Select all that apply
Answer & solution

Answer: C: 218 complete characters/s under binary signaling and no parity (no official key was published)

Each frame needs one start bit, eight data bits and two stop bits, totaling eleven bits. With one bit per symbol, 2400 baud is 2400 bits/s, so the sustained rate is 2400/11≈218.18 characters/s. At most 218 whole frames fit in a one-second interval starting on a frame boundary, giving C. Ignoring the start bit would incorrectly give 240. This assumes no parity bit and binary signaling; baud is generally symbols per second, so another modulation alphabet would require additional information.

Original paper, page 5

Report issue

Parity bits for distance four

Data Link, Framing, Error Control & ARQ

Question 1(ii), GATE 1992: A code carries four data bits and is to detect up to three bit errors and correct one. Give extra parity bits and minimum distance.
Question 1(ii), GATE 1992: A code carries four data bits and is to detect up to three bit errors and correct one. Give extra parity bits and minimum distance.
Tap to enlarge
Answer & solution

Answer: 4 parity bits; minimum distance 4 for the extended Hamming code (no official key was published)

Ordinary Hamming(7, 4) uses three parity bits and has distance three, enough for single-error correction but only two-error detection as a code-distance property. Adding one overall parity bit produces extended Hamming(8, 4), with four redundancy bits and distance four. Distance d detects up to d−1 errors and corrects floor((d−1)/2), giving three and one here. These are separate guarantees: a decoder that automatically corrects a one-bit-looking syndrome can miscorrect some triple errors. Guaranteed simultaneous classification of every one-bit versus three-bit error requires a stronger distance condition than this standard detect-or-correct interpretation.

Original paper, page 1

Report issue

Reliability through handshaking

Data Link, Framing, Error Control & ARQ

Question 1(v), GATE 1992: Fill in why a handshake protocol provides reliable transfer for each data item sent.
Question 1(v), GATE 1992: Fill in why a handshake protocol provides reliable transfer for each data item sent.
Tap to enlarge
Answer & solution

Answer: The receiver acknowledges acceptance before the sender proceeds (no official key was published)

A request or data-valid signal tells the receiver that a transfer is available. The receiver responds with an acknowledgment after accepting the item, allowing the sender to withdraw it or send the next one. This coordinates devices with different or variable speeds without assuming a fixed delay is always sufficient. The basic handshake prevents loss from timing mismatch; it does not alone detect arbitrary corruption of data bits. Error-detecting codes or retransmission rules would be separate protocol features.

Original paper, page 1

Not in GATE 2027 syllabusReport issue

Purpose of start and stop bits

Data Link, Framing, Error Control & ARQ

Question 2(v), GATE 1992: Are start/stop bits used for error detection, correction, synchronization, or slowing communication?
Question 2(v), GATE 1992: Are start/stop bits used for error detection, correction, synchronization, or slowing communication?
Tap to enlarge
Select all that apply
Answer & solution

Answer: C: synchronization (no official key was published)

In asynchronous serial communication, the start transition establishes the beginning of a character frame and lets the receiver align its sampling clock. Stop bits return the line to an idle state and separate frames. They are framing overhead rather than payload. A receiver may report a framing error when an expected stop bit is absent, but these bits are not a general error-correcting code. Slowing the payload rate is a consequence of overhead, not their purpose.

Original paper, page 2