Network Layers & Devices

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.