Switches used in computer networks are a network device that enables multiple computers and printers to communicate with each other.
What is Switch in Networking?
Switches used in computer networks allow communication between one or more computers or other devices. The most basic operating principle of the switches is to filter and forward IP packets to the target computer.
Switches use MAC address table (CAM table) to record the MAC addresses and IP addresses of the computers on the network. The first computer to send a file will have to save the MAC address and IP address of the target computer into the IP Packet. However, if the sending computer does not know the MAC address of the target computer, it broadcasts an ARP (Address Resolution Protocol) to the network environment.
As a result, the MAC address information of the target computer is obtained and written to the MAC address table. It will send the target computer directly without ARP broadcast on the next new packet transmissions.
The switches also start working when the power cable is plugged in. It has multiple ports and uses the CSMA/CD mechanism to prevent Collision situations.
A LAN is created using the switches, and these LANs can be separated from each other by the routers. The switches work in layers 2 and 3 of the OSI model.
Layer 2 Switches
Layer 2 Switches are hardware-based and all ports on it transmit packets according to cable speed. It also uses the MAC address table to forward IP packets.
Layer 2 switches can only send IP packets to computers in the same IP block.
Layer 3 Switches
Layer 3 Switches use both hardware-based switching and hardware-based routing. Layer 3 switching is done by integrated circuit ASIC hardware. Frame forwarding and Packet forwarding are also transmitted using ASIC hardware.
Layer 3 Switches can also forward packets to different IP blocks. Layer 3 switches can also be thought of as a router. Layer 3 Switches store source and destination routing information in the cache after the initial redirection. On subsequent packet submissions, it retrieves this information from the cache and transmits it quickly, without the need for a redirect.
Layer 3 switches are more powerful than Routers with this cache feature.
Layer 2 Device;
Layer 3 Device;
Basic Cisco L2 Configuration ⇒ Video
Using the GNS3 network simulator, you can watch the Cisco 2 Layer Switch configuration and also subscribe to our YouTube channel!
L2 and L3 switches are typically used in medium-sized or large business networks. A home user generally does not need an L3 device. Thanks for following us!