/en-tutor-prep-ib-cs-ip-addressing-packet-switching-security/
/en-tutor-prep-ib-cs-ip-addressing-packet-switching-security/
General Inquiry: info@TutorZone.com.hk
Office Hours: Monday to Saturday - 9:00 AM to 6:00 PM
WhatsApp Monday to Sunday - 24 hours
Hotline: +852 6828 1809
Instant Support: +852 9061 3106

IB Computer Science IP Addressing, Packet Switching and Network Security: Tutor Prep Guide (IPv4, IPv6, firewalls, certificates)

IB Computer Science IP Addressing, Packet Switching and Network Security: Tutor Prep Guide (IPv4, IPv6, firewalls, certificates)

  • 2026-11-27

Marks here are rarely lost on definitions. They are lost on quantities: treating packet overhead as half the traffic, treating bandwidth as latency, and treating symmetric encryption as a signature. Every act therefore puts a calculator in the student hand and asks why the answer has that magnitude.

Objectives — Students can: (1) state that IPv4 has 32 bits and 4,294,967,296 addresses while IPv6 has 128 bits and about 3.40 times ten to the thirty-eighth, a factor of two to the ninety-sixth; (2) separate MAC (48 bits, burned into the network card, used inside a LAN) from IP and from the translation NAT performs; (3) cost packet switching: an MTU of 1500 bytes with 20 and 20 byte headers carries 1460 bytes, overhead 2.67 per cent, so a 2 MB file becomes 1,437 packets, 2,155,500 bytes on the wire, 58,348 bytes of overhead, 97.3 per cent efficient; (4) explain the split between switches (layer two, MAC) and routers (layer three, IP) and between static and dynamic routing (HL); (5) explain default-deny firewalls with five-tuple rules, four vulnerability and countermeasure pairs (HL), the division of labour between symmetric and asymmetric encryption, and how a certificate binds a public key to an identity; (6) cost latency: 6,000 km of fibre is 30.0 milliseconds one way, 1500 bytes at 1 Gbps takes only 12.0 microseconds to transmit, so one way is 30.012 milliseconds, a round trip 60.024, and propagation is 99.96 per cent of it.

01 Prerequisites (3-minute check)

If any of these fails, fix it before the lesson starts.

Skill Quick check Pass mark
Powers of two Roughly how big two to the thirty-second is About four point three billion
Prefixes Usable hosts in a /26 Says 62
Encryption basics What encrypts and what decrypts One key, or a key pair

02 Lesson flow (60 minutes)

Time Stage Tutor does Student does
0-8 min Opening probe Ask why the same website gives a phone and a laptop different IPs Write answers, compare at the end
8-22 min Addresses: MAC, IP, NAT IPv4 4,294,967,296, IPv6 about 3.40 times ten to the thirty-eighth Sort three address types
22-36 min Packet switching and latency MTU 1500, payload 1460, 2 MB into 1,437 packets Compute packets and overhead
36-46 min Switches, routers and routing (HL) Layer two looks at MAC, layer three at IP Say which address each device reads
46-56 min Firewalls, flaws and encryption Default deny over 5 rules, 56-bit key in 834 days Admit or deny three rules
56-60 min Exit check Collect three questions, mark at once Independent work

03 Teaching script (read it out)

Scene 1: Three addresses: MAC names the machine, IP names the location, NAT translates

Open with the picture. A MAC is an identity card, fixed at manufacture, 48 bits and about 281,474,976,710,656 combinations, unique in principle. An IP is a postal address that changes when the machine moves network. So a LAN finds machines by MAC and the wider network finds them by IP. That sentence is the spine of the chapter.
Then size the space: IPv4 is 32 bits, two to the thirty-second, which is 4,294,967,296 addresses, far short of a world where phones, laptops and servers all want one. IPv6 is 128 bits, about 3.40 times ten to the thirty-eighth, which is two to the ninety-sixth times bigger. Do not say IPv6 is much bigger; say which part is bigger.
NAT is the patch: one public address for a whole company, private addresses inside, and the router keeps a table mapping inside address and port to outside connection, rewriting returning packets. Outsiders cannot see the internal structure, which is both the point of A2.4.1 and the reason NAT counts as a security measure.
Close with the small facts that get asked: 127.0.0.1 is the loopback address and never leaves the card; static addresses are set by hand and dynamic ones come from DHCP, whose exchange has four steps: discover, offer, request, acknowledge.

Student task: for three situations (two machines on one desk, a request to a website, traffic through NAT) say which address is used and which device reads it.

Scene 2: Packet switching: cut 2 MB into 1,437 packets, then cost the overhead

Start with why packets exist: one large stream means one lost segment forces a resend of everything, while small packets travel independently and only the damaged one is resent. The ceiling is the MTU, commonly 1500 bytes; remove the 20-byte IP header and the 20-byte TCP header and 1460 bytes of payload remain, an overhead of 2.67 per cent. Students must compute that percentage, because questions enlarge the headers and ask again.
Work the full case: 2 MB is 2,097,152 bytes, which divides into 1,437 packets, the last carrying only 592 bytes, which is why the count rounds up; 1,437 packets of 1500 bytes put 2,155,500 bytes on the wire, 58,348 more than the file, so efficiency is 97.3 per cent. That number and the 2.67 per cent overhead are the same fact written two ways, and students should see both.
Then latency, where the errors cluster. Bandwidth sets how many bits per second, latency sets when the first bit arrives. 6,000 km of fibre at two hundred million metres per second gives 30.0 milliseconds one way; 1500 bytes at 1 Gbps takes only 12.0 microseconds. One way is 30.012 milliseconds, a round trip 60.024, and propagation is 99.96 per cent of it. So moving from 1 Gbps to 10 Gbps barely changes this path: shorten the distance or cut the number of round trips, which is why content delivery networks exist.

Student task: redo the packet count at an MTU of 1,000 bytes and explain why the overhead percentage gets worse.

Scene 3: Security: the firewall guards the channel, encryption guards the content

Fix three layers first. A firewall decides which connections may enter, encryption decides whether what entered can be read, and authentication decides whether the other side is who it claims. None substitutes for another.
A firewall rule needs five elements: source address, destination address, source port, destination port and protocol. The policy is default deny with explicit permits, and 5 rules are enough to show why order matters: rules are read top down and the first match wins, so denying everything before permitting 443 is not the same as the reverse.
Teach vulnerabilities as pairs, never as a list: DDoS against traffic scrubbing and rate limits; man in the middle against TLS and certificate checking; phishing against mail filtering and staff training; SQL injection against parameterised queries and input validation; cross-site scripting against output encoding and content security policy; weak authentication against multi-factor authentication and password policy; unpatched software against update management; zero-day flaws against intrusion detection and least privilege.
Then the division of labour in encryption. Symmetric uses one key, is fast and suits bulk data; asymmetric uses a pair, is slow and suits key exchange and signatures. A digital signature is made with the private key and checked with the public key, so only asymmetric keys can give non-repudiation. A certificate is issued by a certificate authority binding a public key to a domain, and browsers verify a chain of about 3 levels up to a root.
Key length needs a sense of scale: a 56-bit key has 72,057,594,037,927,936 combinations, so a billion guesses a second takes 834 days, about 2.3 years, which dedicated hardware now beats; a 128-bit key needs about 1.08 times ten to the thirteenth years even at ten to the eighteenth guesses a second. The two differ by two to the seventy-second, so adding 72 bits is not a small change.

Student task: for online banking, say which step is symmetric, which is asymmetric, which relies on a certificate, and what the firewall covers.

04 Question types and worked steps

Type Example Steps Answer
Size an address space and a prefix Addresses in IPv4 and IPv6 and the ratio; usable hosts in a /27 Two to the bits, then subtract two for hosts Four point three billion against 3.40 times ten to the thirty-eighth, a factor of two to the ninety-sixth; 30 hosts
Cost packets and overhead 2 MB file, MTU 1500, 40 bytes of headers Trim the headers, round up, multiply by the MTU 1,437 packets, 58,348 bytes of overhead, 97.3 per cent
Cost propagation and transmission 6,000 km of fibre, 1 Gbps, 1500 bytes Distance over the speed in fibre, bits over bandwidth, then add 30.0 ms plus 12.0 microseconds, 30.012 ms one way
Apply firewall rules and choose encryption Five rules and a request to permit 443; a file to sign Match the five-tuple top down; sign with the private key, verify with the public First match wins; symmetric keys cannot sign, so asymmetric is required
Sanity check (teach this): Three checks: (1) overhead is headers over the MTU, 40 over 1500 is 2.67 per cent, and anything near thirty per cent means payload and header were swapped; (2) propagation grows with distance, so 6,000 km is tens of milliseconds, not twelve microseconds, which is transmission time only; (3) no symmetric key gives non-repudiation, because both sides hold the same key and either can deny sending. The usual misjudgement is bandwidth as speed: raising bandwidth shortens transmission but never propagation, so a transcontinental path stays bound by round trips.

05 Independent practice (3 questions)

Question Answer What to watch
A 2 MB file over an MTU of 1500 with 40 bytes of headers: how many packets and how much overhead? 1,437 packets; 58,348 bytes Whether the count rounded up and multiplied by the MTU
What is the one-way propagation delay over 6,000 km of fibre? 30.0 milliseconds Whether two hundred million metres per second was used rather than three hundred
A 56-bit key checked at a billion guesses a second takes how long? 834 days, about 2.3 years Whether two to the fifty-sixth came before the division

06 Common mistakes and what to say

Mistake Student writes Say this
Routing on MAC addresses across the internet Writing that browsing uses MAC addresses to find servers “A MAC is only meaningful inside one LAN. Across networks the IP is stable while the link addresses are rewritten at every hop.”
Treating bandwidth as latency Answering that 10 Gbps makes a transcontinental link ten times faster “Bandwidth shortens transmission only. Propagation is set by distance, and this path is 30 milliseconds one way whatever the speed.”
Signing with a symmetric key Writing that one shared key encrypting a file is a signature “Both sides hold the same key, so either can deny sending it. A signature needs a private key to sign and a public key to verify.”
A firewall as antivirus Answering that a firewall stops ransomware arriving by email “A firewall controls connections. Content still needs filtering, patching and least privilege once it is inside.”

07 Homework (paper, section and question numbers)

08 Exit check (last 5 minutes)

Question Answer Decision
Three addresses MAC names, IP locates, NAT translates Confusing MAC and IP means replay act one
Packet method Trim headers, round up, multiply by the MTU Skipping the multiply means replay act two
Security split Firewall the channel, encryption the content, certificates the identity Signing with a shared key means replay act three

09 Tutor FAQ

How many TLS handshake steps are needed?

A2.4.4 asks for the encryption process and certificates: asymmetric exchange of a symmetric key, a certificate for identity, then symmetric encryption for the data. Handshake detail is an extension for students who ask.

How far should IPv6 go?

The address space and the prefix idea are the core: 128 bits, hexadecimal groups, and why it removes the shortage and the dependence on NAT. Auto-configuration and transition mechanisms are extensions.

What does this chapter look like in the exam?

Paper 1 covers Theme A, typically asking for devices and addresses on a network diagram, a packet count from file size and MTU, or a security measure with its limitation. HL adds vulnerability and countermeasure pairing plus static against dynamic routing.

Find a tutor — freeTutor Registration →

A TutorZone lesson-prep guide. Written by the TutorZone team; questions and lesson flow are original and are not taken from any school or publisher material.

Join as a tutor or coach — academic, music, sports, arts, STEM. Free to register. See how it works →