afm719 / Cloud-Computing-Arahi

0 stars 0 forks source link

Mini guide on networks #6

Open afm719 opened 1 month ago

afm719 commented 1 month ago

1. What is a Network?

A network is a collection of devices connected to each other to share resources (like files or the internet) and allow communication between them. Networks can be small (local networks) or large (like the internet).


2. Types of Networks


3. Network Components


4. Network Topologies


5. Important Protocols


6. IP Addresses


7. OSI Model (Open Systems Interconnection)

The OSI model breaks network communication into 7 layers, which help standardize and explain how networks operate:

  1. Physical Layer: Electrical, optical signals, hardware (cables, switches).
  2. Data Link Layer: Transmission of data over a physical link (e.g., Ethernet, MAC).
  3. Network Layer: Handles routing and addressing (e.g., IP).
  4. Transport Layer: Ensures reliable data delivery (e.g., TCP).
  5. Session Layer: Establishes and manages sessions between applications.
  6. Presentation Layer: Translates data formats and handles encryption.
  7. Application Layer: Interfaces for applications (e.g., HTTP, FTP, SMTP).

8. Network Security


9. Additional Concepts


10. Common Performance Metrics


afm719 commented 1 month ago

Let’s imagine you're sitting at home with your laptop, and you want to visit www.google.com.

  1. Private IP (within your home network):

    • Your laptop has a private IP address like 192.168.1.10 assigned by your home router using DHCP.
    • All devices connected to your router, such as your phone, tablet, or smart TV, will also have private IPs, typically in the same range (192.168.x.x), unique within your home.
  2. Public IP (visible to the outside world):

    • Your router has a public IP address (e.g., 203.0.113.5) assigned by your Internet Service Provider (ISP). This is the address visible to websites and services outside your home network.
    • When your laptop sends a request to Google, the router uses NAT (Network Address Translation) to replace your laptop's private IP (192.168.1.10) with your home’s public IP (203.0.113.5).
  3. DNS and IP conversion:

    • When you type www.google.com in your browser, your router uses DNS (Domain Name System) to convert that domain name into Google's IP address. For example, it might resolve to 172.217.16.206 (Google’s IP).
  4. Communication:

    • Your request is sent from your public IP address (203.0.113.5) to Google’s public IP (172.217.16.206).
    • Google receives the request, processes it, and sends back the data (the website content) to your public IP address.
  5. NAT and Private IP Return:

    • When the response from Google reaches your router, NAT translates the public IP (203.0.113.5) back to your laptop's private IP (192.168.1.10), and your laptop receives the data.

So: