A MarketPlace of Ideas

What are Hub Switch Router? – Network Devices Explained

Published by Fudgy McFarlen on October 17, 2017October 17, 2017

wireshark yoga pants

This video details how hubs, switches and routers work and on what OSI network layers.  It also contrasts their operation. 

OSI Networking model

Show Transcript…
  Hi I’m Peter in this video I’ll explain the difference between three popular types of network devices hubs switches and routers let’s start with the hub hubs are cheap and simple devices that can connect a bunch of computers to each other but they’re a little wasteful with bandwidth here’s how they work when a computer sends information to a hub it replicates the data on all other interfaces it works like this it comes in clones come out it comes in clones come out you get the general idea a hub doesn’t know anything about packets and it doesn’t bother figuring out who is supposed to receive the data no it just spams everyone the receiver will get the message and the other hosts will ignore packets if the receiver field doesn’t match their own address not bad for a glorified bit cloning machine alright so every incoming bit is replicated on all other interfaces that’s a fairly simple and cheap way to create a network however it does cause a lot of unnecessary traffic if you have five hosts in your network hubs unnecessarily send every packet to three hosts that aren’t interested that’s a huge waste of bandwidth also keep in mind that other people in the network can see your traffic if they use free software like Wireshark if you’re embarrassed about your addiction to funny cat videos maybe hops aren’t your best choice now wait a minute there’s a better way to do this if our hop kept a list of where every host can be reached then it would be able to send every packet straight to its destination without spamming the entire network that’s what switches do in this example we’ve plugged in computer a to port 1 and computer B to port 6 each network card has a unique address that switches can use to identify a computer they’re called MAC addresses they’re not only used for Ethernet connections Wi-Fi uses it too if computer a has a MAC address of six times AAA then the switch will know that the computer with that MAC address can be reached on interface one in addition we know that computer B which has a MAC address of six times B B can be found on interface sex all this information will go into the switch table now for this example I will add two more computers computer C is hooked up to port three and computer D is hooked up to port four we have our network now let’s see how it works in practice we always start with an empty switch table because the switch has to learn where everything is and in this example we will send a packet from computer a to computers C at this point the switch does not know where C is so it will just behave like a hub and flood everything but it’s learning by checking the MAC address in the packets center field it learns that computer a can be found on port one it will store this information in its switch table now watch what happens when we send a packet from computer C to computer a since the switch knows that computer a can be reached on port one it doesn’t have to flood the entire network it only has to send the packet to port one the switch now knows where computer CS and adds new entry to its switch table hubs and switches our devices that can be used to create networks but what if we want to send packets between those networks that’s where routers come in say you want to send a packet to your search engine from your home laptop once you send your packet to the Internet how does it find its way to the search engine server that’s the work of routers once you sent the packet to your internet provider routers make sure that your packet is passed on from network to network so that it eventually reaches its destination if all goes well that is you probably have your own router at home too it forms a bridge between your own private network and the network of your internet provider through the network of your internet provider you can reach the rest of the Internet modern routers also carry out other tasks for example they often do network address translation or they can hand out IP addresses to hosts using DHCP we have videos on both of those topics so just click the thumbnails if you want to watch him additionally many routers can also act as an access point for Wi-Fi now that we’ve gone over all three devices let’s compare them it is worth pointing out that hubs switches and routers each operate on a different layer you may recall from other videos that every packet traveling over the Internet consists of five layers the physical layer is just raw ones and zeros since hubs just replicate bits they operate on the physical layer the link layer is specific to the medium over which the packet is traveling such as Ethernet MAC addresses are part of this layer since switches rely on MAC addresses to get packets to the right destination they operate on the link layer the network layer is where the IP protocol does its job a packet source and destination IP addresses are stored here among other things since routers work with IP addresses they operate on the network layer right so when should you buy a hub generally speaking don’t waste your money on them as we’ve discussed they’re huge bandwidth wasters and although it used to be that switches were a little more expensive than hubs that’s no longer the case so if you’re going to buy a hub just by a switch there are some special use cases for hubs though for example they can be used to tap Internet traffic for analysis the main advantage of switches / routers is that they’re cheaper if you need to connect to other networks you can still connect the uplink port of your switch to a router in fact you can connect multiple switches to the same router to save money switches are less complex and routers so they can handle traffic faster than routers can this is great if you want to minimize latency perhaps during a land party with your friends however routers often have a built-in Ethernet switch to handle internal traffic so switches aren’t necessarily faster the main purpose of routers is to connect networks to one another routers often support network address translation which is necessary if you want to give computers with a private IP address access to the Internet unlike your average switch routers often have a DHCP server onboard thanks to DHCP you don’t have to manually configure IP addresses for all hosts in your network well I seem to be out of slides again so I guess I’m going to stop talking in a few seconds if there’s anything you’d like to see explained on this channel drop your suggestions in the comments or you know that’s your local carrier pigeon you’ll know where to find me thanks for watching see you next time.  
Categories: Computing

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

Rich Text Editor, comment
Editor toolbarsBasic Styles Bold Italic Strikethrough Remove FormatParagraph Block Quote Align Left Center Align RightLinks Link UnlinkInsert Image Insert Special Character
Press ALT 0 for help
◢Elements path 

Categories
DashBoard
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
  • About
  • Book List
  • Daily Reads
  • Design Tools
  • Informatics
  • Library
  • Math-Science
  • Side Wikis
  • References
  • BookMarks
Hestia | Developed by ThemeIsle