A LAN, or local area network, is a group of connected computing devices within a localized area that usually share a centralized Internet connection.
A local area network (LAN) is contained within a small geographic area, usually within the same building. Home WiFi networks and small business networks are typical examples of LANs.
LANs can also be pretty significant. However, if they take up multiple buildings, it is usually more accurate to classify them as wide area networks (WAN) or metropolitan area networks (MAN).
How do LANs work?
Most LANs connect to the Internet at a central point: a router. Home LANs often use a single router, while LANs in larger spaces may additionally use network switches for more efficient packet delivery.
LANs almost always use Ethernet, WiFi, or both to connect devices within the network. Ethernet is a protocol for physical network connections that requires using Ethernet cables. WiFi is a protocol for connecting to a network via radio waves.
Various devices can connect to LANs, including servers, desktop computers, laptops, printers, IoT devices, and game consoles. LANs are often used in offices to provide shared access to internal employees to connected printers or servers.
What equipment is needed to set up a LAN?
The simplest Internet-connected LANs require only a router and a way for computing devices to connect to the router, such as via Ethernet cables or a WiFi hotspot. LANs without an Internet connection need a switch for exchanging data. Large LANs, such as those in a large office building, may need additional routers or switches to forward data to the proper devices.
Not all LANs connect to the Internet. LANs predate the Internet: the first LANs were used in businesses in the late 1970s. (These old LANs used network protocols that are no longer used today.) The only requirement for setting up a LAN is that the connected devices can exchange data. This usually requires a piece of networking equipment for packet switching, such as a network switch. Today, even non-Internet-connected LANs use the same networking protocols that are used on the Internet (such as IP).
What is a virtual LAN?
Virtual LANs, or VLANs, are a way of splitting up traffic on the same physical network into two networks. Imagine setting up two separate LANs, each with its router and Internet connection, in the same room. VLANs are like that, but they are divided virtually using software instead of physically using hardware — only one router with one Internet connection is necessary.
VLANs help with network management, especially with very large LANs. By subdividing the network, administrators can manage the network much more quickly. (VLANs are very different from subnets, which are another way of subdividing networks for greater efficiency.)
What is the difference between a LAN and a WAN?
A WAN, or wide area network, is a collection of connected LANs. It is a widespread network of local networks. A WAN can be any size, even thousands of miles wide, not restricted to a given area.
How do LANs relate to the rest of the Internet?
The Internet is a network of networks. LANs usually connect to a much more extensive network, an autonomous system (AS). ASes are very large networks with routing policies and control over specific IP addresses. An Internet service provider (ISP) is one example of an AS.
Picture a LAN as a small network that connects to a much more extensive network that connects to other very large networks, all containing LANs. This is the Internet, and two computers connected to two different LANs thousands of miles apart can talk to each other by sending data over these connections between networks.