Skip to content
AD-602 · Computer Networks/Quick Revision Short Notes

Computer Networks (AD-602) - Unit 1 Short Notes

How unit 1 is examined

This unit covers network basics, topologies, layering, service types, the OSI and TCP/IP models and the physical layer; connection-oriented vs connectionless services carry the most marks, then network classification, topology cost and the OSI/TCP-IP layers.

Computer Network: Definitions, goals, 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">Low weight</span>

Definition. <mark>A computer network is a collection of autonomous computers and devices interconnected by transmission media so that they can exchange data and share resources.</mark>

Key points.

  1. The primary goals are resource sharing (printers, files, internet), fast communication (email, video calls), reliability through duplicate resources, and scalability by adding nodes easily.
  2. Hardware components are hosts (end systems), the NIC that connects a host to the medium, hub, switch, router, modem and the transmission media (cable, fibre, wireless).
  3. A hub repeats bits to all ports, a switch forwards frames by MAC address, and a router forwards packets between networks by IP address.
  4. Software components are protocols (TCP/IP), the network operating system, and network services and applications such as web, email and file transfer.

Asked: [7 marks] (May 2024) What is a computer network and what are its primary goals? Identify and explain the key components of a computer network including hardware and software elements.

Architecture, 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">Medium weight</span>

Definition. <mark>Network architecture is the design of a network: its physical layout (topology), its layers and protocols, and its scale.</mark>

Key points.

  1. By scale, a PAN covers about 1-10 m around one person (Bluetooth), a LAN covers a building or campus (Ethernet, Wi-Fi), a MAN covers a city (cable TV, WiMAX) and a WAN covers countries (the Internet, leased lines).
  2. By transmission, networks are broadcast (one shared channel, as in a LAN) or point-to-point (dedicated links, as in a WAN).
  3. By relationship, networks are client-server (central server) or peer-to-peer (all nodes equal).
  4. Topology is the physical arrangement of nodes: bus (one backbone), ring (closed loop), star (central hub or switch) and mesh (every node linked to every other).
  5. A mesh gives the highest redundancy but the highest cost, a bus is cheapest but one cable break stops everything, and a star isolates faults but depends on the central device.

Formula. Links: bus $N-1$, ring $N$, star $N$ (N end nodes plus the central hub), mesh $\dfrac{N(N-1)}{2}$. Cost $=$ links $\times$ cost per link.

Example. Given $N=20$, cost $=$100$ per link.

Topology Links Cost
Bus 19 $1,900
Ring 20 $2,000
Star 20 $2,000
Mesh $20\times19/2=190$ $19,000

Bus is the most cost-effective at $1,900 and mesh has the highest redundancy at $19,000.

Answer frame. For classification, open with the definition, list PAN, LAN, MAN, WAN in a table by range and example, then add broadcast/point-to-point, and close with service primitives from the Service primitives topic. For the numerical, write the four formulas, substitute N=20, tabulate links and cost, and close with the cost-vs-redundancy verdict.

Pitfall: If the star's hub is counted among the 20 nodes the links become 19, so state your assumption.

Asked: [7 marks] (Jun 2025) Classify computer networks. Discuss the significance of service primitives in connection-oriented and connectionless services. Asked: [7 marks] (Jun 2025) A company designs a network of 20 nodes at $100 per link. Calculate the number of links and total cost for bus, ring, star and mesh topologies, and find the most cost-effective topology and the one with the highest redundancy.

Layered Architecture: 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. <mark>A protocol hierarchy organises network functions into a stack of layers, where each layer offers services to the layer above and uses the services of the layer below.</mark>

Key points.

  1. Layer $n$ on one machine talks to layer $n$ on another machine using the layer-$n$ protocol; these are peer entities.
  2. Actual data travels down the stack, across the physical medium and up the peer stack; each layer adds its header on the way down.
  3. Layering breaks a complex problem into small independent parts, so one layer can change without touching the others.

Design Issues, 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">Low weight</span>

Definition. <mark>Design issues are the problems every layer designer must solve to make communication reliable, efficient and fair.</mark>

Key points.

  1. Addressing: every sender and receiver needs a unique identifier so data reaches the right process or host.
  2. Error control: detecting and correcting errors using codes and retransmission so that data arrives correctly.
  3. Flow control: stopping a fast sender from swamping a slow receiver.
  4. Multiplexing and routing: many conversations share one link, and a path must be chosen through the network.
  5. Reliability, scalability, resource sharing and security must hold as the network grows; more layers give modularity but cost overhead and delay.
  6. An interface defines the operations and services a lower layer offers to the upper layer, while a protocol is the rule set between peers.

Asked: [7 marks] (May 2023) Discuss about the design issues of computer network.

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 between sender and receiver (like a telephone call), transfers data over it in order, then releases it; a connectionless service sends each packet independently with no setup (like the postal system).</mark>

Diagram.

<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 338 252" width="338" height="252" role="img" aria-label="Top: connection setup (C client, S server). Bottom: connectionless datagrams sent with no setup (A sender, B receiver)"><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.4,44.6 Q169,72 277.6,45.1" marker-end="url(#ah1)"/><path class="e" d="M279.6,35.4 Q169,8 60.4,34.9" marker-end="url(#ah1)"/><path class="e hi" d="M58.4,44.6 Q169,72 277.6,45.1" marker-end="url(#ahh1)"/><path class="e" d="M59,212 L277,212" marker-end="url(#ah1)"/><path class="e" d="M59,212 L277,212" marker-end="url(#ah1)"/><g class="wl"><rect x="151.7" y="49.4" width="33.6" height="18" rx="9"/><text class="t" x="168.5" y="58.4" dy=".35em" text-anchor="middle">SYN</text></g><g class="wl"><rect x="138.7" y="12.6" width="61.5" height="18" rx="9"/><text class="t" x="169.5" y="21.6" dy=".35em" text-anchor="middle">SYN-ACK</text></g><g class="wl hi"><rect x="151.7" y="49.4" width="33.6" height="18" rx="9"/><text class="t" x="168.5" y="58.4" dy=".35em" text-anchor="middle">ACK</text></g><g class="wl"><rect x="145.5" y="203" width="47.1" height="18" rx="9"/><text class="t" x="169" y="212" dy=".35em" text-anchor="middle">Data1</text></g><g class="wl"><rect x="145.5" y="203" width="47.1" height="18" rx="9"/><text class="t" x="169" y="212" dy=".35em" text-anchor="middle">Data2</text></g><circle class="n" cx="40" cy="40" r="18"/><text class="t" x="40" y="40" dy=".35em" text-anchor="middle">C</text><circle class="n" cx="298" cy="40" r="18"/><text class="t" x="298" y="40" dy=".35em" text-anchor="middle">S</text><circle class="n" cx="40" cy="212" r="18"/><text class="t" x="40" y="212" dy=".35em" text-anchor="middle">A</text><circle class="n" cx="298" cy="212" r="18"/><text class="t" x="298" y="212" dy=".35em" text-anchor="middle">B</text></svg><figcaption style="font-size:.82em;opacity:.72;margin-top:.45rem">Top: connection setup (C client, S server). Bottom: connectionless datagrams sent with no setup (A sender, B receiver)</figcaption></figure>

Key points.

  1. A connection-oriented service has three phases: connection establishment, data transfer and connection release; TCP is the example.
  2. A connectionless service has only data transfer, and each datagram carries the full destination address and is routed independently; UDP over IP is the example.
  3. Connection-oriented service is reliable, since it gives acknowledgements, retransmission and flow control, whereas connectionless service is unreliable with best-effort delivery.
  4. Connection-oriented service delivers data in order over one fixed path, whereas connectionless datagrams may arrive out of order, duplicated or lost.
  5. Connection-oriented service has higher overhead and delay because of setup and state at both ends, and connectionless service has low overhead and is faster.
  6. Connection-oriented service suits file transfer, email and web pages, and connectionless service suits DNS queries, streaming, VoIP and broadcasts.
Basis Connection-oriented Connectionless
Setup Required before data None
Reliability Reliable (ACK, retransmit) Unreliable (best effort)
Ordering In order May be out of order
Path Fixed for the session Each packet independent
Overhead High Low
Example TCP, virtual circuit UDP, IP datagram
Use FTP, email, HTTP DNS, VoIP, video

Answer frame. For the 7-mark difference, open with both definitions, give the table above with seven rows, and close with TCP vs UDP. For the 14-mark short note, write this topic as one of the two options with definition, three phases, diagram, table, and advantages and applications, then pick a second option from Hybrid ARQ, ICMP or SNMP.

Pitfall: Do not say connectionless means no error checking at all; UDP still has an optional checksum, it just does not retransmit.

Asked: [7 marks] (May 2023) Give the difference between connection oriented and connection less services. Asked: [14 marks] (May 2024) Write a short note on any two: (a) Connection Oriented and Connection less services (b) Hybrid ARQ (c) ICMP (d) SNMP

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">Not asked since 2022</span>

Definition. <mark>Service primitives are the basic operations, such as LISTEN, CONNECT, SEND, RECEIVE and DISCONNECT, through which a user process accesses the service provided by a layer.</mark>

Key points.

  1. LISTEN makes the server wait for an incoming connection; CONNECT actively requests one; SEND and RECEIVE transfer data; DISCONNECT releases the connection.
  2. Connection-oriented service uses all five, so both sides know the state of the exchange; connectionless service needs only SEND and RECEIVE, with no setup or release.
  3. Primitives are the interface between a layer and its user, hiding how the service is implemented.
  4. Each primitive is classed as request, indication, response or confirm.

ISO-OSI Reference Model: Principle, Model

<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>The OSI model is a seven-layer reference model from ISO that divides network communication into layers, each with a defined function, so that different systems can interoperate.</mark>

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 389.6" width="338" height="389.6" role="img" aria-label="Host A and Host B; layers 7 Application, 6 Presentation, 5 Session, 4 Transport, 3 Network, 2 Data link, 1 Physical. Dotted peer links are logical, only layer 1 is a real wire; data goes down A, across, and up B with a header added at each layer"><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="M59,40 L279,40"/><path class="e" d="M59,91.6 L279,91.6"/><path class="e" d="M59,143.2 L279,143.2"/><path class="e" d="M59,194.8 L279,194.8"/><path class="e" d="M59,246.4 L279,246.4"/><path class="e" d="M59,298 L279,298"/><path class="e hi" d="M59,349.6 L279,349.6"/><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="91.6" r="18"/><text class="t" x="40" y="91.6" dy=".35em" text-anchor="middle">A6</text><circle class="n" cx="40" cy="143.2" r="18"/><text class="t" x="40" y="143.2" dy=".35em" text-anchor="middle">A5</text><circle class="n" cx="40" cy="194.8" r="18"/><text class="t" x="40" y="194.8" dy=".35em" text-anchor="middle">A4</text><circle class="n" cx="40" cy="246.4" r="18"/><text class="t" x="40" y="246.4" dy=".35em" text-anchor="middle">A3</text><circle class="n" cx="40" cy="298" r="18"/><text class="t" x="40" y="298" dy=".35em" text-anchor="middle">A2</text><circle class="n" cx="40" cy="349.6" r="18"/><text class="t" x="40" y="349.6" 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="91.6" r="18"/><text class="t" x="298" y="91.6" dy=".35em" text-anchor="middle">B6</text><circle class="n" cx="298" cy="143.2" r="18"/><text class="t" x="298" y="143.2" dy=".35em" text-anchor="middle">B5</text><circle class="n" cx="298" cy="194.8" r="18"/><text class="t" x="298" y="194.8" dy=".35em" text-anchor="middle">B4</text><circle class="n" cx="298" cy="246.4" r="18"/><text class="t" x="298" y="246.4" dy=".35em" text-anchor="middle">B3</text><circle class="n" cx="298" cy="298" r="18"/><text class="t" x="298" y="298" dy=".35em" text-anchor="middle">B2</text><circle class="n" cx="298" cy="349.6" r="18"/><text class="t" x="298" y="349.6" dy=".35em" text-anchor="middle">B1</text></svg><figcaption style="font-size:.82em;opacity:.72;margin-top:.45rem">Host A and Host B; layers 7 Application, 6 Presentation, 5 Session, 4 Transport, 3 Network, 2 Data link, 1 Physical. Dotted peer links are logical, only layer 1 is a real wire; data goes down A, across, and up B with a header added at each layer</figcaption></figure>

Key points.

  1. The principle is that a layer is created where a new level of abstraction is needed, with each layer performing a well-defined function.
  2. Each layer uses only the services of the layer directly below and provides services to the layer above.
  3. Peer layers communicate logically using a protocol, and each layer adds a header (the data link layer also adds a trailer) on the sending side, which is called encapsulation.
  4. Layer boundaries are chosen to minimise information flow across interfaces.

Asked: [7 marks] (May 2023) Identify the layers in OSI reference model and illustrate their functions with suitable diagram.

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">Medium weight</span>

Definition. <mark>The seven OSI layers, top to bottom, are Application, Presentation, Session, Transport, Network, Data Link and Physical; TCP/IP compresses them into four layers.</mark>

Layer Function Protocol Device
7 Application Gives user access to network services HTTP, FTP, SMTP, DNS Gateway
6 Presentation Translation, encryption, compression SSL/TLS, JPEG, MPEG Gateway
5 Session Dialogue control, synchronisation NetBIOS, RPC Gateway
4 Transport End-to-end delivery, segmentation, flow and error control TCP, UDP Gateway
3 Network Logical addressing and routing of packets IP, ICMP, OSPF Router
2 Data Link Framing, MAC addressing, error detection Ethernet, PPP, HDLC Switch, bridge
1 Physical Transmission of raw bits over the medium RS-232, Ethernet PHY Hub, repeater, cable

Key points.

  1. TCP/IP has four layers: Application (covering OSI 5-7), Transport, Internet and Network Access (covering OSI 1-2).
  2. OSI is a generic reference model designed before its protocols, while TCP/IP was built around working protocols and the model came afterwards.
  3. OSI makes a clear distinction between services, interfaces and protocols, whereas TCP/IP does not.
  4. OSI supports both connection-oriented and connectionless service in the network layer but only connection-oriented in the transport layer, whereas TCP/IP supports only connectionless in the internet layer but both in transport.
  5. TCP/IP is more relevant today because the Internet runs on it, and OSI protocols were never widely adopted; OSI survives as a teaching model.
Basis OSI TCP/IP
Layers 7 4
Approach Model first, protocols later Protocols first, model later
Session/Presentation Separate layers Merged into Application
Transport service Connection-oriented only TCP and UDP
Usage Reference and teaching Real internet

Answer frame. For the seven layers, open with the top-to-bottom list, give the table row by row, and close with the encapsulation flow. For the comparison, draw the two stacks side by side, give the five-row table, and close with why TCP/IP is more relevant today.

Asked: [7 marks] (May 2024) Describe each of the seven layers of the ISO/OSI model. For each layer explain its function and provide examples of protocols and devices associated with it. Asked: [7 marks] (Jun 2025) Compare and contrast the OSI and TCP/IP reference models in detail. Which model is more relevant in today's networking environment and why?

Principals of physical layer: Media, Bandwidth, 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. <mark>Data rate is the number of bits per second sent over a channel, and bandwidth is the range of frequencies the channel passes, measured in hertz; more bandwidth allows a higher data rate.</mark>

Formula.

$$C = 2B\log_2 L \quad \text{(Nyquist, noiseless)}$$

$$C = B\log_2(1+\mathrm{SNR}) \quad \text{(Shannon, noisy)}$$

Key points.

  1. In Nyquist's formula $B$ is bandwidth in Hz and $L$ is the number of signal levels, so doubling the bandwidth or adding levels raises the maximum data rate.
  2. Shannon's formula gives the absolute capacity of a noisy channel, where SNR is the signal-to-noise power ratio; raising the signal levels cannot beat it.
  3. Noise limits the data rate because with more levels the levels lie closer together and noise makes them indistinguishable.
  4. Media are guided (twisted pair, coaxial, optical fibre) or unguided (radio, microwave, satellite).
  5. Modulation (ASK, FSK, PSK) changes amplitude, frequency or phase of a carrier to send digital data over an analog channel.

Example. For $B=3000$ Hz and SNR $=1000$: $C=3000\log_2(1001)\approx 3000\times9.97\approx$ 29.9 kbps.

Asked: [7 marks] (May 2024) Explain the concept of data rate in the context of the physical layer. How is data rate related to the bandwidth of a communication channel? Explain.

Last-minute revision

  • A computer network is autonomous computers interconnected to share data and resources.
  • Links for N nodes: bus $N-1$, ring $N$, star $N$, mesh $N(N-1)/2$; for N=20 these are 19, 20, 20 and 190.
  • At $100 per link, N=20 costs $1,900 (bus), $2,000 (ring), $2,000 (star) and $19,000 (mesh).
  • PAN is about 10 m, LAN is a building, MAN is a city, WAN is a country or larger.
  • Connection-oriented has setup, data and release phases (TCP); connectionless has independent datagrams (UDP).
  • The five primitives are LISTEN, CONNECT, SEND, RECEIVE and DISCONNECT.
  • OSI layers from the top: Application, Presentation, Session, Transport, Network, Data Link, Physical.
  • Router works at layer 3, switch at layer 2, hub at layer 1.
  • TCP/IP has four layers: Application, Transport, Internet, Network Access.
  • Nyquist: $C=2B\log_2 L$; Shannon: $C=B\log_2(1+\mathrm{SNR})$.
  • Design issues: addressing, error control, flow control, multiplexing, routing.

Memory hooks

  • OSI top-down: "All People Seem To Need Data Processing"; bottom-up: "Please Do Not Throw Sausage Pizza Away".
  • Topology links: bus is N minus one, ring and star are N, mesh is half of N times N minus one.
  • TCP is a phone call (setup, talk, hang up); UDP is a postcard.
  • Nyquist is noiseless, Shannon is noisy: "S for stuff in the noise".

Coverage checklist

  • Computer Network: Definitions, goals, components: definition, goals, hardware and software (May 2024 explain).
  • Architecture, Classifications & Types: PAN/LAN/MAN/WAN, topology link and cost numerical (Jun 2025, two questions).
  • Layered Architecture: Protocol hierarchy: peers, stack, encapsulation (no past question).
  • Design Issues, Interfaces and Services: design issues (May 2023).
  • Connection Oriented & Connectionless Services: difference table (May 2023), short note (May 2024).
  • Service primitives: five primitives, significance (no own question; used in Jun 2025 classification question).
  • ISO-OSI Reference Model: Principle, Model: layers with diagram (May 2023).
  • Descriptions of various layers and its comparison with TCP/IP: seven layers (May 2024), OSI vs TCP/IP (Jun 2025).
  • Principals of physical layer: Media, Bandwidth, Data rate and Modulations: data rate, bandwidth, Nyquist, Shannon (May 2024).
Go to where you left off?

Quick Add to Notes

Save questions, your own notes and screenshots into notes filed by unit. It takes a free account.

Create free account

Have an account? Log in