Basics of Networking

Joy Ngaru
7 min readJun 4, 2024

--

What is Networking?
Networking refers to the practice of connecting computers and other devices to share resources (like files, printers, and internet connections) and communicate with each other.

Key Networking Concepts
1. Nodes and Devices: Nodes are individual devices in a network, such as computers, printers, and smartphones.

2. Network Interface Card (NIC): A hardware component that allows a device to connect to a network.

3. Switches: Devices that connect multiple devices within a local network (LAN). They forward data only to the intended recipient device.

4. Routers: Devices that connect different networks together (e.g., home network to the internet). They route data between networks.

5. IP Address: A unique identifier for each device on a network. It’s like a mailing address for your device.

6. MAC Address: A unique identifier assigned to network interfaces for communications on the physical network segment.

Subnet: A segmented piece of a larger network. Subnets improve performance and security by limiting traffic to a smaller group of devices.

OSI Model
The OSI (Open Systems Interconnection) model is a conceptual framework used to understand network interactions in seven distinct layers. Each layer serves a specific function and communicates with the layers directly above and below it.

The Seven Layers of the OSI Model
Physical Layer:

Function: Transmits raw bit stream over the physical medium.
Examples: Cables (Ethernet, fiber optics), hubs.

Data Link Layer:

Function: Handles error detection, correction, and frame synchronization.
Examples: Ethernet, Wi-Fi (MAC addresses, switches).

Network Layer:

Function: Manages packet forwarding including routing through different routers.
Examples: IP (Internet Protocol), routers.

Transport Layer:

Function: Ensures complete data transfer and error recovery.
Examples: TCP (Transmission Control Protocol), UDP (User Datagram Protocol).

Session Layer:

Function: Manages sessions or connections between applications.
Examples: APIs, session management.

Presentation Layer:

Function: Translates data between the application layer and the network. It handles data encoding, encryption, and compression.
Examples: SSL/TLS (encryption protocols), data formats (JPEG, ASCII).

Application Layer:

Function: Interfaces directly with end-user applications and provides network services.
Examples: HTTP, FTP, SMTP, DNS.

TCP/IP Model
The TCP/IP (Transmission Control Protocol/Internet Protocol) model is a more streamlined model used to describe the suite of protocols designed for the internet. It has four layers, which correspond to the OSI model but are broader.

The Four Layers of the TCP/IP Model
Network Interface Layer (Link Layer):

Function: Corresponds to the physical and data link layers of the OSI model. Handles the physical transmission of data.
Examples: Ethernet, Wi-Fi, ARP (Address Resolution Protocol).

Internet Layer:

Function: Corresponds to the network layer of the OSI model. Manages addressing and routing of packets.
Examples: IP (Internet Protocol), ICMP (Internet Control Message Protocol).

Transport Layer:

Function: Corresponds to the transport layer of the OSI model. Provides reliable data transfer.
Examples: TCP, UDP.

Application Layer:

Function: Combines the functionalities of the session, presentation, and application layers of the OSI model. Provides network services to end-user applications.
Examples: HTTP, FTP, SMTP, DNS.

Comparison of OSI and TCP/IP Models
Layering:

OSI: Seven layers, each with a specific function.
TCP/IP: Four layers, more streamlined and practical for real-world application.

Usage:

OSI: Mainly used for teaching and understanding network interactions.
TCP/IP: Used as the framework for the internet and real-world networking.

Types of Networks

  1. Local Area Network (LAN):
  • Scope: Small geographical area (e.g., a home, office).
  • Devices: Computers, printers, switches.

2. Wide Area Network (WAN):

  • Scope: Large geographical area (e.g., cities, countries).
  • Devices: Routers, leased lines

3. Wireless Local Area Network (WLAN):

  • Scope: Similar to LAN but uses wireless technology (Wi-Fi).
  • Devices: Wireless access points, Wi-Fi-enabled devices.

Important Networking Concepts

  1. Protocol: A set of rules for data communication.

Example: TCP/IP (Transmission Control Protocol/Internet Protocol), HTTP (Hypertext Transfer Protocol).

2. DNS (Domain Name System): Translates domain names (like www.example.com) into IP addresses.

3. DHCP (Dynamic Host Configuration Protocol): Automatically assigns IP addresses to devices on a network.

4. Firewall: A security system that monitors and controls incoming and outgoing network traffic based on predetermined security rules.

Basic Internet Communication Flow

Client-Server Model:

  • The client requests resources or services.
  • The server provides resources or services.
  • Example: Web browsing where your browser (client) requests a web page from a web server.

Summary

  • Nodes and Devices: Basic units of a network.
  • Switches and Routers: Essential devices for connecting and routing traffic.
  • IP and MAC Addresses: Identifiers for devices on the network.
  • LAN, WAN, WLAN: Different types of networks based on scope and technology.
  • Protocols, DNS, DHCP: Key technologies that enable networking.
  • Security: Firewalls help protect network traffic

Types of Network Topologies

  1. Bus Topology
  2. Ring Topology
  3. Star Topology
  4. Mesh Topology
  5. Tree Topology
  6. Hybrid Topology

1. Bus Topology

Description: All devices are connected to a single central cable, called the bus or backbone. Data sent from one device travels along the bus to all other devices.

Advantages:

  • Easy to implement and extend.
  • Requires less cable compared to other topologies.

Disadvantages:

  • If the central cable fails, the entire network goes down.
  • Performance degrades as more devices are added.

2. Ring Topology

Description: Devices are connected in a circular fashion. Each device has exactly two neighbors. Data travels in one direction (or both directions in a dual ring topology).

Advantages:

  • Data packets travel at great speed.
  • Each device has equal access to the network.

Disadvantages:

  • A failure in any cable or device can disrupt the entire network.
  • Troubleshooting is difficult.

3. Star Topology

Description: All devices are connected to a central hub or switch. Data passes through the central device before reaching the destination.

Advantages:

  • Easy to install and manage.
  • Failure of one device does not affect the rest of the network.
  • Easy to detect and troubleshoot faults.

Disadvantages:

  • If the central hub fails, the entire network goes down.
  • Requires more cable than bus and ring topologies.

4. Mesh Topology

Description: Every device is connected to every other device. It can be a full mesh (every device is connected to every other device) or a partial mesh (some devices are connected to all others, and some are connected only to those they exchange the most data with).

Advantages:

  • Highly reliable. Failure of one device does not affect the network.
  • Data can be transmitted simultaneously from different devices.

Disadvantages:

  • Expensive due to the large number of cables and ports required.
  • Complex installation and configuration.

5. Tree Topology

Description: A combination of star and bus topologies. Groups of star-configured networks are connected to a linear bus backbone.

Certainly! Let’s explore different network topologies, which refer to the layout or arrangement of devices in a network. Understanding these topologies is essential for designing and managing networks.

Types of Network Topologies

  1. Bus Topology
  2. Ring Topology
  3. Star Topology
  4. Mesh Topology
  5. Tree Topology
  6. Hybrid Topology

1. Bus Topology

Description: All devices are connected to a single central cable, called the bus or backbone. Data sent from one device travels along the bus to all other devices.

Diagram:

plaintext
Copy code
+-----+   +-----+   +-----+
| PC1 |---| PC2 |---| PC3 |
+-----+ +-----+ +-----+

Advantages:

  • Easy to implement and extend.
  • Requires less cable compared to other topologies.

Disadvantages:

  • If the central cable fails, the entire network goes down.
  • Performance degrades as more devices are added.

2. Ring Topology

Description: Devices are connected in a circular fashion. Each device has exactly two neighbors. Data travels in one direction (or both directions in a dual ring topology).

Diagram:

plaintext
Copy code
+-----+     +-----+
| PC1 |-----| PC2 |
+-----+ +-----+
| |
+-----+ +-----+
| PC4 |-----| PC3 |
+-----+ +-----+

Advantages:

  • Data packets travel at great speed.
  • Each device has equal access to the network.

Disadvantages:

  • A failure in any cable or device can disrupt the entire network.
  • Troubleshooting is difficult.

3. Star Topology

Description: All devices are connected to a central hub or switch. Data passes through the central device before reaching the destination.

Diagram:

plaintext
Copy code
+-----+
| Hub |
+-----+
/ | \
/ | \
+-----+ +-----+ +-----+
| PC1 | | PC2 | | PC3 |
+-----+ +-----+ +-----+

Advantages:

  • Easy to install and manage.
  • Failure of one device does not affect the rest of the network.
  • Easy to detect and troubleshoot faults.

Disadvantages:

  • If the central hub fails, the entire network goes down.
  • Requires more cable than bus and ring topologies.

4. Mesh Topology

Description: Every device is connected to every other device. It can be a full mesh (every device is connected to every other device) or a partial mesh (some devices are connected to all others, and some are connected only to those they exchange the most data with).

Diagram:

plaintext
Copy code
+-----+     +-----+
| PC1 |-----| PC2 |
+-----+ \ / +-----+
| / X \ |
+-----+/ \+-----+
| PC4 |-----| PC3 |
+-----+ +-----+

Advantages:

  • Highly reliable. Failure of one device does not affect the network.
  • Data can be transmitted simultaneously from different devices.

Disadvantages:

  • Expensive due to the large number of cables and ports required.
  • Complex installation and configuration.

5. Tree Topology

Description: A combination of star and bus topologies. Groups of star-configured networks are connected to a linear bus backbone.

Diagram:

plaintext
Copy code
+-----+
| Hub |
+-----+
/ \
+-----+ +-----+
| Hub | | Hub |
+-----+ +-----+
/ | \ / | \
+-----+ +-----+ +-----+ +-----+ +-----+
| PC1 | | PC2 | | PC3 | | PC4 | | PC5 |
+-----+ +-----+ +-----+ +-----+ +-----+

Advantages:

  • Scalable and easy to add more devices.
  • Centralized management through hubs.

Disadvantages:

  • If the backbone fails, the entire network segments go down.
  • More cabling required than bus topology.

6. Hybrid Topology

Description: A combination of two or more different types of topologies. It aims to take advantage of the strengths and mitigate the weaknesses of the included topologies.

Advantages:

  • Flexible and scalable.
  • Robust and reliable, combining benefits of different topologies.

Disadvantages:

  • Complex design and installation.
  • More expensive due to a combination of different topologies.

--

--

Joy Ngaru

Your personal systems engineer with a special love for tech and Astrophysics. Follow me on my learning journey.