Computer network: back to the basics

If you compare the hub, the switch and the router, you will first notice that they are quite similar and do not know how to distinguish. But the actual hub, swithch and router only have some basic basic features, the rest are mostly different. If you can't talk about routers after you understand rub, you can refer to the article below.

In network devices, the hub is the smallest link. This basic device connects the computers on the network together to get a single network segment. They are called 'hubs' because they are at the center of a network, connecting to computers through scattered cables, similar to a bicycle spokes. All computers in a network segment can 'see' and communicate with each other.

Computer network: back to the basics Picture 1

OSI network model ( Source: Raduniversity )


Please add that the hub is a tier 1 device in the OSI (Open System Interconnection) network model, the Physical layer.

The task of a hub is simply to receive incoming data (frames) and spread them back to the attached devices in the network. Hub operates under broadcast, somewhat redundant when it comes to sending data to devices that do not need it.

Computer network: back to the basics Picture 2 Source: abdn.ac.uk

Hub does not have any sort of clever arrangement. It does not determine which port requires the data frame, which port does not send to each specific port. So it sends all ports in the network, whichever port requires it to check and receive the data you need.

The mechanism to spread data frames to every single port ensures at least every frame is sent to the required destination. But it is also because hubs are called silent people, only emitting without receiving confirmation feedback.

Because hubs are simple and easy to install, people use them as input-level devices to connect PCs to each other. If you run out of hub ports, you can create a daisy-chain hub by connecting via the 'uplink' port.

Modern hubs have 'auto-sensing' mode and you can use any port to do this. But hubs are increasingly shrinking with the switch's replacement. Using switches is much more efficient, especially when using network bandwidth.

Create a switch

If you are looking for a more efficient network solution, you will need a switch. The switch operates at a higher level than the hub, at the 2nd floor, Data Link layer. A switch is similar to a hub, but smarter. They are a bit more friendly and much faster.

Computer network: back to the basics Picture 3 Source: abdn.ac.uk

Unlike hubs, the switch thoroughly checks each received packet, specifying the source and destination of each packet. Then wait for the packets to move to the destination correctly. The switch uses the MAC (Media Access Control) address of the network device to find the destination device. MAC address is a unique 16-character ID code, which is the fixed hardware address in each device.

To work effectively, each switch creates a temporary dedicated link between the sender and the receiver, similar to a switching telephone channel.

With the mechanism of delivering data packets to the right devices, the switch is even more efficient when users use network bandwidth. Performance speed is much higher than hub.

Another advanced feature of the switch is the ability to resolve data conflicts. These conflicts occur when computers in the network simultaneously send broadcast data to all ports. They will suddenly slow down the network execution process. Currently, with switches with load mode controlling traffic, conflicts will be eliminated. There is no conflict that is not going to find conflicts like hubs have to do. So switches can exclude the access method for CSMA / CD (carrier-sense multiple-access with collision detection) detection, making the throughput increase.

Another benefit of using a switch, comes from the fact that they support full-duplex, two-way communication in parallel. The default transfer method in the network is slower: hafl-duplex (one way). In it, you can only send or receive and not receive and send data at the same time.

Use full-duplex method with very effective network bandwidth.

Using a switch is much better than a hub if your network has 4 or more computers. Or if the network has application programs that produce a significant amount of network traffic, such as multi-player games or heavy multimedia file sharing, you should also use a switch.

The best orientation

As mentioned above, the hub is on the first floor, the switch works on the second floor, so many of you will probably guess that the router works on the 3rd floor. A router works similar to a switch, but there are a few further steps. They send data packets to the destination via an 'internet connection' (internetwork), ie another network or internet. That process is called routing.

Computer network: back to the basics Picture 4 Source: abdn.ac.uk

To route data packets when switching to another network, a router must contact other hosts and use routing protocols. Then use this information to create and maintain a routing table.

The routing table includes a route list that determines the optimal network destination, plus data known as 'routing metrics' in routers. The routing table also has a link to the next 'upstream' router.

The router carefully checks incoming data and can determine the destination address of that data. They then use the 'rounting table'. The router does not use the MAC address to determine the destination of the data. They use software-configured network address to route. This makes routers work more efficiently than switches, but at the same time, they cause routers to encounter more complex conflicts. There needs to be a smarter solution for routers.

One of the benefits of routing is that it allows network traffic either to come, or go, to be filtered based on the IP address of the sender and receiver. A router will analyze each packet to see what type it belongs to. Then send SMTP or POP3 packets to the required ports, such as ports 25 and 110. Or you can send HTTP packets to other ports such as port 80, etc.

Most home routers or small-range office routers are multi-functional devices, combining switches, firewalls, DHCP services (Dynamic Host Configuration Protocol), network address translation Network Address Translator and many Wi-Fi hotspots. Common counters have a separate Ethernet port for a WAN (Wide Area Network) connection, a cable box or a WiMax wireless connection.

Computer network: back to the basics Picture 5

A variant of the normal router is the ADSL router. ADSL router is a combination of router and ADSL modem to simplify connection to a WAN. With ADSL router, instead of a WAN port, it uses a phone socket for ADSL transmission. As a result, the ADSL router is purely a very small router, you cannot use it to connect any cable modem.

5 ★ | 2 Vote

May be interested

  • Test on computer network with answer P7Test on computer network with answer P7
    computer network is a group of computers and peripheral devices connected together through transmission media such as twisted cable, optical cable, electromagnetic wave, infrared ray ... to share data with each other. if you are a lover of this topic, please read your knowledge through the multiple choice questions below with the network administrator.
  • How to Back Up a Windows ComputerHow to Back Up a Windows Computer
    this wikihow teaches you how to back up the data on your windows 10 computer to another location. connect another hard drive or flash drive to the computer. this method will help you back up your personal files and folders to another...
  • Network basics: Part 19 - Sharing level termsNetwork basics: Part 19 - Sharing level terms
    in the previous part of this series, i began showing you how to create a shared network that can be used to share resources on a server. so far, we have created a ch
  • Computer network test with answer P11Computer network test with answer P11
    continue the series of tests on computer networks, in this section i will increase the number of questions for you to try to test your computer network knowledge. do not skip the previous network quiz section again.
  • How to Back Up DataHow to Back Up Data
    this article shows you how to back up data on your computer or smartphone. backing up your computer or phone data creates a copy of the data so you can restore it if your computer, phone, or tablet crashes or loses data.
  • Network basics: Part 18 - Sharing resourcesNetwork basics: Part 18 - Sharing resources
    in the previous article of this series, we introduced you to the osi model and how it is used in implementing abstraction between hardware and software. in this article, we will introduce you to creating resources on a network. if you want to find out
  • How to back up photos on iPhone to the computerHow to back up photos on iPhone to the computer
    how to back up photos on iphone to the computer. iphone is considered by many users to be a fast and beautiful smartphone model, used by many people as their mobile camera. because iphone doesn't support memory card, copying photos from iphone to
  • How to Set Up the Back Tap Gesture on iPhoneHow to Set Up the Back Tap Gesture on iPhone
    many people only recently discovered back tap, a hidden gesture that can run shortcuts, open apps, or take screenshots.
  • 7 reasons girls should learn and manage computer networks7 reasons girls should learn and manage computer networks
    computer network administration is a growing field, requiring more experts to balance the growing workload, especially as cloud technology and the internet of things become more popular.
  • Quickly fix the error 'This site can't be reached' on ChromeQuickly fix the error 'This site can't be reached' on Chrome
    if you are a windows user, when you encounter the error 'this site can't be reached' on your chrome browser, you will probably immediately think about losing your network connection and will immediately apply the solution to fix the network outage error with troubleshooter. however, this troubleshooting process only focuses on scanning the basics like the connection between the server and your computer and cannot check dns issues to actually resolve the problem. .