Skip to main content

Hub, Switch, & Router Explained - What's the difference?

hello everyone in this article we're going to talk about the difference between a hub a switch and a router now all three of these devices are similar but there is a difference in the way they handle data so we'll first talk about a hub now the purpose of a hub is to connect all of your network devices together on an internal network it's a device that has multiple ports that accepts Ethernet connections from network devices now a hub is considered not to be intelligent because it does not filter any data or has any intelligence as to where the data is supposed to be sent and that's because the only thing a hub knows is when a device is connected to one of its ports so when a data packet arrives at one of the ports it is copied to all of the other ports so all the devices on that hub sees that data packets so again a data packet comes into one port then the hub will just rebroadcast that data to every port that has a device connected to it so even if this computer here only wanted to communicate with this computer over here these other computers would still receive the data even though that data was not intended for them so when this happens it not only creates security concerns but it also creates unnecessary traffic on the network which wastes bandwidth malice which is very similar to a hub it's also a device that has multiple ports that accepts Ethernet connections from network devices but unlike a hub a switch is intelligent a switch can actually learn the physical addresses of the devices that are connected to it and it stores these physical addresses called MAC addresses in its table so when a data packet is sent to a switch it's only directed to the intended destination port unlike a hub where a hub will just rebroadcast the data to every port so as an example if this computer here wanted to communicate with this computer over here the data packet arrives at the switch and then the switch will look at its table of MAC addresses and matching ports and deliver the data to the correct port and then the data packet would only go to that computer so that's the major difference between a hub and a switch so as a result switches are far more preferred over hubs because they reduce any unnecessary traffic on the network so as a review a hub only detects that a device is physically connected to it and ifs which can detect specific devices that are connected to it because it keeps a record of the MAC addresses of those devices now hubs and switches are used to exchange data within a local area network for example such as in your home network or in a business they are not used to exchange data outside their own network such as out on the Internet because to exchange or route data outside their own network to another network such as out on the internet a device needs to be able to read IP addresses and hubs and switches do not read IP addresses so that's where the router comes in now a router does exactly what its name implies a router is a device that routes or forwards data from one network to another based on their IP address when a data packet is received from the router the router inspects the datas IP address and determines if the packet was meant for its own network or if it's meant for another network if the router determines that the data packet is meant for its own network it receives it but if it's not meant for its own network it sends it off to another network so a router is essentially the gateway of a network so here we have a private network with its router and we'll refer to this as the red network indicated by the red colored screens on the computers and over here you're going to have different data packets indicated by their different colors which represents different IP addresses and they are going to be entering the red networks router from the internet now the router is only going to accept the red data packets because they are the only ones that are intended for this network so all of the other data packets the yellows blues greens etc will be rejected by this router because they were not intended for this network because their IP addresses were not meant for this network now here is an expanded view of routers over the internet there are four networks here indicated by their different colors and each network has their own router along with their hubs or switches and their computers so right now as you can see each network is just exchanging information within their own network their data is not going out on the internet so they are not communicating with other networks they are just exchanging data within their own network using their hub or switch now let's go ahead and exchange data between different networks so let's say for example that this computer here on the red network wants to communicate with a computer here on the blue network so for this to happen the data packet has to leave their own network and go out on the internet so the computer sends their data and it goes to the network's router and once the data packet reaches the router the router will look at the IP address of the data packet and then forward the data out on the Internet to the next router and then make its way to the blue networks router and then to the intended destination computer so in a nutshell this is how routers work so in conclusion hubs and switches are used to create networks while routers are used to connect networks

Comments

Popular posts from this blog

Printers Explained - Laser, Inkjet, Thermal, & Dot Matrix

hello everyone in this article we're going to talk about different types of printers now printers allow the ability to print copies of documents or photos onto paper from a computer now there are several different types of printers but the most common types that are used in homes and businesses are inkjet and laser printers and there are also a couple of less common printers such as thermal printers and dot matrix printers which we'll talk about later so let's first talk about inkjet printers now inkjet printers are the most common printers that are used in homes they are affordable and they produce photo quality results and they are enough to suit the needs of a typical home user now an inkjet printer works by the printhead moving back and forth across the paper during printing and during this process the printhead places ink on the paper in very tiny dots in fact these dots are so tiny that they are smaller in diameter than a human hair and as these dots are precisely pla

VLAN Explained

VLAN stands for virtual local area network a VLAN is a local area network where the computers servers and other network devices are logically connected regardless of their physical location so even if these devices are scattered in different places it wouldn't matter because a VLAN can logically group them into separate virtual networks and the purpose of a VLAN is for improved security traffic management and to make a network simpler so as an example let's say you have a three-story office building and in this building you have computers that belong to certain departments that are mixed in with computers that belong to other departments on the same floor so the red computers represents the accounting department the blue computers represent the shipping department and the green computers represent the support department now as you can see all these computers from these different departments are all connected to a switch so they are all on one segment on a local area network or

Port Forwarding Explained

what is port forwarding now maybe you've heard about it but you weren't exactly sure what it was or how it works so basically port forwarding allows computers over the Internet to connect to a specific computer or service within a private network it's basically making your computer accessible over the Internet even though you're behind a router so for example let's say a friend of yours at their home wants to remotely control your computer at your home using a service such as remote desktop connection now remote desktop connection is a service built into Microsoft Windows that enables you to connect to another computer running Microsoft Windows and then once you're connected to the remote computer you can use that computers programs and files just as if you were sitting in front of it so now your friend is ready to connect to your computer so we starts up the remote desktop connection and sends the request to your public IP address with a specific port number no