2023 - 08 - 17Difference Between Gateway and Router
Essential difference A gateway is a device that is mainly used to connect two different networks. At the same time, the gateway can also communicate with the hosts on both sides at the same time. However, the hosts on both sides cannot communicate directly, they must go through the gateway to communicate. The work of the gateway is in the application layer. A router is a device at the network layer, and usually sends data in packets. The sub-interface of the router has the function of dividing the broadcast domain, so after using the switch as a VLAN, it is necessary to implement a layer 3 route on the router. The difference in usage The gateway can be a router, a switch or a PC. Communication within the same network segment does not require the gateway to intervene. Only when the host communicates with a device other than the network segment, it is necessary to send all the data packets to the gateway device, and then forward or pass through the gateway device. There is routing handling etc. A router is a network layer system. Routers are generally divided into two categories in the market today, one is single-protocol...