Skip to main content

Layer 2&3 protocols

More
17 years 8 months ago #20430 by sanju1010
What is the difference between layer 2 and layer 3 protocols?
More
17 years 8 months ago #20436 by TheBishop
That's a short question with a long answer!
Layer 2 protocols deal with media access addresses (e.g. MAC addresses) which are the physical addresses of devices on the network segment and support communications between them on the same segment or within the same physical LAN. Layer 3 protocols deal with network addresses (e.g. IP addresses) which can identify devices uniquely within an internetwork and allow for routing and transport of traffic between different networks.
For more information on the OSI model layers, routing and many other topics have a look through the menus along the top of the Firewall.cx home page
More
17 years 8 months ago #20440 by Smurf
Replied by Smurf on topic Re: Layer 2&3 protocols
I would suggest taking a look at our networking sections, there are many great articles covering such things.

If you look just under the Firewall.cx logo, you will see the networking menu item.

Cheers

Wayne Murphy
Firewall.cx Team Member
www.firewall.cx

Now working for a Security Company called Sec-1 Ltd in the UK, for any
Penetration Testing work visit www.sec-1.com or PM me for details.
More
17 years 8 months ago #20442 by sanju1010
Hi TheBishop.Thanks for that. Whatever you replied is the basic difference ,are there any other differences you can give?
More
17 years 8 months ago #20443 by Smurf
Replied by Smurf on topic Re: Layer 2&3 protocols
You can think of Layer 3 as logical addressing and routing. Layer 3 is where we map our own IP Addressing scheme's onto the machines and create a routed network.

Layer 2 is more physical addressing which is based on the Physical MAC (Media Access Control) address on the Network Interface Card. Since Layer 2 is not a routable layer, this provides a directed communication at this layer. If the Destination Machine is on this segment of the network, then the Source Machine will talk directly to it using the MAC address, otherwise it will talk directly to the Default Gateway in order to then route the traffic through the network. ARP is the protocol at Layer 2 that provides the IP to MAC address look up (RARP provides this functionality the other way around, MAC to IP Address).

As i said, there are loads of articles that i would recommend reading through.

Wayne Murphy
Firewall.cx Team Member
www.firewall.cx

Now working for a Security Company called Sec-1 Ltd in the UK, for any
Penetration Testing work visit www.sec-1.com or PM me for details.
Time to create page: 0.129 seconds