How does the LAN switch (LAN switch) work?

With increased traffic and faster CPUs in computer systems, LAN (Local Area Network) is increasingly congested and overloaded. To reduce congestion and improve LAN speed, many IT technicians seek to use LAN switching technology and LAN switches to improve the performance of traditional Ethernet technologies, without having to perform upgrades. Costly or time consuming wiring systems reconfigure the server. So what is LAN switch and how does it route traffic using LAN switching technology? Today's article will give you the answer.

Learn about LAN switch

  1. Basics of LAN switching technology
  2. What is LAN switch?
  3. LAN switch uses 3 methods to route traffic
    1. Cut-through
    2. Store-and-forward
    3. Fragment-free

Basics of LAN switching technology

LAN switches are a form of switching in which data packets are transmitted from one computer to another via a LAN. LAN switching technology is very important for network design, because it allows traffic to be sent only to the required location. LAN switches mainly consist of 3 types of conversion methods: Layer 2 switching by MAC address based hardware, Layer 3 switching based on IP address and Layer 4 switching which can determine QoS (Quality of Service) for each user. Of these 3 methods, Layer 2 switching is most widely used for network segmentation in LANs. As illustrated below, the LAN switch is connected between the bridge and router to create 4 collision domains. It allows a flatter network design with more network segments than traditional networks (made up of repeater, hub and router).

How does the LAN switch (LAN switch) work? Picture 1

A typical LAN consists of one or more LAN switches that can be connected to a router, modem or bridge to access the Internet. Other network devices such as firewalls, load balancers and network intrusion detectors can also be included in the LAN. Advanced LANs are characterized by the use of redundant links with LAN switches, using the Spanning Tree protocol to prevent loops, distribute QoS and separate traffic with Vlan.

What is LAN switch?

LAN switches are essential components used in LANs. The LAN switch is a network switch that connects two or more LANs and forwards packets between these networks. The maximum LAN switch speed is not more than Gigabit, usually at 1000 megabits per second. LAN switches use three types of LAN switches, namely Layer 2, Layer 3 and Layer 4 switches to route traffic in the LAN. Since most LAN switches operate at the Data Link layer (Layer 2), the Layer 2 switch is most commonly used and can be found in almost any LAN. It provides several benefits of both bridges and routers. Like bridges, LAN switches Layer 2 can forward traffic based on Layer 2 headers. Like routers, it partitiones the network into logical segments, providing management, security, and management of good multicast traffic. than. Switch Layer 3 or Layer 4 requires more advanced and expensive technology, so they are often used more in large LANs or in special network environments.

How does the LAN switch (LAN switch) work? Picture 2

LAN switch uses 3 methods to route traffic

As mentioned above, LAN switches are based on packet switching. In the LAN network, LAN switch establishes a connection between two segments to send the current packet. Take the Layer 2 LAN switch as an example, incoming packets are saved to the temporary device in the server. The MAC address information is in the frame header for the source and destination of the packet to be read by the LAN switch and then compared to the list of addresses in the switch lookup table. Here are three methods that LAN switches use to route traffic in the Layer 2 conversion process.

Cut-through

In the Cut-through method, the LAN switch can read the MAC address as soon as it detects the packet. After storing 6 bytes of MAC address information, they immediately send the packet to the destination node, even if the rest of the packet is still being transmitted to the switch.

Store-and-forward

The Store-and-forward method stores all packets into the buffer and checks for errors before sending to the destination node. If the package has an error, it will be removed. Otherwise, the switch will look up the MAC address and send the packet to the destination node. Many LAN switches can combine these two methods, using Cut-through until a certain error level is reached and then changing to the Store-and-forward method.

Fragment-free

A less common method is Fragment-free. It works similar to the Cut-through method except to store the first 64 bytes of the packet before sending it. The reason is that most errors and conflicts occur in the first 64 bytes of the package.

LAN switches come with high scalability, security and ease of management. Currently, relatively low speed LAN switches are often used in ring network architecture and Daisy-Chain, due to the limited geographical scope of the LAN. For WAN environments, switch devices with higher speeds and capacities such as 10gbe switches, 40gbe switches and switch 100gbe will be essential.

See more:

  1. Basic knowledge of the network: Learn about the Router
  2. Learn about mesh routers
  3. How to secure IoT device properly
3.5 ★ | 2 Vote

May be interested

  • 5 things you should know when configuring a Cisco IOS switch5 things you should know when configuring a Cisco IOS switch
    most switches that are commonly used in small businesses and at home are places that do not require configuration - they are 'plug and play' compliant. however, it is very important to keep in mind that sometimes 'plug and play' doesn't always work. ngo & agrav
  • How to update games on Nintendo SwitchHow to update games on Nintendo Switch
    last time, the nintendo switch games had updates and bug fixes. sometimes, those updates add huge features, like new characters or levels. here's how to ensure your game on the switch has been updated regularly.
  • How to turn an old router into a switchHow to turn an old router into a switch
    how to configure the router as a switch? most likely you will ask this question if you are planning to expand your home network, but only have an ethernet router, not a switch.
  • How to play Airship map in Among Us on SwitchHow to play Airship map in Among Us on Switch
    an upcoming airship map will be added to the game among us in early 2021, but if you are playing the version among us on the recently released nintendo switch already have access to this map. here's how to play the toppat airship map in among us on the nintendo switch.
  • How to fix Joy-Con error on Nintendo SwitchHow to fix Joy-Con error on Nintendo Switch
    we show you how to fix one of the most annoying problems to afflict the nintendo switch and switch lite -- even nintendo knows it's an issue.
  • Distinguish between switches, routers and modemsDistinguish between switches, routers and modems
    the switch, router and modem look very similar if you look only at the appearance. however, each of these types plays a role and performs different purposes within a network. so what is the main difference between a switch, router and modem?
  • 6 reasons why many people regret buying Nintendo Switch6 reasons why many people regret buying Nintendo Switch
    when they first bought a nintendo switch, many people were excited about new releases like animal crossing and didn't own any other console. but unfortunately, a lot of switch consoles are currently sitting on shelves collecting dust.
  • Official: Nintendo Switch can run AndroidOfficial: Nintendo Switch can run Android
    a question that has been in the minds of many tech-savvy people for years: nintendo switch can run android?
  • Check out the 7 best quality Red Switch mechanical keyboard models in 2023Check out the 7 best quality Red Switch mechanical keyboard models in 2023
    top 7 most beautiful and durable red switch mechanical keyboards today 1. red switch dareu ek1280s pink white mechanical keyboard 2. e-dra ek387l red switch mechanical keyboard...
  • Google instructs iOS users to switch to Android 5.0Google instructs iOS users to switch to Android 5.0
    not long after apple launched a guide for android users to transfer data to ios, it was google's turn to draw a path for ios users to switch to their latest platform.