What kind of data can be considered a Payload?

I am taking a networking class, and I understand that payload data is part of a packet (within TCP or UDP), that is actual data that is being sent from the sender to the recipient. However, what kind of data other than an e-mail message will a computer send to the recipient?

100k 26 26 gold badges 121 121 silver badges 198 198 bronze badges asked Jun 25, 2016 at 0:28 FadingEcho FadingEcho 21 1 1 silver badge 2 2 bronze badges

Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer.

Commented Aug 14, 2017 at 14:46

3 Answers 3

If you look at the network layers, each layer of the network stack has a payload:

You should look at one of the network models, e.g. the OSI model, but remember that the models are just models, and the real world can often be different than any of the models predict.

Any application using the network will have data as a payload to the network stack. For instance, web browsers and servers use HTTP as an application-layer protocol, and HTTP uses TCP as its layer-4 protocol, so HTTP is a payload of TCP. The browser sends requests to the server, and the server returns web pages as a result. Both the requests and results are payload of TCP segments.

answered Jun 25, 2016 at 1:45 Ron Maupin ♦ Ron Maupin 100k 26 26 gold badges 121 121 silver badges 198 198 bronze badges

. and from the analogy department:

You drive with an envelope containing a document which is a cover letter with a cheque which you're going to hand to someone.

Of course, the whole purpose of the exercise was to get the cheque there, which might be called the ultimate payload.

answered Mar 2, 2018 at 12:10 jonathanjo jonathanjo 16.3k 2 2 gold badges 24 24 silver badges 54 54 bronze badges

Any data that is not part of the protocol can be considered payload.

In your email message example, the specific message text, attachments, . are payload. The message format adds the required headers to this payload to form a standard RFC email message. This message can then for instance be transmitted over SMTP:

SMTP gets the message from above as payload and adds its protocol dialogue to the communication (the payload is wrapped). This is sent over TCP.

TCP (L4) gets the SMTP dialogue as payload and adds its headers to the packetized stream to make it work. TCP then uses IP to send the packets to the destination.

IP (L3) gets the TCP segment as payload and adds its IP header to the TCP segment to form a network layer packet that can actually be transported to the destination. IP may use Ethernet as a hop in the route to this destination.

The Ethernet frame (L2) gets the IP packet as payload and adds its frame header to enable Ethernet transport. Ethernet also adds packet overhead (L1) to the frame to actually enable physical transport. This Ethernet packet is then line encoded according to the specific physical layer and the line symbols are sent over the wire (or fiber or . ). This last step repeats until the destination is reached.

This is a simplified view that only shows examples - in practice there are many different ways and protocols for this to work. The beauty of it is that you can combine the various layer options in countless ways.