Why do you and your friend keep talking over each other on a call after a GAA match?
You're calling a friend after a GAA match. You ask who scored, hear a pause, then start talking just as they answer. What makes a question and answer feel out of step on an Internet call?
You already know that sampling means taking measurements at regular times. You also know that data travels in packets. The Internet connects networks around the world through wired and wireless links. Along the way, routers use each packet's destination IP address to forward it towards the receiver.
Start with your microphone signal. Take samples at regular intervals, like these three readings. Round each to the nearest allowed level: zero, one, two or three millivolts in this example. Write the level numbers as two-bit codes. A codec encodes twenty milliseconds of sound as a frame. Each packet carries one frame here.
A frame covers twenty milliseconds of speech and contains data from many samples. If the microphone signal is sampled more often over that same time, what changes? Pick one answer.
Start the clock when packet A is sent. B is sent twenty milliseconds later. They arrive at twenty and fifty-five milliseconds, thirty-five apart. The change in spacing is called jitter. Playback starts at eighty and one hundred milliseconds, twenty apart. The jumps show each frame waiting in the jitter buffer.
How long does frame B wait in the buffer? Frame A starts playing at eighty milliseconds. Add twenty milliseconds for one frame to find B's playback time: one hundred milliseconds. B arrived at fifty-five milliseconds, so subtract fifty-five from one hundred. B waits forty-five milliseconds.
On another call, the first frame starts playing at ninety milliseconds. The next frame arrives at sixty-two milliseconds. The frames still last twenty milliseconds each. How long does the next frame wait? Pick an answer.
B plays at one hundred milliseconds. At one hundred and twenty, C still hasn't arrived. The receiver can use recent sound to estimate a replacement for C's slot. If D arrives in time, it plays at one hundred and forty milliseconds. Waiting past C's slot would delay the speech that follows.
On the Web, your browser is the client. It requests linked pages from a web server using HTTP. HTTP can use TCP for reliable, ordered delivery. A call starting on a web page can use other technologies for audio. Voice over IP is a family of call technologies. Many use RTP over UDP.
Your call from the GAA grounds starts on a web page. Explain why low delay matters here. If your friend's reply takes longer to reach you, you may start speaking over them. Explain why VoIP and HTTP aren't synonyms. HTTP can load the page, while VoIP technologies carry the call audio.