A gateway is a computer system or device that acts as a transformation task. The gateway is a translator between two systems that use different communication protocols, data formats or languages, and even architectures that are completely different. Unlike bridges, which simply convey information, the Gateway will repackage the information received to suit the needs of the intended system. The gateway can also provide filtering and security features. Most gateways run on the top level of the OSI 7 layer protocol-the application layer
A gateway is essentially an IP address of a network to another network. For example, network A and network B, network A's IP address range is "192.168.1.1~192." 168.1.254 ", the subnet mask is 255.255.255.0; The IP address range for Network B is" 192.168.2.1~192.168.2.254 "and the subnet mask is 255.255.255.0. In the absence of a router, TCP/IP communication between the two networks is not possible, even if the two network connections on the same switch (or hub), the TCP/IP protocol will determine the subnet mask (255.255.255.0) on the two network hosts in a different network. To achieve communication between the two networks, you must pass through the gateway. If the host in Network a discovers that the destination host for the packet is not on the local network, forwards the packet to its own gateway, which is then forwarded by the gateway to Network B's gateway, and the gateway of Network B is forwarded to a host on network B. The process by which network B forwards packets to network A. That is , in your IP address range, you set up an IP for your gateway, that is, the network export IP
This article is from the Network security blog, so be sure to keep this source http://liufeifly.blog.51cto.com/12206567/1866465
What is a gateway