The data goes on paper, and the document is specific about it: "The scroll of paper is wrapped around one leg of the avian carrier," and "A band of duct tape is used to secure the datagram's edges."
Then people tried it. Wikipedia says the Bergen Linux user group implemented it on 28 April 2001. BBC News reported that the packets of data were printed on pieces of paper, rolled up, and attached to the pigeons' legs.
At the other end, the information was turned back into digital form using a scanner.
The results were what you would expect. BBC News reported a speed of 0.08 bits per second on the return packet, and said the first few packet-bearing birds were distracted by a flock of pigeons flying nearby. Wikipedia shows the ping output as 9 packets transmitted, 4 packets received, 55% packet loss, which it attributes to operator error.
The joke works because it follows real networking logic.