Professional Documents
Culture Documents
Switching
Switching
Switching
Features
1.
2.
3.
4.
Bridging
Switching
S/w based
One spanning tree per bridge
Only 16 ports
H/w based
Many spanning tree per bridge
Can have hundreds
3. Loop Avoidance
With the help of STP, Ethernet switch can prevent n/w loops. Loops are occurred when
frames look for redundant path.
Address Learning
Before understanding the address learning function of a switch we need to understand the
initial state of a switch:
1) When a switch is powered on for the first time, the MAC address table is empty.
2) When a device transmits a frame, the switch places the source address in the
MAC address table.
3) Since the destination h/w address is not available in the MAC address table, the
switch forwards the frame to each connected port except the port receiving the
frame (called flooding).
4) Flooding causes bandwidth wastage.
5) If a device answers and sends a frame back, the switch learns the source address
of the host and enters in the MAC database.
6) Now with the help of two MAC addresses, switch cannot establish point-0to
point connection.
7) This makes switch better than hub. In a hub n/w, all frames are forwarded out all
ports every.
Forward/Filter Decision
1) A frame with destination h/w address is forwarded only on the specific port. This
preserves bandwidth.
2) If destination h/w address is not listed in the MAC database, then the frame is
broadcasted out all active interfaces except the interface the frame was received
on.
3) If a device answers, the broadcast, the MAC database is updated with the devices
h/w address (called address learning).
Loop Avoidance
Loops in the n/w are occurred due to redundant links.
Redundant links are extremely helpful, but they cause more problems then they solve.
Some of the more serious problems caused by redundant links are as follows:
1) In the absence of loop avoidance scheme, the switch will flood broadcast
endlessly. This situation is commonly called as broadcast storm or bridge loop.
2) This causes wasted bandwidth and severely impacts network and host
performance.
3) A device can receive multiple copies of the same frame, since the frame can
arrive from different segments at the same time.
4) This confuses MAC address filter table about the location of a device. Thus frame
forwarding become impossible, since switch is constantly updating its MAC filter
table.
Fig. Showing redundant Topology for a Switched Network
Blocking
Listening
Learning
Forwarding
Blocking
All ports are in blocking state when the switch is powered on. Ports wont forward frames
but can still receive BPDUs.
Listening
This state is used to indicate that the port is getting ready to transmit. Llistens to BPDUs
to make sure that no loops occur in the network before passing data frames.
Learning
In this state port learns MAC addresses and builds a filter table but does not forward
frames.
Forwarding
The port can send and receive data.
Features
Cut Through
Fragment Free
1.Part of frame to
receive
Must receive
complete frame
before forwarding
Receive partial
frame consisting of
preamble, SFD, DA
Partial: preamble,
SFD,
DA, SA, Length
2.Frame checking
Checks DA and
begins forwarding
Lowest
Not a default
Not a default
3.Latency
4.Default switching
method
6 bytes
Preamble
1 byte
SFD
6 bytes
DA
6 bytes
SA
2 bytes
Length
Up to
1500 bytes 4 bytes
DATA
FCS