OK, this might be a really stupid question, but...
I'm building a web app that utilises websockets. There's fairly rapid messaging going on, so I've been taking a look at the network traffic with wireshark, to see if there's any way of reducing the amount of data we are sending over the wire, and hence costs.
A typical message has approx 150 byte data payload, and according to wireshark the lower layer stuff takes up about:
Ethernet: 14 bytes
IP: 20 Bytes
TCP: 20 Bytes
My question is, are these network headers included in data transfer calculations? What about TCP ACK messages? (another 54 bytes according to wireshark)
This may seem petty, but because we have so much messaging going on, and because the payload is a similar size to these headers, it's significant.