A gateway is a data communication device that provides a remote network with connectivity to a host network.
A gateway device provides communication to a remote network or an autonomous system that is out of bounds for the host network nodes. Gateways serve as the entry and exit point of a network; all data routed inward or outward must first pass through and communicate with the gateway in order to use routing paths. Generally, a router is configured to work as a gateway device in computer network.

Some examples of gateway
- Internet-To-Orbit Gateway.
- Network Gateway.
- Cloud Storage Gateway.
- VoiP Trunk Gateway.
- Media Gateway.
Advantages of gateway is:- It can connect the devices of two different networks having dissimilar structures.
- It has the fastest data transmission speed amongst all network connecting devices.
- It can encapsulate and decapsulate the data packets
- It has improved security than any other network connecting device.
Disadvantages of gateway is:
- The implementation cost is very high.
- It is complex to design and implement.