IT131 · SESSION 04 · FIELD NOTES

Number Systems & the Data Link Layer

Before today, every address you've seen was already translated into something readable. Today you learn the raw language underneath it — binary and hex — and meet the department that actually writes addresses onto the wire, one hop at a time.

New material Module 5 — Number Systems New material Module 6 — Data Link Layer

Overview

What Session 4 covers

Module 5 is the math underneath every address you've typed so far — binary is what the hardware actually does, hex is just a compact way to write it. Module 6 is the layer that turns a packet into something that can physically leave the machine: framing, addressing, and the rules for who gets to talk on a shared wire.

Where this goes next This session sets up two things you'll use for the rest of the course: binary/hex math is the foundation for IPv4 subnetting (Module 11) and IPv6 (Module 12); MAC addressing here is the foundation for ARP (Module 9) — where Local Dispatch's incident file below finally gets opened.

Case File

Meet Local Dispatch

Front Desk formats the request. Logistics routes it across the network. Local Dispatch is the department that actually gets a frame from one machine to the next machine over — and only the next one.

Cold open

Local Dispatch doesn't know your final destination and doesn't want to. All it knows is the address of the next desk over — and it knows every one of those addresses cold, because that's the entire job.

Module 5

Binary & decimal

A transistor is a switch — on or off, current or no current. Two reliable states, not ten. Binary isn't tradition, it's just what the hardware physically is. Every bit position is worth a power of 2.

1281
641
320
160
80
40
20
10

11000000 → 128 + 64 = 192

1281
640
321
160
81
40
21
10

10101010 → 128 + 32 + 8 + 2 = 170

DirectionMethod
Binary → decimalAdd up the place value of every position holding a 1. Nothing more.
Decimal → binarySubtraction method: does the largest place value (128) fit? Mark 1, subtract, carry the remainder into the next place value. Repeat down to 1.
Why this matters later This exact skill — reading an 8-bit octet as a sum of place values — is the entire mechanism behind subnetting in Module 11. Get fluent now; nobody subnets by memorizing tables, they do this math cold.

Module 5

Hexadecimal — compressed binary

Hex isn't a separate system to memorize — it's a shorthand. Every hex digit represents exactly one 4-bit chunk of binary (a nibble). Split a byte into two nibbles, convert each independently, done.

DecimalBinaryHexDecimalBinaryHex
000000810008
100011910019
200102101010A
300113111011B
401004121100C
501015131101D
601106141110E
701117151111F

11000000 → 1100 0000 → C 0 → 0xC0 — no detour through decimal required.

Where hex actually shows up MAC addresses: AA:BB:CC:DD:EE:FF — 12 hex digits = 48 bits = 6 bytes. IPv6 addresses: each colon-separated group is 4 hex digits = 16 bits. Anywhere you see a long address written in hex, it's binary wearing a shorter costume.

Module 6

Media access control

Point-to-point links (two nodes, one wire) don't need traffic rules — nobody to contend with. Multi-access links (a shared medium, wired or wireless) absolutely do, or every device talks over every other device.

MethodHow it worksWhere it's used
CSMA/CDCarrier Sense Multiple Access, Collision Detection. Listen first; if a collision happens anyway, both sides back off and retry.Legacy shared-medium Ethernet — mostly obsolete now that switched full-duplex Ethernet removes collisions entirely, but the acronym is still exam-relevant.
CSMA/CACollision Avoidance. Can't reliably detect a collision on a wireless medium the way you can on a wire, so the strategy shifts to avoiding one in the first place — announce intent to send, then wait.Wi-Fi (802.11).
Controlled accessDeterministic, scheduled, or token-passing turn order — no collisions possible, but wasteful when the medium is mostly idle.Legacy/rare in modern networks — recognition-level only.
Half-duplex vs. full-duplex Half-duplex — one direction at a time, like a walkie-talkie. This is exactly why CSMA/CD exists: on a shared, half-duplex medium, two devices sending at once means a collision. Full-duplex — both directions simultaneously, like a phone call, over separate transmit/receive paths (separate wire pairs, or separate frequencies). A modern switch port running full-duplex has no shared medium to contend for, so collisions become physically impossible and CSMA/CD has nothing to do — which is the real reason it's "obsolete," not just that hardware got faster.

LAN & WAN topology types

The physical/logical topology distinction from Session 1 has named shapes at both scales:

ScopeTopologyShape
LANStarEvery device connects to one central point (a switch). Standard for modern wired LANs — one cable failure only takes out one device.
Extended starMultiple stars connected together — switches connected to switches, each with its own set of end devices. How most real buildings are wired.
Bus / RingLegacy — all devices share one backbone cable (bus) or a closed loop (ring, e.g. Token Ring). Recognition-level only.
WANPoint-to-pointOne dedicated link between two sites — simple, but a single failure isolates both ends.
Hub-and-spokeOne central site connects to every remote site individually — cheaper than a full mesh, but the hub is a single point of failure.
MeshEvery site connects to every other site (full mesh) or to several others (partial mesh) — maximum redundancy, highest cost/complexity.

Module 6

Frame fields

Every Layer 2 frame — regardless of the specific protocol — carries some version of these fields. This is exactly the header (and trailer) that gets added when a packet becomes a frame on the way down the stack.

FieldPurpose
Frame start/stopMarks where the frame begins and ends on the wire.
AddressingSource and destination — Layer 2 (MAC) addresses, not Layer 3.
Type/lengthIdentifies what's riding inside — which Layer 3 protocol to hand this up to.
DataThe actual payload — the packet handed down from Layer 3.
FCS (Frame Check Sequence)Trailer field — lets the receiver verify the frame arrived intact.
The freshman trap, again Local Dispatch's address is never the final destination — it's just "who's next." Strictly, the frame itself never crosses the router: at each router the old frame is discarded entirely and a brand-new one is built with new source/destination MAC addressing (hop-to-hop). The packet inside is untouched — the IP address stays the same the entire trip (end-to-end). Switches forward frames unchanged at Layer 2 — only crossing a router triggers a new frame.

Study

Flashcards

Click to flip. Double-click to mark as known.

Check yourself

Sample questions

Pick an answer to see if you're right — same style as the checkpoint exams.

Applied

Worked examples

Think it through before you expand the answer.

Binary → decimal

Read the octet

Convert 11100000 to decimal.

Show answer

224. Positions holding a 1: 128, 64, 32. 128 + 64 + 32 = 224. Every other position is 0 and contributes nothing.

Decimal → binary

Build the octet

Convert 150 to binary using the subtraction method.

Show answer

10010110. 128 fits into 150 (mark 1, remainder 22). 64 doesn't fit into 22 (mark 0). 32 doesn't fit (mark 0). 16 fits (mark 1, remainder 6). 8 doesn't fit (mark 0). 4 fits (mark 1, remainder 2). 2 fits (mark 1, remainder 0). 1 doesn't fit (mark 0). Result: 10010110.

Nibble shortcut

Skip the decimal detour

Convert 10101111 directly to hex without calculating its decimal value first.

Show answer

0xAF. Split into two nibbles: 1010 and 1111. 1010 = decimal 10 = hex A. 1111 = decimal 15 = hex F. Each nibble converts independently — that's the entire reason hex is faster than going through decimal.

CSMA/CD vs. CSMA/CA

Why can't Wi-Fi just detect collisions?

Legacy wired Ethernet uses CSMA/CD — it detects a collision after it happens and recovers. Wi-Fi uses CSMA/CA instead. Why not just detect collisions on Wi-Fi the same way?

Show answer

Answer: On a wire, a device can listen to the line while it's transmitting and notice the voltage pattern change if another signal collides with its own. A wireless radio transmitting at full power on its own antenna can't simultaneously listen for a faint colliding signal on the same frequency — it would just hear itself. Since collision detection isn't physically practical, Wi-Fi shifts the strategy to collision avoidance: announce intent to send and wait for a clear window instead.

Recognition drill

The eight mask octet values

Every subnet mask octet is one of exactly eight values — the running total of 128+64+32+16+8+4+2+1 as you turn on bits from the left. Module 11 assumes you recognize these on sight, no scratch work. Cover the right column and name each one's binary before checking.

Show answer
DecimalBinaryOn bits
128100000001
192110000002
224111000003
240111100004
248111110005
252111111006
254111111107
255111111118

These eight values are the only numbers that can legally appear in a subnet mask octet. Nobody subnets by memorizing tables in practice — they recognize this set cold and do the math live.

MAC vs. IP

What changes, what doesn't

A packet travels from a laptop, through two switches, through one router, to a server on a different network. How many times does the source MAC address change along the way? How many times does the source IP address change?

Show answer

MAC address: changes once — at the router. Switches forward frames unchanged at Layer 2, so crossing two switches doesn't touch the MAC addressing at all; only crossing the router (a new hop) causes Local Dispatch to re-address the frame. IP address: unchanged for this trip. It's end-to-end — the same source IP the entire way, from laptop to server.

The exception you'll meet later: NAT. A home router deliberately rewrites the source IP address on the way out to the internet — that's the one case where "IP is end-to-end" stops being literally true. Until NAT comes up later in the course, treat IP addressing as end-to-end.

Reference

Glossary & index

Every term from this session, searchable and indexed A–Z.