I know basic networking but I am not very good at it. Now I am calculating how many packets will be lost if I use UDP over IPv4. I can assume that the protocol overhead for data sent via UDP over IPv4 is 66bytes. And the data needs to be transmitted in blocks of size 4KB (this is to be the payload size of each packet).
So here is my question:
What does a network packet consists of?
Wikipedia states that
A packet consists of two kinds of data: control information and user data (also known as payload).
So basically, a packet has a header and a trailer with payload data in between.
A packet structure looks like this: Header | Payload | Trailer
So if I want to form a packet, should I include protocol overhead in my calculation?
Packet size = 66bytes (protocol overhead) + 4096bytes (payload) = 4162bytes
Any help would be very much appreciated.