answersLogoWhite

0


Best Answer

Basically a layer 2 switch operates utilizing Mac addresses in it's caching table to quickly pass information from port to port. A layer 3 switch utilizes IP addresses to do the same.

While the previous explanation is the "What", for folks in networking the following "How" is far more interesting.

Essentially, A layer 2 switch is essentially a multiport transparent bridge. A layer 2 switch will learn about MAC addresses connected to each port and passes frames marked for those ports. It also knows that if a frame is sent out a port but is looking for the MAC address of the port it is connected to and drop that frame. Whereas a single CPU Bridge runs in serial, todays hardware based switches run in parallel, translating to extremly fast switching.

Layer 3 switching is a hybrid, as one can imagine, of a router and a switch. There are different types of layer 3 switching, route caching andtopology-based. In route caching the switch required both a Route Processor (RP) and a Switch Engine (SE). The RP must listen to the first packet to determine the destination. At that point the Switch Engine makes a shortcut entry in the caching table for the rest of the packets to follow. Due to advancement in processing power and drastic reductions in the cost of memory, today's higher end layer 3 switches implement a topology-based switching which builds a lookup table and and poputlates it with the entire network's topology. The database is held in hardware and is referenced there to maintain high throughput. It utilizes the longest address match as the layer 3 destination.

Now when and why would one use a l2 vs l3 vs a router? Simply put, a router will generally sit at the gateway between a private and a public network. A router can perform NAT whereas an l3 switch cannot (imagine a switch that had the topology entries for the ENTIRE internet!!). In a small very flat network (meaning only one private network range for the whole site) a L2 switch to connect all the servers and clients to the internet is probably going to suffice. Larger networks, or those with the need to contain broadcast traffic or those utilizing VOIP, a multi network approach utilizing VLANs is appropriate, and when one is utilizing VLANs, L3 switches are a natural fit. While a router on a stick scenario can work, it can quickly overtax a router if there is any significant intervlan traffic since the router must make complicated routing decisions for every packet that it recieves.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

The layer2, Datalink layer is responsible for moving frames

from one hop(node)to the next. And the layer3 which is network

layer is responsible for the delivery of individual packets

from source host to destination host.

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

in networking this is a new technology which gives more flexibility .it is independent of protocols so its called "multiprocol".it uses label to identify the packets hence fast for the routers.

This answer is:
User Avatar

User Avatar

Wiki User

11y ago

Layer 2 switches are working based up on the MAC address and layer 3 switches are working based up on the ip address

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between layer 2 and layer 3?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between a layer 2 and a layer 3 switch?

The difference between Layer 2 and Layer 3 switching is the type of information inside the frame that is used to determine the correct output interface. With Layer 2 switching, frames are switched based on MAC address information. With Layer 3 switching, frames are switched based on network-layer information.


What is the difference between 2-pentanol from 3-pentanol?

What is the difference between 2-pentanol from 3-pentanol?


What is the difference between the numbers 2 and 3?

1. The difference of two numbers are the numbers between them. The difference is found by subtracting the smaller number from the larger. In this case, 2 is subtracted from 3 (3-2) with a difference of 1. 3-2=1


What is difference between L3 switch and router?

A layer 3 switch has routing capability like a router. However, it also has layer 2 switching capabilities like a switch. To fulfill both functions, layer 3 switches will generally have a greater number of ports than most routers.


The layer lies between the network layer and the application layer?

There are three layers in between the network layer & application layer on the basis of ISO-OSI refference they are given below 1:Transmition layer 2:Session layer 3:Presentation layer


What is the difference between -2 1 over 2 and -5 3 over 4?

The difference is 3 1/4.


What do you think the difference between 2 and 5?

2 - 5 = -3 5 - 2 = 3


How does network packets work?

On a packet switched network, data travels between layers 1, 2 and 3 of the OSI model using routers (layer 3), switches (layer 2), and media (layer 1).


Will layer 3 switches route packets between devices on different subnets?

Yes. Most switches (which operate at layer 2) will NOT route packets between different subnets. However special layer 3 switches DO have this capability.


What is the difference in math terms?

Difference is a subtraction word. What is the difference between 5 and 2 = 3


Will a Cisco 4000 switch automatically switch from layer 3 to layer 2?

I believe there is no such thing as switching "from layer 3 to layer 2". Switching is either done within layer 3, or within layer 2.


Two numbers that have the sum of 8 and a difference of 2?

5 + 3 =8 and 5-3 = 2 The difference between the two numbers is 2.