3. Networks

Lans And Wans

LANs and WANs 🌐

Introduction

students, today you will learn about two of the most important network types in computer systems: Local Area Networks, or $LANs$, and Wide Area Networks, or $WANs$. These are part of the IB Computer Science HL topic on Networks, and they help explain how computers communicate in homes, schools, businesses, cities, and across the world. By the end of this lesson, you should be able to explain the key ideas and terms, compare $LANs$ and $WANs$, and connect them to other network concepts such as transmission methods, security, and reliability.

A simple real-world hook: when you send a message from your school laptop to a printer in the computer lab, that is usually happening on a $LAN$. When you open a website hosted in another country, your data likely travels through a $WAN$ 🌍. Understanding the difference matters because network design affects speed, cost, security, and how easily users can share resources.

What is a LAN?

A $LAN$ is a network that connects devices within a small geographic area, such as a room, building, school campus, or office. The key idea is locality: the devices are physically close enough that the network is usually owned and managed by one organization. Examples include computers in a classroom, printers in an office, and smart devices in a home.

$LANs$ are commonly used for resource sharing. For example, students on a school $LAN$ can access shared printers, shared storage, or a local file server. A school can also use a $LAN$ to control user accounts, install software updates, and manage internet access. Because the area is limited, $LANs$ often provide high data transfer rates and low latency, meaning information moves quickly with little delay.

Common technologies used in $LANs$ include Ethernet and Wi-Fi. Ethernet uses cables and is often preferred for stable, fast connections in places like offices and labs. Wi-Fi is wireless and offers convenience for mobile devices like phones and laptops. In IB terms, both are ways devices are connected in a $LAN$, but they differ in speed, reliability, and mobility.

For example, if a school computer uploads a document to a shared folder on the same building network, the data may move through a switch to the file server. A switch is a device that connects multiple devices in a $LAN$ and forwards frames to the correct destination. This is more efficient than sending data to every device on the network.

What is a WAN?

A $WAN$ is a network that covers a large geographic area, often connecting multiple $LANs$ together. $WANs$ can span cities, countries, or even continents. The internet is the largest and most famous example of a $WAN$, although it is actually a network of many interconnected networks.

Unlike a $LAN$, a $WAN$ usually relies on infrastructure managed by telecommunications providers or internet service providers. This can include fiber-optic cables, undersea cables, microwave links, and routers that direct traffic between networks. Since data may need to travel long distances, $WANs$ generally have higher latency than $LANs$ and may be more affected by congestion or external factors.

A good example is a company with offices in different countries. Each office may have its own $LAN$, but the offices are connected using a $WAN$ so employees can share email, databases, and cloud services. Another example is online banking: when a student checks an account on a banking app, the request travels over a $WAN$ to servers that may be far away.

In IB Computer Science, it is important to see that a $WAN$ is not just “the internet.” A $WAN$ is any network that covers a wide geographic area. The internet is one major example, but companies can also build private $WANs$ for internal communication.

Comparing LANs and WANs

The main differences between $LANs$ and $WANs$ can be understood through four factors: size, ownership, performance, and cost.

A $LAN$ covers a small area, while a $WAN$ covers a large one. A $LAN$ is usually owned by one organization, while a $WAN$ often depends on multiple organizations or external service providers. A $LAN$ tends to have faster speeds and lower latency because devices are closer together and the network path is simpler. A $WAN$ usually has more delay because data may pass through many routers and long-distance links.

Cost is another important difference. Setting up a $LAN$ is usually cheaper because the area is small and the cabling or wireless setup is limited. A $WAN$ is more expensive because it requires larger infrastructure, leased lines, long-distance communication links, and ongoing service contracts.

Think about a school and a chain of schools. Inside one school, devices may share a $LAN$ to access printers and servers. If the school wants to connect to another campus across the city, that connection becomes part of a $WAN$. This helps show that network type depends on distance and structure, not just the number of devices.

Network structures and the role of LANs and WANs

LANs and WANs fit into the broader Networks topic because they show how different network structures are designed for different purposes. A network is not just a collection of devices; it is a system for communication, resource sharing, and data management.

In a typical organization, a $LAN$ connects end devices such as computers, smartphones, printers, and servers. The $LAN$ may use a star topology, where all devices connect to a central switch or access point. This structure is common because it is easy to manage and a failure in one cable usually affects only one device.

A $WAN$ connects multiple $LANs$ together through routers. Routers are devices that move packets between different networks by reading network addresses and choosing a path. In other words, a router is essential when data must leave one $LAN$ and enter another network, especially across long distances.

This is why $LANs$ and $WANs$ are connected to ideas like packet switching, routing, and address management. For example, when a student visits a website, the request may start on a home $LAN$, travel through a router, move across a $WAN$, and then reach a server in a data center. The journey can involve many networks, but the basic ideas stay the same: data is broken into packets, routed, and reassembled.

Real-world examples and IB-style reasoning

IB Computer Science HL often asks you to apply concepts to realistic situations. Here is a strong example: a hospital network 🏥.

Inside the hospital, doctors, nurses, patient monitors, and printers are connected by a $LAN$. This makes it fast to access local patient records and print labels. If the hospital has another branch across the city, the branches may be connected by a $WAN$. The $WAN$ allows records and secure communication to move between sites.

When analyzing this situation, ask questions like: Why use a $LAN$ inside the hospital? Because it is fast, secure, and cost-effective for a limited area. Why use a $WAN$ between hospitals? Because the sites are far apart and need long-distance communication. What could go wrong? A $WAN$ may have more delay, higher cost, and dependence on outside providers.

Another example is a multinational company. Each office has a local network for printers, shared drives, and staff devices. The company then uses a private $WAN$ to connect offices so workers can share internal systems. This arrangement also supports centralized administration, where IT staff can apply policies across many sites.

These examples show how to use evidence in exam responses. Rather than simply saying “a $LAN$ is small,” you should explain how the size of the area affects speed, cost, and control.

Advantages, limitations, and security considerations

$LANs$ and $WANs$ also connect to security and reliability, which are part of the Networks topic. A $LAN$ is easier to secure because it is under one organization’s control. Administrators can use passwords, access control, firewalls, and network permissions to manage who can use resources.

However, a $LAN$ is not automatically safe. If a device on the $LAN$ is infected with malware, the infection may spread to other devices. That is why anti-virus software, user authentication, and regular updates are important.

A $WAN$ faces different security issues because data may travel across public or shared infrastructure. This makes encryption especially important. Encryption protects data as it moves between locations, so if someone intercepts packets, the content is harder to read. Virtual private networks, or $VPNs$, are often used to create a secure connection over a public $WAN$ like the internet.

Reliability is also important. A $LAN$ may fail if a switch or central access point breaks, but the problem is often local and easier to fix. A $WAN$ can be affected by service outages, cable damage, or problems with external providers. Because of this, large organizations may use backup links or redundant paths to improve reliability.

Conclusion

students, $LANs$ and $WANs$ are essential ideas in computer networking. A $LAN$ connects devices in a small local area and is usually fast, cheap, and easy to manage. A $WAN$ connects networks over large distances and is used for communication between cities, countries, or global systems like the internet. Together, they explain how networks are built, how data moves, and why different network designs are chosen for different situations.

If you can compare $LANs$ and $WANs$, describe how routers and switches support them, and explain their effects on performance, cost, security, and reliability, you are using the kind of reasoning expected in IB Computer Science HL ✅

Study Notes

  • A $LAN$ connects devices in a small geographic area such as a home, school, office, or building.
  • A $WAN$ connects multiple $LANs$ across large distances such as cities, countries, or continents.
  • A $LAN$ is usually owned and managed by one organization.
  • A $WAN$ often depends on telecommunications providers or shared infrastructure.
  • $LANs$ are usually faster and have lower latency than $WANs$.
  • $WANs$ usually have higher latency and higher cost than $LANs$.
  • Ethernet and Wi-Fi are common $LAN$ technologies.
  • Switches are commonly used inside $LANs$ to direct traffic efficiently.
  • Routers connect different networks and are essential when data moves between $LANs$ or across a $WAN$.
  • The internet is the best-known example of a $WAN$, but private $WANs$ also exist.
  • $LANs$ support local resource sharing such as printers, file servers, and user accounts.
  • $WANs$ support communication between distant sites, cloud services, and online systems.
  • Security is easier to manage on a $LAN$ because it is locally controlled.
  • Encryption and $VPNs$ are important for protecting data over a $WAN$.
  • Reliability can be affected by device failures on a $LAN$ or external provider issues on a $WAN$.
  • In exam answers, always explain how network size affects speed, cost, control, and use cases.

Practice Quiz

5 questions to test your understanding

Lans And Wans — IB Computer Science HL | A-Warded