What do network adapters send?

Programming, for all ages and all languages.
Post Reply
abcdabcd
Posts: 3
Joined: Mon Feb 28, 2022 5:52 am

What do network adapters send?

Post by abcdabcd »

I'm reading computer networks 5th edition, and I'm a bit confused about how it works

Do network adapters just send raw data (Meaning with no additional information in a header and such) or not?

I've read about all the information packed into a frame that ensures it is properly transmitted across, so, is this handled by and up to the software to implement?

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)?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: What do network adapters send?

Post by Solar »

Check the OSI model, which specifies and explains exactly that in detail. This table specifically might be enlightening.
Every good solution is obvious once you've found it.
User avatar
Velko
Member
Member
Posts: 153
Joined: Fri Oct 03, 2008 4:13 am
Location: Ogre, Latvia, EU

Re: What do network adapters send?

Post by Velko »

Check out video series about the subject.
If something looks overcomplicated, most likely it is.
nullplan
Member
Member
Posts: 1766
Joined: Wed Aug 30, 2017 8:24 am

Re: What do network adapters send?

Post by nullplan »

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.
Carpe diem!
User avatar
qbitroot
Posts: 4
Joined: Sat Jun 18, 2022 2:56 am
Location: Ukraine
Contact:

Re: What do network adapters send?

Post by qbitroot »

On the lowest level they send electromagnetic signals through the wire. Regarding the data integrity check, this is the job of TCP/whatever the protocol is used.
Between C++ and Rust, choose C.
Post Reply