📜  网桥和网关的区别

📅  最后修改于: 2021-09-15 01:53:06             🧑  作者: Mango

先决条件 – 网络设备

桥:
网桥是工作在数据链路层的网络设备。网桥连接两个使用相同协议的不同局域网。同样在网桥中,数据包的格式没有改变。

网关:
网关工作在 OSI 模型的所有层。它转换协议。网关将通过使用完全不同的协议的网络来解决和传输数据包。在网关中,改变数据包的格式,这与网桥相反。

现在,我们将讨论网桥和网关之间的区别:

S.NO Bridge Gateway
1. Bridge works in data link layer. While it works in all layer.
2. Bridge connects two different LANs. While it converts the protocol.
3. Bridge connects two different LAN working on same protocol. While gateway will settle for and transfer the packet across networks employing a completely different protocol.
4. In bridge, data or information is in the form of packet. Whereas in gateway, data or information is also in the form of packet.
5. In bridge, format of packet is not changed. While in gateway, format of packet is changed.
6. Bridge is not installed in router. While it installed in router.