Dmitrii Korolkov

github | email

Basic Networking Concepts

Networking is a fundamental concept in IT, cybersecurity, and web development. Understanding basic network terms such as IP addresses, subnets, ports, and protocols is essential for working with networks, servers, and security tools.


1. IP Addresses

An IP (Internet Protocol) address is a unique identifier assigned to each device on a network. There are two main types:

  • IPv4: Example - 192.168.1.1 (32-bit address)
  • IPv6: Example - 2001:db8::ff00:42:8329 (128-bit address, designed for a larger address space)

2. Subnets and Subnet Masks

Subnetting divides a network into smaller segments, improving efficiency and security. A subnet mask defines which portion of an IP address represents the network and which part represents the host.

Example:
IP Address: 192.168.1.10
Subnet Mask: 255.255.255.0
Network: 192.168.1.0
Host: 10 (This means the device has been assigned the 10th usable host address in this subnet)

3. CIDR Notation and IP Ranges

Instead of traditional subnet masks, CIDR (Classless Inter-Domain Routing) notation is often used to define IP ranges. The notation uses a forward slash followed by the number of bits assigned to the network.

Example:
Network: 172.128.0.0/10
Subnet Mask: 255.192.0.0
Usable IP Range: 172.128.0.1 - 172.191.255.254
Broadcast Address: 172.191.255.255
Total Hosts: 4,194,302 (minus 2 for network and broadcast)

4. Ports and Protocols

Ports allow different applications and services to communicate over a network. Some commonly used ports:

  • Port 22 - SSH (Secure Shell)
  • Port 53 - DNS (Domain Name System)
  • Port 80 - HTTP (Web traffic)
  • Port 443 - HTTPS (Secure Web traffic)
  • Port 3389 - RDP (Remote Desktop Protocol)

5. Common Networking Protocols

  • TCP (Transmission Control Protocol) - Reliable, connection-oriented protocol.
  • UDP (User Datagram Protocol) - Fast, connectionless protocol used for streaming and gaming.
  • DNS (Domain Name System) - Translates domain names into IP addresses.
  • DHCP (Dynamic Host Configuration Protocol) - Automatically assigns IP addresses to devices on a network.
  • ICMP (Internet Control Message Protocol) - Used for network diagnostics (e.g., ping).

6. Network Address Translation (NAT)

NAT allows multiple devices on a local network to share a single public IP address. It is commonly used in routers to manage internet traffic efficiently.


7. VPN (Virtual Private Network)

A VPN encrypts internet traffic and routes it through a secure server, enhancing privacy and security.


8. Basic Network Troubleshooting Commands

Some useful commands for diagnosing network issues:

# Check connectivity
ping 8.8.8.8
# Display network configuration
ifconfig (Linux/macOS) or ipconfig (Windows)
# Trace network route to a host
traceroute (Linux/macOS) or tracert (Windows)
# Display active network connections
netstat -an