The switch operates at the second level of the OSI model (MAC sublayer), since it analyzes the MAC addresses inside packet 10 (Fig.
.). Naturally, it performs the functions of the first level.
Routers work at the third level of the OSI model, since they analyze not only the MAC addresses of the packet, but also the IP addresses, that is, they penetrate deeper into the encapsulated packet. 
The network segmentation task, i.e. dividing users into groups (segments) in accordance with their physical placement in order to reduce the number of clients competing for bandwidth was solved using a device called a bridge. The bridge was developed by Digital Equipment Corporation (DEC) in the early 1980s and was a data link layer device (OSI model (usually dual port)) designed to unite network segments. Unlike a hub, the bridge not only forwarded data packets from one segment to another, but analyzed and transmitted them only if such a transfer was really necessary, that is, the address of the destination workstation belonged to another segment. Thus, the bridge isolated the traffic of one segment from the traffic of another, reducing the collision domain and increasing the overall network performance.
However, the bridges were effective only as long as the number of workstations in the segment remained relatively small. As it increased, there was an overload in the networks (overflow of receiving buffers of network devices), which led to packet loss.
The increase in the number of devices connected to the network, the increase in the power of the processor of workstations, the emergence of multimedia applications and client-server applications required more bandwidth. In 1990, in response to these growing demands, Kalpana launched the first switchboard on the market, called the EtherSwitch.
LAN switch
The switch was a multiport bridge and also functioned on the data link layer of the OSI model. The main difference between the switch and the bridge was that it could simultaneously establish several connections between different pairs of ports. When a packet was transmitted through a switch, a separate virtual (or real, depending on the architecture) channel was created in it, through which data was sent directly from the source port to the destination port with the maximum speed possible for the technology used. This principle of operation has been called "microsegmentation". Thanks to microsegmentation, the switches were able to operate in full duplex mode, which allowed each workstation to simultaneously transmit and receive data using the entire bandwidth in both directions. The workstation did not have to compete for bandwidth with other devices, resulting in no collisions and increased network performance.