LinuxIntroduction about computer network

Introduction to Computer Networks

A comprehensive guide to computer networks covering topology, nodes, devices, and data transmission fundamentals.

What is a Computer Network?

A computer network (or data network) is a telecommunications network that allows computers to exchange data. In computer networks, networked computing devices pass data to each other along different data connections using encoding and decoding standards.

Network Nodes are devices that originate, route, and terminate data. They include hosts (PCs, phones, servers) and networking hardware (routers, switches).

Network Applications

Network Packets

A network packet is a formatted unit of data carried by a packet-switched network. When data is formatted into packets, the bandwidth can be better shared among users compared to circuit-switched networks.

path
headerbytes
Required

Contains control information: source/destination addresses, error detection codes, sequencing information.

path
payloadbytes
Required

The actual user data being transmitted between network nodes.

path
trailerbytes

Optional footer containing error-checking data (CRC, checksum).

Network Topology

Network topology is the arrangement of elements (links, nodes, etc.) of a computer network. It can be depicted physically or logically:

  • Physical Topology - Placement of components, device locations, cable installation
  • Logical Topology - How data flows within the network, regardless of physical design

Common Network Topologies

All nodes connected to a common backbone cable. Used in early Ethernet (10BASE5, 10BASE2). Simple but single point of failure.

Here are each of the topologies split into standalone Mermaid diagrams (one per graph):

Network Nodes and Devices

A node is a connection point, redistribution point, or communication endpoint in a network. Physical network nodes are active electronic devices capable of sending, receiving, or forwarding information.

Network Device Types

path
network-interfacehardware
Required

Network Interface Controller (NIC) provides physical connection to network. Has unique MAC address (6 octets) for Ethernet networks.

path
repeaterhardware

Receives, cleans, and regenerates signals to extend network distance. Works at Physical Layer (Layer 1).

path
hubhardware

Multi-port repeater. Broadcasts incoming data to all ports. Mostly obsolete, replaced by switches.

path
bridgehardware

Connects and filters traffic between network segments at Data Link Layer (Layer 2). Types: Local, Remote, Wireless.

path
switchhardware
Required

Forwards and filters Layer 2 datagrams based on MAC addresses. Learns MAC-to-port mappings. More efficient than hubs.

path
routerhardware
Required

Forwards packets between networks using Layer 3 (IP) addresses. Uses routing tables for path determination.

path
modemhardware

Modulates/demodulates signals for transmission over analog media (telephone lines). DSL technology example.

path
firewallsecurity
Required

Controls network security and access rules. Rejects unauthorized access while allowing recognized sources.

OSI Model and Device Layers

Understanding which layer each device operates at helps in troubleshooting network issues and designing efficient network architectures.