OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 4:25 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: What do network adapters send?
PostPosted: Mon Feb 28, 2022 5:58 am 
Offline

Joined: Mon Feb 28, 2022 5:52 am
Posts: 3
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)?


Top
 Profile  
 
 Post subject: Re: What do network adapters send?
PostPosted: Tue Mar 01, 2022 4:36 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7612
Location: Germany
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.


Top
 Profile  
 
 Post subject: Re: What do network adapters send?
PostPosted: Tue Mar 01, 2022 10:11 am 
Offline
Member
Member
User avatar

Joined: Fri Oct 03, 2008 4:13 am
Posts: 153
Location: Ogre, Latvia, EU
Check out video series about the subject.

_________________
If something looks overcomplicated, most likely it is.


Top
 Profile  
 
 Post subject: Re: What do network adapters send?
PostPosted: Tue Mar 01, 2022 1:41 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1593
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!


Top
 Profile  
 
 Post subject: Re: What do network adapters send?
PostPosted: Sat Jun 18, 2022 3:09 am 
Offline
User avatar

Joined: Sat Jun 18, 2022 2:56 am
Posts: 4
Location: Ukraine
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 38 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group