Skip to content

GATE CS 2014 Set 2 Q27 — Routing Protocols: Shortest Path, Flooding, Distance Vector, Link State

Explain with AI

An IP machine QQ has a path to another IP machine HIP\ machine\ H via three IP routers R1,R2,IP\ routers \ R1, R2, and R3R3.

Q−R1−R2−R3−HQ-R1-R2-R3-H

HH acts as an HTTP server\text{HTTP}\ server, and QQ connects to HH via HTTP\text{HTTP} and downloads a file. Session layer encryption is used, with DES\text{DES} as the shared key encryption protocol. Consider the following four pieces of information:

[I1][I1] The URL\text{URL} of the file downloaded by QQ

[I2][I2] The TCP\text{TCP} port numbers at QQ and HH

[I3][I3] The IP\text{IP} addresses of QQ and HH

[I4][I4] The link layer addresses of QQ and HH

Which of I1I1, I2I2, I3I3, and I4I4 can an intruder learn through sniffing at R2R2 alone? 

Choose one option
View worked solution

Answer: C

To determine which information can be learned by sniffing packets at router R2R2, we analyze the network layers and where the encryption is applied.

1. Impact of Session Layer Encryption

Encryption is applied at the Session layer. This means all data from the Session layer and layers above it (such as the Application layer) is encrypted, while headers of the layers below it (Transport, Network, and Data Link layers) are transmitted in plaintext.

  • [I1] URL of the file: The URL is part of the HTTP request, which belongs to the Application layer. Since the Application layer is above the Session layer, this information is encrypted. The intruder cannot learn I1I1.
  • [I2] TCP port numbers: TCP ports belong to the Transport layer, which lies below the Session layer. Therefore, the TCP header is transmitted in plaintext. The intruder can learn I2I2.
  • [I3] IP addresses of QQ and HH: IP addresses belong to the Network layer, which lies below the Session layer. These addresses remain unchanged end-to-end in the IP header. The intruder can learn I3I3.

2. Link Layer Addresses

  • [I4] Link layer addresses of QQ and HH: Link layer (MAC) addresses are hop-by-hop and change at every router. When sniffing at R2R2, the intruder will only see the link-layer addresses of the adjacent hops (i.e., between R1R1 and R2R2, or R2R2 and R3R3). The original link-layer addresses of QQ and HH are stripped off at the first router and are not present in the frames passing through R2R2. The intruder cannot learn I4I4.

Thus, the intruder can only learn I2I2 and I3I3.

Correct Option: C

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Routing Protocols: Shortest Path, Flooding, Distance Vector, Link State questions