Mastering Network Basics
Loading...
Netzwerk Basics meistern

Leitfragen — Netzwerktechnik

Wähle ein Thema und lerne interaktiv mit Lernkarten. Tippe auf eine Karte, um die Antwort aufzudecken.

IPv4 Subnetting

Understand IP addresses, subnet masks and how networks are divided.

How does subnetting work?

An IPv4 address consists of 32 bits, written as 4 octets (e.g. 192.168.1.0).

The subnet mask divides the address into network and host portions. /24 means: 24 bits for the network, 8 bits for hosts.

The network address has all host bits set to 0, the broadcast address all set to 1.

Usable hosts = 2^(host bits) - 2 (minus network and broadcast address).

Practice task

TCP Handshake

Understand the 3-way handshake and connection control step by step.

Step 0 of 3
Client
Server
SYN
SYN-ACK
ACK

The TCP 3-way handshake

TCP (Transmission Control Protocol) uses a 3-way handshake to establish a reliable connection:

Step 1: SYN
The client sends a SYN (Synchronize) packet with a random sequence number to the server to request a connection.
Step 2: SYN-ACK
The server responds with SYN-ACK: It acknowledges the client's sequence number (ACK = Seq + 1) and sends its own sequence number.
Step 3: ACK
The client acknowledges the server's sequence number (ACK = ServerSeq + 1). The connection is now established!

Flag overview

SYN ACK FIN RST PSH URG

SYN: SYN: Synchronizes sequence numbers

ACK: ACK: Acknowledges received data

FIN: FIN: Terminates the connection

RST: RST: Resets the connection

PSH: PSH: Push data immediately

URG: URG: Urgent data

Terminate connection (4-way)

To terminate a TCP connection, a 4-way handshake is used:

FIN: FIN: The client sends FIN to close the connection.

ACK: ACK: The server acknowledges the FIN.

FIN: FIN: The server sends its own FIN.

ACK: ACK: The client acknowledges the server's FIN. Connection closed.