Computer networks
Computer networks
Network Topology
Defines the physical or logical arrangement of network devices.
Types of Topologies
1. Bus Topology – Single backbone cable, low cost, but collision-prone.
2. Star Topology – Central hub/switch, reliable, but expensive.
3. Ring Topology – Each device connected to two others, avoids
collisions but failure in one link affects the whole network.
4. Mesh Topology – Every device connected to every other, highly
redundant but costly.
5. Tree Topology – Hierarchical star-bus combination, scalable but
complex.
6. Hybrid Topology – Mix of two or more topologies for flexibility.
Transmission Media
The physical path for data communication.
Types of Transmission Media:
1. Guided (Wired) Media:
o Twisted Pair Cable (Shielded & Unshielded)
o Coaxial Cable
o Fiber Optic Cable
2. Unguided (Wireless) Media:
o Radio Waves
o Microwaves
o Infrared
Factors Affecting Transmission:
• Bandwidth
• Attenuation
• Interference
1. Modem (Modulator-Demodulator)
A modem is a network device that connects a computer or network to the
internet by converting digital data from a computer into an analog signal
for transmission over telephone lines, fiber optics, or cable networks. It
also converts incoming analog signals back into digital data for the
computer to process.
Functions of a Modem:
1. Signal Conversion – Converts digital signals to analog for
transmission and vice versa.
2. Establishing Internet Connection – Provides access to the internet
by communicating with the ISP.
3. Data Compression & Error Correction – Some modems include
features for efficient data transfer.
4. Dial-up or Always-On Connection – Supports various types of
connections (DSL, cable, fiber, dial-up).
Types of Modems:
1. Dial-up Modem – Uses a telephone line; slow (56 kbps).
2. DSL Modem (Digital Subscriber Line) – Uses a telephone line but
offers higher speeds (up to 100 Mbps).
3. Cable Modem – Uses coaxial cable for internet access; faster than
DSL (up to 1 Gbps).
4. Fiber Optic Modem – Uses fiber optics, providing speeds over 1
Gbps.
5. Wireless Modem – Uses cellular networks (3G, 4G, 5G) for internet
access.
Advantages of a Modem:
Enables internet access
Provides reliable signal conversion
Supports multiple types of connections
Disadvantages of a Modem:
Requires an ISP subscription
Limited to the speed provided by the ISP
Cannot distribute internet to multiple devices directly (requires a
router)
2. Router
A router is a network device that directs data packets between different
networks. It connects local devices (computers, phones, smart TVs) to the
internet and manages traffic to ensure efficient communication.
Functions of a Router:
1. Network Traffic Management – Directs data packets to their correct
destination.
2. IP Address Assignment – Uses DHCP to assign local IP addresses.
3. NAT (Network Address Translation) – Allows multiple devices to
share a single public IP address.
4. Firewall and Security Features – Protects against unauthorized
access.
5. Wireless Connectivity (Wi-Fi Router) – Provides wireless internet
access.
Types of Routers:
1. Wired Router – Connects devices using Ethernet cables.
2. Wireless Router – Provides Wi-Fi connectivity.
3. Core Router – Used in large enterprise networks for high-speed
data routing.
4. Edge Router – Connects local networks to the internet.
5. Virtual Router – Software-based routing solution.
Router Modes:
• Access Point Mode – Extends an existing network.
• Repeater Mode – Boosts weak Wi-Fi signals.
• Bridge Mode – Connects two networks together.
Advantages of a Router:
Connects multiple devices to the internet
Improves network security with firewalls
Supports both wired and wireless connections
Disadvantages of a Router:
Can be expensive
Configuration may be complex
Limited range for wireless routers
3. Hub
A hub is a basic network device that connects multiple devices within a
local network. Unlike routers and switches, hubs do not filter data; they
simply broadcast it to all connected devices.
Functions of a Hub:
1. Broadcasting Data – Sends incoming data to all devices in the
network.
2. Simple Connectivity – Provides basic networking for multiple
devices.
3. Physical Layer Operation – Operates at the OSI model's Physical
Layer (Layer 1).
Types of Hubs:
1. Passive Hub – Simply connects devices without amplifying signals.
2. Active Hub – Boosts signals before sending them out.
3. Intelligent Hub – Has monitoring capabilities to manage network
traffic.
Advantages of a Hub:
Easy to install and use
Cheap and simple solution for small networks
Disadvantages of a Hub:
No data filtering (sends data to all devices)
Inefficient and slow compared to switches
Creates network congestion
Definition of Protocol:
A protocol is a set of rules and standards that govern how data is
transmitted and received over a network. It ensures that devices
communicate correctly and efficiently.
Types of Protocols:
A. Network Communication Protocols
These protocols manage data exchange between devices.
1. TCP/IP (Transmission Control Protocol/Internet Protocol)
o The backbone of the internet.
o TCP ensures reliable data delivery; IP handles addressing and
routing.
2. UDP (User Datagram Protocol)
o Faster but less reliable than TCP (used in real-time
applications like gaming and VoIP).
3. ICMP (Internet Control Message Protocol)
o Used for error messages and diagnostics (e.g., ping
command).
4. HTTP/HTTPS (Hypertext Transfer Protocol/Secure)
o Used for web browsing. HTTPS encrypts data for security.
5. FTP (File Transfer Protocol)
o Transfers files between computers over a network.