Gateway กับ Router ต่างกันอย่างไร

Gateway กับ Router ต่างกันอย่างไร
ภาพประกอบบทความเกี่ยวกับความหมายของ Gateway

            หลายๆ ท่านที่ทำงานหรือศึกษาเกี่ยวกับแวดวงของเทคโนโลยีหรืออุปกรณ์การเชื่อมต่อต่างๆ ก็คงจะทราบกันดีอยู่แล้วว่า อุปกรณืที่เราจะใช้เป็นจุดเชื่อมต่อเข้าสู่ระบบเครื่อข่ายต่างๆ บนอินเตอร์เน็ต เราจะเรียกว่า เกต์เวย์ สำหรับบทความนี้จะขออธิบายความหมายและลักษณะของเกต์เวย์ให้เข้าใจได้ง่ายขึ้นสำหรับท่านที่กำลังจะศึกษาเกี่ยวกับเรื่องนี้

          เกตเวย์ Gateway หมายถึง จุดต่อเชื่อมของเครือข่ายทำหน้าที่เป็นทางเข้าสู่ระบบเครือข่ายต่าง ๆ บนเครือข่ายอินเตอร์เน็ต ในความหมายของ router (เร้าเตอร์) ระบบเครือข่ายประกอบด้วย node (โหนด) ของ เกตเวย์ gateway และ node ของ host (โฮส) เครื่องคอมพิวเตอร์ของผู้ใช้ในเครือข่าย และคอมพิวเตอร์ที่เครื่องแม่ข่ายมีฐานะเป็น node แบบ host ส่วนเครื่องคอมพิวเตอร์ที่ควบคุมการจราจรภายในเครือข่าย หรือผู้ให้บริการอินเตอร์เน็ต คือ node แบบ เกตเวย์ gateway

ลักษณะการทำงานของ เกตเวย์ Gateway

             เกตเวย์ Gateway เป็นอุปกรณ์ฮาร์ดแวร์ที่เชื่อมต่อเครือข่ายต่างประเภทเข้าด้วยกัน เช่น การใช้เกตเวย์ในการเชื่อมต่อเครือข่าย ที่เป็นคอมพิวเตอร์ประเภทพีซี (PC) เข้ากับคอมพิวเตอร์ประเภทแมคอินทอช (MAC) เป็นต้น  ซึ่งเกตเวย์ (Gateway) เป็นอุปกรณ์ที่มีความสามารถสูงในการเชื่อมต่อเครือข่ายต่างๆ เข้าด้วยกันโดยสามารถเชื่อมต่อ LAN หลายๆ เครือข่ายที่ใช้โปรโตคอลต่างกัน และใช้สื่อส่งข้อมูลต่างชนิดกันได้อย่างไม่มีขีดจำกัด ตัวอย่างเช่น เชื่อมต่อ Ethernet LAN (อีเทอร์เน็ต แลน) ที่ใช้สายส่งแบบ UTP (ยูทีพี) เข้ากับ Token Ring LAN (โทคเคน ริง แลน) ได้

             กล่าวโดยสรุปได้ว่า เกตเวย์ก็เป็นเหมือนนักแปลภาษาที่ทำให้เครือข่ายที่ใช้โปรโตคอลต่างชนิดกันสามารถสื่อสารกันได้ หากโปรโตคอลที่ใช้รับส่งข้อมูลของเครือข่ายทั้งสองไม่เหมือนกันเกตเวย์ ก็จะทำหน้าที่แปลงโปรโตคอลให้ตรงกับปลายทาง และ เหมาะสมกับอุปกรณ์ของฮาร์ดแวร์ที่แต่ละเครือข่ายใช้งานอยู่นั้นได้ด้วย ดังนั้นอุปกรณ์เกตเวย์จึงมีราคาแพง และ ขั้นตอนในการติดตั้งจะซับซ้อนที่สุดในบรรดาอุปกรณ์เครือข่ายทั้งหมด

 โปรแกรม เช็คไอพี

Reference: "Gateway (telecommunications)". "Gateway" [ออนไลน์]. เข้าถึงได้จาก en.wikipedia.org/wiki/Gateway_(telecommunications)
Reference: "Gateway (computer program)". "Gateway" [ออนไลน์]. เข้าถึงได้จาก en.wikipedia.org/wiki/Gateway_(computer_program)

ภาพประกอบบทความ: beginlinux.wordpress.com

Gateway กับ Router ต่างกันอย่างไร

Posted on Jul 20, 2021

21.6k

Gateway and router are two confusable terms that often come up in the topic of networking and communication devices. They are seen as synonyms all the time and do have something in common here. However, you also need to get a general idea about the differences between gateway and router from now on. Let's find the answers in this article that discussed router and gateway and their major differences.

What is a gateway

As the name implies, a gateway is a network entity, also known as a protocol converter. It connects the computers of one network to another and defines the boundaries of the network. If two networks with different protocols want to be connected to each other, both networks need to have gateways that provide a point of presence and entry for computers from both networks to communicate. In other words, gateways can join different systems.

Gateways exist in routers, switches, or PCs. When communication is carried out within the same network segment, there is no need to involve the gateway. Only when the host communicates with devices outside this network segment, all packets need to be sent to the gateway device and then forwarded through the processing protocol of the gateway device.

Gateway กับ Router ต่างกันอย่างไร

Figure 1: powerful security provided via gateway

What is a router

A router is a switching device that is responsible for receiving, analyzing and forwarding the data packets from the network to connected computers. A home router connects to the modem and acts like a traffic director on your local network, which connects your devices via WiFi signal or Ethernet, tunneling information between them and out to the modem. And the enterprise router has more powerful functions than a home router such as VPN service and flash memory, etc. Besides, there are wireless and wired routers options available. If you'd like to gain much knowledge about routers, two helpful articles are provided for you here: Enterprise Router VS Home Router & Router Types.

Gateway vs router: what is the similarity

Both routers and gateways are hardware components in a network that regulate traffic and determine its flow between two or more networks. Sometimes, a network may use routers both as end-point and access-point, in this case, the router becomes a gateway.

A gateway often works with a router and a switch to complete the routing process. When a gateway receives a packet, it translates the protocol, and the router directs it to the next router.

It must be pointed out that network cards have to be inserted into both gateways and routers to facilitate this communication and virtually all routers and gateways have this setup shipped out of the factory without requiring the user to buy a separate network card.

Gateway vs router: what is the difference

A router is a networking layer system used to manage and forward data packets to devices network while a gateway is simply a hardware that acts as a gate between the networks. Besides, routers and gateways are very different in their working principle.

Before arriving at the router, packets go to the gateway channel first, and the gateway checks the header information at once. After checking for any kind of error in the destination IP address and packet. According to the needs of the destination network, it carries out data conversion and protocol conversion on the packet, which is also the most critical step. Finally, the processed packet is forwarded to the router to establish intelligent communication between the two different networks.

The router extracts the destination address from the received packet, determines the network number in the address, and then looks up the routing table to find the entry matching the destination network. The routing table determines the next stop, destination, output interface, and other routing-related parameters that match the current packet. Finally, the packet is sent to the computer with the best route.

Gateway กับ Router ต่างกันอย่างไร

Figure 2: network connectivity (gateway and switch)

In layman's terms, gateways and routers are like the gates and elevators of a castle. When outsiders want to enter the castle, they must first pass the inspection and arrangement through the gate, so that they have the same characteristics as other people in the castle, and then they can be sent to the elevator. Then the elevator headquarters will choose the fastest elevator for them according to the characteristics and purpose of these strangers and finally, arrive at the destination.

Router and gateway differ in other ways besides their definitions and working principles:

Differences Router Gateway
Function To ensure that data packets are switched to the right address with the best route To connect two networks of different protocols as a translator
Networks It routes the data packets via similar networks It connects two dissimilar networks
Support Dynamic Routing Yes No
OSI Layer Work on layer 3 and layer 4 Work on layer 5
Additional Features wireless networking, static routing, NAT, DHCP server, etc network access control, protocol conversion, etc
Hosted On dedicated appliance (router hardware) dedicated/virtual appliance or physical server

Table: the differences between routers and gateways

Conclusion

The relationship between gateway vs router is summed up in one sentence: a gateway is a concept while a router is a device that implements a gateway. If your devices are on the same network, then routers and gateways can be peer to peer. But if you want to connect two different networks with different protocols, the gateway can suit your demands. Some routers and gateways in the market can already replace each other. The technology and capabilities of gateways and routers will continue to evolve and become more sophisticated over the next few years.

Related Articles:

Is Enterprise Router Better Than Home Router

Different Types of Routers in Networking

How FS Security Gateway Ensures Enterprise Network Security

How FS Security Gateway Helps to Optimize Network Performance

You might be interested in

เกตเวย์ มีหน้าที่ทำอะไร

เกตเวย์ เป็นอุปกรณ์ที่ทำหน้าที่เชื่อมต่อเครือข่ายต่าง ๆ เข้าด้วยกัน ไม่ว่าเครือข่ายนั้นจะใช้โปรโตคอลตัวใดก็ตามเนื่องจากว่า Gateway สามารถแปลงรูปแบบแพ็คเก็ตของโปรโตคอลหนึ่งไปเป็นรูปแบบของอีกโปรโตคอลหนึ่ง เพื่อให้เหมาะสมกับการใช้งานในเครือข่ายได้ เช่น แปลงรูปแบบแพ็คเก็ตของ TCP/IP ไปเป็น Apple Talk เป็นต้น ทำให้สามารถ ...

เกตเวย์ (Gateway) คืออะไร * คำตอบของคุณ

เกตเวย์ Gateway เป็นประตูสื่อสาร ช่องทางสำหรับเชื่อมต่อข่ายงานคอมพิวเตอร์ที่ต่างชนิดกันให้สามารถติดต่อสื่อสารกันได้ โดยทำให้ผู้ใช้บริการของคอมพิวเตอร์หนึ่งหรือในข่ายงานหนึ่งสามารถติดต่อเข้าสู่เครื่องบริการหรือข่ายงานที่ต่างประเภทกันได้ ทั้งนี้โดยการใช้อุปกรณ์ที่เรียกว่า “บริดจ์” (bridges) โดยโปรแกรมคอมพิวเตอร์จะทำให้ ...

เกตเวย์เเละเครือข่ายมีอะไรบ้าง

Gateway คือ จุดเชื่อมต่อของเครือข่ายทำหน้าที่เป็นทางเข้าสู่ระบบเครือข่ายต่างๆ ในความหมายของเร้าเตอร์ (Router) ระบบเครื่อข่ายประกอบด้วยโหนด(Node) ของเกตเวย์(Gateway) และ โหนด(Node)ของโฮส(Host)เครื่องคอมพิวเตอร์ของผู้ใช้ในเครือข่าย และคอมพิวเตอร์แม่ข่ายมีฐานะเป็นโหนดแบบโฮส ส่วนเครื่องคอมพิวเตอร์ที่ควบคุมเส้นทางการจราจร ...

Gateway คือสิ่งใดในระบบ IOT *

เทคโนโลยีที่เชื่อมต่อสื่อสารเครื่อข่ายที่ต่างประเภทกัน ให้ติดต่อสื่อสารใช้งานร่วมกันได้ โดย Gateway จะรับข้อมูลส่งขึ้นไปยัง Cloud เพื่อให้อุปกรณ์อื่นๆสามารถนำข้อมูลไปใช้งานได้