先决条件 – 网络设备
1.开关:
交换机基本上是一种硬件或设备,负责将进入各个输入端口的数据引导到特定的输出端口,该端口将进一步将数据带到所需的目的地。因此,它主要用于传输数据路由器、服务器等各种网络设备之间的数据包。它实际上是一个数据链路层设备(第2层设备),保证转发的数据包无误且准确。交换机利用MAC地址在以便将数据转发到数据链路层。由于交换机从多个端口输入数据,因此也称为多端口桥接器。
2. 桥:
网桥基本上是负责将单个网络划分为多个网段的设备。因此将单个网络划分为多个多个网段的过程称为网络桥接。因此每个网段代表一个单独的冲突域,其中每个域具有不同的带宽。当网络上发生的冲突数量减少时,可以通过使用网桥来提高网络性能。网桥决定必须转发或过滤传入的网络流量。网桥也负责用于维护 MAC(媒体访问控制)地址表。
交换机和网桥的区别:
S.NO. | Switch | Bridge |
---|---|---|
1. | It is a device which is responsible for channeling the data that is coming into the various input ports to a particular output port which will further take the data to the desired destination. | It is basically a device which is responsible for dividing a single network into various network segments. |
2. | A switch can have a lot of ports. | A bridge can have 2 or 4 ports only. |
3. | The switch performs the packet forwarding by using hardwares such as ASICS hence, it is hardware based. | The bridge performs the packet forwarding by using softwares so it is software based. |
4. | The switching method in case of a switch can thus be store, forward, fragment free or cut through. | The switching method in case of a bridge is store and forward. |
5. | The task of error checking is performed by a switch. | A bridge cannot perform the error checking. |
6. | A switch has buffers. | A bridge may not have a buffer. |