Académique Documents
Professionnel Documents
Culture Documents
thank you,
Biplab
Tags: osi, ccent, switch, ccna, ip, switching, ccna_exam, tcp
Layer 2 is Ethernet, PPP, HDLC, DSL, Frames, Network Switching, MAC address ...
Regards
Regards,
Biplab
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
1
ARP and ICMP Which layers??
ARP, on the other hand, while I might be willing to say it's Layer 2.5, I really have a hard time calling it a Layer3
protocol because there's nothing about specific or hierarchical addresses to it at all!
It's a broadcast sent AT LAYER2 in order to figure out who has a Layer3 IP address. So it SUPPORTS layer
3, but that doesn't make it a Layer3 protocol.
(Although it's funny this question came up because in the CCIE Security meeting group I'm in this week,
someone pointed out an article on Cisco's web site that called ARP a Layer3 protocol and so we all had been
debating that and laughing about it.)
HTH,
Scott
Regards
ARP runs on top of layer 2 protocol, i.e. using services provided by data-link protocols. ICMP runs on top of
layer 3 protocol.
For example, ICMP uses IP protocol to delivery ICMP datagram to remote host in remote, non-local network.
ARP uses Ethernet protocol to flood out question "Who is x.x.x.x?' over switched network.
Kind Regards,
Garry
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
2
ARP and ICMP Which layers??
regards,
Biplab
HTH, Garry
,
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
3
ARP and ICMP Which layers??
Yes, it's needing to figure out a MAC (the reply). And it knows the IP address. but in the FRAME HEADER
(note, not an IP header) there is no hierarchical address information. That's in the content/data.
Like Garry says it just asks the question of "who has x.x.x.x?"...
ICMP though has information that directs it (potentially across Layer3 boundaries) to a specific layer 3 address.
ARP will not cross any Layer3 boundary and has no reference to reach a specific layer 3 address.
Scott
regards,
biplab
Kind Regards,
Garry
Elvin
Paul Stewart - CCIE Security 7,582 posts since Jul 18, 2008
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
4
ARP and ICMP Which layers??
Re: ARP and ICMP Which layers?? Oct 25, 2011 7:11 PM
in response to Elvin Arias
The OSI model is just that, a model. Therefore, you will find inconsistent opinions. In my mind ARP is clearly
a layer two protocol. It enables IP over Ethernet. ICMP is a layer 3 protocol that depends on IP. There is more
gray area in calling ICMP layer a layer 3 protocol than calling arp a layer 2 protocol. At least in my opinion.
For example,
- Ethernet and PPP runs directly on a layer 2 of the OSI model (for instance, Ethernet using the transport
services of layer 1 electrical signal transmission and providing the transport services for layer 3 IP and layer 2.5
ARP).
- ARP runs on top of a layer 2 (for instance, ARP using the transport services of the layer 2 Ethernet and
providing a supplementary services for layer 3 IP, not transport services).
- IP and IPX runs directly on a layer 3 of the OSI model (for instance, IP using the transport services of layer 2
Ethernet protocol and providing the transport services for the layer 4 TCP or UDP, or maybe for the layer 3.5
ARP protocol). 3.5 - for simplicity :).
- ICMP runs on top of a layer 3 (for instance, using the transport services of layer 3 IP and providing the
supplementary services for applications).
Paul Stewart - CCIE Security 7,582 posts since Jul 18, 2008
Re: ARP and ICMP Which layers?? Oct 26, 2011 4:52 AM
in response to Garri
Gary,
I don't disagree with your logic. However, there are instances where protocols don't necessarily fulfill the
other requirements of a layer of the OSI model. In some cases these are clear. For example, IP and IPX are
clearly layer 3 protocols. They utilize the datalink layer for transport (I agree with that). Arp also uses layer
two for transport, but it clearly has no layer 3 headers (only layer 3 data), is not routable, and is an ethernet
only concept. People make arguments that it should be classified at layer 3. I would argue that it doesn't fulfill
the intent of layer three of the OSI model. The OSI model was not built around the IP Protocol. ICMP is also
a gray example. It does not have the features of a transport layer protocol, but clearly depends on IP as a
transport mechanism. When you get above the transport layer, the concept of encapsulation goes away, and
thus some of the dependency on lower layers transporting upper layers (at least with in the upper three layers).
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
5
ARP and ICMP Which layers??
These are great conversations. The bottom line is that the OSI model is just that--a model. When applied,
we won't all agree on how it relates. However, these discussions clearly illustrate everyone's understanding
of the protocols. That's far more important that the interpretation of the intent of a layer in the model (a it's
applicability to a protocol).
I agree with you, OSPF work on top of OSI layer 3 protocol. IP protocol uses decimal 89 value to represent
OSPF protocol.
Kind Regards,
Garry
Kind Regards,
Garry
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
6
ARP and ICMP Which layers??
Per RFC 792 & 1122, ICMP is one of the core protocols of the IP protocol suite, which includes IP, ICMP and
IGMP. ICMP, uses the basic support of IP as if it were a higher level protocol. However, ICMP is actually
an integral part of IP, and must be implemented by every IP module. Per RFC 1122, ARP is part of the Link
Layer.
Brian
ICMP rides on IP, so some people would say it is layer 3. I think this is again trying to shoe-horn a concept
into a simplified model. ICMP is a layer management protocol that doesn't fit into the data plane. It is a control
plane (or maybe management plane) function that legitimately should reside in a parallel stack next to the data
plane stack.
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
7
ARP and ICMP Which layers??
Joshua Johnson - CCNP R&S 6,068 posts since Sep 22, 2009
Re: ARP and ICMP Which layers?? Apr 11, 2012 10:36 AM
in response to Scott Morris - CCDE/4xCCIE/2xJNCIE
Scott Morris - CCDE/4xCCIE/2xJNCIE wrote:
ARP, on the other hand, while I might be willing to say it's Layer 2.5, I really have a hard
time calling it a Layer3 protocol because there's nothing about specific or hierarchical
addresses to it at all!
It's a broadcast sent AT LAYER2 in order to figure out who has a Layer3 IP address. So it
SUPPORTS layer 3, but that doesn't make it a Layer3 protocol.
(Although it's funny this question came up because in the CCIE Security meeting group I'm
in this week, someone pointed out an article on Cisco's web site that called ARP a Layer3
protocol and so we all had been debating that and laughing about it.)
HTH,
Scott
haha, good thing you weren't drinking or you would have been fist fighting about it
Joshua Johnson - CCNP R&S 6,068 posts since Sep 22, 2009
Re: ARP and ICMP Which layers?? Apr 11, 2012 11:12 AM
in response to Joshua Johnson - CCNP R&S
Sounds like a good start for a Cisco movie. Scott involved in a royal rumble over ARP.
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
8
ARP and ICMP Which layers??
confused.
No matter who takes what position there will always be someone who disagrees. Just remember it's quite
possible that you're both right and in the end it really doesn't matter.
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
9
ARP and ICMP Which layers??
in response to Shocken85
That is incorrect. ICMP is implemented as part of the network layer. I think many get confused because it
is (necessarily) encapsulated within IP packets, so they assume that it must reside at the layer above IP.
Unfortunately, the simplified OSI model that Cisco likes to teach does not fit here, and neither does it fit with
ARP. There are many arguments about whether ARP is layer 2 or 3, when it is in fact neither if you want to fit it
into OSI. It is a subnetwork convergence protocol that is a bridge of sorts between layers 2 and 3.
But as Brad said just a few moments ago, most of this is actually irrelevant and you'll find no shortage of
people who disagree about what goes where. In the end, as long as you know what the protocols do, it's not
so important to know what layer they're at. Unless of course you get asked that question on an exam, in which
case the right answer is always the Cisco answer. :-)
-Trent
HTH
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
10
ARP and ICMP Which layers??
Brian
By the way, Lammle's book was the best, in my opinion, at teaching subnetting.
-Trent
http://www.windowsnetworking.com/articles-tutorials/network-protocols/Understanding-ICMP-Protocol-
Part1.html
I also read from somewhere either Cisco's or Wendell's that ARP is a Layer 2 protocol under OSI.
Joshua Johnson - CCNP R&S 6,068 posts since Sep 22, 2009
Re: ARP and ICMP Which layers?? Oct 2, 2013 9:10 AM
in response to stardust
I love this thread
Joshua Johnson - CCNP R&S 6,068 posts since Sep 22, 2009
Re: ARP and ICMP Which layers?? Oct 2, 2013 9:11 AM
in response to Joshua Johnson - CCNP R&S
Is everyone on the same page now?
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
11
ARP and ICMP Which layers??
Updated model of TCP/IP is protocol stack that is divided into five layers (application-transport-internet-data
link-physical). Every layer has protocols that have some functions in common. Protocols are used by processes
which are handled by CPU on devices used in network like switches, bridges, routers, computers, servers and
so on. Protocols from higher layers use protocols and services from lower layers to deliver data.
If we use some protocol, device will use protocols from all layers that are below that protocol. So if we use http
from application layer, device will than use tcp from transport layer, ip from internet layer, ethernet from data
link layer and send it over the cable. If we use ICMP from internet layer, device will than use ethernet from data
link layer and send it over the cable.
Data are sended between devices ussualy from all the way up from application layer and goes down through
all layers below application layer: L5-L4-L3-L2-L1. So the sending of data is started by some process which
use protocol in application layer. On the receiving device, it goes through all layers like sending device, only in
backwards: L1-L2-L3-L4-L5. Switches and routers are exception, because switching process use only info in
L2 header and routing process use only info in L3 header.
There are cases when devices do not start sending data from top layer, which is application layer, but from
lower layer, L2 or L3. On these two layers, there are protocols that are used by processes that do not need
protocols from upper layers. For example L2 has arp, stp or cdp protocol and process, that is using them will
use only L2 and L1 layers to deliver data. L3 has ICMP or IGMP and process that is using them will use only
L3, L2 and L1 layers. Normally, protocol from layer N+1 is encapsulated with header of protocol from
Layer N, but protocols like arp, stp, cdp, icmp or igmp are exceptions and they are encapsulated with
header of protocol that is from the same layer.
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
12
ARP and ICMP Which layers??
network interface.
The local network interface creates a local network header, and
attaches the datagram to it, then sends the result via the local
network.
The underlined text clearly states that the internet module (IP module) first determines the local address
(physical or MAC address in case of Enthernet) and then passes it on to the network interface (Data link layer)
which adds a local network header (L2 header) and transmits the frame over the physical network.
When a higher layer intends to request a service from a lower layer, it must pass certain infromation along with
the request.
In case of network-data link (L3-L2) layer interaction, the network layer provides the local network address
(MAC address in case of Enthernet) along with certain other information to the Data Link layer in order to
enable the Data Link layer to address the frame to the correct node (host, router or gateway).
This would imply that ARP is more of a utility defined in and used by the Internet Protocol in order to ascertain
the physical address based on a logical address.
So, the correct answer: both ARP and ICMP work on Layer 3.
Regards,
USA_firefly
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
13
ARP and ICMP Which layers??
And ARP packet at Layer 2 is sources from your REAL MAC address, but destined to a broadcast (All F's)
addresss.
At Layer 3, what information does it acually have? Check it out:
http://wiki.wireshark.org/AddressResolutionProtocol
Scott
In order for devices to be able to communicate with each when they are not part of the same network, the
48-bit MAC address must be mapped to an IP address. Some of the Layer 3 protocols used to perform the
mapping are:
Address Resolution Protocol (ARP)
Reverse ARP (RARP)
Serial Line ARP (SLARP)
Inverse ARP
http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipaddr_arp/configuration/15-mt/arp-15-mt-book/arp-
config-arp.html
While this is a very good logical construct for what ARP is, I think it's more important to look
at the actual packet output itself.
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
14
ARP and ICMP Which layers??
So, the correct answer for the exams: both ARP and ICMP work on Layer 3.
Regards,
USA_firefly
Since a router CAN NOT foward an ARP packet to me ARP is a layer 2 protocol. my one cent lol!
I'm afraid Cisco will not appreciate "your one cent". When you answer the question this way it will be incorrect.
Regards,
USA_firefly
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
15
ARP and ICMP Which layers??
Why?
HTH
Brian
Hi, Scott.
USA_firefly,
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
16
ARP and ICMP Which layers??
Could you provide some real output, other than theoretical documentation which shows us what you are saying
and that ARP fulfills the intent of layer 3 of the OSI model?
Regards,
USA_firefly
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
17
ARP and ICMP Which layers??
Re: ARP and ICMP Which layers?? Aug 19, 2014 5:45 AM
in response to USA_firefly
It's perfectly fine to disagree with me. However, that doesn't mean you are correct.
There are indeed Cisco documents out there that are incorrect. You seem to have found one, at least in the
wording of things. So hopefully that's not what someone decided to write a test question off of without regard
to reality!
The CCNA materials have been around for over 15 years now, and fortunately, ARP has not changed. So,
having been through the curriculum from a teaching point of view and having been through the exam before, I
would find it hard to believe that the answer would suddenly change or make it through an exam revision and
review worded like that!
My suggestion, as will be the same as you move up through CCNP and CCIE stuff is to dive into the details of
whatever it is... Wireshark... RFCs... Things that actually shape reality rather than one person's post or one
document that you happen to find!
Cheers,
Scott
Regards,
USA_firefly
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
18
ARP and ICMP Which layers??
We really need to think before contending a noted mentor. It's fine to argue and debate, but making an outright
conviction, and direct it towards the professionals is not professional, specially when we are at CCNA level and
they have years of experience to back them up.
This just show's our own lack of ability to comprehend and while jumping to conclusions in the heat of the
moment. I have done it around here much, well learning to learn from the best with patience.
ARP is not used to service MAC, rather it is used to service the next higher protocol, namely IP.
Essentially, MAC addresses are used for data transfer within the same network, however, without IP, they are
useless. One can say that MAC addresses are actually an aide to the routing process carried out by IP within
each IP subnet/network. This also solidifies the fact that each upper layer protocol avails of a service from
lower layer protocols.
ARP seems more like a Layer 3 utility defined at Layer 2.
I am in this forum to learn and I thought you too. let's stay professional beside the difference in how each one
understand Cisco document.
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
19
ARP and ICMP Which layers??
So are your car keys regarded as part of you or as part of your car? They are certainly needed to interface
between the two layers. But their FUNCTION is more with the car itself, therefore they're considered that way.
Yes, ARP is needed to interface between logical addresses (L3) and physical addresses (L2), but it's
FUNCTION is at L2, therefore it's an L2 protocol.
Sarah,
Thank you for the note, but I didn't take it personally! Debate is half the fun, at least as long as people don't
walk away bent out of shape! If someone disagrees with me, it either means that I need to rethink what I was
saying, or at least find a way to re-word things to convince others that I'm correct. (Believe it or not, I have
been known to be wrong now and then!)
Scott
I believe that statement leans towards your argument. But your post did put it into perspective.
I submit, your reasoning does make complete sense.
I can now put the ARP layer question to rest. As stated earlier, I shall be back for ICMP, totally ammoed up!
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
20
ARP and ICMP Which layers??
Re: ARP and ICMP Which layers?? Aug 19, 2014 7:25 AM
I generally prefer to refer to this excellent read, when it comes to trying to map N/W protocols to the OSI-model
layers>>>>
http://imacst.com/web_documents/01_01_4_gallert.pdf
It's a matter of personal taste, not to carelessly {over/under}estimate any of the semantics and underlying
intraworks&relationships of a protocol(or protocol stack) implementation, plz read further if interested (it has
some ARP-specific notes too).
cheers folks
PS: Btw IMHO ARP is L2 OSI-wise, as the scope of the related FF(x6) request broadcast (and its unicast reply)
is surely L2-based&bound (and L3 objects generally refuse to further forward/flood such frames beyond their
respective L2-adjacent/attached intfs, the most replying with their own suitable MAC, if what's asked inside
the request is matching their own L2-adjacent intf's IPconfig or if proxyARP's enabled/cfg'd in-between their
different directly-connected broadcast-domain subnets).
Let, s move on
I missed USA-firefly's post else I would have rather responded to him/her since that was quite impolite.
Irrespective, I wasn't taking sides, was just making a point.
No hard feelings!
Let's move on......to ICMP Any thoughts on the layer question for ICMP?
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
21
ARP and ICMP Which layers??
Just one: Where does assigning a function to a layer, such as ARP, help us in the real world? This one seems
to be a test subject more than a useful skill, but I'm ready to be corrected.
FWIW this discussion today reminds me of a typical business meeting. We challenge each other, reach
consensus, then have donuts together and chat about yesterday's ballgame.
Let's move on......to ICMP Any thoughts on the layer question for ICMP?
The Internet Protocol (IP) [1] is used for host-to-host datagram service in a system of
interconnected networks called the Catenet [2]. The network connecting devices are called
Gateways. These gateways communicate between themselves for control purposes via a
Gateway to Gateway Protocol (GGP) [3,4]. Occasionally a gateway or destination host will
communicate with a source host, for example, to report an error in datagram processing.
For such purposes this protocol, the Internet Control Message Protocol (ICMP), is used.
ICMP, uses the basic support of IP as if it were a higher level protocol, however,
ICMP is actually an integral part of IP, and must be implemented by every IP module.
Similarly http://tools.ietf.org/html/rfc4443>>>>
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
22
ARP and ICMP Which layers??
ICMPv6 is used by IPv6 nodes to report errors encountered in processing packets, and
to perform other internet-layer functions, such as diagnostics (ICMPv6 "ping"). ICMPv6 is
an integral part of IPv6, and the base protocol (all the messages and behavior required by
this specification) MUST be fully implemented by every IPv6 node.
cheers
Once knowldge in networking reaches a significant level of 'comfort', one ofcourse tends to avoid or simply
brush aside questions pertaining to the layering models. However, my take on it is that, if the subject or any
subject for that matter has to be mastered, the teaching part also comes becomes a necessity. What we learn
should be transmissible onto others (students) and the layering models are created precisely for that, to help
understand and spread this understanding based on certain concepts. Is it any wonder then why the OSI and
TCP/IP models are even stressed on in foundation networking courses?
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
23
ARP and ICMP Which layers??
Fabiola
Re: ARP and ICMP Which layers?? Aug 19, 2014 8:16 AM
in response to !sub-m33T
Great resource !sub-m33T! Thanks for sharing!
The encapsulation within IP (or the existence of IP proto number==1, and a relevant header) doesn't mean it's
an upper-layer protocol (eg TCP/UDP). Look for the same encapsulation on EIGRP/OSPF(IP proto# 88, 89
respectively) or IPsec protocols(ESP/AH-->50,51). Wouldn't you classify those as example L3 protocols????
There's also the debatable IGMP(2) and GRE(47). L2TPv3oIP also uses an IP Header and has a respective
protocol number (115). Where should one place OSI-wise the L2TPV3 protocol/tunnels?
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
24
ARP and ICMP Which layers??
in response to Fabiola
Fabiola wrote:
Dear Fabi, my honest pleasure, are you referring to the pdf on #59?
Yep, I really appreciated finding that one.
If you are referring to the rfcs(#64), I think these are vital resources towards painful theory (and applicable
scope) understanding, beyond a certain industry exposure level. You just can't "live" without referencing them
cheers Fabiola
Message was edited by: !sub-m33T-->"In response to..." link on Fabi's original post(#69) clarifies what is the
mentioned resource, hence the strikethrough
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
25
ARP and ICMP Which layers??
You learn it for once. And you can learn it wrong. Then you get yourt CCIE, get lots of experience, and.. well
people tend to believe you because you are CCIE, right?
But I can tell you why this discussion takes place. Simply because the original RFC 826, where ARP is defined,
does not mention what OSI Layer ARP belongs to. That's why different people have different opinions. And
there's no to way to determine who is right and who is wrong.
However, Wendell Odom in his OCG states that ARP is Layer 3 protocol.
I believe him.
Although I have to admit that I need to do some more research on this topic.
Thank you,
USA_firefly
Fabiola
Re: ARP and ICMP Which layers?? Aug 19, 2014 11:49 AM
in response to !sub-m33T
Yes !sub-m33T I was referring to post #59. Have a nice day!
Best regards,
USA_firefly
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
26
ARP and ICMP Which layers??
Hi, Jean,
My sincere apologies.
Regards,
USA_firefly
To biplab:
Your question is answered.
Regards,
USA_firefly
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
27
ARP and ICMP Which layers??
The article you posted was indeed informative, but to individuals who have already
studied and attempted classification of networking protocols according to the layered
models, the points mentioned are nothing 'new'.
The networking models are important from a beginner's perspective wherein ARP and
ICMP actually do fall under the category of 'basic' under today's networking fundamentals.
We arrange them according to layers in order to present a simplistic view of an otherwise
complicated technology and not to make strict categorizations based on tedious approaches
or methods. This aids in helping people take up and eventually gain a sturdy foundation in
the subject of networking.
In conclusion, the network layer concepts can be considered to be highly important
and yet simplistic tools to teach the subject.
Thank you m8, credit goes to the author of course! IMO it validly stresses the fallacies and oddities of trying to
carelessly define an exclusive 1-1 mapping between protocols(and protocol stacks) and the OSI layer scheme.
I concur to 5nines of what you say above my friend, my only addition would be>>>>
OSI model holds IMHO some additional, valuable Modular-Layering-Framework benefits, apart from
facilitating easier mental-maps for learning/teaching:
2015 Cisco and/or its affiliates. All Rights Reserved. Generated on 2015-05-24-07:00
This document is Cisco Public Information.
28