Use VLAN broadcast domain

Vlan is a virtual local area network. Layer can use in a broadcast domain, thereby increasing the efficiency of data transmission.

In different network ports divided Vlan, Layer data forwarding can only communicate at the same vlan. Thus achieving isolation broadcast message even in the same network segment.

Why use vlan isolate broadcast domains, you can understand the collision domains and broadcast domains under Ethernet

Collision domains

  CSMA/CD是以太网采用了随机访问控制协议的带有冲突检测的载波侦听多址访问方法作为多路访问控制协议。形象的说,在此方法下每个接入网络的人都有发送消息的权利,但在同一时间只能有一个人占当前的线路,否则会发生混乱,因此每个人需要在发生前进行载波侦听(是否有人正在占线),如果有则需要等待后才可以发送消息。当两端同时发生冲突时,则会发生冲突检测,会话终止并随机等待一段时间后再开始的判断。

Thus, a plurality of nodes in the same network link bandwidth shared media transfer task in the above manner. When a collision occurs while the network waits for a random period of time (referred to as rollback), transmission is not performed at this time. And when the probability of occurrence of the more links a node in the conflict will be greater, the communication quality can not be guaranteed. The set of all the nodes connected in the same medium, called collision domains. At this time, the bus network is not enough suitable manner, so the introduction of the switcher.

  二层交换机,工作在数据链路层,是基于MAC地址的基础上对数据包的转发。内部的ASIC的芯片来实现硬件转发。二层交换机的端口发送和接受数据独立,从而可以将各端口归属于不同的冲突域,从而有效的隔离了冲突。

Broadcast domain

 而在传输中当不知道目的MAC地址时,需要在网段内广播当前子网下所有的节点,相应的广播报文以及目的MAC查找失败报文会向所有端口转发,因此会消耗大量的网络带宽。而二层交换机只能隔离冲突域,不能隔离广播域。因此,引入Vlan的虚拟机交换机。

VLAN

  按照TCP/IP协议的原理,广播域越小越好。借鉴了路由结构中子网的思路,得出了虚网的理念,通过对网络的IP地址或MAC地址或端口进行划分。每一部分形成一个虚拟的局域网络,共享一个单独的广播域。这些网络在二层无法通信。Vlan-ID:可取值0~4095,标记不同的Vlan。处于不同的Vlan下的端口,必须经过三层交换机或路由器在网络层进行转发。

Guess you like

Origin blog.51cto.com/14772677/2482691