NivaarExam PrepOfficial exam papers ↗

22-Elec-B4 Information Technology Networks · Undated paper

Question 5 of 5: Layered Architecture — the OSI Seven-Layer Model

Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)

Notes on this paper

Paper format. National Examinations, May 2019 — 16-Elec-B4 Information Technology Networks. Three hours, closed book (one approved Casio or Sharp calculator). Five questions of 25 marks; any four constitute a complete paper worth 100 marks. Marks are printed in the left margin. All five questions are solved below, because the set is a study resource rather than an exam script.

Reference texts.

Check: one edge of the Question 4 graph. The printed drawing carries a weight label “1” centred on the A–B chord, but the line itself is not drawn. Every other weight label sits on a drawn edge, and eleven labels are printed against ten surviving lines. The edge A–B = 1 is therefore taken as present. Reading A–B as absent instead would leave A a leaf reachable only through C, changing d(A) from 4 to 9 and leaving the printed “1” orphaned.

Question 5: Layered Architecture — the OSI Seven-Layer Model (25 marks)

Question text not reproduced: the examination questions are © Engineers and Geoscientists BC. Open the official past paper (linked at the top of this page) to read the question, then follow the worked solution below.

Part (a) — the seven layers, one sentence each. The question explicitly penalises verbosity, so each layer gets exactly what it is asked for: a name and a sentence.

  1. Physical. Transmits raw bits over the medium by defining the signalling, timing, connectors and mechanical interface — voltages, light pulses or radio symbols and the bit rate at which they are sent.
  2. Data link. Groups bits into frames and delivers them reliably across one link, providing framing, physical (MAC) addressing, error detection and control of access to a shared medium.
  3. Network. Delivers packets between hosts on different networks using logical addresses, choosing a route hop by hop and fragmenting where link sizes differ.
  4. Transport. Provides end-to-end delivery between processes, adding segmentation and reassembly, port-level addressing and — when the service requires it — reliability, ordering and flow control.
  5. Session. Establishes, manages and terminates dialogues between applications, including dialogue direction control, synchronisation points and recovery of an interrupted exchange.
  6. Presentation. Makes the data intelligible to the peer by handling syntax and representation — character encoding, data-structure marshalling, compression and encryption.
  7. Application. Provides the network services the user's software invokes directly, such as file transfer, electronic mail, name resolution and the web.
OSI reference model7Applicationprotocols users invoke directly — HTTP, SMTP, FTP, DNS6Presentationsyntax: character sets, compression, encryption5Sessiondialogue control, checkpointing, session recovery4Transportend-to-end delivery: TCP segments, UDP datagrams3Networklogical addressing and routing across networks — IP2Data linkframing and medium access on one link — Ethernet MAC1Physicalbits as signal voltages, light or radio on the mediumlayers 5-7 are end-to-end host functions; 1-4 carry the bits between them
The OSI reference model. Layers 5-7 are end-to-end host functions; layers 1-4 move the bits between the hosts.

Part (b) — where each item lives.

ItemLayer(s)Why
i. End-to-end error correction and in-order packet delivery 4 — Transport These are end-to-end (host-to-host) guarantees, which is precisely what distinguishes the transport layer from the per-link reliability of layer 2; in TCP/IP they are TCP's sequence numbers, acknowledgements and retransmissions.
ii. The SMTP protocol 7 — Application Simple Mail Transfer Protocol is a user-facing service protocol carried over TCP.
iii. TCP/IP 4 and 3 — Transport and Network The name is a pair: TCP is a transport protocol (layer 4) and IP is the internetwork protocol (layer 3). Answering with a single layer misses half the mark.
iv. Ethernet 2 and 1 — Data link and Physical IEEE 802.3 specifies both the MAC sublayer (framing, addressing, CSMA/CD) at layer 2 and the physical signalling and cabling at layer 1.
v. Signal voltages 1 — Physical The electrical representation of a bit on the medium is the defining concern of the physical layer.
vi. Encryption and decryption 6 — Presentation In the OSI reference model, transforming the representation of data for privacy is a presentation-layer function. (In the TCP/IP stack as deployed, TLS sits between the application and transport layers and is often described as occupying layers 5–6.)
vii. Character display, such as ASCII 6 — Presentation Character-set and data-representation conversion is the other classic presentation-layer function.
viii. The HTTP protocol 7 — Application The Hypertext Transfer Protocol is a user-facing service protocol, again carried over TCP.

A useful cross-check on the whole list: exactly one item lands in each of layers 1, 3 and 5–7 or spans a pair, and no item lands in layer 5. That is expected — the session layer has no distinct counterpart in the TCP/IP protocol suite, its functions having been absorbed into application protocols, which is one of the standard criticisms of the OSI model as a description of the real internet.

Part (c) — why layer at all. Layering is how a system too large for any one design team, standards body or vendor to specify is decomposed into pieces that can be specified, built and replaced independently. Each layer offers a service to the layer above through a defined interface and hides how that service is achieved; a layer may therefore be re-implemented freely provided the interface is honoured.

Five consequences make this decisive for a network the size of the internet. Modularity and independent evolution: IP runs unchanged over Ethernet, Wi-Fi, fibre and satellite, and HTTP runs unchanged over TCP or QUIC, because neither knows anything of the other's internals — the layers below and above IP were each replaced wholesale over the internet's lifetime without the other being rewritten. Interoperability through standards: equipment from independent manufacturers interworks if each conforms to the interface, which is what allows a competitive multi-vendor market rather than a single vendor's closed system. Tractable design and reasoning: a designer solves reliable delivery once, at the transport layer, rather than re-solving it in every application, and a protocol can be specified and verified against its neighbours alone. Reuse: one transport implementation in the operating system serves every application above it. Diagnosis and teaching: faults localise to a layer — no link light is layer 1, no route is layer 3, a refused port is layer 4 — which is the structure every troubleshooting procedure follows.

The cost is worth stating, because it is what keeps the layer count small: each boundary adds a header, a copy and some loss of information (a transport layer that cannot see why a packet was lost is exactly the limitation of Question 3(d)), and cross-layer optimisation is often forbidden by the very abstraction that makes the system buildable. The engineering judgement is that the modularity is worth the overhead — a judgement the internet's forty-year evolution has repeatedly confirmed.

Final results.

ItemLayer
i. End-to-end error correction, in-order delivery4 — Transport
ii. SMTP7 — Application
iii. TCP/IP4 — Transport (TCP) and 3 — Network (IP)
iv. Ethernet2 — Data link and 1 — Physical
v. Signal voltages1 — Physical
vi. Encryption and decryption6 — Presentation
vii. Character display, ASCII6 — Presentation
viii. HTTP7 — Application
Back to the paper →