What is the difference between a router and a gateway?
Routers send data to a specific location based on a address for the network segment. The benefit is the ability for a router to search routing tables and find the shortest path to the destination. The downside to routers is that they are protocol dependent and therefore can only route data between network segments using the same protocol. Today this is a moot because everyone uses TCP/IP and has an open architecture. This is why, for example, data can be sent between a Windows NT network and a Netware network.
Here's how a router works: When it receives a packet and sees a MAC address (hardware address) that is not on the local segment, it strips away the MAC address, looks at the IP address (software address), searches its routing table, and then sends the packet based on the IP address to the router that's connected to the segment that contains that address.
Gateways are network points that acts as an entrance to another network. On the Internet, a node or stopping point can be either a gateway node or a host (end-point) node. Both the computers of Internet users and the computers that serve pages to users are host nodes. The computers that control traffic within your company's network or at your local Internet service provider (ISP) are gateway nodes.
In the network for an enterprise, a computer server acting as a gateway node is often also acting as a proxy server and a firewall server. A gateway is often associated with both a router, which knows where to direct a given packet of data that arrives at the gateway, and a switch, which furnishes the actual path in and out of the gateway for a given packet.
Read our Router Configuration Tips for more on routing.
Dig Deeper on Campus area network
Related Q&A from Amy Kucharik
While a bridge and router share some similarities, the difference between a bridge and router is significant, including how the devices interpret ... Continue Reading
Learn what network latency is in this expert response. Continue Reading
What is the difference between online backup and offline backup? Find out from SearchNetworking.com's networking help desk expert, Amy Kucharik. Continue Reading