A gateway is hardware & software devices
Gateway is used to interconnect LAN & WAN.
|Figure: Gateway in Networking|
Gateway makes communication possible between different architecture & environment.
Gateway perform protocol and date onversion.
A gateway operate at the "Transport Layer" and above.
Gateway uses all 7 layers on OSI models.