Computer Networks and the Internet
Explore how computers communicate, how information travels between devices, and how the Internet connects networks around the world.
1. What Is a Computer Network?
A computer network is a group of interconnected devices that communicate and share information or resources.
Networks allow devices to share files, printers, applications, and Internet connections.
Basic components
- End devices: Computers, phones, servers, and printers.
- Network interface: Hardware or software that enables a device to communicate over a network.
- Transmission medium: The wired or wireless path carrying data.
- Networking devices: Switches, routers, and access points that help connect devices and networks.
- Protocols: Rules that define how devices communicate.
2. Types of Networks
The Internet is a global network of interconnected networks. It uses technologies and protocols that allow many different networks to communicate.
3. Network Topologies
A network topology describes how devices and connections are arranged physically or logically.
Star topology
Computer A
|
Computer B--Switch--Computer C
|
Computer D
Devices connect to a central switch or hub. A failure of one device's link usually does not disconnect the others, but a central-device failure can disrupt the network.
Bus topology
[Computer A]---[Computer B]---[Computer C]---[Computer D]
Devices share a common communication backbone. This is simple in concept, but backbone problems can affect the connected devices.
Ring topology
Computer A ---- Computer B
| |
Computer D ---- Computer C
Devices form a loop. How a failure affects the network depends on the specific ring technology and whether redundancy is provided.
Mesh topology
Devices have multiple interconnections. A full mesh connects every device directly to every other device; a partial mesh connects only selected pairs.
4. Networking Devices
| Device | Main function |
|---|---|
| Router | Forwards packets between different IP networks. |
| Switch | Connects devices in a LAN and forwards Ethernet frames using MAC addresses. |
| Wireless access point | Allows compatible wireless devices to connect to a network. |
| Modem | Adapts signals for a particular communication service, depending on the technology. |
| Firewall | Filters network traffic according to security rules. |
| Repeater | Regenerates or repeats signals to extend a communication link. |
Home networking equipment sometimes combines router, switch, wireless access point, and other functions in a single device.
5. Wired and Wireless Communication
Wired networks
Wired networks carry signals through physical media, such as Ethernet cables or fibre-optic cables.
- Often provide stable, predictable connections.
- Can offer high data rates and low interference.
- Require physical cabling and suitable ports.
Wireless networks
Wireless networks transmit data through electromagnetic waves. Wi-Fi and Bluetooth are common examples, although they serve different needs.
- Allow devices to move within the supported coverage area.
- Reduce the need for data cables.
- Can be affected by distance, obstacles, interference, and congestion.
6. How Data Travels
Data sent over many computer networks is divided into units such as packets. Each packet carries information needed to deliver and process it.
Sending device
|
v
Data divided into packets
|
v
Network devices forward packets
|
v
Destination receives the data
|
v
Data is reassembled or processed
Different packets may take different routes. Protocols and receiving applications handle delivery, ordering, and recovery where required.
Bandwidth, throughput, and latency
- Bandwidth: The capacity of a connection to carry data, often expressed in bits per second.
- Throughput: The actual rate of successful data transfer.
- Latency: The delay between sending data and receiving the corresponding response or result.
- Packet loss: When transmitted packets fail to reach their intended destination.
7. IP Addresses and MAC Addresses
IP address
An Internet Protocol (IP) address identifies a network interface for communication at the IP layer. Routers use destination IP addresses to forward packets between networks.
Examples of IPv4 addresses include 192.168.1.10.
IPv6 uses a larger address space. An example of IPv6 notation is
2001:db8::1; the 2001:db8::/32 range is
reserved for documentation examples.
MAC address
A Media Access Control (MAC) address is a link-layer
identifier used by network interfaces on technologies such as Ethernet
and Wi-Fi. A typical displayed format is
00:1A:2B:3C:4D:5E.
| IP address | MAC address |
|---|---|
| Used for IP-layer addressing and routing. | Used for link-layer delivery on a local network technology. |
| IPv4 uses 32-bit addresses; IPv6 uses 128-bit addresses. | Common Ethernet MAC addresses are 48 bits. |
| May change when network configuration changes. | Often assigned to an interface, though software can sometimes change or randomize it. |
8. DNS and Domain Names
Domain Name System (DNS) helps translate domain
names, such as example.com, into information used to
locate Internet services, including IP addresses.
You enter a domain name
|
v
Device checks available DNS information
|
v
A DNS resolver looks up the required record
|
v
The address is returned
|
v
The device can attempt to connect to the destination
DNS records include A records for IPv4 addresses, AAAA records for IPv6 addresses, and MX records for mail servers.
9. Important Network Protocols
A protocol defines rules for exchanging information between systems.
| Protocol | Purpose |
|---|---|
| IP | Addresses and forwards packets between networks. |
| TCP | Provides a reliable, ordered byte stream between applications. |
| UDP | Provides datagram transport without TCP's built-in delivery and ordering guarantees. |
| HTTP | Transfers web resources and other application data. |
| HTTPS | HTTP protected using TLS for encryption and authentication. |
| DNS | Looks up domain-related records. |
| DHCP | Automatically provides IP configuration to clients on many networks. |
| SMTP | Used to send and relay email. |
| SSH | Provides secure remote login and other secure network services. |
10. The TCP/IP Model
The TCP/IP model describes networking functions in layers. A common four-layer teaching model is shown below.
| Layer | Examples | Role |
|---|---|---|
| Application | HTTP, DNS, SMTP | Supports services used by applications. |
| Transport | TCP, UDP | Communication between applications on hosts. |
| Internet | IP | Logical addressing and packet routing between networks. |
| Link | Ethernet, Wi-Fi | Communication over a local link and its physical medium. |
Some models split the link layer into data-link and physical layers. The key idea is that each layer provides services to the layer above it.
11. The Internet and the World Wide Web
The Internet is the global system of interconnected networks. The World Wide Web (WWW) is a collection of linked resources accessed over the Internet, commonly through web browsers.
- Web browser: Software that retrieves and displays web content.
- Web server: A system that responds to requests for web resources.
- URL: An address identifying a resource and how it may be accessed.
- HTTP/HTTPS: Protocols used for web communication.
12. Network Security Basics
Network security protects devices, communication, and information from unauthorized access, disruption, or modification.
- Encryption: Makes data unreadable without the required key, when correctly implemented.
- Authentication: Checks a user's or system's identity.
- Firewall: Applies rules to allow or block network traffic.
- Updates: Fix known vulnerabilities in operating systems and applications.
- Secure Wi-Fi: Use modern supported security settings and a strong, unique network password.
- Phishing awareness: Check unexpected links and requests for sensitive information.
13. Knowledge Check
Try answering each question before revealing the answer.
1. What does LAN stand for?
2. What is the main role of a router?
3. What does DNS help a device find?
4. Which protocol provides reliable, ordered delivery as a byte stream?
5. What is the difference between the Internet and the Web?
6. What does HTTPS add to HTTP?
7. Which measure helps prevent unauthorized network access?
Key Takeaways
- Networks connect devices so they can communicate and share resources.
- Routers connect IP networks; switches commonly connect devices within a LAN.
- IP addresses and MAC addresses serve different addressing purposes.
- DNS helps resolve domain names to useful records.
- Protocols such as TCP, IP, HTTP, and DNS make communication possible.
- The Internet is broader than the World Wide Web.
- Encryption, authentication, updates, and firewalls help improve security.