This is just a curiosity-based question, but I might learn something useful.
With my Node.js server, as I received data through net.Server, I had it print out the size (in bytes) of each data "packet".
socket.on 'data', (data) -> console.log data.length
I noticed that most of the time it is 1374 bytes. All other times it is multiples of 1374. The highest I got out of about 200 data events was 17,862.
Where does this 1374 number come from? And why is the data length occasionally multiples of it?
My best guess is that with TCP, 1500 bytes is the most common MTU for Ethernet, and 126 other bytes make up the header of the TCP packet. Node.js may sometimes clump these packets together if it receives them quickly enough, which is why sometimes they arrive in multiples.