Computer Network
I. Introduction to Computer Networks
Definition: A computer network is a collection of interconnected devices (computers, servers, mainframes, network devices) that can communicate, share resources, and exchange data.
Scope: Networks can vary from small setups (home networks) to global systems (the Internet).
II. Importance and Applications
Resource Sharing: Enables multiple users to access shared hardware (e.g., printers, scanners), software, and data.
Communication: Supports various forms of communication like email, instant messaging, video conferencing.
Data Access and Management: Centralized data storage improves accessibility and security of data.
Cost Efficiency: Sharing resources helps organizations reduce overall costs.
Scalability: Networks can be expanded to accommodate more users and devices.
III. Brief History of Networking
1960s: Development of ARPANET, the first wide-area network, and precursor to the Internet.
1970s-1980s: Introduction of key protocols like TCP/IP and Ethernet.
1990s: Rapid expansion of the Internet and emergence of the World Wide Web.
2000s-Present: Growth in wireless networks, mobile networking, IoT, and high-speed broadband.
IV. Types of Computer Networks
A. Local Area Network (LAN)
Definition: A network confined to a small geographic area (e.g., a building).
Characteristics: High data rates, low latency, typically privately owned.
Use Cases: Home networks, office setups, and school networks.
B. Wide Area Network (WAN)
Definition: A network that spans a large geographic area, possibly global.
Characteristics: Generally lower data transfer rates than LANs, utilizes public/leased lines.
Use Cases: Connecting multiple offices in different cities or countries.
C. Metropolitan Area Network (MAN)
Definition: Covers a city or large campus.
Characteristics: Larger than LANs, smaller than WANs; connects multiple LANs.
Use Cases: Citywide Wi-Fi services, university networks.
D. Personal Area Network (PAN)
Definition: A network for personal devices within a small range (meters).
Characteristics: Often wireless (Bluetooth), designed for low power consumption.
Use Cases: Connecting smartphones, tablets, laptops, and wearable devices.
E. Other Types
Campus Area Network (CAN): Similar to LAN but spans multiple buildings within a confined area.
Storage Area Network (SAN): Specialized in high-speed data transfers between storage devices and servers.
V. Network Topologies
A. Definition
Network Topology: Arrangement of nodes and connections in a network.
B. Types of Topologies
1. Bus Topology
All devices connect to a central cable (bus).
Advantages: Easy to implement, less cable required.
Disadvantages: Limited length and stations, tough to troubleshoot.
2. Star Topology
All devices connect to a central hub or switch.
Advantages: Easy installation, failure of one node doesn’t disrupt others.
Disadvantages: Central hub failure affects the whole network.
3. Ring Topology
Each device connects to two others, forming a circle.
Advantages: Reduces data collisions due to unidirectional data flow.
Disadvantages: Failure in any node disrupts the network.
4. Hybrid Topology
Combination of two or more topologies.
Advantages: Flexible, can utilize strengths from various topologies.
Disadvantages: More complex to design.
5. Mesh Topology
Each device connects to every other device.
Advantages: Redundant connections enhance reliability.
Disadvantages: Complex design, higher costs.
VI. Network Models
Importance: Network models provide frameworks for understanding and designing protocols.
A. OSI Model
Overview: A seven-layer model standardizing telecommunication functions.
Layers:
Physical Layer: Transmits raw bits over media.
Data Link Layer: Encapsulates and organizes bits into frames.
Network Layer: Responsible for packet forwarding, routing.
Transport Layer: Transmits data using protocols like TCP, UDP.
Session Layer: Establishes and manages communication sessions.
Presentation Layer: Prepares data for the application layer (encryption, compression).
Application Layer: Facilitates user interface and application services.
B. TCP/IP Model
Overview: A four-layer model used for network protocol design.
Layers:
Application Layer: Generates user data (e.g., HTTP, FTP).
Transport Layer: Manages data delivery and connection (TCP, UDP).
Internet Layer: Routes packets to destination networks.
Network Access Layer: Interfaces with the physical network infrastructure.
C. Differences between TCP/IP and OSI Model
TCP/IP: Widely used protocol set; practical application in contemporary networking.
OSI: Conceptual model that standardizes network functions, more theoretical.
VII. Networking Devices
A. Routers
Function: Direct data packets across networks based on IP addresses.
Features: Includes routing tables, NAT (Network Address Translation), firewall features.
B. Switches
Function: Connect devices in a LAN, forwarding data using MAC addresses.
Types:
Unmanaged: Basic functionality, plug-and-play.
Managed: Offers advanced configuration and monitoring.
C. Hubs
Function: Broadcasts incoming data to all ports in the network.
Note: Considered obsolete; replaced by switches due to inefficiency.
D. Modems
Function: Convert digital data into analog signals for transmission over phone/cable systems.
Types: DSL modems for subscriber lines, cable modems for internet connections.
E. Access Points (APs)
Function: Provide wireless access to network.
Use Cases: Extend Wi-Fi coverage in large areas.
F. Firewalls
Function: Protect networks by regulating traffic based on security rules.
Types: Hardware firewalls (physical devices) and software firewalls (applications).
G. Network Interface Cards (NICs)
Function: Hardware components connecting computers to networks.
Types:
Ethernet NICs: For wired connections.
Wireless NICs: For Wi-Fi connectivity.