📜  路由器和防火墙的区别

📅  最后修改于: 2021-09-14 02:47:02             🧑  作者: Mango

路由器:
路由器被称为网络中的连接设备。它用于为数据包选择最短路径以实现其目标。路由器的主要目的是同时连接不同的网络。和防火墙一样,它也作用于网络层,但也作用于物理层,以及OSI(开放系统互连)模型的数据链路层。与防火墙不同,它在路由网络之前不包括加密。路由器不能保护网络免受威胁,但它包括共享条款以在网络之间共享 Internet 连接。

防火墙:
防火墙是指定版本的路由器。里面的所有数据包进入或丢弃网络都通过防火墙,并在检查防火墙是否允许之后。所有流量都必须通过防火墙,只有经过授权的流量才能通过。防火墙必须强大。它是一个位于两个网络之间的系统,它在这些网络之间实施访问控制策略。与路由器一样,它也适用于 OSI 模型的网络层。与路由器不同,防火墙在传输之前使用加密来加密数据。防火墙不共享网络,但它包括保护网络免受威胁的保护措施。

让我们看看路由器和防火墙之间的区别:

S.NO Firewall Router
1. A firewall checks the threat from the incoming packets. A router is a way to connect various networks simultaneously.
2. The firewall works on network layer and transport layer of the OSI(Open Systems Interconnection) model. While the router works on the physical layer, network layer and data link layer of the OSI(Open Systems Interconnection) model.
3. The firewall uses encryption before the transmission of data. Whereas router does not use encryption.
4. A firewall cannot share network. While router share internet connection between the networks.
5. A firewall may occur inside a router. While a router may not occur within a firewall.
6. A firewall filters as well as regulates the data. While a router manages traffic to the desired target.
7. A firewall maintains state table which gives information on the state of flow. While a router does not maintain any state table for the information on flow state.
8. Firewall is generally used in the protection in core network of computer. Router is generally used in routing and ending of WAN link.