Back

Activity 3.8: Packets, the Web, and Why It Does Not Fall Over

divider

Session 63: Three Questions, One Network

First: how does data actually cross a network? It is cut into pieces, the pieces travel separately, and they may not arrive in the order they left.

Second: what is the World Wide Web? The internet and the Web are not the same thing, and almost everybody uses the words as if they were. The exam asks about the difference directly.

Third: why does it keep working? Last session ended with a network that has no owner, no fixed routes, and rules anyone can follow. That sounds fragile. Today you break it on purpose and find out exactly where it survives and where it does not.

divider

Activity 3.8

Packets, the Web, and Why It Does Not Fall Over

Key Concepts

Data Travels in Packets

The Internet Is Not the Web

Redundancy and Fault Tolerance

Data Does Not Travel Whole

A data stream
A DATA STREAM
information passed through the internet
as a stream of chunks
each chunk encapsulated in a packet

A photo, a message, a web page: all of it cut into chunks, each one wrapped in a packet.

What Is in a Packet

Data and metadata
A PACKET
+-----------------------------------------+
| METADATA | the chunk of data |
| | |
| where from | ...part of the |
| where to | actual message |
| which number | |
+-----------------------------------------+
The metadata is for two jobs:
ROUTING getting it there
REASSEMBLY putting it back in order

You have met the word metadata before. Session 43.

Same Idea, New Place

At 2.18, metadata was the title and artist attached to a song.

Here it is the addresses and the number attached to a chunk of data.

Data about the data. Both times.

Two Jobs

Routing — the metadata says where the packet is going.

Reassembly — the metadata says which piece this is.

Take the numbers away and the message cannot be rebuilt.

Three Things That Can Happen

All normal
PACKETS MAY ARRIVE
in order
out of order
not at all
All three are normal. The exam says so.

Routing is dynamic, so different packets can take different paths. So they can overtake each other.

Not at All

Packets go missing. Routinely.

This is not a fault. It is a design assumption.

Something has to notice, and ask again.

Three Protocols

IP, TCP, UDP
THREE PROTOCOLS NAMED BY THE EXAM
IP addressing and routing
TCP breaks data into packets, and re-requests
packets that did not arrive
UDP sends without checking for missing packets
TCP is reliable and slower.
UDP is faster and does not guarantee delivery.

Why Anyone Would Choose UDP

A live video call. One packet arrives late.

Do you want it? No. That moment has already passed.

Stopping to ask for it again would make the call worse, not better.

A Trade-Off, Again

TCP — you get everything, eventually.

UDP — you get what arrives, immediately.

Neither is better. It depends what you are sending.

The Internet Is Not the Web

Two different things
THE INTERNET THE WORLD WIDE WEB
a computer network of a system of linked pages,
interconnected networks programs, and files
the wires, the routers, what you look at
the devices
HTTP is a protocol
used by the Web
The World Wide Web USES the Internet.
They are not the same thing.

The One-Sentence Version

The internet is a network. The Web is a system of linked pages, programs, and files.

The Web uses the internet.

An email crosses the internet and is not on the Web.

Now: Why It Keeps Working

Cause and effect
REDUNDANCY
the inclusion of extra components that can be
used to mitigate failure if other components fail
FAULT TOLERANT
when a system can support failures and still
continue to function
The first one is how you get the second one.

Redundancy is the mechanism. Fault tolerance is the property it buys.

The Simplest Redundancy

More than one path between two devices.

The exam says it in almost exactly those words.

One path is a single point of failure. Two paths is a choice.

When Something Breaks

If a device or connection fails, later data is sent by a different route…

…if possible.

Those two words are half of today. Sometimes it is not possible.

Why This Is Not Optional

The exam's reason: parts of complex systems fail at unexpected times, often in groups.

Not if something fails. When.

A power cut takes out every device in the building at once, not one at a time.

It Also Helps It Grow

Redundant routing options make the internet more reliable…

…and help it scale to more devices and more people.

Same word as last session. Scalability keeps coming back.

And It Is Not Free

The trade-off
REDUNDANCY IS NOT FREE
"Redundancy within a system often requires
additional resources but can provide the
benefit of fault tolerance."
Extra links cost money, power, and maintenance.
Somebody decided the cost was worth it.

You have seen this shape all year: compression, sampling, and now this.

Abstraction, Again

The exam: the internet is fault tolerant with abstractions for routing and transmitting data.

You do not know which path your data took. You do not need to.

That is what an abstraction buys. At 2.5 you stopped thinking about what was inside a method once it worked, and just called it.

Three Different Questions

Read the verb
THE EXAM ASKS THREE DIFFERENT THINGS
a. describe the BENEFITS of fault tolerance
b. explain HOW a given system is fault tolerant
c. identify VULNERABILITIES to failure in a system
(c) is the one nobody practices.

Task 2 is mostly (c).

Today's Objectives

  • Explaining how data is sent as a stream of packets, and what packet metadata is for
  • Naming IP, TCP and UDP, and describing the TCP/UDP trade-off
  • Distinguishing the internet from the World Wide Web
  • Defining redundancy and fault tolerance, and how they relate
  • Identifying vulnerabilities to failure in a network

Key Terms

Data stream
Information passed through the internet as chunks of data.
Packet
A chunk of data plus metadata used for routing and for reassembly.
IP
A protocol responsible for addressing and routing.
TCP
A protocol that breaks data into packets and re-requests packets that do not arrive.
UDP
A protocol that sends without checking for missing packets.

Key Terms

World Wide Web
A system of linked pages, programs, and files, which uses the internet. HTTP is one of its protocols.
Redundancy
The inclusion of extra components that can be used to mitigate failure of a system if other components fail.
Fault tolerant
Able to support failures and still continue to function.
Single point of failure
A component whose failure disconnects part of the system. The thing redundancy removes.

'F' → Fullscreen

divider

Today's Work

On paper. Task 2 uses the network from Activity 3.6.


Task 1: Which Protocol, Which Network?

Part A. For each, say whether you would rather use TCP or UDP, with the reason in one sentence.

  1. Downloading a program you are about to install
  2. A live video call
  3. A multiplayer game sending every player's position sixty times a second
  4. A photo sent in a message

One of these four is genuinely arguable. Say which, and argue both sides.

Part B. Say whether each is part of the internet or part of the World Wide Web.

  1. A fiber optic cable under the Atlantic
  2. A page you visit, with a link on it
  3. An email traveling from one server to another
  4. HTTP
  5. The router in your house

Then, in one sentence: explain why the Web could not exist without the internet, but the internet could exist without the Web.


Task 2: Break the Network

Cover a link or a device with your finger to fail it.

The network from 3.6
100
A --------- B
| \
50 | \ 100
| \
C ------------- D
50 |
| 40
E
/ \
25 / \ 200
/ \
G ----- F
200
Six failures
TEST EACH FAILURE SEPARATELY
the A-B link fails ......... can A still reach G?
the D-E link fails ......... can A still reach G?
the E-G link fails ......... can A still reach G?
device B fails ............. can A still reach G?
device D fails ............. can A still reach G?
device E fails ............. can A still reach G?
  1. For each failure, can A still reach G? If yes, give a path that works. If no, say which devices A can no longer reach.
  2. Which single devices, if they failed, would split the network into two pieces that cannot reach each other? There is more than one. Which single link would do the same?
  3. Add one new link that fixes as many of those weak points as possible. Which ones does it fix?
  4. What does your new link cost? Answer in the exam's vocabulary, not in dollars.

Question 2 is the one worth the time. It is the exam's third verb — identify vulnerabilities to failure in a system — and it is the one nobody practices.

divider

Checkpoint

  • What two jobs does a packet's metadata do?
  • Name the three things that can happen to a packet.
  • What is the difference between TCP and UDP, in one sentence?
  • Is HTTP part of the internet or part of the Web?
  • Define redundancy and fault tolerance, and say which causes which.
  • What does redundancy cost?
divider

Reflection

Answer these before submitting your work.

  1. "Packets may arrive out of order" sounds like a fault. Explain why it is a consequence of something the network does on purpose.
  2. The network you broke is fault tolerant, and it also has weak points. Explain why both of those statements are true at once.
  3. You found devices whose failure splits the network. Why would anyone build a real network with a single point of failure in it?
divider

Submit

Both tasks, plus your reflection.

Activity Complete