# TCP/IP Analysis Examples

## Example 1: Three-Way Handshake

**Input:**
```
Explain the TCP three-way handshake process.
```

**Expected Output:**
SYN, SYN-ACK, ACK sequence, sequence numbers, connection establishment, why three steps are needed, SYN flood attacks.

## Example 2: Congestion Control

**Input:**
```
How does TCP congestion control work?
```

**Expected Output:**
Slow start, congestion avoidance, fast retransmit, fast recovery, AIMD algorithm, cwnd and ssthresh parameters.

## Example 3: TCP vs UDP

**Input:**
```
When should I use TCP versus UDP?
```

**Expected Output:**
Reliability comparison, overhead analysis, use cases (TCP for accuracy, UDP for speed), hybrid approaches like QUIC.

## Common Use Cases

- Network troubleshooting
- Protocol selection
- Performance optimization
- Interview preparation
- Network programming
