<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Learn-Networking.com &#187; switch</title>
	<atom:link href="http://learn-networking.com/tag/switch/feed" rel="self" type="application/rss+xml" />
	<link>http://learn-networking.com</link>
	<description>Where 127.0.0.1 is Home.</description>
	<lastBuildDate>Sat, 27 Nov 2010 22:11:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>An Introduction to Ethernet Switching</title>
		<link>http://learn-networking.com/network-design/an-introduction-to-ethernet-switching</link>
		<comments>http://learn-networking.com/network-design/an-introduction-to-ethernet-switching#comments</comments>
		<pubDate>Thu, 31 Jan 2008 02:59:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[hub]]></category>
		<category><![CDATA[spanning tree protocol]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://learn-networking.com/network-design/an-introduction-to-ethernet-switching</guid>
		<description><![CDATA[When you stop to think how well the internet is put together, you start to wonder how the internet coexists with all the chaos that results from broadcasts, data collision, and data loops. Yet, despite the odds, the internet is still (currently) alive and thriving today. But what can we attribute this achievement to? As [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">When you stop to think how well the internet is put together, you start to wonder how the internet coexists with all the chaos that results from broadcasts, data collision, and data loops. Yet, despite the odds, the internet is still (currently) alive and thriving today. But what can we attribute this achievement to? As you’ll find in the coming section, we owe a lot of gratitude towards a little something Cisco likes to call Ethernet switching.</p>
<p class="MsoNormal">But before we jump into the fun theories such as Spanning Tree Protocol (STP), let’s take a look at the devices we are dealing with.</p>
<h3><strong><span style="font-size: 12pt; line-height: 115%">Layer 2 Bridges</span></strong></h3>
<p class="MsoNormal">As you’ll recall from the OSI model, layer 2 corresponds to the Data Link layer- the layer that deals directly with MAC addresses. In this case, we are dealing with bridges that, coincidentally, handle MAC addresses.</p>
<p class="MsoNormal">The purpose of a bridge is simple: divide a network into two separate pieces so we can save bandwidth. That way if a computer on one segment of the bridge needs to communicate with another computer on that side of the bridge, the connection remains local. The other segment will not be bothered with the request.</p>
<p style="text-align: center"><img src="http://learn-networking.com/wp-content/uploads/2008/01/bridge-config.jpg" alt="bridge" /></p>
<p class="MsoNormal">This also effectively gives us two separate collision domains. This will help cut down on data collision, which is a major cause of network latency. Note that in the above example, computer A sends information to the bridge first, which makes the decision to route the request to computer B, while filtering the data out of the segment on the right.</p>
<p class="MsoNormal"><strong>Things to Remember About Bridges</strong></p>
<ul>
<hr />
<li><strong>1.</strong> Bridges provide switching via comparing destination MAC addresses found in the data being sent to MAC addresses stored in its tables.</li>
<p></p>
<li><strong>2. </strong>If the source MAC address is not already known, the bridge creates a new entry in the MAC address table with the source port. This will be used for future switching operation.</li>
<p></p>
<li><strong>3.</strong> If the destination MAC address is not known by the bridge, a broadcast will be sent to all segments in a process called flooding. Note that a broadcast is not sent out in the port the data was received on.</li>
<p></p>
<li><strong>4. </strong>If the bridge determines the destination MAC address is not from the same network segment as the sending device, it will forward the data to the appropriate segment.</li>
<hr /></ul>
<h3>Layer 2 Switches</h3>
<p class="MsoNormal">Layer 2 switches are essentially the same as bridges, only they have multiple ports and can use microsegmentation to decrease collisions and increase throughput. They also have support for full-duplex operation and spanning tree protocol (STP).</p>
<p class="MsoNormal">Full-duplex operation enables devices to have support for both receiving and sending information at the same time. This eliminates the problem of data collision altogether. Keep in mind that if a device such as a hub were used, full duplex operation could not be possible because hubs lack microsegmentation.</p>
<p style="text-align: center"><img src="http://learn-networking.com/wp-content/uploads/2008/01/full-half-duplex.jpg" alt="half duplex full duplex" /></p>
<p class="MsoNormal">Lastly, switches use what is called spanning tree protocol. Spanning tree protocol is used to help prevent loops from forming. Imagine that switch A forwards data to switch B, since it is unsure where the data should go. Switch B isn’t sure either, and forwards the data back. This creates a never ending loop in theory, but thankfully we can make use of STP. In the example below, you can see that there are four physical links maintained, while two of the links are purely logical- they do not technically exist to the switches.</p>
<p class="MsoNormal" align="left">To counteract the threat of loops, switches send messages called bridge protocol data units, or BPDUs, out every port to let other switches know if its existences. Redundant paths are then shut down through port blocking, and we result with a path free of loops. (These paths can be opened again, however, in case a line goes down and the redundancy is needed.) In the example below, you can see that there are four physical links maintained, while two of the links are purely logical- they do not technically exist to the switches.</p>
<p style="text-align: center"><img src="http://learn-networking.com/wp-content/uploads/2008/01/spanning-tree-protocol1.jpg" alt="spanning tree protocol" /></p>
<h3 align="left"><strong><span style="font-size: 12pt; line-height: 115%">Layer 2 Switch Modes of Operation<o:p></o:p></span></strong></h3>
<p class="MsoNormal" align="left">But what sets them apart from bridges even further is that they can operate in three different modes- Store-and-Forward, Cut-Through, and Fragment-Free.</p>
<ul>
<hr />
<li><strong>1.</strong> <strong>Store-and-Forward</strong> is the method with the slowest operation speed. This is due to the fact that it checks incoming frames of data for integrity. If the frame has errors, it is discarded. Otherwise, it is sent to its destination. This error checking can be quite costly to network performance, however.</li>
<p></p>
<li><strong>2.</strong> <strong>Cut-Through</strong> switching is considered to be the bare minimum- and thus much faster. It only requires that the beginnings of the frame up to the destination MAC address be read before the frame of data can pass through the switch.</li>
<p></p>
<li><strong>3. </strong><strong>Fragment-Free </strong>switching is a modified form of the Cut-Through method. Fragment-free switching filters out collision fragments, which is where the majority of packets errors originate. To do this checking, the switch must wait for the entire packet of information to be received before the filtering takes place. Obviously, it’ll not be as quick as the cut-through method.</li>
<hr /></ul>
<h3>A Last Note on Broadcasts and Collisions</h3>
<p class="MsoNormal">Keep in mind that since we have been dealing with layer 2 devices, we do not divide the broadcast domain with these devices. Only a router can divide a broadcast domain. As for collision domains, each of these devices creates more of them (this is a good thing). As for hubs and repeaters, they only extend the collision domain.</p>
<p class="MsoNormal">Also keep in mind that if a frame is bearing the format of FFFF.FFFF.FFFF, it will be automatically received by all NICs on the network, as this is, in fact, a broadcast address in hexadecimal.</p>
<img src="http://learn-networking.com/learn-networking.com/?ak_action=api_record_view&id=108&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://learn-networking.com/network-design/an-introduction-to-ethernet-switching/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>What Is The Difference Between A Hub And A Switch?</title>
		<link>http://learn-networking.com/network-hardware/what-is-the-difference-between-a-hub-and-a-switch</link>
		<comments>http://learn-networking.com/network-hardware/what-is-the-difference-between-a-hub-and-a-switch#comments</comments>
		<pubDate>Mon, 28 Jan 2008 04:19:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[hub]]></category>
		<category><![CDATA[switch]]></category>

		<guid isPermaLink="false">http://learn-networking.com/network-hardware/what-is-the-difference-between-a-hub-and-a-switch</guid>
		<description><![CDATA[A hub and switch essentially accomplish the same thing, although their methods are different. Both can be used to regenerate degraded signals (acting as a repeater), and both can be used to split a signal into multiple signals (handy for splitting up an internet connection to your home network, for instance). But should you really [...]]]></description>
			<content:encoded><![CDATA[<p>A hub and switch essentially accomplish the same thing, although their methods are different. Both can be used to regenerate degraded signals (acting as a repeater), and both can be used to split a signal into multiple signals (handy for splitting up an internet connection to your home network, for instance). But should you really care how they do it? If they both accomplish the same thing, what’s the difference?</p>
<h3>What is a Hub?</h3>
<p class="white">Think of a hub as a rather naïve device- it operates on the Physical Layer of the OSI model. Switches, on the other hand, are much more intelligent- and operate on the Data Link Layer of the OSI model.</p>
<p style="text-align: center"><img src="http://www.learn-networking.com/wp-content/oldimages/osi-model-switch-hub.jpg" alt="osi model switch hub" /></p>
<p>When a hub receives information on one port, the information is then broadcasted to all of its ports. This wouldn’t be such a bad plan if it didn’t waste bandwidth and cause collisions. Imagine if two computers transmitted data at the same time: the packets of information would collide and the information would be corrupted. We would have to rebroadcast the data through the process of Ethernet Carrier Sense Multiple Access with Collision Detection- but you can just call it <strong>CSMA/CD</strong>. In simple terms, it is the protocol we use to resend data after a collision occurs.</p>
<p>Collisions are obviously a problem with hubs, but we just hit the tip of the iceberg. More importantly, hubs are notorious for wasting bandwidth. Hubs operate at half-duplex, which means data can only flow one way at a time. (As compared to full-duplex, where we can send and receive data between two devices at the same time.) Since we are operating at half-duplex, the bandwidth must be shared between each port on the hub. Imagine you have a 20 port hub with a 20Kb/s line to share. Tough luck, but you’ll only get 1Kb/s to each computer on the network.</p>
<h3>What is a Switch?</h3>
<p class="white">A switch operates on the Data Link Layer of the OSI model. This means that switches are fairly smarter than hubs, as they can route data on a dynamic level. If information is destined for computer A, for example, the switch will only send the data to computer A.</p>
<p>This addresses our collision problem, since switches use what is called <strong>microsegmentation</strong>.  Microsegmentation will allow for multiple collision domains. Which would you rather have- one collision domain or many?</p>
<p>Let’s look at an example. In the below diagram, there are many collision domains (or segments) for the switch network. If computer A and computer B sent data to each other at the same time, for instance, you may have a collision. Computer A and computer C or D, however, will not experience a collision in the process. In the hub network, there is just one collision domain. That means if the first computer wants to transmit data, it could be interrupted by any of the other computers on the network.</p>
<p style="text-align: center"><img src="http://www.learn-networking.com/wp-content/oldimages/collision-domain.jpg" alt="collision domain" /></p>
<p>But the fun doesn’t stop there! Switches can keep track of which computer address belongs to a certain port. If there is information destined for computer A, it will only travel through computer A’s port. Remember how the hub split the bandwidth between each port? Microsegmentation allows for us to keep the bandwidth as high as possible for each computer. If you have a 20Kb/s line coming in, each computer can have the full 20Kb/s. (But note that switches aren’t magic, if two or more computers are using the line at the same time, they must share it. Still- this is much better than hubs, which automatically split up bandwidth to ports that you might not even be using!)</p>
<h3>Should You Upgrade to a Switch?</h3>
<p>The short answer here is: definitely. Hubs were primarily used because they are inexpensive and easy to setup. The good thing about “dumb” devices is that they don’t require much configuration or maintenance.</p>
<p><!--adsense--></p>
<p>Switches are a bit more expensive, and allow for more configuration options. They can be programmed much like routers, something hubs can’t accomplish. The average home user likely won’t need the extra configuration options- but they will appreciate the speed. If your network is already blazing fast, you may not need the upgrade. If you could appreciate some extra performance, or if you have many computers on the same network, then the upgrade is almost mandatory.<br />
<!--adsense#inlinebottom--></p>
<img src="http://learn-networking.com/learn-networking.com/?ak_action=api_record_view&id=70&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://learn-networking.com/network-hardware/what-is-the-difference-between-a-hub-and-a-switch/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>

