OSI Layer · Computer Networks
5 questions · asked in 4 of 27 years (2000–2026)
MCQ 51-mark 4 · 2-mark 1
2000Questions per year2026
Questions 1–5 of 5
Identify the ONE CORRECT matching between the OSI layers and their corresponding functionalities as shown.
Answer: (B)
Match each OSI layer with its main function:
- The Network layer does (I) packet routing across the network. It also covers host-to-host addressing and forwarding decisions.
- The Transport layer gives (III) host-to-host communication. This means end-to-end delivery between the processes or hosts that are talking.
- The Data link layer does (II) framing and error handling. It puts bits into frames and finds or fixes transmission errors on a single link.
Answer: (a)-(I), (b)-(III), (c)-(II)
- The Network layer does (I) packet routing across the network. It also covers host-to-host addressing and forwarding decisions.
- The Transport layer gives (III) host-to-host communication. This means end-to-end delivery between the processes or hosts that are talking.
- The Data link layer does (II) framing and error handling. It puts bits into frames and finds or fixes transmission errors on a single link.
Answer: (a)-(I), (b)-(III), (c)-(II)
An IP machine Q has a path to another IP machine H via three IP routers R1, R2, and R3.
Q---R1---R2---R3---H
H acts as an HTTP server, and Q connects to H via HTTP and downloads a file. Session layer encryption is used, with DES as the shared key encryption protocol. Consider the following four pieces of information:
[I1] The URL of the file downloaded by Q
[I2] The TCP port numbers at Q and H
[I3] The IP addresses of Q and H
[I4] The link layer addresses of Q and H
Which of I1, I2, I3, and I4 can an intruder learn through sniffing at R2 alone?
Q---R1---R2---R3---H
H acts as an HTTP server, and Q connects to H via HTTP and downloads a file. Session layer encryption is used, with DES as the shared key encryption protocol. Consider the following four pieces of information:
[I1] The URL of the file downloaded by Q
[I2] The TCP port numbers at Q and H
[I3] The IP addresses of Q and H
[I4] The link layer addresses of Q and H
Which of I1, I2, I3, and I4 can an intruder learn through sniffing at R2 alone?
Answer: (C)
Session-layer encryption hides everything above the session layer. The HTTP request is hidden, so the URL (I1) cannot be seen.
- The TCP header (ports, I2) and the IP header (addresses of Q and H, I3) sit below the session layer. They are sent in clear so R2 can see them.
- Link layer addresses change at every hop. At R2 the frame carries the MAC addresses of R1/R2/R3, not those of Q and H so I4 cannot be seen.
Answer: Only I2 and I3
- The TCP header (ports, I2) and the IP header (addresses of Q and H, I3) sit below the session layer. They are sent in clear so R2 can see them.
- Link layer addresses change at every hop. At R2 the frame carries the MAC addresses of R1/R2/R3, not those of Q and H so I4 cannot be seen.
Answer: Only I2 and I3
In the following pairs of OSI protocol layer/sub-layer and its functionality, the INCORRECT pair is
Answer: (B)
The physical layer does bit synchronization. The data link layer works on framing, error control and flow control.
All the other pairs are right.
Answer: Data Link Layer and Bit synchronization
All the other pairs are right.
Answer: Data Link Layer and Bit synchronization
Match the following:
(P) SMTP (1) Application layer
(Q) BGP (2) Transport layer
(R) TCP (3) Data link layer
(S) PPP (4) Network layer
(5) Physical layer Answer: (B)
- SMTP (P) sends e-mail between mail servers, so it is an application layer protocol: P - 1.
- BGP (Q) exchanges routes between networks on the Internet. Routing belongs to the network layer, so Q goes with the network layer: Q - 4.
- TCP (R) gives reliable end-to-end delivery between processes, so it is a transport layer protocol: R - 2.
- PPP (S) sets up a direct link between two nodes, so it is a data link layer protocol: S - 3.
Answer: (B)
Choose the best matching between Group 1 and Group 2
Answer: (A)
P, Data link layer: gives reliable transfer of data over a single physical point-to-point link (framing, error control), so P - 1.
Q, Network layer: routes data from one network node to the next (routing and forwarding of packets), so Q - 4.
R, Transport layer: gives end-to-end communication between two processes (ports, segments), so R - 3.
Item 2, encoding and decoding data for physical transmission, belongs to the physical layer, which is not in Group-1. This rules out options B and C, which pair P with 2.
Answer: (A)
Q, Network layer: routes data from one network node to the next (routing and forwarding of packets), so Q - 4.
R, Transport layer: gives end-to-end communication between two processes (ports, segments), so R - 3.
Item 2, encoding and decoding data for physical transmission, belongs to the physical layer, which is not in Group-1. This rules out options B and C, which pair P with 2.
Answer: (A)
Keep practising