Home › Modules › Module 01

🌐 Module 01 · Networking & the OSI Model

Networking Basics, the OSI Model, Transmission Media, TCP/IP, Topologies, Ethernet, Network Hardware and WANs

6 hours11 practice questions 6 sections

🎯 By the end of this module you should be able to…

  • Explain why networks are built in layers, and name all seven OSI layers in order.
  • Say what each layer adds to the data, and name the PDU at each level — data, segment, packet, frame, bits.
  • Compare the OSI model with the four-layer TCP/IP model that the internet actually runs on.
  • Choose between copper, fibre and wireless media, and explain attenuation, noise and bandwidth.
  • Recognise the common topologies and know why star topology won.
  • Tell a hub from a switch from a router, and match each to its OSI layer.
  • Describe the main WAN and remote-connectivity options and where each is still used.

Why networks are built in layers

A message going from your laptop to a server crosses several completely different problems at once: which application should receive it, which machine on the planet is it for, which cable or radio link carries it next, and how do you turn it into electricity or light. Solving all of that in one piece of software would be unmaintainable.

So networking is split into layers. Each layer solves one problem, and only talks to the layer directly above and below it. That gives three big wins:

  • 🔧You can swap one layer without touching the others Move from Wi-Fi to Ethernet and Layers 3 to 7 do not change at all.
  • 🧩Vendors can interoperate A Cisco router and a TP-Link switch work together because both obey the same layer boundaries.
  • 🔍Troubleshooting has an order Is the cable in? Is there an IP? Is the port open? You debug bottom-up, one layer at a time.
Standards bodies

The rules come from organisations, not from one company. ISO published the OSI reference model. IEEE defines 802.3 (Ethernet) and 802.11 (Wi-Fi). IETF publishes the RFCs that define IP, TCP and HTTP. ANSI and TIA/EIA define the cabling.

The seven layers of OSI

Read it from the top down when you are sending, and from the bottom up when you are receiving.

7 · Application 6 · Presentation 5 · Session 4 · Transport 3 · Network 2 · Data Link 1 · Physical HTTP, DNS, SMTP, FTP Encoding, compression, TLS Start, maintain, end a session TCP / UDP, ports IP addresses, routing MAC addresses, switching Cables, radio, voltage, light DataDataData SegmentPacket FrameBits SENDING ↓
Each layer adds its own header; the receiver strips them off in reverse order.
LayerNameMain responsibilityAddress / control infoPDU
7ApplicationNetwork services for applicationsHTTP, DNS, SMTP protocol dataData
6PresentationFormat, encoding, encryption, compressionDepends on protocol (TLS, JPEG, ASCII)Data
5SessionEstablish, manage and end sessionsSession-control informationData
4TransportProcess-to-process deliveryTCP / UDP header — portSegment / Datagram
3NetworkHost-to-host delivery across networksIP header — IP addressPacket
2Data LinkNode-to-node delivery on the local linkEthernet header + trailer — MACFrame
1PhysicalPut bits on the mediumNo header — voltage, light, radioBits
A correction worth making in class

Layers 5, 6 and 7 do not each stamp a fixed header the way TCP and Ethernet do. Their functions are carried out by application protocols and libraries. Teaching "Layer 6 always adds a presentation header" is misleading — TLS, for example, does not map cleanly onto OSI Layer 6 at all.

How to remember the order

Top-down: All People Seem To Need Data Processing.
Bottom-up: Please Do Not Throw Sausage Pizza Away.

🧅 See one HTTPS request travel all seven layers →

The TCP/IP model — what the internet really uses

OSI is the teaching model. The internet was built on the TCP/IP model, which collapses the seven layers into four. Both are correct; they are describing the same journey at different resolutions.

TCP/IP layerMaps to OSIExamples
Application7, 6, 5HTTP, HTTPS, DNS, SMTP, FTP, SSH, DHCP
Transport4TCP, UDP
Internet3IP, ICMP, ARP
Network Access (Link)2, 1Ethernet, Wi-Fi, PPP, fibre, copper

TCP versus UDP — the one comparison you must know

TCPUDP
ConnectionConnection-oriented — three-way handshake firstConnectionless — just send
ReliabilityAcknowledged, retransmitted, orderedBest effort; loss is not detected
Speed / overheadSlower, 20-byte header, more chatterFaster, 8-byte header
Good forWeb, email, file transfer, SSH, databasesDNS lookups, video and voice, gaming, DHCP

Ports you should recognise on sight

🌐80 / 443HTTP and HTTPS
🗝️22SSH — how you reach a Linux EC2 instance
🔎53DNS — usually UDP, TCP for large answers
📧25 / 587SMTP — sending mail
📁20 / 21FTP data and control
🖥️3389RDP — Windows remote desktop
🗃️3306 / 5432MySQL and PostgreSQL
📡67 / 68DHCP server and client
Why this matters in AWS

Every security group rule you will ever write is a combination of protocol + port + source. Allowing 22 from your own IP, 80 and 443 from anywhere, and nothing else, is the standard starting point for a web server. You cannot write that rule without knowing these ports.

Transmission media

Whatever the layer above believes, something physical carries the signal. Three families, three trade-offs.

MediumHow it carries dataTypical distanceStrengthsWeaknesses
Twisted pair (UTP/STP)Electrical signal on copper pairs100 m per runCheap, easy to terminate, everywhereDistance limit, EMI, eavesdropping
CoaxialElectrical, single core with shieldHundreds of metresWell shielded, long runsBulky, largely legacy in LANs
Fibre opticPulses of light in glass2 km multimode, 40 km+ single-modeHuge bandwidth, immune to EMI, secureCostly, fragile, needs skill to splice
WirelessRadio waves through airTens of metres indoorsNo cabling, mobilityShared medium, interference, security

Copper cable categories

CategorySpeedBandwidthWhere you see it
Cat 5e1 Gbps100 MHzOlder offices, still very common
Cat 61 Gbps / 10 Gbps to 55 m250 MHzCurrent standard for new buildings
Cat 6a10 Gbps to 100 m500 MHzData centres, high-density Wi-Fi uplinks
Cat 7 / 810–40 Gbps600 MHz – 2 GHzShort data-centre runs

The three enemies of a signal

📉 Attenuation

The signal weakens with distance. This is why a copper run is capped at 100 m and why repeaters exist.

⚡ Noise & EMI

Motors, fluorescent lights and power cables inject interference. Twisting the pairs cancels most of it; shielding and fibre remove the rest.

🔀 Crosstalk

One pair leaking into its neighbour. Higher cable categories are defined largely by how well they suppress it.

Duplex

Simplex is one direction only, like a broadcast. Half duplex is both directions but only one at a time, like a walkie-talkie — this is what a hub forces. Full duplex is both directions at once, which is what a switch gives every port and why switches ended the era of collisions.

Topologies and Ethernet

⭐ Star

Every device has its own cable to a central switch. One failed cable affects one device. This is what essentially all modern LANs use.

➡️ Bus

One shared backbone cable. Cheap, but one break kills the whole segment and every device shares the bandwidth. Historic.

🔄 Ring

Each device connects to two neighbours. Data travels in one direction. Token Ring and FDDI used it; largely gone.

🕸️ Mesh

Many redundant paths. Expensive, but the most resilient — which is exactly why the internet backbone and AWS Region interconnects are meshed.

Ethernet, CSMA/CD and why collisions stopped mattering

On a shared medium two devices could transmit at the same moment and corrupt each other's signal. Ethernet handled that with CSMA/CD: listen before you send, and if a collision happens, back off a random amount of time and retry. A hub put every port in the same collision domain, so the more devices you added, the worse it got.

A switch gives every port its own collision domain and runs full duplex, so on a modern switched network collisions essentially do not occur. CSMA/CD remains examinable history.

StandardSpeedMediumMax length
10BASE-T10 MbpsCat 3+ twisted pair100 m
100BASE-TX100 MbpsCat 5 twisted pair100 m
1000BASE-T1 GbpsCat 5e/6 twisted pair100 m
10GBASE-T10 GbpsCat 6a twisted pair100 m
1000BASE-LX1 GbpsSingle-mode fibre5–10 km

Network hardware and WANs

DeviceOSI layerDecides usingWhat it actually does
Hub1NothingRepeats every signal to every port. One collision domain. Obsolete.
Switch2MAC addressLearns which MAC is on which port and forwards only there.
Router3IP addressMoves packets between different networks using a routing table.
Firewall3–7IP, port, sometimes contentPermits or denies traffic against a rule set.
Access point1–2MACBridges wireless clients onto the wired LAN.
Load balancer4 or 7Connection or HTTP requestSpreads traffic over several servers.
The sentence to hold on to

Switches work inside one network. Routers work between networks. A packet leaving your subnet always goes to a router — in AWS, that router is the VPC route table plus an internet gateway.

LAN, MAN, WAN

A LAN covers one building and you own the cable. A MAN spans a city. A WAN spans regions or countries and you almost always rent the link from a carrier.

WAN / remote optionTypical speedNotes
Leased line (T1/E1, MPLS)1.5 Mbps – 10 GbpsDedicated, predictable, expensive. Still used for branch offices.
DSL1–100 MbpsOver telephone copper; speed falls with distance from the exchange.
Cable broadband10–1000 MbpsShared with the neighbourhood, so it slows at peak times.
Fibre to the premises100 Mbps – 10 GbpsThe modern default where it is available.
Cellular 4G / 5G10–1000 MbpsMobile, and a good backup link for a branch site.
Satellite10–200 MbpsReaches anywhere; geostationary links add noticeable latency.
VPN over the internetLink speedEncrypted tunnel. This is AWS Site-to-Site VPN.
AWS Direct Connect50 Mbps – 100 GbpsA private circuit into AWS that never touches the public internet.
Carry this into Module 6

A VPC is a LAN you rent. Subnets are its segments, route tables are its routers, security groups are its firewalls, and Direct Connect or Site-to-Site VPN is its WAN link back to your office. Everything on this page reappears there with an AWS name on it.

Key takeaways

  • Layering exists so one problem can be solved without disturbing the others.
  • Seven OSI layers; four TCP/IP layers; the same journey at different resolutions.
  • Segment → Port, Packet → IP, Frame → MAC, Bits → signals.
  • TCP is reliable and ordered; UDP is fast and best-effort.
  • Hub = Layer 1, Switch = Layer 2, Router = Layer 3. Switches inside a network, routers between them.
  • Star topology and full-duplex switching made collisions a historical topic.

Quiz