Computer Networks Explained: Devices, Data Exchange, and LANs
Learn how computer networks connect devices, exchange packets, use switches and routers, and link a home LAN to the Internet.
A computer network is a collection of connected devices that can exchange data and share resources. Shared resources may include files, printers, applications, storage, and access to the Internet.
Every participating device or connection point is called a node. A home network might contain a laptop, phone, desktop computer, printer, wireless access point, switch, and router.
Why Computer Networks Exist
Networks allow devices to communicate instead of operating as isolated systems. For example, a laptop can send a document to a shared printer, a phone can access a media server, and several devices can use one Internet connection.
- File sharing: users can access files stored on another computer or server.
- Device sharing: multiple computers can use a network printer.
- Application sharing: clients can use applications or services hosted elsewhere.
- Internet access: local devices can reach services outside the local network.
Network Nodes, End Devices, and Intermediary Devices
A node is any device or connection point that participates in a network. Two useful categories are end devices and intermediary devices.
End devices
An end device, also called a host, creates or consumes user data. Examples include computers, laptops, smartphones, tablets, network printers, and servers. A web browser on a laptop creates requests, while a web server receives requests and sends web content back.
Intermediary devices
An intermediary device helps connect devices or move traffic. A switch connects devices within a local network. A router forwards traffic between separate networks, such as a home LAN and an Internet service provider's network.
The same physical product can provide more than one function. A typical home gateway may include a router, an Ethernet switch, and Wi-Fi functions in one enclosure. The functions remain conceptually different even when they are combined in one device.
How Devices Connect: Network Media
A network medium is the wired or wireless path that carries signals between devices.
Wired Ethernet
Ethernet is a widely used wired LAN technology. An Ethernet cable connects a device to a switch or to a router's built-in switch. Wired connections commonly provide predictable performance and are useful for desktops, servers, access points, and other fixed equipment.
Wireless Wi-Fi
Wi-Fi is a wireless LAN technology. A phone or laptop uses radio signals to connect to a wireless access point, often built into a home router. The access point then provides a connection to the rest of the LAN.
Whether the medium is an Ethernet cable or a radio link, its purpose is to carry signals. The medium alone does not define the complete communication process; devices also need addressing and communication rules.
Protocols: Rules for Communication
A protocol is an agreed set of technical rules for communication between networked systems. Protocols are important because devices from different manufacturers need a common way to exchange information.
Protocols can define how data is formatted, how devices are addressed, how information is sent, how delivery is handled, and how the receiving device interprets the information. Internet communication uses many cooperating protocols rather than one rule for every task.
For example, HTTP is a web protocol used when a client requests web content from a web server. DNS is a naming system and protocol that helps find network addressing information for a human-readable name such as a website domain.
Packets and Data Transfer
Network information is usually divided into formatted units called packets. Breaking a larger message into packets makes it practical to send data across shared links and through multiple intermediary devices.
A packet contains a payload, which is the data being carried, plus control information. Control information can include addressing and protocol details needed to deliver and process the packet. The exact fields depend on the protocol and layer involved.
As packets travel, intermediary devices examine relevant control information and forward them toward their destinations. The destination device uses protocol information to identify the data, process it, and pass it to the appropriate application.
A packet is not the same thing as a complete web page, file, or video. Those larger items may be carried using many packets, which are reconstructed or processed by the receiving system.
Network Scope: LAN and Internet
A LAN, or Local Area Network, covers a limited physical area such as a home, classroom, office, or small building. Devices on the LAN can communicate through local wired or wireless connections.
The Internet is a worldwide interconnected system of many networks. It is not one single cable or one single device. Networks operated by homes, businesses, service providers, and other organizations interconnect to provide global communication.
A home LAN is one network within this larger system. Local devices communicate inside the LAN, while a router provides a path from the LAN to an external network and, usually, to the Internet.
Basic Home LAN Topology
A simple home network can contain a laptop connected by Wi-Fi, a desktop connected by Ethernet, and a router connected to an Internet service connection.
Laptop )))) Wi-Fi ))))+
|
Desktop ---- Ethernet ----+---- Home router ---- Internet service ---- Internet
|
Phone )))) Wi-Fi ))))--+
Here, the laptop, desktop, and phone are end devices on the home LAN. The router connects the local network to the external network. The router is not the Internet; it is a device that connects different networks.
Following a typical web request
- The computer joins the home LAN through Ethernet or Wi-Fi.
- The user enters a website name into a browser.
- DNS helps the computer obtain addressing information associated with that name.
- The computer creates web-related traffic, using HTTP as a recognizable example of web communication.
- The traffic travels across the LAN to the router.
- The router forwards traffic toward the Internet service connection and external web services.
- Responses return through the router to the computer, where the browser processes the received data.
This action involves several components and protocols: the end device, network medium, LAN, router, DNS, HTTP, and networks beyond the home.
The Role of a Router
A router forwards traffic between different networks. In a home, it commonly forwards traffic between the home LAN and an upstream network operated by an Internet service provider.
Routing is an inter-network role. When a packet is intended for a destination outside the home LAN, the router is a next step toward that destination. When traffic is returning from the Internet, the router forwards it back toward the appropriate local device.
The Role of a Switch
A switch connects multiple devices within the same local network. It acts as a central connection point in a wired LAN, with each device attached to a switch port.
Computer A ---- Ethernet ----+
|
Computer B ---- Ethernet ---- Switch
|
Computer C ---- Ethernet ----+
To connect two wired computers in one room, attach each computer to a separate switch port. The switch provides local connectivity between them. A switch by itself does not provide Internet service; Internet access additionally requires a router and an upstream Internet connection.
Basic Network Components and Their Roles
Switch Versus Router
A home router product may include a small Ethernet switch and Wi-Fi access point. This combination can make the devices appear to perform the same job, but switching remains focused on local connectivity while routing connects separate networks.
Common Networking Terms for Beginners
Troubleshooting Basic Network Problems
Two wired computers cannot communicate locally
- Check that both computers are physically connected to the switch.
- Verify that the switch has power.
- Check whether link indicators are active for both ports.
- Remember that the switch supports local connectivity but does not itself provide Internet service.
A device is connected locally but cannot open websites
- Separate LAN connectivity from Internet connectivity. A device may reach local devices while lacking an external path.
- Check the path from the device to the router.
- Check the router's connection to the Internet service.
- Consider DNS. A working local connection may still fail to resolve a domain name into addressing information.
A router and switch seem to do the same job
Use two examples to distinguish them: a switch connects multiple computers within one local LAN, while a router connects that LAN to another network such as the Internet. A combined home gateway may contain both functions.
Protocols and Layered Networking Models
Protocols and device roles become easier to study when communication is organized into layers. Each layer has a focused responsibility and works with the layers above and below it.
The OSI reference model is a layered conceptual model used to discuss how network communication works. This introduction does not require memorizing all seven layers. It is enough to recognize that a browser request, a packet, a wireless or Ethernet signal, a switch, and a router represent related but different parts of communication.
Continue with the OSI reference model to study this layered approach in greater detail.
Key Takeaways
- A computer network connects devices so they can exchange data and share resources.
- Each participating device or connection point is a node.
- End devices create or consume user data; intermediary devices help move traffic.
- Ethernet provides a common wired LAN technology, while Wi-Fi provides a wireless LAN technology.
- Protocols define the rules that let networked systems communicate.
- Packets carry payload data and control information across a network.
- A LAN covers a limited location, while the Internet interconnects networks worldwide.
- A switch connects devices within a LAN, while a router forwards traffic between networks.
- DNS helps map human-readable names to network addressing information, and HTTP is an example of web communication.