Basics of Networking
Overview
Welcome to the basics of networking! In this chapter, you'll learn the essential concepts and technologies that keep every network running. Networks are the backbone of modern IT, and understanding them is the key to more advanced topics.
1. Network Protocols
TCP/IP: Structure and Functionality
- TCP/IP (Transmission Control Protocol/Internet Protocol) is the backbone of the internet. It defines how data is transmitted over networks.
- TCP ensures reliable data transfer by guaranteeing that all packets arrive correctly.
- IP handles the addressing and routing of data packets.
Example of an IP address: 192.168.1.1
Why is TCP/IP important?
- It enables communication between computers.
- It is platform-independent and globally standardized.
UDP vs. TCP
- TCP: Connection-oriented, guarantees data delivery (e.g., web browsers).
- UDP (User Datagram Protocol): Connectionless, faster, but without guarantees (e.g., streaming).
2. OSI Model: The 7 Layers of Communication
The OSI Model (Open Systems Interconnection) describes how data is transferred from an application on one computer to an application on another.
| Layer | Description | Example |
|---|---|---|
| Application | Interaction with software | HTTP, SMTP |
| Presentation | Data formatting, encryption | SSL/TLS |
| Session | Session management between systems | API sessions |
| Transport | Reliable data transfer | TCP, UDP |
| Network | Routing of data | IP, ICMP |
| Data Link | Error detection, framing | Ethernet, WLAN |
| Physical | Physical connection (cables, signals) | Ethernet cables, Wi-Fi signal |
3. Networking Hardware
Routers
- Route data between networks and handle packet routing.
- Example: Your home router forwards data between your Wi-Fi and the internet.
Switches
- Connect devices within a local network (LAN).
- Operate at the Data Link layer of the OSI Model.
Access Points
- Provide wireless access to a network.
- Example: Wi-Fi hotspots in cafés.
4. Basic Network Tools
Ping
Checks if another device on the network is reachable.
ping 8.8.8.8
Traceroute
Shows the path of a data packet through the network.
traceroute example.com
Netstat
Analyzes open connections and ports on a system.
netstat -tuln
Wireshark
A powerful tool for analyzing network traffic.
Next Steps
Now that you know the basics, the next chapter will focus on building and managing networks. Stay tuned!