LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 03-20-2010, 04:19 PM   #1
yaragalla_murali
LQ Newbie
 
Registered: Mar 2010
Posts: 11

Rep: Reputation: 0
Question MAC headers?


Hi Who adds MAC headers to the TCP/IP packets. IS it hardware or software? If you look into TCP/IP packets the first part of the packet is MAC headers. so who adds this MAC headers to the packets? is it the network card or Software(could be OS or anything other than hardware)?
 
Old 03-20-2010, 05:20 PM   #2
win32sux
Moderator
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
It sounds like you're referring to Ethernet frames, not IP packets.
 
Old 03-20-2010, 05:36 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
It's the sort of functionality that is conventionally performed by the hardware offload features on the NIC, but certainly possible to pull it back into pure software if more complex functionality is required.
 
1 members found this post helpful.
Old 03-20-2010, 06:04 PM   #4
tommylovell
Member
 
Registered: Nov 2005
Distribution: Fedora, Redhat
Posts: 369

Rep: Reputation: 98
Most "server class" NICs have a TCP/IP Offload feature; it is very unlikely that a "desktop class" commodity NIC (or a built-in laptop NIC) will have offload.

If your NIC has offload functionality it will add and remove the MAC headers; if no offload, or it is turned off, then the MAC header is added and removed in software.
 
1 members found this post helpful.
Old 03-21-2010, 12:43 AM   #5
yaragalla_murali
LQ Newbie
 
Registered: Mar 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Question

Quote:
win32sux It sounds like you're referring to Ethernet frames, not IP packets.
What is difference between frames and TCP/IP packets?
 
Old 03-21-2010, 04:00 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
A whole layer in the OSI model. If you aren't aware of the differences, you should do some backgroud reading. Essentially though a TCP/IP packet is created with IP details etc, and payload, and then needs to be wrapped in whatever framing method is used for the link, e.g. ethernet, adsl, frame relay, isdn...
 
Old 03-21-2010, 07:19 AM   #7
jschiwal
Moderator
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,263

Rep: Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562Reputation: 562
There is a book "Network Administrators Guide" (nag guide) on the www.tldp.org website I would highly recommend downloading and reading.
 
Old 03-22-2010, 01:28 PM   #8
ericson007
Member
 
Registered: Sep 2004
Distribution: CentOS 6.2
Posts: 127

Rep: Reputation: 18
http://www.aboutdebian.com has all that info for free. It explain how packets are created, what info goes where and how routers differentiate between ip packets etc. quite a good read.
 
  


Reply

Tags
mac, tcpip


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb Suse/Novell 2 11-28-2009 11:12 AM
building an app I developed in Linux in Mac OS, Linux headers? hedpe Programming 3 10-12-2009 09:56 PM
Ethernet MAC Addresses database; MAC address-based processing cctualatin Linux - Newbie 1 04-14-2009 08:59 AM
Linux / UNIX OS for Motorola RAZR v3 -- Sync it with OpenBSD 4.2/Mac 10.5/Mac 10.3 Doctorzongo Linux - Laptop and Netbook 0 05-01-2008 09:44 AM
802.11 MAC headers on Ethereal violetb Linux - Wireless Networking 2 03-24-2005 03:57 AM


All times are GMT -5. The time now is 06:30 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration