abcdabcd wrote:
Or could I just send it raw data packed however I'd like assuming the receiving computer can understand it (Ignoring all protocols that may or may not be on top of it)?
The others already pointed to resources on the other questions. As to this one: Unlikely. If you send data on Ethernet, it better be in Ethernet L2 format. If not, any switch or hub in the middle is going to misunderstand, and any receiving network card can filter out the packet if it has any errors, like having the wrong destination address, or having an ill-fitting CRC. You can work around these issues, but on the whole, there is little to be gained from this. Now, inside of Ethernet, you can sent whatever. That is the lowest layer I would recommend using for custom protocols. But for most things, sitting on top of UDP is going to be preferable.