How unit 1 is examined
Foundations of networks: definition, topologies, service types, the OSI and TCP/IP models, and the physical layer. Marks sit in the OSI layers, connection-oriented versus connectionless services, media, and the network definition.
Computer Network: Definitions
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Medium weight</span>
Definition. <mark>A computer network is a collection of autonomous computers interconnected by a communication medium so that they can share resources and exchange data.</mark>
Key points.
- Importance: many users share one printer, disk or database, so the same hardware is not bought again and again.
- It gives fast communication such as email, chat and video calls between distant users.
- It gives reliability, because data can be stored on several machines and a failed machine is replaced by another.
- It saves cost, since one powerful server is cheaper than a full set of stand-alone systems.
- It scales easily, because new computers are added without redesigning the system.
- Merits: shared hardware, software and data, central backup, and easy communication.
- Demerits: security threats such as hacking and viruses, high setup and maintenance cost, complex administration, and dependence on the network, since a failure stops all work.
Answer frame. Open with the definition; list importance points 1-5; give merits and demerits as two short lists or a two-column table; close with one line on the role of networks in the Internet.
Asked: [7 marks] (May 2023, Jun 2026) What is a computer network? Discuss its importance, merits and demerits. Define a computer network; explain its goals, components and applications.
Goals
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. Network goals are the purposes for which computers are connected.
Key points.
- Resource sharing makes programs, data and devices available to every user irrespective of location.
- Reliability comes from replicating files on several machines.
- Cost saving comes from using small client computers with shared servers.
- Communication and scalability: users exchange messages, and capacity grows by adding machines.
Components
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. Components are the hardware and software parts that together make a network work.
Key points.
- Hosts (end systems) run applications, and each connects through a network interface card (NIC).
- Transmission media (wire or wireless) carry the signals between devices.
- Connecting devices, namely hubs, switches and routers, forward data between links.
- Protocols are the agreed rules of communication, and network software implements them.
- Applications such as email, file sharing, the WWW and remote login are the network's uses.
Architecture
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>
Definition. Network architecture is the physical layout of nodes, called the topology, together with the layered protocol design.
Key points. The table compares the six topologies.
| Topology | Advantage | Disadvantage |
|---|---|---|
| Bus | Cheap, little cable | One cable break stops all; collisions |
| Star | Easy to add nodes; a fault stays local | Hub failure kills the network |
| Ring | Orderly access, no collisions | One break fails the ring |
| Mesh | Most reliable, dedicated links | Costly, n(n-1)/2 links |
| Tree | Scalable, hierarchical | Depends on the root bus |
| Hybrid | Flexible, combines strengths | Complex and costly |
<mark>A topology is chosen for cost, reliability, scalability and fault tolerance.</mark>
Asked: [7 marks] (May 2024) Explain the different types of topologies with their advantages and disadvantages.
Classifications & Types
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. Networks are classified mainly by geographical area.
Key points.
- A PAN covers a few metres around one person, such as Bluetooth devices.
- A LAN covers a building or campus, up to a few km, with high speed and private ownership.
- A MAN covers a city, for example a cable TV network.
- A WAN covers countries or continents and uses leased lines and satellites; the Internet is the largest.
- Other classes are by transmission (broadcast or point-to-point) and by role (client-server or peer-to-peer).
Protocol hierarchy
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. A protocol hierarchy organizes network functions into a stack of layers, each offering services to the layer above.
Key points.
- Layer n on one machine talks to layer n on the other machine using the layer n protocol; this is peer-to-peer communication.
- In reality data goes down to the physical medium and up the other stack, and each layer uses only the service of the layer below.
- Layering makes the design modular, so one layer can change without disturbing the others.
- The set of layers and protocols is called the network architecture.
Design Issues
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>
Definition. Design issues are the problems every layer designer must solve to make communication dependable.
Key points.
- Addressing identifies the sender and receiver, since many processes and hosts exist.
- Error control uses detecting and correcting codes and retransmission so that data arrives correct.
- Flow control stops a fast sender from swamping a slow receiver.
- Routing chooses the path when several paths exist, and multiplexing shares one channel among many conversations.
- Other issues: ordering of messages, message size (fragmentation), and congestion.
Answer frame. List the five issues with one sentence each; then continue with the connection-oriented versus connectionless comparison table below.
Asked: [7 marks] (Jun 2026) Discuss design issues in computer networks and explain connection-oriented and connectionless services.
Interfaces and Services
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Not asked since 2022</span>
Definition. A service is the set of operations a layer offers to the layer above; the interface is the boundary where this is offered.
Key points.
- The interface defines the service access points (SAP) through which the upper layer reaches the service.
- A service is what a layer does; a protocol is how it does it between peers, and protocols may change without changing the service.
- Services are of two kinds: connection-oriented and connectionless.
Connection Oriented & Connectionless Services
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">High weight</span>
Definition. <mark>A connection-oriented service first sets up a connection, then transfers data in order over it, and finally releases it, as in a telephone call; a connectionless service sends each message independently with no set-up, as in the postal system.</mark>
Diagram. Phases of a connection-oriented service; the sender and receiver are the two end systems.
<figure class="ds-fig" style="margin:1.4rem 0;overflow-x:auto"><svg xmlns="http://www.w3.org/2000/svg" id="dsfig-u1-01" viewBox="0 0 424 252" width="424" height="252" role="img" aria-label="Establishment, data transfer, release between Sender S and Receiver R"><style>#dsfig-u1-01 .e{stroke:#454C5A;stroke-width:1.4;fill:none}#dsfig-u1-01 .e.hi{stroke:#2340B8;stroke-width:2.6}#dsfig-u1-01 .n{fill:#FFFFFF;stroke:#16181D;stroke-width:1.4}#dsfig-u1-01 .n.hi{fill:#E3E9FC;stroke:#2340B8;stroke-width:2.2}#dsfig-u1-01 .n.rb-b{fill:#16181D;stroke:#16181D}#dsfig-u1-01 .n.rb-r{fill:#BD3227;stroke:#BD3227}#dsfig-u1-01 text{font-family:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;font-size:13px}#dsfig-u1-01 .t{fill:#16181D;font-weight:500}#dsfig-u1-01 .t.inv{fill:#FFFFFF;font-weight:700}#dsfig-u1-01 .kd{stroke:#16181D;stroke-width:1.2}#dsfig-u1-01 .dot{fill:#16181D}#dsfig-u1-01 .ann{fill:#2340B8;font-size:11px;font-weight:700}#dsfig-u1-01 .lbl{fill:#6F7787;font-family:system-ui,-apple-system,sans-serif;font-size:12px;font-weight:700}#dsfig-u1-01 .ptr{fill:#2340B8;font-size:12px;font-weight:700}#dsfig-u1-01 .ah{fill:#454C5A}#dsfig-u1-01 .ah.hi{fill:#2340B8}#dsfig-u1-01 .wl rect{fill:#FFFFFF;stroke:#DCE0E7}#dsfig-u1-01 .wl .t{font-size:12px;font-weight:700}#dsfig-u1-01 .wl.hi rect{fill:#2340B8;stroke:#2340B8}#dsfig-u1-01 .wl.hi .t{fill:#FFFFFF}html.dark #dsfig-u1-01 .e{stroke:#B1B7C3}html.dark #dsfig-u1-01 .e.hi{stroke:#8FA3FF}html.dark #dsfig-u1-01 .n{fill:#161920;stroke:#E6E8ED}html.dark #dsfig-u1-01 .n.hi{fill:#1E2748;stroke:#8FA3FF}html.dark #dsfig-u1-01 .n.rb-b{fill:#E6E8ED;stroke:#E6E8ED}html.dark #dsfig-u1-01 .n.rb-r{fill:#FF7E71;stroke:#FF7E71}html.dark #dsfig-u1-01 .t{fill:#E6E8ED}html.dark #dsfig-u1-01 .t.inv{fill:#0F1115}html.dark #dsfig-u1-01 .kd{stroke:#E6E8ED}html.dark #dsfig-u1-01 .dot{fill:#E6E8ED}html.dark #dsfig-u1-01 .ann{fill:#8FA3FF}html.dark #dsfig-u1-01 .lbl{fill:#858D9C}html.dark #dsfig-u1-01 .ptr{fill:#8FA3FF}html.dark #dsfig-u1-01 .ah{fill:#B1B7C3}html.dark #dsfig-u1-01 .ah.hi{fill:#8FA3FF}html.dark #dsfig-u1-01 .wl rect{fill:#161920;stroke:#2A2E37}html.dark #dsfig-u1-01 .wl.hi rect{fill:#8FA3FF;stroke:#8FA3FF}html.dark #dsfig-u1-01 .wl.hi .t{fill:#0F1115}</style><defs><marker id="ah1" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah" d="M0,1 L9,5 L0,9 z"/></marker><marker id="ahh1" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah hi" d="M0,1 L9,5 L0,9 z"/></marker></defs><path class="e" d="M58.7,43.5 Q212,72 363.4,43.8" marker-end="url(#ah1)"/><path class="e" d="M365.3,36.5 Q212,8 60.6,36.2" marker-end="url(#ah1)"/><path class="e" d="M61,40 L363,40" marker-end="url(#ah1)" marker-start="url(#ah1)"/><path class="e" d="M53.4,53.4 L197.2,197.2" marker-end="url(#ah1)"/><g class="wl"><rect x="173.6" y="48.8" width="75.9" height="18" rx="9"/><text class="t" x="211.5" y="57.8" dy=".35em" text-anchor="middle">1.connect</text></g><g class="wl"><rect x="178.1" y="13.2" width="68.7" height="18" rx="9"/><text class="t" x="212.5" y="22.2" dy=".35em" text-anchor="middle">2.accept</text></g><g class="wl"><rect x="184.9" y="31" width="54.3" height="18" rx="9"/><text class="t" x="212" y="40" dy=".35em" text-anchor="middle">3.data</text></g><g class="wl"><rect x="88.1" y="117" width="75.9" height="18" rx="9"/><text class="t" x="126" y="126" dy=".35em" text-anchor="middle">4.release</text></g><circle class="n" cx="40" cy="40" r="18"/><text class="t" x="40" y="40" dy=".35em" text-anchor="middle">S</text><circle class="n" cx="384" cy="40" r="18"/><text class="t" x="384" y="40" dy=".35em" text-anchor="middle">R</text><circle class="n" cx="212" cy="212" r="18"/><text class="t" x="212" y="212" dy=".35em" text-anchor="middle">E</text></svg><figcaption style="font-size:.82em;opacity:.72;margin-top:.45rem">Establishment, data transfer, release between Sender S and Receiver R</figcaption></figure>
Key points.
- A connection-oriented service works in three phases: connection establishment, data transfer and connection release; TCP is the example.
- It is reliable, since data is acknowledged and lost packets are re-sent, and it delivers in order.
- Packets follow the same path, so header overhead per packet is small but set-up delay exists.
- A connectionless service sends datagrams, each carrying the full destination address and routed independently.
- It is unreliable and unordered, with no acknowledgement, but it is fast and has low overhead; UDP/IP is the example.
- Connection-oriented suits file transfer, email and web; connectionless suits DNS queries, voice, video and streaming, where speed matters more than a lost packet.
| Basis | Connection-oriented | Connectionless |
|---|---|---|
| Set-up | Needed (handshake) | Not needed |
| Reliability | Reliable, acknowledged | Unreliable, best effort |
| Ordering | Delivered in order | May arrive out of order |
| Path | Fixed route | Each packet independent |
| Overhead | Set-up delay, more state | Low overhead, fast |
| Example | TCP | UDP, IP |
Answer frame. Open by defining both; draw the three-phase diagram; give the table on set-up, reliability, ordering, overhead and examples; close with TCP for accuracy and UDP for speed. For the short-note version, give the definition, phases, working, and advantages and limitations.
Pitfall: Do not call IP or UDP "wrong"; connectionless is not bad, it is chosen for speed.
Asked: [7 marks] (May 2022, Dec 2024, Jun 2025) Difference between connectionless and connection-oriented communication. Asked: [14 marks] (May 2024) Short notes (any three): Connection Oriented, ARP, CSMA/CA, DNS.
Service primitives
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">High weight</span>
Definition. <mark>Service primitives are the basic operations, such as request and response calls, through which a user process accesses the service provided by a layer.</mark>
Key points.
- There are four classes of primitive: Request, Indication, Response and Confirm.
- Request is issued by the user to ask the service to do something; Indication is delivered to the peer to tell it that the event happened.
- Response is the peer's answer to an Indication; Confirm tells the original user the request is completed.
- For a connection-oriented service the usual primitives are LISTEN, CONNECT, ACCEPT, RECEIVE, SEND and DISCONNECT.
- LISTEN blocks the server until a client arrives; CONNECT starts the connection and waits; ACCEPT completes it.
- SEND and RECEIVE exchange data, and DISCONNECT releases the connection from either side.
- A confirmed service uses all four classes, while an unconfirmed service uses only Request and Indication.
Diagram. Time sequence of a connection: CONNECT.request at the client, CONNECT.indication at the server, CONNECT.response from the server, and CONNECT.confirm back to the client.
Answer frame. Open with the definition; list the four classes; show the CONNECT sequence; list the six socket-style primitives with one line each; close with the comment that they hide protocol details from the user.
Asked: [14 marks] (May 2023) Short note on any two: Service Primitives, CSMA/CD, IEEE Standards 802 series, Fragmentation and reassembly.
ISO-OSI Reference Model: Principle
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Medium weight</span>
Definition. <mark>The OSI reference model, proposed by ISO, divides network communication into seven layers, each with a defined function, so that different systems can interoperate.</mark>
Key points.
- The layers from top are Application, Presentation, Session, Transport, Network, Data Link and Physical.
- Each layer at the sender communicates logically with the same layer at the receiver; this is peer-to-peer communication with the layer's protocol.
- Encapsulation: as user data moves down, each layer adds its header (H7 to H2), and the data link layer also adds a trailer T2.
- The physical layer transmits raw bits; on the receiver side each layer strips its header, which is decapsulation.
- Importance: standardization, interoperability among vendors, and modular design where one layer can be changed alone.
- It is a reference for network architectures such as TCP/IP; it is not itself a protocol suite.
Diagram.
<figure class="ds-fig" style="margin:1.4rem 0;overflow-x:auto"><svg xmlns="http://www.w3.org/2000/svg" id="dsfig-u1-02" viewBox="0 0 338 441.2" width="338" height="441.2" role="img" aria-label="Sender (left) and receiver (right) stacks, layers 7 to 1; headers added going down, removed going up"><style>#dsfig-u1-02 .e{stroke:#454C5A;stroke-width:1.4;fill:none}#dsfig-u1-02 .e.hi{stroke:#2340B8;stroke-width:2.6}#dsfig-u1-02 .n{fill:#FFFFFF;stroke:#16181D;stroke-width:1.4}#dsfig-u1-02 .n.hi{fill:#E3E9FC;stroke:#2340B8;stroke-width:2.2}#dsfig-u1-02 .n.rb-b{fill:#16181D;stroke:#16181D}#dsfig-u1-02 .n.rb-r{fill:#BD3227;stroke:#BD3227}#dsfig-u1-02 text{font-family:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;font-size:13px}#dsfig-u1-02 .t{fill:#16181D;font-weight:500}#dsfig-u1-02 .t.inv{fill:#FFFFFF;font-weight:700}#dsfig-u1-02 .kd{stroke:#16181D;stroke-width:1.2}#dsfig-u1-02 .dot{fill:#16181D}#dsfig-u1-02 .ann{fill:#2340B8;font-size:11px;font-weight:700}#dsfig-u1-02 .lbl{fill:#6F7787;font-family:system-ui,-apple-system,sans-serif;font-size:12px;font-weight:700}#dsfig-u1-02 .ptr{fill:#2340B8;font-size:12px;font-weight:700}#dsfig-u1-02 .ah{fill:#454C5A}#dsfig-u1-02 .ah.hi{fill:#2340B8}#dsfig-u1-02 .wl rect{fill:#FFFFFF;stroke:#DCE0E7}#dsfig-u1-02 .wl .t{font-size:12px;font-weight:700}#dsfig-u1-02 .wl.hi rect{fill:#2340B8;stroke:#2340B8}#dsfig-u1-02 .wl.hi .t{fill:#FFFFFF}html.dark #dsfig-u1-02 .e{stroke:#B1B7C3}html.dark #dsfig-u1-02 .e.hi{stroke:#8FA3FF}html.dark #dsfig-u1-02 .n{fill:#161920;stroke:#E6E8ED}html.dark #dsfig-u1-02 .n.hi{fill:#1E2748;stroke:#8FA3FF}html.dark #dsfig-u1-02 .n.rb-b{fill:#E6E8ED;stroke:#E6E8ED}html.dark #dsfig-u1-02 .n.rb-r{fill:#FF7E71;stroke:#FF7E71}html.dark #dsfig-u1-02 .t{fill:#E6E8ED}html.dark #dsfig-u1-02 .t.inv{fill:#0F1115}html.dark #dsfig-u1-02 .kd{stroke:#E6E8ED}html.dark #dsfig-u1-02 .dot{fill:#E6E8ED}html.dark #dsfig-u1-02 .ann{fill:#8FA3FF}html.dark #dsfig-u1-02 .lbl{fill:#858D9C}html.dark #dsfig-u1-02 .ptr{fill:#8FA3FF}html.dark #dsfig-u1-02 .ah{fill:#B1B7C3}html.dark #dsfig-u1-02 .ah.hi{fill:#8FA3FF}html.dark #dsfig-u1-02 .wl rect{fill:#161920;stroke:#2A2E37}html.dark #dsfig-u1-02 .wl.hi rect{fill:#8FA3FF;stroke:#8FA3FF}html.dark #dsfig-u1-02 .wl.hi .t{fill:#0F1115}</style><defs><marker id="ah2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah" d="M0,1 L9,5 L0,9 z"/></marker><marker id="ahh2" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah hi" d="M0,1 L9,5 L0,9 z"/></marker></defs><path class="e" d="M40,59 L40,79.2" marker-end="url(#ah2)"/><path class="e" d="M40,119.2 L40,139.4" marker-end="url(#ah2)"/><path class="e" d="M40,179.4 L40,199.6" marker-end="url(#ah2)"/><path class="e" d="M40,239.6 L40,259.8" marker-end="url(#ah2)"/><path class="e" d="M40,299.8 L40,320" marker-end="url(#ah2)"/><path class="e" d="M40,360 L40,380.2" marker-end="url(#ah2)"/><path class="e" d="M59,401.2 L279,401.2"/><path class="e" d="M298,382.2 L298,362" marker-end="url(#ah2)"/><path class="e" d="M298,322 L298,301.8" marker-end="url(#ah2)"/><path class="e" d="M298,261.8 L298,241.6" marker-end="url(#ah2)"/><path class="e" d="M298,201.6 L298,181.4" marker-end="url(#ah2)"/><path class="e" d="M298,141.4 L298,121.2" marker-end="url(#ah2)"/><path class="e" d="M298,81.2 L298,61" marker-end="url(#ah2)"/><g class="wl"><rect x="26.8" y="61.1" width="26.4" height="18" rx="9"/><text class="t" x="40" y="70.1" dy=".35em" text-anchor="middle">H7</text></g><g class="wl"><rect x="26.8" y="121.3" width="26.4" height="18" rx="9"/><text class="t" x="40" y="130.3" dy=".35em" text-anchor="middle">H6</text></g><g class="wl"><rect x="26.8" y="181.5" width="26.4" height="18" rx="9"/><text class="t" x="40" y="190.5" dy=".35em" text-anchor="middle">H5</text></g><g class="wl"><rect x="26.8" y="241.7" width="26.4" height="18" rx="9"/><text class="t" x="40" y="250.7" dy=".35em" text-anchor="middle">H4</text></g><g class="wl"><rect x="26.8" y="301.9" width="26.4" height="18" rx="9"/><text class="t" x="40" y="310.9" dy=".35em" text-anchor="middle">H3</text></g><g class="wl"><rect x="16.5" y="362.1" width="47.1" height="18" rx="9"/><text class="t" x="40" y="371.1" dy=".35em" text-anchor="middle">H2+T2</text></g><g class="wl"><rect x="148.6" y="392.2" width="40.8" height="18" rx="9"/><text class="t" x="169" y="401.2" dy=".35em" text-anchor="middle">bits</text></g><circle class="n" cx="40" cy="40" r="18"/><text class="t" x="40" y="40" dy=".35em" text-anchor="middle">A7</text><circle class="n" cx="40" cy="100.2" r="18"/><text class="t" x="40" y="100.2" dy=".35em" text-anchor="middle">A6</text><circle class="n" cx="40" cy="160.4" r="18"/><text class="t" x="40" y="160.4" dy=".35em" text-anchor="middle">A5</text><circle class="n" cx="40" cy="220.6" r="18"/><text class="t" x="40" y="220.6" dy=".35em" text-anchor="middle">A4</text><circle class="n" cx="40" cy="280.8" r="18"/><text class="t" x="40" y="280.8" dy=".35em" text-anchor="middle">A3</text><circle class="n" cx="40" cy="341" r="18"/><text class="t" x="40" y="341" dy=".35em" text-anchor="middle">A2</text><circle class="n" cx="40" cy="401.2" r="18"/><text class="t" x="40" y="401.2" dy=".35em" text-anchor="middle">A1</text><circle class="n" cx="298" cy="40" r="18"/><text class="t" x="298" y="40" dy=".35em" text-anchor="middle">B7</text><circle class="n" cx="298" cy="100.2" r="18"/><text class="t" x="298" y="100.2" dy=".35em" text-anchor="middle">B6</text><circle class="n" cx="298" cy="160.4" r="18"/><text class="t" x="298" y="160.4" dy=".35em" text-anchor="middle">B5</text><circle class="n" cx="298" cy="220.6" r="18"/><text class="t" x="298" y="220.6" dy=".35em" text-anchor="middle">B4</text><circle class="n" cx="298" cy="280.8" r="18"/><text class="t" x="298" y="280.8" dy=".35em" text-anchor="middle">B3</text><circle class="n" cx="298" cy="341" r="18"/><text class="t" x="298" y="341" dy=".35em" text-anchor="middle">B2</text><circle class="n" cx="298" cy="401.2" r="18"/><text class="t" x="298" y="401.2" dy=".35em" text-anchor="middle">B1</text></svg><figcaption style="font-size:.82em;opacity:.72;margin-top:.45rem">Sender (left) and receiver (right) stacks, layers 7 to 1; headers added going down, removed going up</figcaption></figure>
Answer frame. Open with the definition and the seven layers; draw the two stacks with headers; explain encapsulation and decapsulation; give the importance; close with one line on its use as a reference.
Asked: [7 marks] (May 2022, Jun 2025) Explain the OSI model and its importance; show headers and trailers added to user data.
Descriptions of various layers and its comparison with TCP/IP
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">High weight</span>
Definition. <mark>OSI has seven layers, while the TCP/IP model has four (Network Access, Internet, Transport, Application) and was built from working protocols.</mark>
| Layer | Function | Protocols | Data unit |
|---|---|---|---|
| 7 Application | Gives user services such as mail and file transfer | HTTP, FTP | Data |
| 6 Presentation | Translation, encryption, compression | SSL, JPEG | Data |
| 5 Session | Dialogue control, synchronization | NetBIOS, RPC | Data |
| 4 Transport | End-to-end delivery, error and flow control | TCP, UDP | Segment |
| 3 Network | Logical addressing, routing | IP, ICMP | Packet |
| 2 Data Link | Framing, MAC addressing, error detection | Ethernet, PPP | Frame |
| 1 Physical | Bit transmission, signals, cables | RS-232, DSL | Bits |
Key points.
- TCP/IP maps Application, Presentation and Session of OSI into one Application layer.
- Transport maps to Transport, Network to Internet, and Data Link with Physical to Network Access.
- OSI is a generic, protocol-independent model made before the protocols; TCP/IP was made from the protocols and is what the Internet uses.
- OSI has a clear split of service, interface and protocol; TCP/IP does not.
- OSI Transport is only connection-oriented in one mode of the standard, while TCP/IP Transport offers both TCP and UDP.
- Merit of OSI: general and clean. Criticism: too complex, bad timing and slow implementations. Merit of TCP/IP: simple and proven. Criticism: not generic and describes no other stack.
Diagram.
<figure class="ds-fig" style="margin:1.4rem 0;overflow-x:auto"><svg xmlns="http://www.w3.org/2000/svg" id="dsfig-u1-03" viewBox="0 0 1257 198" width="1257" height="198" role="img" aria-label="Application, Presentation and Session correspond to TCP/IP Application; Data Link and Physical to Network Access"><style>#dsfig-u1-03 .e{stroke:#454C5A;stroke-width:1.4;fill:none}#dsfig-u1-03 .e.hi{stroke:#2340B8;stroke-width:2.6}#dsfig-u1-03 .n{fill:#FFFFFF;stroke:#16181D;stroke-width:1.4}#dsfig-u1-03 .n.hi{fill:#E3E9FC;stroke:#2340B8;stroke-width:2.2}#dsfig-u1-03 .n.rb-b{fill:#16181D;stroke:#16181D}#dsfig-u1-03 .n.rb-r{fill:#BD3227;stroke:#BD3227}#dsfig-u1-03 text{font-family:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;font-size:13px}#dsfig-u1-03 .t{fill:#16181D;font-weight:500}#dsfig-u1-03 .t.inv{fill:#FFFFFF;font-weight:700}#dsfig-u1-03 .kd{stroke:#16181D;stroke-width:1.2}#dsfig-u1-03 .dot{fill:#16181D}#dsfig-u1-03 .ann{fill:#2340B8;font-size:11px;font-weight:700}#dsfig-u1-03 .lbl{fill:#6F7787;font-family:system-ui,-apple-system,sans-serif;font-size:12px;font-weight:700}#dsfig-u1-03 .ptr{fill:#2340B8;font-size:12px;font-weight:700}#dsfig-u1-03 .ah{fill:#454C5A}#dsfig-u1-03 .ah.hi{fill:#2340B8}#dsfig-u1-03 .wl rect{fill:#FFFFFF;stroke:#DCE0E7}#dsfig-u1-03 .wl .t{font-size:12px;font-weight:700}#dsfig-u1-03 .wl.hi rect{fill:#2340B8;stroke:#2340B8}#dsfig-u1-03 .wl.hi .t{fill:#FFFFFF}html.dark #dsfig-u1-03 .e{stroke:#B1B7C3}html.dark #dsfig-u1-03 .e.hi{stroke:#8FA3FF}html.dark #dsfig-u1-03 .n{fill:#161920;stroke:#E6E8ED}html.dark #dsfig-u1-03 .n.hi{fill:#1E2748;stroke:#8FA3FF}html.dark #dsfig-u1-03 .n.rb-b{fill:#E6E8ED;stroke:#E6E8ED}html.dark #dsfig-u1-03 .n.rb-r{fill:#FF7E71;stroke:#FF7E71}html.dark #dsfig-u1-03 .t{fill:#E6E8ED}html.dark #dsfig-u1-03 .t.inv{fill:#0F1115}html.dark #dsfig-u1-03 .kd{stroke:#E6E8ED}html.dark #dsfig-u1-03 .dot{fill:#E6E8ED}html.dark #dsfig-u1-03 .ann{fill:#8FA3FF}html.dark #dsfig-u1-03 .lbl{fill:#858D9C}html.dark #dsfig-u1-03 .ptr{fill:#8FA3FF}html.dark #dsfig-u1-03 .ah{fill:#B1B7C3}html.dark #dsfig-u1-03 .ah.hi{fill:#8FA3FF}html.dark #dsfig-u1-03 .wl rect{fill:#161920;stroke:#2A2E37}html.dark #dsfig-u1-03 .wl.hi rect{fill:#8FA3FF;stroke:#8FA3FF}html.dark #dsfig-u1-03 .wl.hi .t{fill:#0F1115}</style><defs><marker id="ah3" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah" d="M0,1 L9,5 L0,9 z"/></marker><marker id="ahh3" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah hi" d="M0,1 L9,5 L0,9 z"/></marker></defs><line class="e" x1="684.6" y1="39" x2="385.3" y2="103"/><line class="e" x1="684.6" y1="39" x2="984" y2="103"/><line class="e" x1="385.3" y1="103" x2="67" y2="167"/><line class="e" x1="385.3" y1="103" x2="193" y2="167"/><line class="e" x1="385.3" y1="103" x2="303.5" y2="167"/><line class="e" x1="385.3" y1="103" x2="402.5" y2="167"/><line class="e" x1="385.3" y1="103" x2="501.5" y2="167"/><line class="e" x1="385.3" y1="103" x2="600.5" y2="167"/><line class="e" x1="385.3" y1="103" x2="703.5" y2="167"/><line class="e" x1="984" y1="103" x2="814" y2="167"/><line class="e" x1="984" y1="103" x2="928.5" y2="167"/><line class="e" x1="984" y1="103" x2="1031.5" y2="167"/><line class="e" x1="984" y1="103" x2="1154" y2="167"/><rect class="n" x="623.6" y="24" width="122" height="30" rx="8"/><text class="t" x="684.6" y="39" dy=".35em" text-anchor="middle">Layer mapping</text><circle class="n" cx="385.3" cy="103" r="17"/><text class="t" x="385.3" y="103" dy=".35em" text-anchor="middle">OSI</text><rect class="n" x="14" y="152" width="106" height="30" rx="8"/><text class="t" x="67" y="167" dy=".35em" text-anchor="middle">Application</text><rect class="n" x="136" y="152" width="114" height="30" rx="8"/><text class="t" x="193" y="167" dy=".35em" text-anchor="middle">Presentation</text><rect class="n" x="266" y="152" width="75" height="30" rx="8"/><text class="t" x="303.5" y="167" dy=".35em" text-anchor="middle">Session</text><rect class="n" x="357" y="152" width="91" height="30" rx="8"/><text class="t" x="402.5" y="167" dy=".35em" text-anchor="middle">Transport</text><rect class="n" x="464" y="152" width="75" height="30" rx="8"/><text class="t" x="501.5" y="167" dy=".35em" text-anchor="middle">Network</text><rect class="n" x="555" y="152" width="91" height="30" rx="8"/><text class="t" x="600.5" y="167" dy=".35em" text-anchor="middle">Data Link</text><rect class="n" x="662" y="152" width="83" height="30" rx="8"/><text class="t" x="703.5" y="167" dy=".35em" text-anchor="middle">Physical</text><rect class="n" x="950.5" y="88" width="67" height="30" rx="8"/><text class="t" x="984" y="103" dy=".35em" text-anchor="middle">TCP/IP</text><rect class="n" x="761" y="152" width="106" height="30" rx="8"/><text class="t" x="814" y="167" dy=".35em" text-anchor="middle">Application</text><rect class="n" x="883" y="152" width="91" height="30" rx="8"/><text class="t" x="928.5" y="167" dy=".35em" text-anchor="middle">Transport</text><rect class="n" x="990" y="152" width="83" height="30" rx="8"/><text class="t" x="1031.5" y="167" dy=".35em" text-anchor="middle">Internet</text><rect class="n" x="1089" y="152" width="130" height="30" rx="8"/><text class="t" x="1154" y="167" dy=".35em" text-anchor="middle">Network Access</text></svg><figcaption style="font-size:.82em;opacity:.72;margin-top:.45rem">Application, Presentation and Session correspond to TCP/IP Application; Data Link and Physical to Network Access</figcaption></figure>
Answer frame. For the explain question: draw the seven-layer stack with a function and two protocols per layer, then add peer-to-peer and encapsulation. For the comparison question: draw both stacks side by side, give a table on layers, type, approach, reliability and usage, then merits and demerits.
Asked: [7 marks] (May 2023, May 2024) Explain the OSI reference model with the function of each layer; name two protocols per layer. Asked: [7 marks] (Dec 2024, Jun 2026) Compare the OSI and TCP/IP models with suitable diagrams.
Principals of physical layer: Media
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Medium weight</span>
Definition. <mark>Transmission media are the physical paths that carry signals from sender to receiver, and they are guided (wired) or unguided (wireless).</mark>
<figure class="ds-fig" style="margin:1.4rem 0;overflow-x:auto"><svg xmlns="http://www.w3.org/2000/svg" id="dsfig-u1-04" viewBox="0 0 783 194" width="783" height="194" role="img" aria-label="Classification of transmission media"><style>#dsfig-u1-04 .e{stroke:#454C5A;stroke-width:1.4;fill:none}#dsfig-u1-04 .e.hi{stroke:#2340B8;stroke-width:2.6}#dsfig-u1-04 .n{fill:#FFFFFF;stroke:#16181D;stroke-width:1.4}#dsfig-u1-04 .n.hi{fill:#E3E9FC;stroke:#2340B8;stroke-width:2.2}#dsfig-u1-04 .n.rb-b{fill:#16181D;stroke:#16181D}#dsfig-u1-04 .n.rb-r{fill:#BD3227;stroke:#BD3227}#dsfig-u1-04 text{font-family:"JetBrains Mono",ui-monospace,Menlo,Consolas,monospace;font-size:13px}#dsfig-u1-04 .t{fill:#16181D;font-weight:500}#dsfig-u1-04 .t.inv{fill:#FFFFFF;font-weight:700}#dsfig-u1-04 .kd{stroke:#16181D;stroke-width:1.2}#dsfig-u1-04 .dot{fill:#16181D}#dsfig-u1-04 .ann{fill:#2340B8;font-size:11px;font-weight:700}#dsfig-u1-04 .lbl{fill:#6F7787;font-family:system-ui,-apple-system,sans-serif;font-size:12px;font-weight:700}#dsfig-u1-04 .ptr{fill:#2340B8;font-size:12px;font-weight:700}#dsfig-u1-04 .ah{fill:#454C5A}#dsfig-u1-04 .ah.hi{fill:#2340B8}#dsfig-u1-04 .wl rect{fill:#FFFFFF;stroke:#DCE0E7}#dsfig-u1-04 .wl .t{font-size:12px;font-weight:700}#dsfig-u1-04 .wl.hi rect{fill:#2340B8;stroke:#2340B8}#dsfig-u1-04 .wl.hi .t{fill:#FFFFFF}html.dark #dsfig-u1-04 .e{stroke:#B1B7C3}html.dark #dsfig-u1-04 .e.hi{stroke:#8FA3FF}html.dark #dsfig-u1-04 .n{fill:#161920;stroke:#E6E8ED}html.dark #dsfig-u1-04 .n.hi{fill:#1E2748;stroke:#8FA3FF}html.dark #dsfig-u1-04 .n.rb-b{fill:#E6E8ED;stroke:#E6E8ED}html.dark #dsfig-u1-04 .n.rb-r{fill:#FF7E71;stroke:#FF7E71}html.dark #dsfig-u1-04 .t{fill:#E6E8ED}html.dark #dsfig-u1-04 .t.inv{fill:#0F1115}html.dark #dsfig-u1-04 .kd{stroke:#E6E8ED}html.dark #dsfig-u1-04 .dot{fill:#E6E8ED}html.dark #dsfig-u1-04 .ann{fill:#8FA3FF}html.dark #dsfig-u1-04 .lbl{fill:#858D9C}html.dark #dsfig-u1-04 .ptr{fill:#8FA3FF}html.dark #dsfig-u1-04 .ah{fill:#B1B7C3}html.dark #dsfig-u1-04 .ah.hi{fill:#8FA3FF}html.dark #dsfig-u1-04 .wl rect{fill:#161920;stroke:#2A2E37}html.dark #dsfig-u1-04 .wl.hi rect{fill:#8FA3FF;stroke:#8FA3FF}html.dark #dsfig-u1-04 .wl.hi .t{fill:#0F1115}</style><defs><marker id="ah4" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah" d="M0,1 L9,5 L0,9 z"/></marker><marker id="ahh4" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path class="ah hi" d="M0,1 L9,5 L0,9 z"/></marker></defs><line class="e" x1="367.3" y1="37" x2="183.5" y2="101"/><line class="e" x1="367.3" y1="37" x2="551" y2="101"/><line class="e" x1="183.5" y1="101" x2="71" y2="165"/><line class="e" x1="183.5" y1="101" x2="181.5" y2="165"/><line class="e" x1="183.5" y1="101" x2="296" y2="165"/><line class="e" x1="551" y1="101" x2="402.5" y2="165"/><line class="e" x1="551" y1="101" x2="493.5" y2="165"/><line class="e" x1="551" y1="101" x2="596.5" y2="165"/><line class="e" x1="551" y1="101" x2="699.5" y2="165"/><rect class="n" x="337.8" y="22" width="59" height="30" rx="8"/><text class="t" x="367.3" y="37" dy=".35em" text-anchor="middle">Media</text><rect class="n" x="150" y="86" width="67" height="30" rx="8"/><text class="t" x="183.5" y="101" dy=".35em" text-anchor="middle">Guided</text><rect class="n" x="14" y="150" width="114" height="30" rx="8"/><text class="t" x="71" y="165" dy=".35em" text-anchor="middle">Twisted pair</text><rect class="n" x="144" y="150" width="75" height="30" rx="8"/><text class="t" x="181.5" y="165" dy=".35em" text-anchor="middle">Coaxial</text><rect class="n" x="235" y="150" width="122" height="30" rx="8"/><text class="t" x="296" y="165" dy=".35em" text-anchor="middle">Optical fibre</text><rect class="n" x="509.5" y="86" width="83" height="30" rx="8"/><text class="t" x="551" y="101" dy=".35em" text-anchor="middle">Unguided</text><rect class="n" x="373" y="150" width="59" height="30" rx="8"/><text class="t" x="402.5" y="165" dy=".35em" text-anchor="middle">Radio</text><rect class="n" x="448" y="150" width="91" height="30" rx="8"/><text class="t" x="493.5" y="165" dy=".35em" text-anchor="middle">Microwave</text><rect class="n" x="555" y="150" width="83" height="30" rx="8"/><text class="t" x="596.5" y="165" dy=".35em" text-anchor="middle">Infrared</text><rect class="n" x="654" y="150" width="91" height="30" rx="8"/><text class="t" x="699.5" y="165" dy=".35em" text-anchor="middle">Satellite</text></svg><figcaption style="font-size:.82em;opacity:.72;margin-top:.45rem">Classification of transmission media</figcaption></figure>
Key points.
- Twisted pair is two insulated copper wires twisted to cut interference; it is cheap and used for telephones and LANs, but has limited bandwidth and distance.
- Coaxial cable has a central conductor, insulation and a metal shield; it has higher bandwidth and less noise, and is used in cable TV.
- Optical fibre carries light by total internal reflection in a glass core inside a cladding; it has very high bandwidth and no electrical interference, but costs more.
- Radio waves travel in all directions and pass through walls; microwaves need line-of-sight; infrared cannot pass walls.
- Satellite links cover very wide areas with a delay of about 250 ms.
- Local loop broadband options: DSL uses the existing telephone copper for up to a few Mbps over about 5 km; cable modem uses shared coaxial TV cable at tens of Mbps; FTTH uses fibre for hundreds of Mbps to Gbps at the highest cost.
| Local loop | Medium | Speed | Cost |
|---|---|---|---|
| DSL | Telephone copper | 1-25 Mbps, distance limited | Low |
| Cable | Coax, shared | 10-100 Mbps | Medium |
| FTTH | Fibre | 100 Mbps - 1 Gbps | High |
Answer frame. For the media question: define, draw the classification with cross-section sketches, cover each medium in a sentence, compare on bandwidth, cost and interference. For the local loop question: give the table above with properties.
Asked: [7 marks] (May 2022) Differentiate broadband local loop technologies stating their properties. Asked: [7 marks] (May 2023) Guided and unguided transmission media with a sketch. Asked: [7 marks] (Jun 2026) Explain physical media, bandwidth, data rate and data modulation.
Bandwidth
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>
Definition. <mark>Bandwidth is the range of frequencies a channel can pass, measured in Hz; data rate is the number of bits sent per second, measured in bps.</mark>
Key points.
- Bandwidth in Hz is the difference between the highest and lowest frequency, for example a telephone line from 300 Hz to 3300 Hz has 3000 Hz.
- In digital usage bandwidth also means the maximum bit rate of a link, such as 100 Mbps Ethernet.
- Data rate is the actual bits per second achieved, for example sending 1 MB in 8 s gives 1 Mbps.
- They are related: by Nyquist the maximum rate is $2B\log_2 L$ for a noiseless channel with L levels, and by Shannon it is $B\log_2(1+SNR)$ for a noisy one.
Asked: [7 marks] (May 2024) Define data rate and bandwidth with a suitable example.
Data rate and Modulations
<span style="display:inline-block;padding:.16em .6em;border:1.5px solid currentColor;border-radius:999px;font-size:.68em;font-weight:700;letter-spacing:.06em;text-transform:uppercase;opacity:.75">Low weight</span>
Definition. Modulation changes a carrier wave (amplitude, frequency or phase) in step with the data so that it suits the channel.
Formula. $C = B\log_2(1+SNR)$ with $SNR = (V_s/V_n)^2$ as a power ratio.
Example. Given B = 4 kHz, signal 20 V, noise 6 mV.
| Step | Working |
|---|---|
| SNR | $(20/0.006)^2 = (3333.3)^2 = 1.111\times10^7$ |
| $\log_2(1+SNR)$ | $\log_2(11111112) = 23.41$ |
| C | $4000 \times 23.41 = 93{,}622$ bps |
The maximum data rate is about 93.6 kbps.
Key points.
- ASK varies amplitude, FSK varies frequency and PSK varies phase.
- Modulation lets signals travel far over a medium and share it through different carriers.
- Data rate in bps equals baud rate multiplied by bits per signal element.
Pitfall: Convert both to the same unit (mV to V) and square the ratio for power.
Asked: [7 marks] (Dec 2024) Line of 4 kHz bandwidth, signal 20 V, noise 6 mV: maximum data rate.
Last-minute revision
- A computer network is autonomous computers interconnected to share resources.
- Topologies: bus, star, ring, mesh, tree, hybrid; mesh has n(n-1)/2 links.
- Connection-oriented: set-up, data, release; TCP. Connectionless: datagrams; UDP.
- Primitives: Request, Indication, Response, Confirm.
- OSI order from top: Application, Presentation, Session, Transport, Network, Data Link, Physical.
- TCP/IP has four layers; Application, Presentation, Session collapse into one.
- Encapsulation adds headers H7 to H2 and the trailer T2 at Data Link.
- Guided: twisted pair, coax, fibre; unguided: radio, microwave, infrared, satellite.
- Nyquist $2B\log_2 L$; Shannon $B\log_2(1+SNR)$.
- 4 kHz, 20 V, 6 mV gives about 93.6 kbps.
Memory hooks
- OSI top to bottom: "All People Seem To Need Data Processing"; bottom to top: "Please Do Not Throw Sausage Pizza Away".
- Connection-oriented is a telephone call; connectionless is a postcard.
- TCP is trust, UDP is unreliable but urgent.
- Four primitives: RIRC, Request Indication Response Confirm.
Coverage checklist
- Computer Network: Definitions: covers May 2023, Jun 2026 definition question.
- goals: covered in the Jun 2026 definition question.
- components: covered in the Jun 2026 definition question.
- Architecture: covers the May 2024 topologies question.
- Classifications & Types: PAN, LAN, MAN, WAN.
- Protocol hierarchy: layers, peers.
- Design Issues: covers Jun 2026 design issues question.
- Interfaces and Services: SAP.
- Connection Oriented & Connectionless Services: covers the May 2022, Dec 2024, Jun 2025 comparison and May 2024 short note.
- Service primitives: covers the May 2023 short note.
- ISO-OSI Reference Model: Principle: covers May 2022, Jun 2025.
- Descriptions of various layers and its comparison with TCP/IP: covers May 2023, May 2024, Dec 2024, Jun 2026.
- Principals of physical layer: Media: covers May 2022, May 2023, Jun 2026.
- Bandwidth: covers May 2024.
- Data rate and Modulations: covers Dec 2024.