Introduction To Computer Networks
Introduction To Computer Networks
Mesh topology
In a mesh topology, each device, or node, is interconnected with multiple other nodes, creating a
network where data can traverse various paths to reach its destination. This structure enhances
redundancy and reliability, ensuring that if one path fails, alternative routes can maintain
network communication.
🔄 How Mesh Topology Works
In a mesh network, nodes collaborate to distribute data efficiently. Each node acts as both a
transmitter and receiver, forwarding data to neighboring nodes until it reaches its target. This
decentralized approach eliminates the need for a central hub, allowing the network to self-
configure and adapt to changes dynamically.
✅ Advantages of Mesh Topology
Redundancy and Reliability: Multiple pathways between nodes ensure that the network
remains operational even if individual connections fail.
Scalability: New nodes can be added without disrupting existing connections, making it
suitable for expanding networks.
Self-Healing: The network can automatically reroute data through alternative paths when
a node or connection becomes unavailable.
Efficient Coverage: Ideal for large areas where traditional infrastructure is impractical,
such as rural regions or disaster zones.
❌ Disadvantages of Mesh Topology
Complex Setup: Designing and configuring a mesh network can be intricate due to the
numerous interconnections.
High Cost: Requires more cabling and hardware compared to simpler topologies,
increasing initial investment.
Maintenance Challenges: Troubleshooting and managing the network can be more
demanding due to its complexity.
Tree topology
In a tree topology, network devices are arranged hierarchically, resembling the structure of a
tree. This configuration combines characteristics of both star and bus topologies, making it a
hybrid model. It's particularly effective for large networks that require structured and scalable
layouts.
🌳 Structure of Tree Topology
A tree topology begins with a root node, typically a central hub or switch, which connects to one
or more intermediate nodes. These intermediate nodes, in turn, connect to other nodes or end
devices, forming a branching structure. This hierarchical arrangement allows for efficient data
management and simplifies network expansion.
🔄 How Tree Topology Works
In this topology, data transmission follows a hierarchical pat. When a device sends data, it travels
up the hierarchy to the common ancestor of the source and destination nodes and then down to
the destination. This structured flow minimizes data collisions and ensures organized
communication across the network.
✅ Advantages of Tree Topology
Scalability New nodes can be added easily at appropriate levels, facilitating network
growth without disrupting existing operation.
Hierarchical Management The structured layout allows for efficient administration and
troubleshooting, as issues can be isolated within specific branches.
Flexibility Combining elements of star and bus topologies provides a balance between
centralized control and distributed access.
Network Software
Just like a computer cannot function without software, a computer network also needs special
software to help computers communicate, share files, and work together. This software is called
Network Software.
Network software is a set of programs or applications that help manage, operate, and secure
computer networks. It ensures that devices connected in a network can exchange data correctly
and efficiently.
Types of Network Software
There are several types of network software, each with its specific purpose. Here are the main
types:
1. Network Operating System (NOS)
A Network Operating System is software that controls and manages the activities of computers
and other devices in a network. It allows users to share files, printers, and internet connections.
Examples: Microsoft Windows Server, Linux Ubuntu Server, Novell NetWare
Functions of NOS:
Managing network resources like files, printers, and users.
Providing network security.
Allowing remote access to the network.
Handling user permissions and access rights.
3. Network Protocol Software
In the realm of computer networks, network protocols serve as the foundational rules and
conventions that enable devices to communicate effectively. These protocols ensure that data is
transmitted, received, and interpreted correctly across diverse systems, regardless of their
underlying hardware or software differences.
📡 What Are Network Protocols?
Network protocols are standardized sets of rules that dictate how data is formatted, transmitted,
and processed in a network. They define the procedures for initiating and terminating
communication, handling errors, and ensuring data integrity. Without these protocols, seamless
interaction between computers, servers, and other devices would be impossible.
🧱 Categories of Network Protocols
Network protocols can be broadly categorized based on their functions within the network
architecture:
1. Communication Protocols
These protocols facilitate the exchange of data between device:
Transmission Control Protocol (TCP): Ensures reliable, ordered, and error-checked
delivery of data between application.
User Datagram Protocol (UDP): Provides a faster, connectionless transmission, suitable
for applications where speed is critical, such as streaming.
Internet Protocol (IP): Handles addressing and routing of packets across network.
2. Application Layer Protocols
These operate at the top layer of the network stack, enabling specific network service:
Hypertext Transfer Protocol (HTTP): Facilitates the transfer of web pages on the
internet.
File Transfer Protocol (FTP): Allows for the transfer of files between client and serve.
Simple Mail Transfer Protocol (SMTP): Used for sending email.
Domain Name System (DNS): Translates human-readable domain names into IP
addresses.
3. Network Management and Security Protocols
These ensure the network operates efficiently and securely:
Simple Network Management Protocol (SNMP): Monitors and manages network device.
Secure Sockets Layer (SSL)/Transport Layer Security (TLS): Encrypts data for secure
transmission.
Internet Protocol Security (IPsec): Secures IP communications by authenticating and
encrypting each IP packed.
🔄 How Network Protocols Work Together
Network protocols operate in layers, each with specific responsibilities. For instance, when you
access a website:
. HTTP requests the web page.
. TCP ensures the data packets arrive correctly.
. IP routes the packets to the destination server.
. DNS translates the website's domain name to its IP address.
This layered approach allows for modularity and scalability in network communications.
OPEN SYSTEMS INTERCONNECTION MODEL(OSI)
The OSI Model (Open Systems Interconnection Model) is a conceptual framework that
standardizes the functions of a telecommunication or computing system into seven distinct
layers. Developed by the International Organization for Standardization (ISO), it facilitates
interoperability between diverse communication systems with standard protocols.
🧱 The Seven Layers of the OSI Model
Each layer in the OSI model serves a specific function and communicates with the layers directly
above and below it. Here's an overview of each layer:
1. Physical Layer: This is the lowest layer, concerned with the transmission and reception
of raw bitstreams over a physical medium. It defines hardware elements like cables,
switches, and network interface cards.
2. Data Link Layer: Responsible for node-to-node data transfer and error detection and
correction. It ensures that data transferred is free from errors.
3. Network Layer: Manages device addressing, tracks the location of devices on the
network, and determines the best way to move data. Routers operate at this layer.
4. Transport Layer: Ensures complete data transfer. It provides error checking and data
flow control. Protocols like TCP and UDP operate at this layer.
5. Session Layer: Controls the dialogues (connections) between computers. It establishes,
manages, and terminates the connections between the local and remote application.
6. Presentation Layer: Translates data between the application layer and the network. It is
responsible for data encryption, compression, and translation.
7. Application Layer: The topmost layer, it provides network services directly to end-user
applications. Protocols like HTTP, FTP, and SMTP operate at this layer.
🔄 How the OSI Model Works
When data is transmitted from one device to another, it passes through each layer of the OSI
mode. Each layer adds its own header (and sometimes trailer) to the data, a process known as
encapsulation. Upon reaching the destination, the data moves up the OSI layers, with each layer
removing its corresponding header, a process called de-encapsulation.
Common networking and internetworking devices according to the OSI (Open Systems
Interconnection) model layers:
OSI Layer Devices Operating at This Layer
Layer Name
7 Application Proxy servers, Application firewalls, Content filters
6 Presentation Encryption/decryption devices, Data compression devices
5 Session Session Border Controllers (SBCs), Gateways managing sessions
4 Transport Load balancers, Firewalls (monitoring TCP/UDP traffic)
3 Network Routers, Layer 3 switches, Gateways
2 Data Link Switches, Bridges, Network Interface Cards (NICs), Wireless
Access Points (APs)
1 Physical Hubs, Repeaters, Modems, Cables (Ethernet, fiber optics), Network
Interface Cards (NICs)
Note: Some devices, like Network Interface Cards (NICs), operate at multiple layers (both
Physical and Data Link layers) as they handle both the physical transmission of data and the
framing of data packets.
📡 How Data Transfers Through the OSI Model
When data is transmitted over a network, it traverses the OSI layers in the following manner
1. Application Layer (Layer 7): The data transmission process begins with an application,
such as a web browser or email client, that generates data to be transmitted. The
application layer prepares the data for transmission by encapsulating it in the appropriate
protocol format.
2. Presentation Layer (Layer 6): This layer translates data between the application and the
network format. It handles data encryption, compression, and translation to ensure that
data from the application layer can be properly interpreted by the receiving system.
3. Session Layer (Layer 5): The session layer establishes, manages, and terminates
connections between applications. It sets up, coordinates, and terminates conversations,
exchanges, and dialogues between the applications at each end.
4. Transport Layer (Layer 4): Responsible for end-to-end communication and error
handling, this layer ensures complete data transfer. It segments and reassembles data into
a data stream, providing reliable or unreliable delivery and error correction.
5. Network Layer (Layer 3): This layer determines how data is sent to the receiving
device. It handles logical addressing, routing, and path determination, ensuring that data
packets are sent across the network to the correct destination.
6. Data Link Layer (Layer 2): The data link layer provides node-to-node data transfer—a
link between two directly connected nodes. It detects and possibly corrects errors that
may occur in the physical layer. It defines the protocol to establish and terminate a
connection between two physically connected devices.
7. Physical Layer (Layer 1): The physical layer is responsible for the transmission and
reception of unstructured raw data between a device and a physical transmission medium.
It converts the digital bits into electrical, radio, or optical signals.
🔄 Encapsulation and Decapsulation
Encapsulation (Sender Side): As data moves down the OSI layers, each layer adds its
own header (and sometimes trailer) to the data. This process wraps the data with the
necessary protocol information for that layer.
Transmission: The fully encapsulated data is transmitted over the physical medium to
the receiving device.
Decapsulation (Receiver Side): Upon arrival, the data moves up the OSI layers. Each
layer removes its corresponding header, interpreting and processing the data as required,
until it reaches the application layer for use by the receiving application.
THE TCP/IP Protocol
Transmission Control Protocol/Internet Protocol (TCP/IP) is a suite of communication protocols
that enables reliable data exchange over networks, including the internet. Developed in the 1970s
by Vint Cerf and Bob Kahn, TCP/IP has become the foundational framework for internet
communication. It’s a layered structure similar to OSI only that it has four layers instead of
seven.
Layers of the TCP/IP Model
The TCP/IP model organizes these protocols into four abstraction layers, each serving distinct
functions:
1. Link Layer (Network Interface Layer):
o Function: Manages data transmission between devices on the same network
segment, handling physical addressing and access mechanisms.
o Protocols: Ethernet, Wi-Fi.
2. Internet Layer:
o Function: Responsible for logical addressing, routing, and packet forwarding
across networks.
o Protocols: IP (IPv4, IPv6), ICMP.
3. Transport Layer:
o Function: Ensures reliable data transfer between end systems, providing error
correction and flow control.
o Protocols: TCP, UDP.
4. Application Layer:
o Function: Provides network services directly to end-user applications, facilitating
data exchange for various services.
o Protocols: HTTP, FTP, SMTP, DNS.
THE INTERNET AND INTRANET
The Internet is a global network of computers that are connected together to share information
and resources. It allows people around the world to communicate, access websites, send emails,
watch videos, and do much more. While, An Intranet is a private network used within an
organization (like a school, company, or government office). It works like the internet, but it is
restricted to only people within that organization.
Types of IP Addresses:
IPv4 (Internet Protocol version 4)
IPv4 is the fourth version of the Internet Protocol. It is the most commonly used system for
identifying devices on a network using a numerical IP address.
Structure of IPv4 Address:
IPv4 addresses are made up of four numbers (32 bits).
Each number (called an octet) ranges from 0 to 255.
Network Number Host Number
The numbers are separated by dots (. ).
Example:[Link]
Classful IP Addressing
Classful IP addressing is a system used in IPv4 to divide IP addresses into five classes (A, B, C,
D, and E) based on their first few bits. Each class has a different range of addresses, designed
for different sizes of networks. Purpose is to organize IP addresses based on network size and
Helps in managing small, medium, and large networks.
The Five Classes:
Class Starting IP Range First-Octet Usage Default Subnet
Range Mask
A [Link] 1 – 126 Very large networks [Link]
[Link] (e.g., ISPs)
B [Link] 128 – 191 Medium networks (e.g., [Link]
[Link] universities)
C [Link] 192 – 223 Small networks (e.g., [Link]
[Link] offices, homes)
D [Link] 224 – 239 Multicasting (not for
[Link] normal devices)
E [Link] – 240 – 255 Research and reserved N/A
[Link] use
Note: The IP address [Link] is reserved for loopback (testing) and not used in any class.
Class D & E:
Class D: Used for multicasting (sending data to many devices at once).
Class E: Reserved for research and future use.
Classes of IPv4 Addresses:
IPv4 addresses are divided into 5 classes, but the most common ones are:
Class Starting Range Use
A [Link] – [Link] Large networks (e.g., big companies)
B [Link] – [Link] Medium-sized networks
C [Link] – [Link] Small networks (e.g., homes, schools)
Advantages of IPv4:
Simple and easy to use.
Supported by almost all devices and networks.
Efficient for small and medium networks.
Disadvantages of IPv4:
Limited number of addresses (only 4.3 billion).
Not enough for the growing number of internet-connected devices.