CINXE.COM
Network switch definition by The Linux Information Project
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd"> <html xmlns= "http://www.w3.org/1999/xhtml"> <head> <link rel="stylesheet" type="text/css" href="belug1.css" /> <title>Network switch definition by The Linux Information Project </title></head> <body bgcolor="#ffffff"> <a href="index.html">LINFO</a> <br /><center><h1>Network Switch Definition</h1></center><br /> <table width="100%"><tbody><tr><td width="10%"></td><td width="80%"> <br /> <p> A <i>network switch</i>, commonly referred to as just a <i>switch</i>, is a <a href="network.html">network</a> device that is used to connect segments of a <a href="lan.html">LAN</a> (local area network) or multiple LANs and to filter and forward <a href="packet.html">packets</a> among them. Switches have an appearance similar to <a href="hub.html"><i>hubs</i></a> (because both are box-like devices that contain a number of <a href="rj-45.html">RJ-45</a> <a href="jack.html">jacks</a>), but they are actually multi-port <a href="bridge.html"><i>bridges</i></a>. </p> <p> A bridge is a device that functions at the <a href="data_link_layer.html">data link layer</a> (the second layer) of the seven-layer <a href="osi_model.html">OSI model</a> to connect and control the flow of data between two LANs or two segments of the same LAN. Bridges have three main functions: (1) creating a <i>bridging table</i> to keep track of devices on each segment, (2) filtering packets based on their <a href="mac_address.html">MAC addresses</a> and (3) dividing a single network into multiple <a href="collision_domain.html">collision domains</a>, thereby reducing the number of <a href="collision.html">collisions</a> on each segment and effectively increasing its <a href="bandwidth.html">bandwidth</a>. </p> <p> Hubs, as is the case with <a href="repeater.html">repeaters</a> and in contrast to switches and bridges, operate at the <a href="physical_layer.html">physical layer</a> (i.e., the bottom layer) of the OSI model. This layer provides no filtering of packets. Switches, however, because of their operation at the data link layer, provide a greater degree of control, including the filtering of packets by their MAC addresses so that they are forwarded only to their destination network segments rather than just <a href="broadcast.html">broadcasting</a> them to all segments. This limits the collision domain, and thereby conserving system bandwidth. </p> <p> Switches also improve network performance over hubs by providing <a href="full_duplex.html"><i>full duplex</i></a> (i.e., data flow in both directions simultaneously) operation instead of <a href="half_duplex.html"><i>half-duplex</i></a> (data flow in only one direction at a time) operation. This results in a doubling of the maximum bandwidth. Switches can operate in full duplex mode because they prevent collisions, and thus no collision detection system is needed. Switches thus eliminate the conventional <a href="csma_cd.html">CSMA/CD</a> (carrier-sense multiple-access with collision detection) method and utilize a far more efficient communication method. </p> <p> LANs that use switches to join segments are called <i>switched LANs</i>. In the case of <a href="ethernet.html">Ethernet</a> LANs, which account for most LANs, they are also called <i>switched Ethernets</i>. </p> <p> Switches are <i>self learning</i>, and thus they are as easy to install as hubs and bridges. All that is necessary is to plug them in and they are ready to use. </p> <p> Switches have become extremely sophisticated in recent years. For example, models have been developed that include support for optical fiber networks, the addition of services at higher layers of the OSI model and the ability to create virtual LANs (VLANs). A VLAN is a LAN in which devices are logically configured to communicate as if they were attached to the same network, without regard to their physical locations. </p> <p> Switches can also include the functionality of <a href="router.html"><i>routers</i></a>, which are devices and/or software that connect at least two networks and forward packets among them according to the information in the <i>packet headers</i> and <a href="routing_table.html"><i>routing tables</i></a>. However, in general, switches are simpler and faster than routers, which require knowledge about the network and how to determine the route. Routing occurs at the <a href="network_layer.html">network layer</a> (i.e., the third layer) of the OSI model, in contrast to the data link layer operation of switches. </p> <p> The superior performance of switches together with their ease of use and a narrowing of the price gap has resulted in their increased use in place of hubs in recent years. </p> <p><br /></p> <p><br /></p> <p><br /></p> <p><br /></p> <p><br /></p> <p class="copy">Created December 1, 2005.<br /> Copyright © 2005 The Linux Information Project. All Rights Reserved.</p> </td><td width="10%"></td></tr></tbody></table> </body></html>