In network programming, you must understand the basic knowledge and master these knowledge to make your network programming more perfect and reasonable. Common network devices include routers, bridges, gateways, and modems.
The key lies in the fact that a router is the most common device. The most common network device is a router, because if you want to connect to the Internet in a computer room, you will inevitably get in touch with the router. What is a router? It is difficult to understand the definition. Therefore, if you want to know the router when programming, you can simply understand the basic purpose, A router is a device connecting computers in the office. We can access the Internet through the router. the other end of the router is connected to the network, and several computers in the office are connected to one vro,
Routers are divided into local routers and remote routers. Local routers are common office routers. Common connections are optical fiber cables, coaxial cables, and twisted pair wires. If a remote router uses a telephone line, you must use a modem. wireless receivers and transmitters are required.
A route refers to the process in which a router forwards data to another port based on the destination address of the packet received on a port.
A vro can determine the network address and select an IP address. The vro name can be used to know the role of the vro. The vro determines data forwarding through routing. The forwarding policy is called routing selection, which is the origin of the vro name. The router belongs to the network layer. The router dynamically maintains the route table to reflect the current network topology. The router determines the data port and Next Hop address through the network layer address and route table of the received packet, and overwrites the data packet header to forward data. Other routers on the network exchange routes and link information to achieve maintenance routing.
The IP addresses of home wireless routers and wired routers are 192.168.1.1 and 192.168.0.1.
(Unfinished)