What is a router?
Routers (routers) are network devices that forward data packets between computer networks. Understandably, the router performs “directing of traffic” on the Internet. Data is sent over the Internet in the form of packages, such as web pages or emails. Data packets are forwarded from router to router through small networks, which are connected together to form a linked network, until the packet reaches its destination. The process of transferring data packets, how to get the data packet to the right “address” you read will be explored in more detail in the Routing process of the Router .
There are many types of routers, from simple to complex. Regular routers are used for home Internet connection, while many routers with “huge” prices are usually business routers, used in large businesses and organizations. But, whether expensive or cheap, simple or complex, every router operates on the same basic principles.
Here, we will focus on common routers, familiar to everyone, if you want to know more about business routers, scroll down to the bottom of the article.
Function of the router
In simple terms, a router connects devices in a network by transferring packets of data between them . This data can be sent between devices or from device to the Internet. The router does this by assigning a local IP address to each device on the network. This ensures data packets arrive at the right place, and don’t get lost in the network.
Imagine this data as a courier package, it needs a delivery address to be sent to the correct recipient. A local computer network is like a suburban street, it is not enough just to know the location of the street without knowing a specific house number in the big world (ie the World Wide Web).
This package can be sent to the wrong address with a limited amount of information. Therefore, the router ensures each location (device) has a unique number so that data packets are sent to the correct location. If it is necessary to return the data to the sender or send its own packet, the router does this too. Although it processes each packet individually, it does it very quickly, even when multiple devices send data at the same time.
Pictures of the Router
For a clearer picture, you can see the illustrations in Figures A and B. Figure A is the front of a TP-Link Archer C7 AC1750 broadband router, and Figure B is the back of it.
Figure A is the front of the router, consisting of beacons, from left to right: power light, wifi beacon (2.4GHz), wifi beacon (5GHz), 4 Ethernet beacons, internet beacon, system beacon .
Looking at Figure B you will see that there are three sets of ports on the back of the router. The port on the left-most side is where the power supply is connected to the router. The green RJ-45 port for plugging in a network cord from a cable modem or DSL modem.
4 yellow RJ-45 ports are used to plug network cables to computers on the network, thereby providing network connectivity for them.
Here are the key uses of routers:
- Create a local area network (LAN) .
- Allows you to split your Internet connection with all devices.
- Connecting different media / devices together
- Run firewall .
- The router determines where to send information from one computer to another
- Filtering and packet forwarding.
- The router also ensures that the information reaches its intended destination.
- Connect to the VPN
Advantages and disadvantages of the router
- The router helps share the network connection with multiple machines, increasing productivity.
- The router allows the distribution of data packets in an organized way, helping to reduce data load.
- The router provides a stable and reliable connection between network hosts.
- Routers use replacements in case the main unit fails to deliver data packets.
- The connection may become slow when multiple computers are using the network. This situation is described as connection waiting.
- A router helps multiple computers to share the same network, which can decrease the speed of the network connection.
Types of routers
Core routers are commonly used by carriers (ie AT&T, Verizon, Vodafone) or cloud providers (ie Google , Amazon, Microsoft). These companies provide the maximum bandwidth for connecting additional routers or switches. Most small businesses won’t need a core router. But very large enterprises with many employees working in different buildings or locations may use core routers as part of the network architecture.
Edge routers, also known as gateway routers or gateways, are the network’s outermost point of connection to outside networks, including the Internet.
Edge routers are optimized for bandwidth and designed to connect with other routers to distribute data to end users. Edge routers often do not offer WiFi or full local network management capabilities. They usually only have Ethernet ports – one input for connecting to the Internet and some outputs for connecting additional routers.
Edge router and edge modem are interchangeable terms, although the word edge modem is no longer commonly used by manufacturers or IT professionals when it comes to edge routers.
The distribution router, or interior router, receives data from the edge router (or gateway) over a wired connection and sends that data to the end user, usually over WiFi, although the router usually also includes physical connections. (Ethernet) for connecting users or additional routers.
The wireless router combines the functions of the edge router and the distribution router. These are common routers for home networking and Internet access.
Most service providers offer full-featured wireless routers as standard equipment. But even if you have the option of using an ISP wireless router in your small business, you may still want to use an enterprise-class router to take advantage of better wireless performance, which has more control over connectivity. connection and more secure.
A virtual router is software that allows some of the router’s functions to be virtualized in the cloud and delivered as a service. These routers are ideal for large businesses with complex network needs. They offer flexibility, easy scalability, and lower input costs. Another benefit of a virtual router is less of the work of managing local network hardware.
Router’s routing process
To understand how routing is done, you must first know a little bit about how TCP / IP works .
Every device connected to a TCP / IP network has a unique IP address limited to its network interface. An IP address is a separate sequence of four numbers separated by dots. For example, a typical IP address is of the form: 192.168.0.1.
The easiest example to understand when talking about IP is the home address. Regular home addresses always include house numbers and street names. House number determines the specific position of the house on that street. The same goes for IP addresses. It includes the network address number and the device number. Compare with the home address, you will see that the network address is like the street name and the device number is like a house number. A network address indicates a specific network the device is participating in and the device number gives the device an identity on the network.
So where is the end of the network address and the beginning of the device number? This is the job of a subnet mask. The subnet mask will “tell” the computer the last location of the network address and the first location of the device number in the IP address. Subnet operations can be very complex sometimes. You can refer to more details in another article that we will introduce later. Now for the simplest of things, let’s look at a very basic subnet mask.
The subnet mask at first glance looks very similar to an IP address because it also has 4 numbers formatted in a pattern separated by dots. A typical subnet mask has the form: 255.255.255.0.
In this particular example, the first three numbers (called octets) are all 255, the last number being 0. The number 255 indicates that all the bits in the corresponding IP address are part of the code. fate. The final zero indicates that there are no bits in the corresponding IP address that are part of the network address. Hence they belong to the device number.
It sounds quite messy, you will understand more with the following example. Imagine you have a computer with an IP address of 192.168.1.1 and a subnet mask of: 255.255.255.0. In this case the first three octets of the subnet mask are both 255. This means that the first three octets of the IP address belong to the network number. Hence the network number location of this IP address is 192.168.1.x.
This is important because the router’s job is to move packets of data from one network to another. All devices on the network (or specifically on a network segment) share a common network number. For example, if 192.168.1.x is the network number associated with the computers connected to the router in Figure B then the IP addresses for the four tablets could be:
As you can see, every computer on your local network shares the same network address, and the device number is different. When a computer needs to communicate with another computer, it does so by referring to that computer’s IP address. For example, in this particular case, the computer at 192.168.1.1 can easily send data packets to the computer at 192.168.1.3 since both of these machines are part of the same physical network. physical.
If one machine needs to access a machine on another network then things are a little different. Suppose that one of the users on the local network wants to visit website www.geprimang.com, a website on a server. Like any other computer, each Web server has a unique IP address. The IP address for this website is 220.127.116.11.
You can easily see that the website’s IP address is not on the 192.168.1.x. In this case, the computer trying to reach the website cannot send the data packet out through the local network, because the Web server is not part of the local network. Instead, the computer that needs to send the data packet will consider the default gateway address.
The default gateway is part of the TCP / IP configuration on a computer. It is a basic way of telling the computer that if you don’t know where to send the packet, send it to the specified default gateway address. The default gateway’s address is the IP address of a router. In this case, the selected router’s IP address is 192.168.1.0
Note that the router’s IP address shares the same network address as the other computers on the local network. The reason is so that it can access machines on the same network. Each router has at least two IP addresses. One uses the same network address for your local network, and the other is specified by your ISP. This IP address uses the same ISP network address. The router’s job is then to move the data packets from the local network to the ISP network. Your ISP has its own routers that work just like any other router, but route the data packets to other parts of the Internet.
Routing protocols define how one router identifies other routers on the network, keeps track of all possible destinations, and makes decisions about where to send each network message. Common protocols include:
– Open Shortest Path First (OSPF) – is used to find the best path for packets, as they pass through a set of interconnected networks. OSPF is designated by the Internet Engineering Task Force (IETF) – one of the Interior Gateway Protocol (IGP).
– Border Gateway Protocol (BGP) – manage how packets are routed over the Internet through the exchange of information between the edge router. BGP provides network stability, ensuring the router can quickly adapt to send packets over another reconnect, if one Internet path fails.
– Interior Gateway Routing Protocol (IGRP) – determines how the routing information between the ports will be discussed in an autonomous network. The routing information can then be used by other network protocols to specify how transmission should be routed.
– Enhanced Interior Gateway Routing Protocol (EIGRP) – developed from IGRP. If a router cannot find a route to the destination in one of these tables, it will in turn query neighbor tables until it finds a new route. When an entry in the routing table changes in one of the routers, it reports the change to neighbors instead of sending the entire table.
– Exterior Gateway Protocol (EGP) – defines how routing information between two neighbor gateway hosts (each host has its own router) is exchanged. EGP is commonly used between servers on the Internet to exchange routing table information.
– Routing Information Protocol (RIP) – the original protocol to determine how the router should share information when moving traffic between a local network group are connected together. The maximum number of hops allowed for RIP is 15, which limits the size of networks that RIP can support.
When do you need a router?
Technically, if you only want to connect to the Internet for one device, you just need to use a modem. Although for security and flexibility reasons, it’s best to use a router even if there is only one device on your network.
But when it is necessary to provide Internet for many devices such as mobile phones, smart TVs, the router is an indispensable device. Remember the example of street names and house numbers. If there is only one house on one street, you don’t need a house number because it only has one location. But when there are many homes on that street, you need a specific address.
Users need a router not only to connect to multiple network devices, but also to connect multiple devices together. If you don’t have the Internet, you can still create a local area network for computers and other devices. This allows you to transfer and share files with specific devices on a network like printers, scanners and game consoles .
Without the router, data won’t be sent to the correct device. The document print job becomes useless when it is sent to the smartphone or the Google Home speaker instead of the printer.
Speaking of Google Home, the router is even more essential if you need to connect to your Smart home . Because Smart home is also a local network of devices, without a router they cannot communicate with each other. You can still use your local network without the Internet or a modem, but you can’t without a router.
The difference between a wired and a wireless router
The difference between a wired router and a wireless router is the type of connection each device uses. Wired routers have only LAN cable ports while wireless routers (also known as WiFi routers ) have wireless antennas and adapters, allowing devices to connect without cables. Most routers and modems these days have LAN ports and antennas. There are a few things you need to keep in mind when choosing a WiFi router to make sure you choose the right one.
As you can see, the router is an extremely important network component. Without routers, connectivity between networks (such as the Internet) would not be possible.
What is the business router that is so expensive?
Take a look at the basic functionality of a router used in businesses, large organizations, and below you will understand why:
- The business router usually takes the form of a device with integrated services, for example, in addition to providing network services, there are also applications and security.
- Integrated hardware-based VPN for remote access by customers and employees.
- Highly configurable, providing advanced options for managing connected devices, such as quality of service (QoS) control for specific devices, ports and traffic types.
- High-end business routers, such as routers developed by Cisco, will require separate devices to create wireless access points and will use external switches to connect the wired device to the router.
- Business routers often use high-quality components that have been working well for many years.
As you can see, the business router is more complex, and it also cuts off some of the features that a home router has. Business routers are designed to be the only high-performance device in a larger and more complex network, while home routers are designed to be an all-in-one solution, easy to connect and access.