Difference Between Gateway and Router

It only takes 2 minutes to fully understand the working principle of the gateway_哔哩哔哩_bilibili
Gateway_Baidu Encyclopedia

1. The concept of gateway

        Gateway (Gateway) is also called Internet connector and protocol converter . The gateway implements network interconnection above the network layer . It is a complex network interconnection device and is only used for the interconnection of two networks with different high-level protocols . Gateways can be used for both WAN interconnection and LAN interconnection. A gateway is a computer system or device that acts as a switch . Used between two systems with different communication protocols , data formats or languages, or even completely different architectures , a gateway is a translator . Unlike bridges , which simply convey information, gateways repackage received information to suit the needs of the destination system. Same layer - application layer.

Second, the difference between a gateway and a router

        First of all, "gateway" is a big concept. It does not specifically refer to a type of product. As long as a device connected to two different networks can be called a gateway; "router" generally refers to a specific type of product that can realize routing search and forwarding. Router Obviously, the function of the gateway can be realized.

The difference between a gateway and a router

The difference between a gateway and a router:

A gateway is a concept, and a "router" is a product.

A router can be used as a gateway, a firewall can be used as a gateway, a layer 3 switch can be used as a gateway, an ordinary PC can be used as a gateway, and even a smartphone can be used as a gateway.

        So, what is the gateway for?

        In the 1980s, network technology was just emerging, and there was no unified and mature standard. At that time, different organizations used different network protocols, which could only communicate internally, not intercommunication, unlike the current tcp/ip domination of the world.

        Then Leonard Bosack and Sandy Lerner, two super academics from two different departments at Stanford, invented routers, which can be used to connect different networks. The above two are the founders of Cisco.

        The router also becomes the "gateway" of the two networks, helping two different networks to forward data.

        The role of the gateway is already clear, which is to help two networks that cannot directly communicate with each other to forward data.

        Therefore, the router can act as a gateway, connecting the home LAN to the Internet. The mobile phone can be used as a gateway, the mobile phone turns on a hotspot, the notebook is connected, and the mobile phone acts as a gateway to connect the notebook to the Internet. The firewall can be used as a gateway, connecting the LAN to the firewall, and the firewall connects the LAN to the Internet, and can resist various attacks by the way.

        The gateway is the IP of the access router. Other computers must have the same IP segment as the gateway to access the router. For example, the IP of the router is 192.168.0.1 (this is the gateway) and it is also the address that must be entered into the router. Other hosts must also be 192.168.0 .X (any number between 2-254) to access the router, that is to say, to access the Internet, the gateway address on the computer must be filled in 192.168.0.1.

        On the other hand, there are differences in application scenarios. Industrial sites often have different network environments, and the network communication languages ​​between different software, different systems, and different factories are also different. Industrial gateways are more suitable for industrial -related scenarios. 5G under the industrial Internet How technology is innovated and integrated with other technologies to form a new type of industrial gateway to meet the needs of the Industrial Internet .

Guess you like

Origin blog.csdn.net/liuqinhou/article/details/131880704