Ethernet switch self-learning, process and forward the frame of STP spanning tree protocol and virtual LAN (VLAN)

This article is the process of learning and self Ethernet switches forward frames of notes

A. Ethernet switches forward frames and self-learning processHere Insert Picture Description

  1. Currently, there are some features network switches include Layer on the market, called the three switches
  2. Ethernet Automatic exchange table frame gradually established through self-learning algorithm

Then look at the self-learning process and forwarding Ethernet frames

Here Insert Picture Description
And three each switch connected to the host, the MAC address represented by capital letters

Here Insert Picture Description
Appeal process is called self-learning switch.

Here Insert Picture DescriptionHost not found in the B frame switching table,

Here Insert Picture Description
Removing itself forwards the frame to all the interfaces ; start only this way, because there is not enough knowledge to forward frames; blindly forwarded only

The frame of the destination MAC address B, the host determines its own MAC judgment.
Here Insert Picture Description
Here Insert Picture DescriptionHere Insert Picture Description
A frame address can be found in the switching table; then forwarding the frame according to the interface A of the destination address the address.

Here Insert Picture Description

A clearly know the MAC address of. This time, do not blindly forwarded


Frame to host E relaxation process A
Here Insert Picture Description

Effective Duration
Here Insert Picture DescriptionHere Insert Picture Description
Here Insert Picture DescriptionHere Insert Picture Description
Here Insert Picture Description


II. Ethernet Switch Spanning Tree Protocol (STP)

Here Insert Picture DescriptionWhen the two lines are faulty, you can not communicate, can only turn into three smaller network


Network loop will bring some problems, such as broadcast storms ;
Here Insert Picture Descriptionthe broadcast frame repeatedly forwarded between each switch.

Here Insert Picture Description

In order to be redundant links to increase while improving network reliability; avoiding the problems caused by network loops, Ethernet switch using Spanning Tree Protocol (STP)
Here Insert Picture Description


III. Virtual LAN (VLAN)

Here Insert Picture Description
In the broadcast network should be avoided:

Here Insert Picture Description
How can a large broadcast domains into smaller broadcast domains it? Use routers can broadcast domain

Here Insert Picture Description

The router in network architecture in the third layer (network layer): Since the default router does not broadcast packets case of forwarding, router so it is natural to be broadcast domain

Here Insert Picture DescriptionIn this case, the virtual local area network technology emerges


Here Insert Picture Description
Here Insert Picture DescriptionSame VLAN internal broadcast communication can be realized; different internal VLAN broadcast communication can not be achieved


IV. Virtual LAN (VLAN) implementation

Virtual LAN (VLAN) technology is implemented on the switch. Switchboard was required to achieve two functions: one is able to handle frames with VLAN tags, i.e. IEEE 802.1Q frame; each of the other ports of the switch ports can support different types, the different types of interface port handling of frames All the different
Here Insert Picture DescriptionHere Insert Picture Description following PVID to be described, each switch port and only one PVID

Here Insert Picture DescriptionOur applications host A and is classified to VLAN2 B; C and D under the host to VLAN3; broadcast frame such VLAN2 VLAN3 is not transferred to go;
Here Insert Picture Description


Host applications is classified as A, B, E, F to VLAN1, host C, D, G, H classified to VLAN2; because the default configuration port when first power switch belonging to VLAN1, the corresponding value of 1 PVID and the type of port is Access; therefore we need to switch to the corresponding configuration to meet the application requirements.

Here Insert Picture Description

When interconnected by a plurality of VLAN switches together in Switched Ethernet, a switch connected to the host port should be set as Access, interconnection between the switch ports should be a Trunk
Here Insert Picture Descriptionunique router port hybird Huawei

Here Insert Picture Description
Here Insert Picture DescriptionOrdinary Ethernet MAC frames transmitted from host B to A, the host A is received 802.1Q frame, unrecognized discarded.

Summarized as follows:
Here Insert Picture Description

Published 274 original articles · won praise 119 · views 290 000 +

Guess you like

Origin blog.csdn.net/qq_31156277/article/details/104327380