Difference in Hub, Switch, Bridge, & Router
来源:互联网 发布:js当前时间加一年 编辑:程序博客网 时间:2024/04/30 01:56
In an ethernet network there are 4 devices that from the the outside look very similar. In this article we will look at the difference between hubs, switches, bridges, and routers.
Hub
A hub is the simplest of these devices. Any data packet coming from one port is sent to all other ports. It is then up to the receiving computer to decide if the packet is for it. Imagine packets going through a hub as messages going into a mailing list. The mail is sent out to everyone and it is up to the receiving party to decide if it is of interest.
The biggest problem with hubs is their simplicity. Since every packet is sent out to every computer on the network, there is a lot of wasted transmission. This means that the network can easily become bogged down.
Hubs are typically used on small networks where the amount of data going across the network is never very high.
Bridge
A bridge goes one step up on a hub in that it looks at the destination of the packet before sending. If the destination address is not on the other side of the bridge it will not transmit the data.
A bridge only has one incoming and one outgoing port.
To build on the email analogy above, the bridge is allowed to decide if the message should continue on. It reads the address bob@smith.com and decides if there is a bob@smith.com on the other side. If there isn’t, the message will not be transmitted.
Bridges are typically used to separate parts of a network that do not need to communicate regularly, but still need to be connected.
Switch
A switch steps up on a bridge in that it has multiple ports. When a packet comes through a switch it is read to determine which computer to send the data to.
This leads to increased efficiency in that packets are not going to computers that do not require them.
Now the email analogy has multiple people able to send email to multiple users. The switch can decide where to send the mail based on the address.
Most large networks use switches rather than hubs to connect computers within the same subnet.
Router
A router is similar in a switch in that it forwards packets based on address. But, instead of the MAC address that a switch uses, a router can use the IP address. This allows the network to go across different protocols.
The most common home use for routers is to share a broadband internet connection. The router has a public IP address and that address is shared with the network. When data comes through the router it is forwarded to the correct computer.
This comparison to email gets a little off base. This would be similar to the router being able to receive a packet as email and sending it to the user as a fax.
- Difference in Hub, Switch, Bridge, & Router
- Difference between hub, switch and router
- Hub,bridge,switch and router的区别
- HUB、SWITCH、ROUTER区别
- Switch VS Router VS Hub
- Hub/Switch/Router工作原理
- 什么是HUB、SWITCH、REPEATER、ROUTER?
- bridge-hub-switch-route区别
- 交换机switch、集线器hub、路由器router
- 集线器(HUB)、交换机(Switch)、路由器(Router)
- 集线器(Hub)、交换机(Switch)与路由器(Router)
- 为何失败-从一次DIY讲述hub/switch/router
- (Hub)、交换机(Switch)与路由器(Router)
- 集线器hub、交换机switch、路由器router 的区别
- HUB、Switch、Router在OSI模型层次信息
- A Closer Look At Hub, Switch And Router
- Network Switch vs. Network Hub: What’s The Difference?
- 三剑客的集线器(Hub)、交换机(Switch)与路由器(Router)
- JS 兼容浏览器阻止事件冒泡,阻止浏览器默认动作,兼容IE和其他浏览器
- 总结4种线程中操作UI界面的方法
- 5个实用的CSS3实例
- Convert.ToInt32、(int)和int.Parse三者的区别
- FastDB 高效率的内存数据库系统
- Difference in Hub, Switch, Bridge, & Router
- 生意是这样做成的
- Strcpy / Strncpy
- js中的rows和cells的使用
- .net缩略图 GDI+一般性错误解决方法。
- Android屏幕大小和密度对照表,以及px、dip、sp等像素单位的解释
- C# Dlllmport 学习
- Map 控件深入学习
- (转载)Windows PowerShell 講座 (1)—指令、重導、別名