Introduction: The Language of the Internet

Imagine you are trying to talk to someone, but you are speaking English and they are speaking a language you don't understand. Communication would be impossible! Computers face the same problem. For two computers to share data, they need a "shared set of rules." In Computer Science, we call these rules protocols.

In this chapter, we will explore how data travels across the world, how fast it moves, and the specific rules (protocols) that make sure your emails, websites, and files arrive exactly where they should.

1. Measuring Speed: Bits per Second

When we talk about how fast a network is, we aren't talking about how fast electricity moves (that's always near the speed of light!). We are talking about bandwidth—how much data can be sent in one second.

Network speeds are measured in bits per second (bps). Because modern networks are so fast, we usually use these units:

\( \bullet \) Mbps: Megabits per second (\( 1,000,000 \) bits per second)
\( \bullet \) Gbps: Gigabits per second (\( 1,000,000,000 \) bits per second)

Common Mistake to Avoid: Don't confuse "bits" with "bytes." Storage (like a hard drive) is measured in Bytes (capital 'B'), but network speed is measured in bits (lowercase 'b'). There are \( 8 \) bits in \( 1 \) Byte!

2. What is a Protocol?

A protocol is a set of rules that governs how data is transmitted between devices. Without protocols, a computer might send a file in a format that the receiving computer can't understand.

Protocols decide:
- How the communication starts and ends.
- How the data is organized.
- What to do if data goes missing or gets corrupted.

3. The Must-Know Protocols

For your exam, you need to know exactly what these specific protocols do. Let's break them down by their "jobs."

Web Browsing Protocols

HTTP (HyperText Transfer Protocol): This is used by web browsers to access websites from a web server.

HTTPS (HyperText Transfer Protocol Secure): This is the "secure" version of HTTP. It encrypts the data so that hackers cannot read your passwords or credit card details while they are being sent.

File Transfer Protocol

FTP (File Transfer Protocol): This is used specifically for sending or retrieving files from a remote computer or server. You might use this when uploading files to a website's server.

Email Protocols

SMTP (Simple Mail Transfer Protocol): Think of this as "Sending Mail To People." It is used to send emails from your device to a server.

POP3 (Post Office Protocol v3): This retrieves an email by downloading it to your device and then deleting it from the server. Once you download it, you can't read it on another device.

IMAP (Internet Message Access Protocol): This also retrieves emails, but it keeps the email on the server so you can sync it across multiple devices (like your phone and your laptop).

Connection Protocols

Ethernet: A protocol used for wired connections in a Local Area Network (LAN).

Wi-Fi: A protocol used for wireless data transmission using radio waves.

Quick Review: Remember SMTP for Sending and IMAP for In-sync mail.

4. TCP/IP and the 4-Layer Model

When you send a large file (like a photo), it isn't sent in one giant piece. It is broken down into small chunks called packets. The TCP/IP stack is the master protocol that handles this.

To make this complex process easier to manage, it is split into four layers. Each layer has a specific job:

1. Application Layer: This is where the user interacts with the network. This layer uses protocols like HTTP, FTP, and SMTP to turn data into a format the network understands.

2. Transport Layer: This layer uses TCP (Transmission Control Protocol) to break the data into packets. It labels each packet with its number (e.g., "Packet 1 of 10") so they can be put back together in the right order at the end.

3. Network Layer: This layer uses IP (Internet Protocol) to address the packets. It adds the sender's and receiver's IP addresses to each packet so the network knows where to send them.

4. Data Link Layer: This is the "physical" part. It handles the actual transmission of data through cables (Ethernet) or radio waves (Wi-Fi).

Memory Aid for the Layers:

Try this mnemonic: All Tigers Need Dinner

Application
Transport
Network
Data Link

5. Mobile Communication Standards

As technology improves, we create new standards for mobile data. These allow us to transmit data faster over cellular networks.

\( \bullet \) 3G: Introduced basic mobile internet (good for simple websites).
\( \bullet \) 4G: Much faster; made video streaming and high-speed browsing possible on phones.
\( \bullet \) Subsequent Generations (5G): Even faster speeds and better reliability for things like smart cities and self-driving cars.

Summary Checklist

Key Takeaways:

1. Network speeds use bits per second (Mbps or Gbps).
2. A protocol is just a set of rules for communication.
3. HTTPS is for secure web browsing; IMAP is for syncing email.
4. Data is sent in packets via the TCP/IP model.
5. The four layers of TCP/IP are Application, Transport, Network, and Data Link.

Note: For more on how IP addresses work, see the chapter on "The internet and the world wide web." For information on protecting data, see "Network security."