Network Protocols & Packet Analysis

Read the wire โ€” TCP/IP, TCP, UDP, DNS, TLS, ARP & ICMP, packet by packet

20 lessons ยท CHF 9.90 one-time

20 lessons ยท knowledge checks ยท final exam ยท verifiable certificate ยท in-browser Live-Lab

Buy now ยท CHF 9.90 Open in the course reader

Frequently asked questions

What is encapsulation in networking?

Encapsulation is how each network layer wraps the data above it in its own header as it travels down the stack. Your application data gains a TCP or UDP header with port numbers, then an IP header with addresses, then an Ethernet frame with hardware addresses. The receiving side strips these headers off in reverse. A packet capture lets you read every layer at once.

How do you read a tcpdump line?

Read it left to right: the timestamp, then source address and port, a greater-than sign, the destination address and port, then the TCP flags. A lone [S] flag means a connection is opening (SYN), [S.] is the server's SYN-ACK agreement, and [P.] carries application data. Those three flags let you follow the life of almost any connection.

What are the four layers of the TCP/IP model?

The TCP/IP model has four layers: link (hardware addresses on the wire, such as Ethernet and ARP), internet (source and destination IP addresses and routing, such as IP and ICMP), transport (ports and reliability, such as TCP and UDP), and application (the actual content, such as HTTP, DNS and TLS). Data is encapsulated down through them and read back up.

Why does tcpdump seem to hang on an offline machine?

By default tcpdump tries to resolve IP addresses into hostnames, which requires a working DNS resolver. On an offline or isolated box that lookup cannot complete, so the tool appears frozen. Adding the -n flag disables name resolution, keeping the capture responsive and showing raw addresses instead of names.

Is capturing network traffic legal?

Only capture and analyse traffic on networks you own or are explicitly authorised to monitor. Packet captures can contain other people's credentials, cookies and personal data, so even passive sniffing is legally restricted on networks you do not control. This course uses an isolated lab built for safe, legal practice.

What is inside a TCP header?

A TCP header is at least 20 bytes and carries the source and destination ports, a sequence number and acknowledgment number that provide reliable ordered delivery, a data offset, the flag bits (SYN, ACK, FIN, RST, PSH, URG) that drive the connection life cycle, a window size for flow control, a checksum, and optional fields. The flags are where the three-way handshake is visible on the wire.

Get the full course

One-time purchase, no subscription. Pay as a guest โ€” no account needed.

Buy now ยท CHF 9.90 Open in the course reader

Course syllabus

Lessons unlock after a single one-time purchase โ€” no subscription. Pricing & FAQ โ†’ ยท All course overviews โ†’