Bitpath

Lesson 2 · Unit 02

UDP: fire and forget

No handshake, no order, no retries, and why that is useful

13 exercisesabout 3 min

What you practise

  • No handshake, no ordering, no retries
  • Why DNS, video calls and games use it
  • What an application must add itself
  • QUIC in one line

Try a question from this lesson

Pick one

On a video call, a packet holding 20 ms of audio is lost. Getting it resent would take 200 ms. What should the app do?

The ideas

Concept cards are short on purpose. In the app they appear between questions, after you have met the idea.

Concept

UDP: IP plus ports

UDP adds almost nothing to IP: two port numbers, a length and a checksum, 8 bytes in all.

There is no handshake, no ack, no resend and no ordering. A packet is sent once and may or may not arrive. In return there is no setup delay and nothing ever waits.

UDP header (8 bytes)
+------------+------------+
| src port   | dst port   |
+------------+------------+
| length     | checksum   |
+------------+------------+
| data ...                |

Concept

A blank canvas

UDP's lack of features is the feature. An application can add exactly the reliability it needs and no more.

QUIC goes all the way: it rebuilds connections, acks, resends and encryption on top of UDP, inside the application instead of the operating system. HTTP/3 runs on QUIC.

10 more exercises in the app

  • 4× multiple choice
  • 2× type the answer
  • 2× true or false
  • 1× fill the blanks
  • 1× order the lines

Bitpath is an iOS app in development. Join the waitlist and you get one email when it is ready to try.

One email when Bitpath is ready to try. Nothing else. Privacy