← Network Security tutorial

Network Security

TCP vs UDP

TCP is reliable: before sending data, it establishes a connection (the well-known "three-way handshake"), confirms every piece arrived, and resends anything lost. That reliability has a cost in speed and overhead, so TCP is used where correctness matters more than speed, loading a web page, sending an email.

UDP skips all of that. It just sends the packets and moves on, no handshake, no guaranteed delivery, no resending lost data. That makes it faster and lighter, which is why it's used where speed matters more than perfect delivery, video calls, online games, DNS lookups, a dropped frame or two is barely noticeable, but a laggy call is unusable.

This distinction matters for security too: a lot of scanning and denial-of-service techniques specifically exploit the differences in how each protocol handles unexpected or malformed traffic.

Ready to go further?

These free tutorials are a preview, our Cybersecurity cohort covers it in depth, with a real project and a cohort alongside you. Closes Nov 30

Enroll in Cybersecurity

Cookie preferences

Choose what you're comfortable with. You can change this any time from the footer.

Don't miss out

Ready to build something real?

Create a free account to enroll in a track, and get notified the moment a cohort opens.

Create free account