Professional Documents
Culture Documents
www.huawei.com
Ethernet Switching
/3
0/0
PC1 PC2
GE
GE0/0/1 GE0/0/2
IP : 192.168.1.1 IP : 192.168.1.2
MAC : 0050-5600-0001 MAC : 0050-5600-0002
00e0.fc39.8034
G
/ 1 E0
0 /0 /0
/2
GE
<SW>display mac-address
MAC address table of slot 0:
-------------------------------------------------------------------------------------------------------------------
MAC Address VLAN/ PEVLAN CEVLAN Port Type LSP/LSR-ID
VSI/SI MAC-Tunnel
-------------------------------------------------------------------------------------------------------------------
5489-98b0-2fef 1 - - GE0/0/2 dynamic 0/-
5489-986d-19ca 1 - - GE0/0/1 dynamic 0/-
-------------------------------------------------------------------------------------------------------------------
Total matching items on slot 0 displayed = 2
GE0/0/1 GE0/0/3
PC1 PC3
8c00-BB01-0001 8c00-BB01-0003
GE0/0/2 GE0/0/4
PC2 PC4
8c00-BB01-0002 8c00-BB01-0004
MAC Address Port
1. PC1 sends a frame to PC4 (suppose PC1 knows the MAC addr of PC4).
Src: 8c00-BB01-0001
Dst: 8c00-BB01-0004
GE0/0/1 GE0/0/3
PC1 PC3
8c00-BB01-0001 8c00-BB01-0003
GE0/0/2 GE0/0/4
PC2 PC4
8c00-BB01-0002 8c00-BB01-0004
MAC Address Port
2. Switch looks up the MAC address table based on the destination MAC address of
the frame. But there is no entry matching the destination MAC address of this fra
me , so the switch floods the frame.
Src: 8c00-BB01-0001
Dst: 8c00-BB01-0004
GE0/0/1 GE0/0/3
PC1 PC3
8c00-BB01-0001 8c00-BB01-0003
GE0/0/2 GE0/0/4
Flooding
PC2 PC4
8c00-BB01-0002 8c00-BB01-0004
MAC Address Port
3. Then switch learns the source MAC address , creates an entry in its MAC addres
s table to record the MAC and associate with the port GE0/0/1.
Src: 8c00-BB01-0001
Dst: 8c00-BB01-0004
GE0/0/1 GE0/0/3
PC1 PC3
8c00-BB01-0001 8c00-BB01-0003
GE0/0/2 GE0/0/4
PC2 PC4
8c00-BB01-0002 8c00-BB01-0004
MAC Address Port
8c00-BB01-0001 GE0/0/1
4. PC2 and PC3 discards the frame which is sent to PC4. PC4 accepts it and proces
ses the frame.
GE0/0/1 GE0/0/3
PC1 PC3
8c00-BB01-0001 8c00-BB01-0003
GE0/0/2 GE0/0/4
PC2 PC4
8c00-BB01-0002 8c00-BB01-0004
MAC Address Port
8c00-BB01-0001 GE0/0/1
5. PC4 replies a frame to PC1.Switch search the destination MAC addr. It finds a ma
tching entry in the MAC address table,so sends the frame out port GE0/0/1 to PC
1.
GE0/0/1 GE0/0/3
PC1 PC3
8c00-BB01-0001 8c00-BB01-0003
GE0/0/2 GE0/0/4
6. Then switch learns the source MAC address and associates it with port GE0/0/4,
GE0/0/1 GE0/0/3
PC1 PC3
8c00-BB01-0001 8c00-BB01-0003
GE0/0/2 GE0/0/4
Ethernet Switching
Switch
1 2 23 24
• By default,all the hosts connect to the same switch belongs to the same
broacast domain.
• If there are a large number of hosts on an Ethernet network, collision
becomes a serious problem and can lead to broadcast storms. As a
result, network performance deteriorates.
Switch
1 2 23 24
Switch
1 2 23 24
• PC1 can communicate with PC2 directly,they are in the same broadcast
domain and belong to the same IP subnet.
• PC3 can communicate with PC4 directly,they are in the same broadcast
domain and belong to the same IP subnet.
Switch
1 2 23 24
VLAN10 VLAN20
• Trunk links provide VLAN identification for frames traveling between switches.
• Trunk links must be configured to allow trunking on each end of the link.
• Trunk ports works with one or multiple VLANs.
• Access ports belong to a single VLAN and do not provide any identifying
marks on the frames that are passed between switches.
• Access ports also carry traffic that comes from only the VLAN assigned to
the port.
• Trunk links are required to pass multiple VLANs data between switches. T
runking is a function that must be enabled on both sides of a link.
• A trunk port is by default a member of VLAN1 ,but can be configured to b
e a member of all the VLANs that exist on the switch and carry traffic for a
ll those VLANs between the switches.
• To distinguish between the traffic flows of different VLANs, a trunk port mu
st mark the frames with special tags as they pass between the switches.
• If two switches are connected together, for example, both switch ports mu
st be configured for trunking, and they must both be configured with the s
ame tagging mechanism (802.1Q).
Original
Dest Src Len/EType Data FCS
Frame
Tagged
Dest Src Tag Len/EType Data FCS
Frame
Access ports
SwitchBlade1 SwitchBlade2
Fabric Fabric
Server Server
VLAN10 VLAN11
ATAE Frame
Trunk ports
SwitchBlade1 SwitchBlade2
Fabric Fabric
Server Server
VLAN10 VLAN11
ATAE Frame
G
/0
i 0/
i0
0/
G
PC1 PC2
VLAN10 VLAN20
192.168.10.1/24 192.168.20.1/24
SW1 SW2
Gi0/0/24 Trunk Gi0/0/24
/1
1
Gi
Gi
0/
/0
0
i0
0/
/0
/0
G
Gi
/2
2 /
PC1 PC2 PC3 PC4
VLAN10 VLAN20 VLAN10 VLAN20
192.168.10.1/24 192.168.20.1/24 192.168.10.2/24 192.168.20.2/24