Network and Networking Basics
Network and Networking Basics
A network is a system of interconnected devices (like computers, servers, smartphones, etc.) that communicate with
each other to share resources, data, and services. Networks can range in size from a small home network to the global
internet. The main purpose of a network is to enable devices to exchange information efficiently and securely.
2. Resource Sharing: Networks facilitate the sharing of hardware (e.g., printers, storage devices) and software resources
(e.g., applications, files) among users.
3. Data Exchange: Devices on a network can send and receive data in the form of messages, files, and streams.
Types of Networks:
- Local Area Network (LAN): Connects devices within a small geographic area, like an office, home, or school. It's typically
fast and uses Ethernet or Wi-Fi.
- Wide Area Network (WAN): Connects multiple LANs over long distances, often using telecommunication lines. The
internet is the largest example of a WAN.
- Personal Area Network (PAN): Very small networks like Bluetooth connections between personal devices.
Components of a Network:
- Devices (Nodes): Computers, phones, servers, printers, and other devices that connect to the network.
- Router: Directs traffic between different networks (e.g., a home network and the internet).
- Switch: Manages communication between devices on a single network (e.g., inside a LAN).
- Cables/Wireless Connections: The physical medium (like Ethernet cables or Wi-Fi) through which data travels.
- Protocols: Rules that govern how devices communicate (e.g., TCP/IP, HTTP).
Benefits of Networking:
- Collaboration: Enables multiple users to work on the same project, share files, and access information simultaneously.
- Cost-saving: Hardware resources like printers or servers can be shared across many devices.
- Centralized Management: Administrators can monitor, manage, and secure networks from a central point.
In essence, networks are the backbone of modern communication and technology, enabling everything from simple file
sharing to the complex global infrastructure of the internet.
Networking Basics
1. What is Networking?
- Networking is the practice of connecting computers and other devices to share resources, such as files, printers, and
internet access.
2. Types of Networks:
- Local Area Network (LAN): A network covering a small area, like a home, office, or campus.
- Wide Area Network (WAN): A network covering a large geographic area, such as a city or country, often consisting of
multiple LANs.
- Personal Area Network (PAN): A small network for personal devices, like Bluetooth connections.
- Router: Directs data packets between networks, connecting multiple devices to the internet.
- Switch: Connects devices within a LAN and enables data transfer between them.
- Modem: Connects a LAN to the internet, converting digital data to analog signals and vice versa.
- Firewall: Secures the network by monitoring and controlling incoming and outgoing traffic based on security rules.
- Transmission Control Protocol/Internet Protocol (TCP/IP): The foundational protocol suite for the internet, enabling
communication between networks.
- Dynamic Host Configuration Protocol (DHCP): Automatically assigns IP addresses to devices on a network.
- Domain Name System (DNS): Translates domain names (like google.com) into IP addresses.
5. Network Topologies:
- Mesh: Every device is connected to every other device, providing high redundancy.
6. IP Addressing:
- IPv4 is the most common format, consisting of four sets of numbers (e.g., 192.168.1.1).
- IPv6 is the newer version, with a longer address format to accommodate more devices.
- Encryption: Converts data into an unreadable format to secure information during transfer.
- Virtual Private Network (VPN): Creates a secure, encrypted connection over a less secure network, like the internet.
- IPv4: Uses a 32-bit address format (e.g., 192.168.1.1), allowing for approximately 4.3 billion unique addresses.
- IPv4 is widely used but limited in capacity, leading to IPv4 address exhaustion.
- IPv6: Introduced to address the limitations of IPv4, IPv6 uses a 128-bit address format, which supports around 340
undecillion (3.4×10^38) addresses.
- IPv6 addresses look different, using hexadecimal and separated by colons (e.g.,
2001:0db8:85a3:0000:0000:8a2e:0370:7334).
- IPv4 addresses are divided into five classes (A, B, C, D, E) based on their leading bits and the range they cover.
3. Subnetting:
- Subnetting divides a large network into smaller, more manageable subnetworks, which optimizes traffic flow and
enhances security.
- Subnet Mask: Used in subnetting, it defines which part of an IP address represents the network and which part
represents the host.
- Example: For the IP address 192.168.1.0 with a subnet mask of 255.255.255.0, the first three octets (192.168.1)
represent the network, and the last octet (0-255) represents individual hosts.
4. CIDR Notation:
- Classless Inter-Domain Routing (CIDR): Introduces flexibility in IP address allocation by using suffixes to denote how
many bits are dedicated to the network.
- Example: In 192.168.1.0/24, the "/24" indicates that the first 24 bits are network bits, and the remaining 8 bits are
host bits.
- Public IP: Assigned by ISPs for internet-accessible devices. These addresses are unique across the entire internet.
- Private IP: Used within private networks (LANs) and is not directly accessible from the internet. Common ranges
include:
- NAT is a technique where multiple devices on a private network share a single public IP address to connect to the
internet.
- Purpose of NAT: Conserves public IP addresses, adds a layer of security by hiding internal IP addresses, and enables
devices within a private network to access the internet using one public IP.
- Global Unicast: Unique, routable IPs for internet access (prefix 2000::/3).
- Link-Local: Used for communication within a single network segment (prefix FE80::/10).
- Anycast: Assigns a single address to multiple interfaces, routing packets to the nearest one based on distance.
- A DHCP server can lease addresses for a defined period, reassigning unused ones to other devices as needed.