From the perspective of filtering network traffic, the role of routers is very similar to that of switches and bridges.
1.Connect different networks
From the perspective of filtering network traffic, the role of routers is very similar to that of switches and bridges. But unlike switches that work at the physical layer of the network and physically divide network segments, routers use special software protocols to logically divide the entire network. For example, a router that supports the IP protocol can divide the network into multiple subnet segments, and only network traffic directed to a special IP address can pass through the router. For each received data packet, the router will recalculate its check value and write a new physical address. Therefore, the use of routers to forward and filter data is often slower than switches that only view the physical addresses of data packets. However, for those complex networks, the use of routers can improve the overall efficiency of the network. Another obvious advantage of routers is that they can automatically filter network broadcasts. Generally speaking, the entire installation process of adding routers to the network is much more complicated than plug-and-play switches.
2. Choose the route of information transmission
Some routers only support a single protocol, but most routers can support the transmission of multiple protocols, that is, multi-protocol routers. Since each protocol has its own rules, it is bound to reduce the performance of the router to complete the algorithms of multiple protocols in a router. The main job of the router is to find an optimal transmission path for each data frame passing through the router, and to effectively transmit the data to the destination site. It can be seen that the strategy of selecting the best path, the routing algorithm, is the key to the router. In order to complete this work, the relevant data of various transmission paths—Routing Table—is stored in the router for routing selection. The path table saves the subnet identification information, the number of routers on the Internet, and the name of the next router. The path table can be fixedly set by the system administrator, or dynamically modified by the system, automatically adjusted by the router, or controlled by the host.
Static routing table: The fixed routing table set up by the system administrator in advance is called a static routing table. It is usually set in advance according to the configuration of the network when the system is installed. It will not change with the future network structure. Change and change.
Dynamic routing table: Dynamic (Dynamic) routing table is a routing table automatically adjusted by the router according to the operation of the network system. According to the functions provided by the Routing Protocol, the router automatically learns and memorizes the operation of the network, and automatically calculates the best path for data transmission when needed.
To know more please visit https://www.e-lins.com/EN/