Components of a Computer Network - CSU359 - Shoolini University

Components of a Computer Network

1. Nodes

In a computer network, a node refers to any device that can send, receive, or forward information over a communication channel. Nodes are crucial components of a network, as they enable communication between different devices. Each node has a unique address (such as an IP address) that identifies it within the network.

1.1 Types of Nodes

Nodes can be classified based on their role in the network:

1.1.1 End Devices (Host Nodes)

End devices serve as the source and destination of network communication. They generate and consume data. Each end device has a unique identifier, such as an IP address, and is capable of directly interacting with the user.

1.1.2 Intermediary Devices

Intermediary devices are responsible for ensuring data is efficiently transferred between nodes. They route, switch, and process data to maintain smooth communication within the network. These devices do not originate or consume data but play a key role in forwarding it.

1.2 Node Addressing

Every node in a network is identified by a unique address, such as an IP address in the case of an Internet Protocol (IP) network. Addressing enables the correct delivery of data from one node to another.

In IPv4, an address is represented as a 32-bit number, typically written as four octets separated by dots (e.g., 192.168.1.1). In IPv6, the address is a 128-bit number represented in hexadecimal, separated by colons (e.g., 2001:0db8:85a3::8a2e:0370:7334).

2. Links

A link in a computer network is a communication pathway that connects two or more nodes. It is the medium through which data is transmitted between devices. Links can be either physical or logical, and they determine how data travels from one point to another in a network.

2.1 Types of Links

Links are broadly classified into two types based on the medium used:

2.1.1 Wired Links

Wired links are tangible communication paths that physically connect devices. They offer reliable data transmission with minimal interference. Common wired links include:

2.1.2 Wireless Links

Wireless links use radio frequencies, microwaves, or infrared signals to transmit data without the need for physical cables. These links allow for mobility and flexibility but are subject to interference from environmental factors. Common wireless links include:

2.2 Link Characteristics

The performance of a link depends on several key characteristics:

3. Network Interface Card (NIC)

The Network Interface Card (NIC) is a hardware component that allows a computer or other device to connect to a network. It serves as the physical interface between the computer and the network, enabling communication by sending and receiving data over the network link.

Each NIC has a unique Media Access Control (MAC) address, which is a hardware address used for network communication at the data link layer.

3.1 Types of Network Interface Cards

NICs can be classified based on the type of network they support and how they are integrated into the device:

3.1.1 Wired NIC

A wired NIC connects devices to a network using Ethernet cables. It is typically installed in desktops and servers to provide stable, high-speed network access. Most modern motherboards come with built-in wired NICs, supporting various Ethernet standards like Fast Ethernet (100 Mbps) and Gigabit Ethernet (1 Gbps).


Example: Intel Ethernet I219-V NIC (supports Gigabit Ethernet)
3.1.2 Wireless NIC

A wireless NIC enables devices to connect to wireless networks (Wi-Fi). It includes an antenna for transmitting and receiving wireless signals. Wireless NICs support different Wi-Fi standards, such as 802.11a/b/g/n/ac, which determine the speed and frequency bands used.


Example: TP-Link TL-WN881ND (supports 802.11n Wi-Fi)

3.2 Functions of NIC

The NIC performs several important functions to enable seamless communication between the device and the network:

3.3 NIC and MAC Address

Each NIC has a unique MAC address, which is a 48-bit identifier used to distinguish devices on a local network. The MAC address is typically represented in hexadecimal format (e.g., 00:1A:2B:3C:4D:5E). It plays a crucial role in delivering frames to the correct device on the network.

4. Routers

A router is a network device that forwards data packets between different networks. It plays a critical role in directing traffic on the internet by determining the best path for data to travel from the source to the destination. Routers operate at the network layer (Layer 3) of the OSI model, making decisions based on IP addresses.

4.1 Functions of a Router

The main functions of a router include:

4.2 Types of Routers

Routers can be classified into different types based on their application:

4.2.1 Wired Routers

Wired routers are used in local area networks (LANs) to direct traffic between wired devices. They connect to modems or other network devices via Ethernet cables and provide stable, high-speed connections. They are preferred in environments where reliability and performance are key, such as offices or data centers.


Example: Cisco RV340 (supports wired connections with VPN capabilities)
4.2.2 Wireless Routers

Wireless routers provide Wi-Fi connectivity, enabling devices to connect to the network without the need for physical cables. They are commonly used in homes and small offices, allowing laptops, smartphones, and other wireless devices to connect to the internet.


Example: TP-Link Archer C7 (supports dual-band 802.11ac Wi-Fi)

4.3 Routing Algorithms

Routers use routing algorithms to determine the best path for forwarding data packets. These algorithms consider factors like distance, cost, and traffic congestion to make routing decisions. Common routing algorithms include:

4.4 Routing Table

Routers use a routing table to store the information needed for packet forwarding. A routing table contains:

By consulting the routing table, the router makes decisions on where to forward packets to reach their destination efficiently.

5. Switches

A switch is a network device that connects multiple devices within a local area network (LAN) and uses MAC addresses to forward data frames to the correct destination. Unlike a hub, which broadcasts data to all connected devices, a switch forwards data only to the specific device it is intended for. Switches operate at the data link layer (Layer 2) of the OSI model but can also function at the network layer (Layer 3) for routing purposes.

5.1 Functions of a Switch

The main functions of a switch include:

5.2 Types of Switches

Switches can be categorized based on their functionality and usage:

5.2.1 Unmanaged Switches

Unmanaged switches are plug-and-play devices that require no configuration. They automatically manage data traffic and are ideal for home networks or small businesses where simplicity is key.


Example: TP-Link TL-SF1005D (5-port Fast Ethernet Unmanaged Switch)
5.2.2 Managed Switches

Managed switches provide the ability to control, configure, and monitor network traffic. They offer features like VLAN (Virtual LAN), Quality of Service (QoS), and advanced security settings, making them suitable for larger networks.


Example: Cisco Catalyst 2960X (24-port Managed Switch with Layer 2 and Layer 3 support)

5.3 MAC Address Table

A switch uses a MAC address table to map the MAC addresses of devices to the specific ports where those devices are connected. When a switch receives a frame, it checks the destination MAC address in the table to determine where to forward the frame. If the MAC address is not found, the switch broadcasts the frame to all ports.

The table is continuously updated as the switch learns new MAC addresses when devices communicate over the network.

5.4 VLAN (Virtual Local Area Network)

Managed switches support VLANs, which allow network administrators to logically segment a network into different broadcast domains. This improves security and performance by isolating traffic between different groups of devices. VLANs are configured using VLAN IDs, and devices within the same VLAN can communicate as if they were on the same physical network, even if they are connected to different switches.

5.5 PoE (Power over Ethernet) Switches

PoE switches can deliver both data and electrical power over Ethernet cables. This feature is commonly used to power devices like IP cameras, wireless access points, and VoIP phones, eliminating the need for separate power cables.

PoE switches comply with the IEEE standards like 802.3af and 802.3at, which define how much power can be delivered to devices.


Example: Ubiquiti UniFi Switch 8 (8-port Gigabit PoE switch supporting 802.3af)

6. Hubs

A hub is a basic networking device that connects multiple devices within a local area network (LAN). It operates at the physical layer (Layer 1) of the OSI model and acts as a simple data repeater, broadcasting incoming data to all connected devices. Unlike switches, hubs do not filter or direct data, leading to higher traffic and potential collisions on the network.

6.1 Functions of a Hub

Hubs perform basic functions in a network:

6.2 Types of Hubs

Hubs are generally classified based on their functionality:

6.2.1 Passive Hub

A passive hub simply forwards the data it receives to all devices connected to it without any amplification or regeneration. It relies entirely on the strength of the incoming signals and does not require an external power source. Passive hubs are typically used in small networks with short cable lengths.


Example: A simple 4-port Ethernet hub
6.2.2 Active Hub

An active hub regenerates and amplifies the signals it receives before broadcasting them to other devices. This helps in reducing signal degradation over long distances. Active hubs require a power supply to function and are used in slightly larger networks where signal strength is a concern.


Example: TP-Link TL-SF1008D (8-port Fast Ethernet Active Hub)

6.3 Hub Limitations

Despite being a simple and cost-effective solution for small networks, hubs have several limitations:

6.4 Hub vs. Switch

While hubs and switches may appear similar, there are key differences in how they handle network traffic: