A gateway is a piece of networking hardware or software used in telecommunications networks that allows data to flow from one discrete network to another. Gateways are distinct from routers or switches in that they communicate using more than one protocol to connect multiple networks and can operate at any of the seven layers of the OSI (Open Systems Interconnection) model.
Function and Operation
A network gateway provides a connection between networks and may contain devices such as protocol translators, impedance matchers, rate converters, fault isolators, or signal translators. A network gateway requires the establishment of mutually acceptable administrative procedures between the networks using the gateway. Network gateways, known as protocol translation gateways or mapping gateways, can perform protocol conversions to connect networks with different network protocol technologies. For example, a network gateway connects an office or home intranet to the Internet. If a user wants to load a web page, at least two network gateways are typically accessed—one to get from the local network to the Internet and one to get from the Internet to the server hosting the web page.
On an Internet Protocol (IP) network, IP packets with a destination outside a given subnetwork are sent to the network gateway. For instance, if a private network has a base IPv4 address of 192.168.1.0 and a subnet mask of 255.255.255.0, any data addressed to an IP address outside the range of 192.168.1.0–192.168.1.255 is sent to the network gateway. IPv6 networks operate in a similar manner. While forwarding an IP packet to another network, the gateway may perform network address translation (NAT).
Distinction from Routers
A gateway connects networks, while a router typically delivers data within a network. Historically, gateways and routers were separate devices; however, their functions are increasingly combined into single devices commonly referred to as routers. For example, the Wi-Fi routers commonly provided for home and small business internet service function as both a router (delivering data) and a gateway (translating data so destination devices can use it).
Additional Uses and Interpretations
The term "gateway" can also loosely refer to a computer or computer program configured to perform the tasks of a gateway, such as a default gateway or router. In the case of HTTP, "gateway" is often used as a synonym for reverse proxy. It can also refer to a device installed in homes that combines router and modem functionality into a single device, used by internet service providers (ISPs), also called a residential gateway.
In enterprise networks, a network gateway usually also acts as a proxy server and a firewall. On Microsoft Windows, the Internet Connection Sharing feature allows a computer to act as a gateway by offering a connection between the Internet and an internal network.
Types of Gateways
- VoIP gateway: Translates legacy analog landline voice and fax transmissions into digital VoIP protocol.
- IoT gateway: Provides the bridge (protocol converter) between Internet of Things devices in the field, the cloud, and user equipment such as smartphones; may provide offline services and real-time control of devices.
- Cloud storage gateway: A network appliance or server that translates cloud storage APIs (such as SOAP or REST) to block-based storage protocols (such as iSCSI or Fibre Channel) or file-based interfaces (such as NFS or CIFS).
- Internet-to-orbit gateway (I2O): Connects computers or devices on the Internet to computer systems orbiting Earth, such as satellites or crewed spacecraft.
- Cellular gateway: Facilitates 4G and 5G data access, making cellular data compatible with the local network.
- Wireless gateway: An all-in-one gateway/router provided with home or small-business ISP service, converting data to Wi-Fi.
Gateway Features
A network gateway may offer capabilities including security functions (such as firewall and proxy server roles, and Secure Internet Gateway in cloud deployments), multiprotocol support (being customizable and programmable to work with various network protocols), visibility (serving as a natural point for monitoring and measuring network activity), and analytics (collecting information from other parts of the network to assist in diagnostics and troubleshooting).