Briefly describe the basic functions and working principle of the router
A router is a kind of network device responsible for routing. It searches for a network path with the least amount of traffic from multiple paths in the interconnection network to provide communication to users. The picture shows Rui Gu Zhilian's industrial 3G router.
The function of the router
Simply speaking, routers mainly have the following functions:
First, network interconnection, routers support a variety of LAN and WAN interfaces, mainly used to interconnect LAN and WAN, to achieve different networks to communicate with each other;
Second, data processing, including packet filtering, packet forwarding, priority, multiplexing, encryption, compression, and firewall functions;
Third, network management, routers include configuration management, performance management, fault-tolerant management and flow control.
How routers work
1. The router receives data from one of its connected websites.
2. The router passes the data up and reassembles the IP datagrams (if necessary).
3. The router checks the destination address in the IP header. If the destination address is located on the network that sent the data, the router drops the data that is considered to have reached the destination because the data is transmitted on the destination computer's network.
4. If the data is destined for another network, the router queries the routing table to determine the destination to which the data is to be forwarded.
5. After the router determines which adapter is responsible for receiving data, it passes data through the appropriate software to transmit data over the network.