IAE Academy

GATE 2018 CS Q.13: solution and answer

GATE 2018 · CSQ.13 · 1 mark · MCQ

Match the following:

  1. (A)

    P-III, Q-IV, R-II, S-I

  2. (B)

    P-II, Q-I, R-IV, S-III

  3. (C)

    P-IV, Q-I, R-II, S-III

  4. (D)

    P-IV, Q-I, R-III, S-II

See the question in the paper

Answer and solution

ANSWER

The correct matching is P-IV, Q-I, R-II, S-III, which is option (C).

Official answer: CSource: Official answer key, GATE 2018 CS (IIT Guwahati)

  1. A UDP header has 16-bit source and destination port numbers (0 to 65535), so P matches IV (16).

  2. An Ethernet MAC address is 6 bytes, which is 48 bits, so Q matches I (48).

  3. The IPv6 Next Header field is 8 bits wide. It carries a protocol number such as 6 for TCP or 17 for UDP, so R matches II (8).

  4. The TCP sequence number field is 32 bits wide, so S matches III (32).

  5. The matching is P-IV, Q-I, R-II, S-III, which is option (C). Option (A) has P as 32 bits and Q as 16 bits. Option (B) has P as 8 bits. Option (D) has R as 32 bits and S as 8 bits. All three are wrong.

KEY IDEA

Remember the standard field widths. UDP port is 16 bits, Ethernet MAC is 48 bits, IPv6 Next Header is 8 bits and TCP sequence number is 32 bits.

WATCH OUT FOR

Mixing up the IPv6 Next Header (8 bits) with the 32-bit TCP sequence number. Another slip is treating the UDP port as 8 or 32 bits instead of 16.

From the GATE 2018 CS paper. Every question of this paper · Download the full paper · All 2 Layering & switching questions, with notes