Introduction To Computer Networks - 1
Introduction To Computer Networks - 1
• Topics:
• Definition of Computer Networks
• Types of Networks (LAN, WAN, MAN)
• Network Topologies (Bus, Star, Ring, Mesh)
• Network Models: Client-Server vs Peer-to-Peer
• Overview of Internet and Intranet
• Activities:
• Classroom discussion on everyday network usage
• Diagram of different network topologies
1. Intermediary Devices
These devices facilitate communication between end devices, manage data flow, and ensure proper
data delivery across the network.
• Router:
• Directs data between different networks, typically LAN to WAN.
• Uses IP addresses to forward packets.
• Can perform Network Address Translation (NAT), filtering, and routing based on
protocols.
• Switch:
• Connects devices within a local area network (LAN).
• Operates at the Data Link Layer (Layer 2) of the OSI model, forwarding data based
on MAC addresses.
• Can be managed or unmanaged; managed switches offer features like VLAN
support.
• Hub:
• A basic networking device that connects multiple Ethernet devices in a LAN.
• Operates at Layer 1 (Physical Layer) of the OSI model.
• Does not filter data; broadcasts data to all connected devices, leading to potential
collisions.
• Bridge:
• Connects and filters traffic between two or more network segments.
• Operates at the Data Link Layer (Layer 2).
• Reduces traffic by segmenting the network.
• Repeater:
• Amplifies or regenerates signals to extend the range of a network.
• Used in both wired and wireless networks.
• Operates at the Physical Layer (Layer 1).
• Gateway:
• Acts as an entry/exit point between different networks, often between a LAN and the
Internet.
• Operates at multiple layers of the OSI model, depending on its purpose.
• Translates data between different protocols (e.g., converting between IPv4 and IPv6).
• Access Point (AP):
• Provides wireless connectivity in a local network (WLAN).
• Acts as a bridge between wired and wireless networks.
• Often integrated into routers in home and small-office environments.
2. End Devices
These devices interact with the network to either consume or produce data. They are typically the
endpoints in a network.
• Computer (PC, Laptop):
• End-user devices that generate and receive data over the network.
• Communicate with other devices via wired or wireless connections.
• Mobile Devices (Smartphones, Tablets):
• Wireless devices that connect to the network using Wi-Fi or cellular networks.
• Used for data exchange, media consumption, and communication.
• Servers:
• Central devices that provide services and resources to clients in the network.
• Can host websites, databases, or file storage systems.
• Typically located in data centers or cloud environments.
• Printers:
• Networked printers can be accessed by multiple devices for printing tasks.
• Can connect through wired (Ethernet) or wireless (Wi-Fi) connections.
3. Security Devices
These devices are responsible for protecting the network from unauthorized access, data breaches,
and other security threats.
• Firewall:
• Monitors and controls incoming and outgoing network traffic based on security rules.
• Can be hardware-based or software-based.
• Protects networks from unauthorized access, DDoS attacks, and other threats.
• Intrusion Detection System (IDS) / Intrusion Prevention System (IPS):
• IDS monitors network traffic for suspicious activity and potential threats.
• IPS not only detects threats but can also take preventive actions (e.g., blocking
malicious traffic).
• Proxy Server:
• Acts as an intermediary for requests between clients and the Internet.
• Can be used for security, performance optimization, and anonymity.
• VPN Concentrator:
• Manages secure VPN connections, allowing users to access a network remotely.
• Encrypts traffic between the user and the network to ensure secure communication.
4. Communication Devices
These devices enable data transmission across wired or wireless networks.
• Modem:
• Converts digital data from a computer into a format suitable for transmission over a
telephone line or cable.
• Commonly used in broadband Internet connections (DSL or Cable Modems).
• Network Interface Card (NIC):
• A hardware component that connects a computer or device to a network.
• Can support wired (Ethernet) or wireless (Wi-Fi) connections.
• Responsible for sending and receiving data at the Data Link Layer (Layer 2).
5. Storage Devices
These devices store and manage data within a network and provide shared access to data resources.
• Network Attached Storage (NAS):
• A specialized storage device that connects to a network to provide file-based data
storage services to other devices.
• Commonly used for backup, archiving, and shared access to files.
• Storage Area Network (SAN):
• A high-speed network that provides block-level storage to servers.
• Often used in large-scale data centers for handling massive amounts of data.
6. Hybrid Devices
These devices combine functionalities from multiple categories of network devices, offering more
advanced features and flexibility.
• Multilayer Switch:
• Combines the functionality of both a switch (Layer 2) and a router (Layer 3).
• Used for complex network designs where both switching and routing are required.
• Wireless Router:
• Combines a router, wireless access point, and switch.
• Provides wired and wireless connectivity and manages routing within the local
network and to external networks (e.g., the Internet).
• Load Balancer:
• Distributes network or application traffic across multiple servers.
• Ensures no single server is overwhelmed, optimizing performance and reliability.
7. Power Devices
These devices ensure continuous power supply for network devices, especially critical ones like
routers and servers.
• Uninterruptible Power Supply (UPS):
• Provides backup power in case of electrical outages.
• Ensures that network devices (like servers and switches) stay online during power
failures.
In summary, network devices can be broadly categorized into intermediary devices (like routers and
switches), end devices (such as computers and mobile phones), security devices (like firewalls and
IDS/IPS), communication devices (modems and NICs), storage devices (NAS and SAN), hybrid
devices (wireless routers, multilayer switches), and power devices (UPS). Each plays a distinct role
in ensuring the smooth functioning of networks.
Network cables are the medium through which data is transmitted between devices in a network.
There are several types of network cables, each with specific properties and applications. Here's an
overview of the common types:
2. Coaxial Cables
Coaxial cables have a central conductor surrounded by a dielectric insulator, shielding, and an outer
jacket. This type of cable is commonly used in older networking technologies and for cable
television (CATV).
• Features:
• Better protection against electromagnetic interference compared to twisted pair
cables.
• Primarily used in cable internet connections and early Ethernet networks (such as
10BASE2 and 10BASE5).
• Types:
• RG-6: Used for cable TV and broadband internet.
• RG-59: Older type used for analog video connections and early internet networks.
• Applications:
• Broadband internet, cable TV, and satellite connections.
• Some legacy Ethernet networks still use coaxial cables, but they have largely been
replaced by twisted pair and fiber optic cables.
4. Crossover Cable
Crossover cables are a specific type of twisted pair cable used to connect two devices directly
without using a hub or switch (e.g., connecting two computers together).
• Features:
• One end of the cable has the transmit and receive wires swapped.
• Used in older network setups, but not as common now since most modern Ethernet
devices support auto-MDIX, which automatically configures for crossover
connections.
5. Patch Cable
Patch cables are short twisted pair cables, typically UTP, that are used to connect devices within a
short range, such as between a computer and a wall outlet or between a switch and a patch panel.
• Features:
• Used for temporary or permanent short-range connections.
• Available in various lengths, colors, and categories (e.g., Cat5e, Cat6).
8. USB Cables
Though not a traditional network cable, USB cables can be used for networking purposes through
USB tethering, connecting computers to peripheral devices, or using USB network adapters.
Summary Table:
Cable Type Speed Distance Applications
Cat5e UTP Up to 1 Gbps Up to 100 meters Ethernet LANs
Cat6 UTP Up to 10 Gbps Up to 55 meters (10 Ethernet LANs, data centers
Cable Type Speed Distance Applications
(short) Gbps)
Cat6a UTP Up to 10 Gbps Up to 100 meters High-speed Ethernet
1 Gbps (with
Coaxial (RG-6) Several hundred meters Cable internet, TV connections
DOCSIS)
Fiber Optic Telecom, long-distance data
Up to Tbps Up to 100+ km
(SMF) links
Fiber Optic
Up to 100 Gbps Up to 2 km Data centers, enterprise LANs
(MMF)
In summary, the type of network cable chosen depends on the required speed, distance, and
interference resistance of the network. Twisted pair cables (UTP, STP) are most common for
Ethernet networks, while fiber optic cables are used for high-speed, long-distance connections.
Coaxial cables are primarily used for cable television and broadband internet.
Networks can be categorized based on their size, topology, connection method, or functional
relationships between the connected devices. Here are the most common types of networks:
Network topology refers to the physical or logical layout of how nodes (such as computers, devices,
or switches) are connected within a network. The topology defines how data is transmitted and how
devices interact. There are several types of network topologies, each with its advantages and
disadvantages.
Types of Network Topology
Bus Topology
Definition: In a bus topology, all devices are connected to a single central cable (backbone).
Data sent by any device travels along the cable and can be received by any other device.
Diagram:
lua
Key Features:
Only one device can send data at a time.
Terminators are placed at both ends of the central cable to prevent signal reflection.
Advantages:
Easy to set up and requires less cable.
Cost-effective for small networks.
Disadvantages:
Performance degrades as more devices are added.
If the central cable fails, the entire network is affected.
Difficult to troubleshoot and limited scalability.
Star Topology
Definition: In a star topology, all devices are connected to a central device, usually a hub or
switch. Data passes through this central point before reaching its destination.
Diagram:
css
Device 1
|
Device 2-- Hub/Switch --Device 3
|
Device 4
Key Features:
The central hub or switch manages data transmission between devices.
Devices do not communicate directly with each other.
Advantages:
Easy to add or remove devices without affecting the rest of the network.
Centralized management makes it easier to troubleshoot.
If one device or cable fails, it doesn’t affect the entire network.
Disadvantages:
If the hub or switch fails, the entire network is affected.
Requires more cable compared to bus topology.
Higher costs due to additional hardware (hub/switch).
Ring Topology
Definition: In a ring topology, each device is connected to two other devices, forming a
circular path for data to travel.
Diagram:
lua
Key Features:
Data travels in a unidirectional or bidirectional ring.
Each device receives data from its neighbor and passes it along to the next.
Advantages:
Data transmission is relatively efficient in a small ring.
Easy to identify which device is causing a problem if the network fails.
Disadvantages:
A failure in any cable or device can disrupt the entire network.
Adding or removing devices requires network downtime.
Slower than other topologies if many devices are present.
Mesh Topology
Definition: In a mesh topology, each device is connected to every other device in the network,
allowing for multiple data paths.
Diagram:
lua
Key Features:
Full mesh: Every device is connected to every other device.
Partial mesh: Only some devices have direct connections.
Advantages:
Highly reliable—if one connection fails, data can be rerouted.
Offers redundancy and fault tolerance.
Disadvantages:
Expensive due to the large number of cables and ports required.
Complex installation and management.
markdown
Root Hub
|
---------------
| | |
markdown
- **Key Features:**
- There is a hierarchy of devices, with each branch containing multiple star networks.
- The central node is typically a switch or hub.
- **Advantages:**
- Highly scalable, good for large networks.
- Easy to manage and expand by adding more branches.
- **Disadvantages:**
- If the backbone line fails, the entire network can fail.
- Requires a lot of cabling.
- Maintenance is complex due to its hierarchical structure.
Hybrid Topology
Definition: A hybrid topology is a combination of two or more different topologies (e.g., star-
bus, star-ring) within the same network.
Diagram: Depends on the topologies being combined.
Key Features:
Inherits the strengths and weaknesses of the topologies used.
The layout can be customized to meet specific requirements.
Advantages:
Flexibility to design a network that suits particular needs.
Can incorporate the benefits of multiple topologies.
Disadvantages:
Complexity in design and management.
Expensive due to different types of devices and connections used.
Physical Topology:
Refers to the actual layout of the cables, devices, and network components.
Example: In a star topology, all devices are physically connected to a central switch or hub.
Logical Topology:
Refers to how data flows within the network, independent of the physical layout.
Example: In a ring topology, the physical layout might look like a star, but data logically flows
in a ring.
Comparison of Topologies
Topology Advantages Disadvantages
Bus Easy to install, less cable required Difficult to troubleshoot, performance degrades with
more devices
Star Easy to manage and troubleshoot, adding/removing devices is easy Expensive due to
central device, network fails if hub/switch fails
Ring Organized data flow, easy to pinpoint failure Failure in one node or cable can bring
down the entire network
Mesh Highly reliable, fault-tolerant, no single point of failure Expensive and complex to install,
requires lots of cables
Tree Scalable, easy to manage in a large environment Backbone failure affects the whole
network, complex cabling
Hybrid Flexible, can be customized for specific needs Complex design, expensive and difficult
to maintain
Conclusion
Choosing the right network topology is critical for the performance, scalability, and reliability of a
network. Each topology offers unique advantages and limitations, making some more suitable for
small-scale networks (e.g., star or bus topology) and others better for large-scale or highly resilient
networks (e.g., mesh or hybrid topology). Understanding the requirements of the network helps in
selecting the best topology.