Computer Science

OSI and TCP/IP Reference Models, Topologies and Network Architectures — Class 12 Computer Science Notes

Both reference models, all six topologies, and client/server versus peer-to-peer — explained from one real HTTP request captured and decoded packet by packet on a connection in Kathmandu.

By 25 min read

Diagram card: OSI and TCP/IP models, topologies and network architectures
On this page

Every computer science syllabus in the world teaches the OSI model as seven layers, draws three topologies on a whiteboard, and moves on. You memorise “Please Do Not Throw Sausage Pizza Away”, you write it in the exam, and you still could not tell anyone what the network actually did when you opened this page.

This guide takes the other route. Everything below is explained from a single real HTTP request, captured packet by packet on a laptop in Kathmandu, decoded byte by byte, and traced hop by hop across WorldLink’s network to a Cloudflare edge server. Every number you see — 14 bytes of Ethernet header, a 28.6 ms round trip, 9 router hops, 46.8% protocol overhead — was measured, not copied from a textbook.

It covers the definition of a network, both reference models (OSI and TCP/IP), all six topologies, and the two architectural models — client/server and peer-to-peer. It is written to be read by a Class 12 NEB student the night before an exam, and to still be worth reading by a BSc CSIT or BIT student who wants to know what is genuinely happening.

Already read our main unit note? This is the companion piece. The broader chapter — transmission modes, media, impairments, connecting devices, IP addressing — lives in Data Communication and Networking — Class 12. This article goes deep on the parts that note covers quickly: the two reference models, topologies, and network architectures.

What this guide covers

What a computer network actually is

Definition. A computer network is a collection of two or more autonomous computing devices connected by a transmission medium and governed by a common set of protocols, so that they can exchange data and share resources.

In plain words: two or more independent computers that can talk to each other, using rules both sides agree on.

Four words in that definition carry all the weight, and examiners award marks for all four.

RequirementWhat it meansWhy it matters
AutonomousNo device controls another’s power or processorA CPU and its RAM are connected, but they are not a network. A printer that only works when one PC is on is a peripheral, not a node.
Transmission mediumA physical path — copper, fibre, or radioWithout a shared medium there is no network, only two isolated machines.
ProtocolAn agreed set of rules for format, timing, and meaningTwo computers wired together but speaking different protocols exchange nothing useful.
Resource sharingData, hardware, or services made available to othersThis is the purpose. A network with nothing shared has no reason to exist.

Table 1. The four conditions in the definition of a computer network.

Exam trap. “Autonomous” is the word most students drop, and it is the word that separates a network from a multiprocessor system. A master–slave arrangement, where one machine can forcibly start or stop another, is not a network by this definition.

Why there are two reference models, not one

Students are often confused that the syllabus teaches two models for the same thing. The confusion disappears once you know they were built for opposite reasons.

The OSI model (Open Systems Interconnection) was published by the ISO in 1984 as a committee’s prescription: here is how networks ought to be built. It is clean, symmetric, and complete. Almost nothing on the internet implements it exactly.

The TCP/IP model was a description written after the fact. ARPANET engineers built working protocols first and documented the layering afterwards. It is lopsided and inelegant. It is also what every device you own actually runs.

The one-line version: OSI is the model we teach; TCP/IP is the model we run. You need OSI to describe and diagnose a network precisely, and TCP/IP to understand what is on the wire.

The OSI reference model

Seven layers, numbered from the physical wire upward. Each layer provides a service to the layer above it and consumes the service of the layer below, and — crucially — each layer on one machine has a logical conversation with the same layer on the other machine.

#LayerIts one real jobUnit of dataReal examples
7ApplicationProvide network services directly to the user’s programData / MessageHTTP, SMTP, FTP, DNS
6PresentationTranslate, encrypt, compress — make bytes mean the same on both endsDataTLS, JPEG, ASCII, Unicode
5SessionOpen, manage, synchronise and close a dialogueDataNetBIOS, RPC, checkpointing
4TransportEnd-to-end delivery between processes; reliability and flow controlSegment (TCP) / Datagram (UDP)TCP, UDP
3NetworkLogical addressing and routing across multiple networksPacketIP, ICMP, OSPF
2Data LinkNode-to-node delivery on one link; physical addressing; error detectionFrameEthernet, Wi-Fi (802.11), PPP
1PhysicalPut raw bits onto the medium as signalsBitCables, radio, voltages, connectors

Table 2. The seven OSI layers, their responsibilities, and their protocol data units (PDUs).

In plain words: Layer 1 moves bits. Layer 2 gets them across one hop. Layer 3 gets them across the world. Layer 4 gets them to the right program. Layers 5–7 make them mean something to a human.

The boundary that actually matters

Layers 1–3 are concerned with getting data from this machine to that machine. Every router along the path reads and rewrites them. Layers 4–7 are end-to-end: no router in the middle is supposed to look at them. That single distinction explains routing, firewalls, NAT, and most of network security.

The TCP/IP reference model

Four layers. It merges OSI’s top three into one, and (in the classic four-layer description) merges OSI’s bottom two into one.

#LayerCovers OSI layersIts jobProtocols
4Application5, 6, 7Everything the application needs — formatting, sessions, semanticsHTTP, DNS, SMTP, FTP, SSH
3Transport4Process-to-process delivery; reliable (TCP) or fast (UDP)TCP, UDP
2Internet3Logical addressing and routing between networksIP, ICMP, ARP
1Network Access
(Link)
1, 2Deliver across one physical linkEthernet, Wi-Fi, PPP

Table 3. The four TCP/IP layers and the OSI layers they absorb.

Why did the inelegant model win? Because it shipped. TCP/IP had working, free, well-documented implementations running on real networks while the OSI protocol suite was still being standardised by committee. The model that had code beat the model that had a specification.

Side-by-side comparison of the OSI seven-layer model and the TCP/IP four-layer model The OSI model’s seven layers on the left are mapped onto the TCP/IP model’s four layers on the right. OSI layers 7, 6 and 5 map to the TCP/IP Application layer. OSI layer 4 maps to Transport. OSI layer 3 maps to Internet. OSI layers 2 and 1 map to Network Access. OSI model (7 layers) TCP/IP model (4 layers)

7 · ApplicationHTTP, DNS, SMTP 6 · PresentationTLS, JPEG, Unicode 5 · SessionRPC, NetBIOS 4 · TransportTCP, UDP · segments 3 · NetworkIP, ICMP · packets 2 · Data LinkEthernet, Wi-Fi · frames 1 · Physicalcable, radio · bits

Application absorbs OSI 7 + 6 + 5 HTTP, DNS, SMTP, SSH, FTP one layer, because real applications never separated these cleanly

TransportTCP, UDP · ports identify processes

InternetIP · routing between networks

Network Access absorbs OSI 2 + 1 Ethernet, Wi-Fi 802.11, PPP frames and the signals that carry them

OSI describes; TCP/IP runs

Figure 1. The two models aligned. OSI’s top three layers collapse into TCP/IP’s single Application layer, and its bottom two collapse into Network Access. Only Transport and Network/Internet map one-to-one — which is exactly why those two are the layers people argue about least.

OSI vs TCP/IP: a straight comparison

BasisOSI modelTCP/IP model
Number of layers74 (sometimes drawn as 5)
Developed byISO, 1984US DoD / ARPANET, 1970s–80s
ApproachModel first, protocols laterProtocols first, model later
NaturePrescriptive, theoretical referenceDescriptive, practical standard
Protocol dependenceGeneric — protocols can be swappedBuilt around TCP and IP specifically
Layer independenceStrictly separatedLayers overlap in practice
Transport guaranteeConnection-oriented only at transportBoth connection-oriented (TCP) and connectionless (UDP)
Session & presentationSeparate layersMerged into Application
Real-world useTeaching, documentation, troubleshootingEvery device on the internet

Table 4. OSI versus TCP/IP — the comparison most commonly asked as a 4-mark or 5-mark question.

One real request, decoded layer by layer

Here is the part no textbook gives you. On a laptop in Kathmandu connected over Wi-Fi, we captured every packet of a single plain HTTP request and decoded the raw bytes ourselves — no Wireshark GUI, just a short Python script reading the capture file directly, so that every offset below is explicit.

The entire conversation took 12 frames and 0.37 seconds.

#1    0.0000s  192.168.18.13:54686 -> 172.66.147.243:80   SYN        L7=0b    ttl=64
#2    0.0286s  172.66.147.243:80   -> 192.168.18.13:54686 SYN/ACK    L7=0b    ttl=55
#3    0.0286s  192.168.18.13:54686 -> 172.66.147.243:80   ACK        L7=0b    ttl=64
#4    0.0288s  192.168.18.13:54686 -> 172.66.147.243:80   ACK/PSH    L7=75b   ttl=64
#5    0.1308s  172.66.147.243:80   -> 192.168.18.13:54686 ACK        L7=0b    ttl=55
#6    0.1311s  172.66.147.243:80   -> 192.168.18.13:54686 ACK/PSH    L7=932b  ttl=55
#7    0.1311s  172.66.147.243:80   -> 192.168.18.13:54686 ACK/PSH    L7=5b    ttl=55
#8    0.1311s  192.168.18.13:54686 -> 172.66.147.243:80   ACK        L7=0b    ttl=64
#9    0.1311s  192.168.18.13:54686 -> 172.66.147.243:80   ACK        L7=0b    ttl=64
#10   0.1313s  192.168.18.13:54686 -> 172.66.147.243:80   ACK/FIN    L7=0b    ttl=64
#11   0.3689s  172.66.147.243:80   -> 192.168.18.13:54686 ACK/FIN    L7=0b    ttl=55
#12   0.3689s  192.168.18.13:54686 -> 172.66.147.243:80   ACK        L7=0b    ttl=64

Read it as three acts:

  • Frames 1–3 — the three-way handshake. SYN, SYN/ACK, ACK. This is TCP (OSI Layer 4) establishing a connection before a single byte of the web request is sent. The gap between frame 1 and frame 2 is 28.6 ms — that is one full round trip to the server and back, and it is the price of using TCP rather than UDP.
  • Frames 4–9 — the actual conversation. Frame 4 carries 75 bytes: the HTTP GET. Frame 6 carries 932 bytes: the HTML response. Everything else is acknowledgement.
  • Frames 10–12 — the teardown. FIN from each side, each acknowledged.

Now take frame 4 — the one carrying the request — completely apart. This is the whole of the OSI model in 141 bytes:

==== FRAME #4 TAKEN APART ====
wire length            : 141 bytes

[L2] Ethernet II  bytes 0-13    (14 bytes)
     dst MAC   6c:14:6e:xx:xx:xx        <- the Wi-Fi router
     src MAC   b0:fc:36:xx:xx:xx        <- this laptop
     ethertype 0x0800 (IPv4)

[L3] IPv4         bytes 14-33   (20 bytes)
     version 4  IHL 5  total length 127  TTL 64  proto 6 (TCP)
     src IP    192.168.18.13
     dst IP    172.66.147.243

[L4] TCP          bytes 34-65   (32 bytes)
     src port 54686  dst port 80
     seq 3505045067  ack 2739234358  flags ACK/PSH  window 63

[L7] HTTP         bytes 66-140  (75 bytes)
     | GET / HTTP/1.1
     | Host: example.com
     | User-Agent: curl/8.22.0
     | Accept: */*
     |

This is the single most useful thing in this article. Those four blocks are not an analogy for the OSI model — they are the OSI model, as bytes, in order, on a real wire. Layer 2 is bytes 0–13. Layer 3 is bytes 14–33. Layer 4 is bytes 34–65. Layer 7 is bytes 66–140. Layers 5 and 6 occupy zero bytes here, because plain HTTP uses neither — which is precisely why OSI is a reference model and TCP/IP’s merged Application layer is the honest description.

What each header is for, read off the real capture

Field (from the capture)LayerWhat it does
dst MAC 6c:14:6e:…2Addresses the next hop only — the Wi-Fi router in the room. It is rewritten at every hop.
ethertype 0x08002Tells Layer 2 which Layer 3 protocol is inside. 0x0800 = IPv4.
dst IP 172.66.147.2433Addresses the final destination. Unchanged end to end (barring NAT).
TTL 643Decremented by one at every router. At zero the packet is discarded — this is what stops routing loops lasting forever.
proto 63Tells Layer 3 which Layer 4 protocol is inside. 6 = TCP, 17 = UDP.
dst port 804Identifies the process on the destination machine. Port 80 = the web server.
src port 546864A temporary port so replies find the right program on this laptop.
seq / ack4Byte counters that let TCP detect loss and restore ordering.
GET / HTTP/1.17The actual request a human would recognise.

Table 5. Every header field above was read from the captured frame. MAC addresses are partly masked for privacy.

Notice the pattern: each layer’s header contains a pointer to the next layer up. Ethertype points to IPv4; the IP protocol field points to TCP; the TCP port points to the web server. That chain is how a receiving machine knows how to unwrap what it was sent, and it is the mechanism the whole layering idea rests on.

Counting the hops without leaving your chair

Our outgoing packets left with TTL 64. The replies arrived with TTL 55. Since every router decrements TTL by exactly one, the server is 64 − 55 = 9 router hops away. We confirmed it with a traceroute, which found the path in 12 hops (traceroute counts the destination and a couple of non-responding hops that TTL arithmetic does not).

Encapsulation, measured

Encapsulation is the process by which each layer wraps the data it receives from the layer above in its own header before passing it down. Decapsulation is the reverse, performed on the way up at the receiver.

In plain words: like putting a letter in an envelope, that envelope in a courier bag, and the bag in a truck. Each layer only reads its own wrapper.

Encapsulation of a 75-byte HTTP request into a 141-byte Ethernet frame Four stacked bars show data growing as it descends the layers. The HTTP request of 75 bytes gains a 32-byte TCP header to become a 107-byte segment, then a 20-byte IP header to become a 127-byte packet, then a 14-byte Ethernet header to become a 141-byte frame on the wire. Encapsulation, with the real byte counts from frame #4

L7 Application HTTP request · 75 B = 75 bytes

L4 Transport TCP 32 B HTTP 75 B segment = 107 bytes

L3 Network IP 20 TCP 32 HTTP 75 B packet = 127 bytes

L2 Data Link Eth 14 IP 20 TCP 32 HTTP 75 B frame = 141 bytes on the wire

66 bytes of headers to carry 75 bytes of data — 46.8% overhead On the 932-byte response frame the same 66 bytes is only 6.6% — which is why large transfers are far more efficient.

Figure 2. Encapsulation with measured values. The 75-byte HTTP request acquired 66 bytes of headers on its way down the stack — Ethernet 14 + IP 20 + TCP 32 — to become a 141-byte frame. Protocol overhead on this frame is 46.8%.

Why the TCP header is 32 bytes, not 20. The minimum TCP header is 20 bytes. Our capture shows 32 because modern Linux adds 12 bytes of TCP options — timestamps, window scaling, selective acknowledgement. Textbooks almost always say “20 bytes”; real captures almost never show 20. If you are asked for the minimum, say 20; if you are asked what you measured, say 32 and explain why.

Network topologies

Definition. A network topology is the arrangement by which nodes are interconnected. Physical topology is how the cables and devices are actually laid out; logical topology is the path the data actually takes. The two are frequently different, and that difference is an exam favourite.

Diagrams of bus, ring, star and mesh network topologies Four topology diagrams. Bus: nodes attached along a single backbone line with terminators. Ring: nodes connected in a closed loop. Star: all nodes connected to one central hub. Mesh: four nodes each connected to every other node. Bus one backbone, two terminators cheapest · one break kills all

Ring closed loop, data in one direction orderly · one break kills all

Star HUB every node to one centre easy to fix · hub is the weak point

Mesh every node to every node most reliable · most expensive

Cable count for n nodes — bus: 1 backbone · ring: n · star: n · full mesh: n(n−1)/2 For 10 nodes a full mesh needs 45 links. For 50 nodes it needs 1,225. This is why mesh is reserved for backbones. Tree = a hierarchy of stars. Hybrid = any mixture, which is what nearly every real network is.

Figure 3. The four primary topologies. Tree and hybrid are combinations rather than distinct shapes — a tree is stars connected into a hierarchy, and a hybrid is whatever mixture a real building ends up with.
TopologyLinks for n nodesAdvantagesDisadvantagesWhere you still see it
Bus1 backboneCheapest; least cable; simple to extendOne break disables the whole network; collisions rise with load; hard to fault-findLegacy 10BASE-2; some industrial and automotive buses (CAN)
RingnNo collisions (token passing); predictable performance under loadOne break disables the ring unless dual-ring; adding a node interrupts serviceFibre metro rings (SDH/SONET), FDDI historically
StarnOne failed cable affects one node; easy to add, remove and diagnoseCentral device is a single point of failure; more cable than busEssentially every modern LAN, wired and Wi-Fi
Meshn(n−1)/2Highest fault tolerance; multiple paths; no central bottleneckCost and cabling grow quadratically; complex to configureISP backbones, the internet core, Wi-Fi mesh kits (partial mesh)
Treen − 1Scales hierarchically; good for campus and multi-floor buildingsFailure of a high-level node isolates everything beneath itCampus networks; a college with switches per floor
HybridvariesCombines strengths; pragmaticHardest to design and documentAlmost every real organisation

Table 6. The six topologies compared, including the link-count formula that is a frequent numerical question.

The physical-versus-logical trap

Classic Ethernet over a hub is wired as a star — every cable runs to one central box — but behaves as a bus, because a hub repeats every incoming signal out of every other port, so all nodes share one collision domain. Physically a star, logically a bus. Examiners love this.

Replace the hub with a switch and the physical topology is unchanged, but the logical topology becomes point-to-point: the switch reads the destination MAC address (that Layer 2 field from our capture) and forwards the frame only to the correct port. This is the single biggest practical difference between a hub and a switch, and it is why hubs have disappeared.

Our own test network demonstrates it. The laptop’s neighbour table had exactly one entry — the router at 192.168.18.1. Every device in the house connects to that one access point and to nothing else directly. That is a star, with the router at the centre, even though not a single cable is involved.

Client/server and peer-to-peer

Topology describes how machines are wired. Architecture describes how they relate. A network can be a physical star and run either architecture over it.

Client-server architecture compared with peer-to-peer architecture On the left, four client devices all connect to a single central server. On the right, five peers each connect to several others, with no central machine; every peer both requests and provides. Client / Server SERVER always on clients only request · server only provides central control · central point of failure

Peer to Peer every peer both requests and provides no central control · no single point of failure

Figure 4. The two architectural models. In client/server, roles are fixed and asymmetric. In peer-to-peer, every node is both client and server, so capacity grows as nodes join rather than shrinking.

Client/server model

One or more machines are dedicated servers that hold resources and wait for requests. The rest are clients that request them. Roles are fixed: a client never serves, a server never asks.

In plain words: a restaurant. Customers order, the kitchen cooks. Nobody confuses the two roles.

The capture earlier is a client/server exchange in its purest form. The laptop opened a connection to port 80 — it did not wait to be contacted. The server was already listening on a well-known port before the laptop existed. That asymmetry is the architecture.

Peer-to-peer model

Every node is equal, acting as client and server simultaneously. There is no dedicated server; each peer contributes storage, bandwidth, or processing.

In plain words: a potluck dinner. Everyone brings food and everyone eats.

The property that makes P2P remarkable is that capacity scales with demand. In client/server, each additional client consumes a share of a fixed server capacity, so performance degrades as popularity grows. In P2P, each new peer brings its own upload bandwidth, so a more popular file can download faster. This is why BitTorrent was used to distribute Linux images and game patches, and why it survives.

BasisClient/ServerPeer-to-Peer
RolesFixed and distinctEvery peer is both
CostHigh — dedicated server hardwareLow — ordinary machines
ScalabilityServer becomes the bottleneckCapacity grows with peers
Data securityStrong — centrally administeredWeak — each peer governs itself
Backup & consistencyCentralised and straightforwardDistributed and difficult
Point of failureThe serverNone single; network degrades gracefully
AdministrationNeeds an administratorMinimal
Best forOrganisations, banks, websites, databasesFile sharing, blockchain, small home/office networks
ExamplesWeb (HTTP), email, DNS resolvers, online bankingBitTorrent, Bitcoin, IPFS, Windows HomeGroup

Table 7. Client/server versus peer-to-peer — a standard 5-mark comparison.

A common misconception. “P2P has no servers” is wrong. Every peer is a server. The accurate statement is that P2P has no dedicated server. And many real systems are hybrids: BitTorrent still uses trackers, and Skype originally used supernodes. Pure architectures are rarer than textbooks imply.

If this interests you, the trade-offs get far deeper once data is involved — see Distributed Database Concepts and The CAP Theorem, Properly, which explain what you must give up when a system has no single authoritative machine. For how these choices are made in practice, System Design for Beginners walks through the reasoning.

What this looks like from Nepal

Reference models feel abstract until you watch your own packets leave the country. Here is the real traceroute from the laptop used for this article, on a home WorldLink connection in Kathmandu:

 1  _gateway (192.168.18.1)                               12.6 ms
 2  100.123.0.1                                           12.8 ms
 3  103.98.130.1                                          13.2 ms
 4  103.98.128.235                                        28.2 ms
 5  ae-8-32.42.gwmj-lahn-01.wlink.com.np                  13.1 ms
 6  ae-4-182.42.gwmj-dkbr-01.wlink.com.np                 13.1 ms
 7  ae-20-104.41.gwmj-sctr-01.wlink.com.np                14.2 ms
 8  ae-102-80.37.gwj-mtdc-core-01.wlink.com.np            15.1 ms
 9  *
10  *
11  11.151.211.103.dynamic.wlink.com.np                   27.6 ms
12  104.20.23.154  (Cloudflare edge)                      27.8 ms

Read what the layers are doing:

  • Hop 1 is the Wi-Fi router in the room — the only device this laptop can reach at Layer 2. Everything beyond it is reachable only because of Layer 3.
  • Hop 2, 100.123.0.1, is in the 100.64.0.0/10 range reserved for carrier-grade NAT. This is the ISP sharing one public IPv4 address among many subscribers — a direct consequence of IPv4 exhaustion, and something most Nepali home connections sit behind.
  • Hops 5–8 are WorldLink’s own backbone routers. The names are readable: gwmj-lahn, gwmj-dkbr, gwmj-sctr, gwj-mtdc-core — aggregated Ethernet links between core sites, ending at a data-centre core router.
  • Hops 9–10 show *: those routers are configured not to reply to probes. Silence is not failure — the packet still passed through.
  • Hop 12 is a Cloudflare edge server, reached in 27.8 ms.

The number worth noticing. Hops 1–8 — the entire journey across Nepal — cost about 15 ms. The last few hops roughly doubled it. Nepal has no Cloudflare data centre of its own, so content is typically served from India or Singapore. When a site “feels slow in Nepal”, this is usually why, and no amount of local optimisation changes it. Caching and CDN choice do.

Exam section

Definitions worth memorising exactly

  • Computer network: a collection of two or more autonomous computing devices connected by a transmission medium and governed by common protocols to exchange data and share resources.
  • Protocol: a set of rules governing the format, timing, sequencing and error control of data communication.
  • OSI model: a seven-layer reference model published by ISO in 1984 that standardises the functions of a communication system without regard to its underlying technology.
  • TCP/IP model: a four-layer practical model — Application, Transport, Internet, Network Access — on which the internet is built.
  • Topology: the arrangement by which nodes in a network are interconnected, physically or logically.
  • Encapsulation: the process in which each layer adds its own header to the data received from the layer above before passing it down.
  • Client/server model: an architecture in which dedicated servers provide resources and clients request them, with fixed roles.
  • Peer-to-peer model: an architecture in which every node acts as both client and server, with no dedicated server.

Likely questions

Group B — short answer (5 marks)

  • Explain the OSI reference model with a diagram. (Draw all seven, name the PDU at each, give one protocol each — the diagram alone is rarely full marks.)
  • Differentiate between the OSI and TCP/IP reference models. (Use Table 4; four or five points of difference.)
  • What is topology? Explain star topology with its advantages and disadvantages.
  • Differentiate between client/server and peer-to-peer architecture.
  • What is encapsulation? Explain with an example. (The 75 → 141 byte walk is a complete answer.)

Group C — long answer (8 marks)

  • Explain the seven layers of the OSI model in detail, stating the function of each layer and one protocol that operates there.
  • Describe the various network topologies with diagrams, comparing cost, reliability and ease of fault isolation.
  • What are reference models? Compare OSI and TCP/IP, and explain why TCP/IP is used in practice.

Mistakes that cost marks

MistakeCorrection
Writing the OSI layers upside down without labellingAlways number them. Layer 1 is Physical, Layer 7 is Application. State the direction you are drawing.
Saying the TCP/IP model has five layersThe classic model has four. A five-layer version exists in some textbooks that splits Network Access — mention it, but answer four unless told otherwise.
Confusing MAC and IP addressingMAC is Layer 2 and changes at every hop; IP is Layer 3 and stays the same end to end.
Calling a switch-based network a busIt is a physical star. Only a hub-based network is logically a bus.
Saying P2P has no serversIt has no dedicated server. Every peer acts as one.
Mixing up topology and architectureTopology = physical/logical layout. Architecture = client/server or P2P. A star network can run either.
Forgetting the PDU namesBit, frame, packet, segment, data — a guaranteed mark in many papers.
Writing that the session and presentation layers “do nothing”They are merged in TCP/IP, not absent. TLS and data formatting are genuine Layer 6 functions.

Table 8. The errors that appear most often in answer scripts on this chapter.

Frequently asked questions

Is the OSI model actually used anywhere, or is it only for exams?

It is used constantly — as vocabulary. Network engineers say “that’s a Layer 2 problem” or “a Layer 7 firewall” every day, and those phrases are precise. What is not used is the OSI protocol suite. The model survived; its protocols did not.

Which model should I write in the exam if the question doesn’t specify?

OSI, unless the question mentions the internet or TCP/IP explicitly. OSI is the default teaching model and gives you seven layers to earn marks on rather than four.

Why does TCP need a three-way handshake?

So both sides agree on starting sequence numbers and confirm the other is reachable and willing. Our capture shows the cost directly: 28.6 ms elapsed before a single byte of the request was sent. UDP skips this, which is why DNS, video calls and games prefer it.

What is the difference between a hub, a switch and a router?

A hub is Layer 1 and repeats signals to every port. A switch is Layer 2 and forwards frames using MAC addresses. A router is Layer 3 and forwards packets between different networks using IP addresses. The layer each one works at is the difference.

Which network topology is best?

Star, for almost every LAN — a single failed cable affects a single node, and fault-finding is simple. Mesh is better for reliability but the link count grows as n(n−1)/2, which is why it is reserved for backbones.

Can a network use both client/server and peer-to-peer?

Yes, and most do. A college might run client/server for its file and web servers while staff share printers peer-to-peer. The architectures describe relationships between processes, not the whole network.

How do I practise this myself?

On Linux or macOS, run traceroute example.com and ip neigh. On Windows, tracert example.com and arp -a. You will see your own Layer 2 neighbours and your own Layer 3 path within seconds. Cisco Packet Tracer lets you build and break topologies without hardware.

Final word

The reason the OSI model is worth learning is not that it appears in the exam. It is that it gives you a place to stand when something breaks. A page will not load: is the Wi-Fi associated (Layer 1–2)? Does the name resolve (Layer 7)? Does the IP respond to ping (Layer 3)? Is the port open (Layer 4)? Does the server return an error (Layer 7)? Five questions, five layers, and you have isolated almost any fault on any network.

That is what the seven boxes are actually for. Memorise them for the exam by all means — but the capture above is the thing worth keeping: 141 bytes, four headers, each one pointing at the next, carrying 75 bytes of a human-readable request across nine routers and out of the country in under thirty milliseconds.