LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 03-20-2010, 04:19 PM   #1
yaragalla_murali
LQ Newbie
 
Registered: Mar 2010
Posts: 17

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
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
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: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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: Raspbian, Debian, Ubuntu
Posts: 380

Rep: Reputation: 103Reputation: 103
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: 17

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: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
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



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb SUSE / openSUSE 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 04-30-2008 01:27 AM
802.11 MAC headers on Ethereal violetb Linux - Wireless Networking 2 03-24-2005 03:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:45 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration