LinuxQuestions.org
Review your favorite Linux distribution.
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 07-23-2014, 11:45 AM   #1
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166
Blog Entries: 1

Rep: Reputation: 4
educational question: arp


Could someone explain: for the Address Resolution Protocol (ARP), is an ARP packet a separate type of Ethernet (Layer 2) frame? Or does it simply get carried in the Ethernet frame payload area, just like an IP packet does? I wasn't quite clear on this after reading the wikipedia page.
 
Old 07-23-2014, 02:36 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,827

Rep: Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424Reputation: 2424
Arp is a way of mapping network card MAC addresses to IPV4/6 IPs. It's ancient, and without real security. The lowest levels use the MAC addresses, the higher levels use the IP.

You looking at network theory? Don't worry too much about that one.
 
Old 07-23-2014, 02:40 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,104

Rep: Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638Reputation: 3638
Opps, I see my answer is not related to question.

Forget all you know about TCP right now for this next statement.

ARP is just a way to find where a nic card is. Arp knows where the local mac addresses are.

OK, now we know that arp is a way to find a mac address. Right?

Now turn back on your knowledge of tcp/ip.

Arp has two ways to know what to do. One is static and one is dynamic. Most people might use arp -a command. They'd find that mac addresses have an IP address (usually) associated with them and even either an S or D to tell you how it knows it.

Now say you want to go to 8.8.8.8. It isn't local is it? So your system says OK, where is the gateway? 192.168.1.1 might be your gateway but your stupid computer can only find it using the mac address. It sends the request to the mac address of the gateway and then the next system does the same until it gets where it needs to go.

That ought to confuse you or help you.

Last edited by jefro; 07-24-2014 at 07:32 PM.
 
Old 07-23-2014, 03:09 PM   #4
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166

Original Poster
Blog Entries: 1

Rep: Reputation: 4
I understand the purpose of ARP. I am interested more in the details of how it works, in terms of what structures exactly get sent back and forth on the segment. Again: is an ARP "packet" something that just gets dropped on wire as is (as a sort of Ethernet frame type) or does it get dropped into the payload of a normal Ethernet frame (like an IP packet does). If the latter is the case, how then does the receiving host(s) know whether they have received an IP packet or an ARP packet? Does ARP have a protocol number (like ICMP or OSPF?)

Last edited by stateless; 07-23-2014 at 03:12 PM.
 
Old 07-23-2014, 03:19 PM   #5
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,787

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
About 5 minutes running wireshark would tell you all that and more. It's an ethernet frame with 0x0806 in the type field, as opposed to an IP packet with 0x0800 in the type field.
 
1 members found this post helpful.
Old 07-23-2014, 05:25 PM   #6
stateless
Member
 
Registered: Jan 2013
Distribution: Debian
Posts: 166

Original Poster
Blog Entries: 1

Rep: Reputation: 4
Quote:
Originally Posted by rknichols View Post
About 5 minutes running wireshark would tell you all that and more. It's an ethernet frame with 0x0806 in the type field, as opposed to an IP packet with 0x0800 in the type field.
Thanks. Should have thought of that.
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange ARP behavior : A linux server responds to all ARP requests Hdvd21 Linux - Networking 4 10-24-2013 05:02 AM
ARP table question ddomiray Linux - General 2 10-26-2009 09:03 AM
tcpdump and arp question blackzone Linux - Networking 2 07-01-2004 12:25 PM
Disabling ARP probes after receiving an ARP request AltecLansingMan Linux - Networking 1 03-30-2004 01:25 PM
How to create an proxyarp entry in arp table by using arp command? himalayas Linux - Networking 0 06-04-2003 04:14 AM

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

All times are GMT -5. The time now is 01:41 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