22-Elec-B4 Information Technology Networks · May 2016
Nivaar worked solution (AI-drafted; not reviewed by a licensed engineer)
Paper format. Professional Engineers of Ontario, Annual Examinations — May 2016, 07-Elec-B4 Information Technology Networks. Three hours, closed book, a PEO-approved non-programmable calculator permitted. Five questions of 25 marks each; any four constitute a complete paper worth 100 marks, and the marks are printed in the left margin against every sub-part. All five questions are solved here, because this set is a study resource rather than an exam attempt.
Reference texts.
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.
Given. The ISO/IEC 7498-1 OSI reference model, with seven layers, and eight named mechanisms to be placed within it. The question explicitly rewards brevity in part (a), so each layer gets one sentence and no more. Find. The seven layers named and described; the layer or layers hosting each of the eight items; and a reasoned account of when strict layering costs more than it saves.
Part (a) — one sentence per layer, from the top down, which is the order in which data is handed downward at the sender:
| Layer | Name | One-sentence description |
|---|---|---|
| 7 | Application | Provides the network service the user's program actually invokes — file transfer, mail, web access — and defines the protocols (HTTP, SMTP, FTP, DNS) that carry it. |
| 6 | Presentation | Gives meaning to the bits: character-set and data-structure translation between dissimilar machines, plus compression and encryption. |
| 5 | Session | Establishes, manages and closes dialogues between applications, providing dialogue control, token management and checkpointing so a long transfer can resume after a failure. |
| 4 | Transport | Delivers data end to end between processes on the two end systems, segmenting and reassembling messages and, in the connection-oriented case, adding reliability, sequencing and end-to-end flow control. |
| 3 | Network | Moves packets from source host to destination host across a concatenation of networks, handling logical addressing, route selection, fragmentation and congestion. |
| 2 | Data Link | Turns the raw bit pipe into a link that delivers frames between two directly-connected nodes, adding framing, physical (MAC) addressing, error detection and medium access control. |
| 1 | Physical | Transmits raw bits over the medium, defining voltages, bit timing, modulation, connectors and data rates. |
The mnemonic worth carrying into the exam room is All People Seem To Need Data Processing (Application, Presentation, Session, Transport, Network, Data Link, Physical). It is also worth remembering that layers 1–3 are the chained layers — they operate hop by hop and are present in every intermediate node — while layers 4–7 are end-to-end and exist only in the two end systems.
Part (b) — the assignments, with the one-line reason that earns the mark:
| Item | Mechanism | OSI layer | Reason |
|---|---|---|---|
| i | The UDP protocol | 4 — Transport | UDP multiplexes to a process by port number and is end-to-end; it simply declines to add reliability. |
| ii | The SMTP protocol | 7 — Application | A user-visible service protocol, running over a TCP connection. |
| iii | Routing | 3 — Network | Route selection across a concatenation of networks is the defining function of layer 3. |
| iv | Ethernet | 2 and 1 — Data Link and Physical | IEEE 802.3 specifies both the MAC sublayer (framing, addressing, CSMA/CD) and the physical media, signalling and connectors. |
| v | Successful packet delivery across a single link | 2 — Data Link | "Across a single link" is the giveaway: end-to-end delivery would be layer 4, but one hop is layer 2. |
| vi | Encryption and decryption | 6 — Presentation | Transformation of the representation of data is the presentation layer's job in the OSI model. |
| vii | Character display, such as ASCII | 6 — Presentation | Character-code translation is the classic presentation-layer example. |
| viii | Signal voltages | 1 — Physical | Voltage levels are the definition of the physical layer. |
Two of the eight deserve a comment. Item iv is the one that takes two layers: “Ethernet” as a standard is IEEE 802.3, which spans the MAC sublayer of layer 2 and the physical layer, so naming only layer 2 answers half the question — the question's own phrasing (“or layers, if more than one”) is the hint. Item vi is a reminder that the OSI model and real practice diverge: encryption belongs to the presentation layer in OSI, but in the TCP/IP stack there is no presentation layer, and TLS sits between the application and TCP while IPsec sits at layer 3. The OSI answer is layer 6; saying so and adding the practical note is the complete answer.
Layering buys modularity: each layer can be reimplemented without disturbing its neighbours, provided the service interface is unchanged. The price is paid in four distinct currencies.
Duplicated function. The same job is often done more than once because no layer can rely on the one below. Error detection appears in the Ethernet CRC at layer 2, in the IP header checksum at layer 3, in the TCP checksum at layer 4 and again in an application-level digest at layer 7; flow control appears at both layer 2 and layer 4. Each repetition costs processing on every packet.
Header overhead. Each layer prepends its own header, and on small payloads the headers dominate. A G.729 voice packet carries 20 ms of speech at 8 kbit/s, that is 20 bytes of payload, under an RTP header of 12 bytes, a UDP header of 8 and an IPv4 header of 20:
$$\text{overhead} = \frac{12 + 8 + 20}{12 + 8 + 20 + 20} = \frac{40}{60} = 66.7\%$$
so the 8 kbit/s codec occupies $60 \times 8 / 0.020 = 24$ kbit/s on the wire — three times the codec rate, before the Ethernet header is added. This is precisely why header-compression schemes such as RoHC exist, and every one of them is a deliberate layering violation.
Information hiding at the wrong moment. A layer cannot act on information it has been designed not to see, and sometimes that information is decisive. The standard example is TCP over a wireless link: TCP treats every lost segment as evidence of congestion and halves its window, but on a radio link most loss is bit corruption, so the correct response would have been to retransmit at the same rate. TCP cannot tell the two apart because layer 2 does not tell it. The same blindness prevents an application from expressing a delay requirement that the network layer could act on, which is why quality-of-service mechanisms (DiffServ, MPLS traffic engineering) all reach across layer boundaries.
Ossification. A layer boundary drawn in the wrong place is expensive to move. The OSI session and presentation layers turned out to be nearly empty and are simply absent from the TCP/IP stack; conversely NAT, firewalls, load balancers and MPLS are all widely deployed and all violate strict layering, because the architecture had no clean way to express what operators needed. Add the per-boundary cost in latency and data copying, and the honest summary is that layering is the right default but a poor absolute: it should be relaxed deliberately, by a documented cross-layer interface, rather than accidentally.
| Item asked | Answer |
|---|---|
| Number of OSI layers | 7 |
| i. UDP | Layer 4 (Transport) |
| ii. SMTP | Layer 7 (Application) |
| iii. Routing | Layer 3 (Network) |
| iv. Ethernet | Layers 2 and 1 (Data Link and Physical) |
| v. Delivery across a single link | Layer 2 (Data Link) |
| vi. Encryption and decryption | Layer 6 (Presentation) |
| vii. ASCII character display | Layer 6 (Presentation) |
| viii. Signal voltages | Layer 1 (Physical) |
| Header overhead, 20-byte VoIP payload | 40 / 60 = 66.7 per cent; 24 kbit/s on the wire for an 8 kbit/s codec |