Professional Documents
Culture Documents
CCNA-1-8 (Switching)
CCNA-1-8 (Switching)
CCNA-1-8 (Switching)
CCNA 1
Module 8
Need for Switching
• When the number of devices trying to
access the network is low, the number of
collisions stays well within acceptable
limits.
• Bridging was developed to help ease
performance problems that arose from
increased collisions.
• Switching evolved from bridging
2
Layer 2 Bridging/Switching
• A Bridge keeps a table of MAC addresses
and the associated ports. The bridge
then forwards or discards frames based on
the table entries.
3
Bridge Operation
13
Layer 2 Switching
• A switch is a multi-port bridge.
• Each port on a switch is in its own collision
domain. A 20 port switch will have 20 collision
domains.
• Increasing the number of collision domains is
known as micro-segmentation.
• A switch builds and maintains a Content-
Addressable Memory (CAM) table, which holds
the MAC information for each port.
14
Switches and CAM
• Most memory devices store and retrieve
data by addressing specific memory
locations.
• In CAM stored data item can be identified
by the content of the data itself rather than
by its address.
15
Layer 2 Switching
• A switch dynamically builds and maintains a
Content-Addressable Memory (CAM) table,
holding all of the necessary MAC information for
each port, using ASICs.
• An Application-Specific Integrated Circuit (ASIC)
is a device that can be programmed to perform
functions at high speeds.
• Operations that were done in software can now
be done in hardware using an ASIC.
• The use of these technologies greatly reduced
the delays caused by software processing.
16
ASIC
17
Full Duplex
• Most switches and most network interface cards (NICs) are capable of
supporting full duplex.
• In full duplex mode, there is no contention for the media.
• Thus, with switched full-duplex transmission there are no collision
domains .
• Theoretically, the bandwidth is doubled when using full duplex.
A Switch:
• Doubles
bandwidth
between nodes
• Collision-free
transmission A switch uses full-
• Two 10 or 100 duplex mode to provide
Mbps data paths full bandwidth
between two nodes on 18
a network.
Switch Benefits
19
Latency
21
Switch Modes
24
Symmetric vs. Asymmetric
switching
25
Switch Modes
• Fragment-free mode – a compromise
between cut-through and store-and-
forward packet switching
– The first 64 bytes are read before it starts to
send the frame out the destination port.
– The CRC and the frame length are verified
before forwarding the frame.
26
Switch Modes
Start of
frame
27
Switched LANs
A
Broadcast frame
Broadcast frame
Link is down
Broadcast frame
31
Spanning Tree Protocol
• Loops can occur when extra switches and bridges
are added to provide redundant paths for reliability
and fault tolerance.
• A switch sends special messages called bridge
protocol data units (BPDUs) out all its ports to let
other switches know of its existence.
• The switches use a spanning-tree algorithm (STA)
to resolve and shut down the redundant paths
• The protocol used to resolve and eliminate loops is
known as the Spanning Tree Protocol (STP).
32
STP States
33
STP States
STP STA BPDUs Root Bridge
Forwarding Forwarding Forwarding
Blocking Blocking
Broadcast Domains
35
Shared Media Environments
• It is important to be able to identify a shared media
environment, because collisions only occur in a shared
environment.
37
The Four Repeater Rule
• The 5-4-3-2-1 rule requires that the
following guidelines should not be
exceeded:
– Five segments of network media
– Four repeaters or hubs
– Three host segments of the network
– Two link sections with no hosts
– One large collision domain
39
Data Collisions
Shared access
Extended by a hub
and repeater
Extended by a repeater
44
Each is a single collision domain! Extended by a repeater
How many collision domains?
ONE
45
How do you solve the problem?
Add a Bridge
46
Add a bridge = 2 collision domains
47
Segmentation
• Layer 2 devices segment or divide
collision domains.
• Segmentation makes networks more
efficient and allow data to be transmitted
on different segments of the LAN at the
same time without the frames colliding.
48
Ethernet LAN Segmentation
49
Segmenting with Bridges
50
Segmenting with Switches
51
Segmenting with Routers
52
Microsegmentation
Hubs
53
Layer 2 Broadcasts = FFF-FFF-FFF-
FFF
• The three sources of broadcasts and
multicasts in IP networks are workstations,
routers, and multicast applications.
– ARP requests
– Routing table updates
– Multicasts to specified IP addresses
• Layer 2 devices must flood all broadcast and
multicast traffic.
• The accumulation of broadcast and multicast
traffic from each device in the network is
referred to as broadcast radiation. 54
Broadcast Domains?
56
2 collision domains
1 broadcast domain
57
Data Flow
59
Summary
• Bridges and Switches are layer two
devices. Forward frames after examining
destination MAC address
• Each port of the switch has a separate
collision domain (microsegmentation).
• Small collision domain => less collisions.
• STP is used to prevent loops created by
redundant links.
60
Collision and Broadcast
Domains
• All decisions made by a bridge are based
on the ____ or ______ addressing and do
not affect
MACthe _______
Layer 2 or ___________.
Layer 3 Logical address
61
Switching/Bridging Table
E0 0260.8c01.1111
E0 0260.8c01.2222
E1 0260.ec01.3333
E1 0260.8c01.4444
62
Fill in the blanks
Bridge Switch
Number of ports
2 Multiple
Number of
collision domains 2 Multiple
Number of
1 1
broadcast
domains
Bridging Table Content-Addressable
Table name memory (CAM)
63
How many collision/broadcast
domains?
Collision = 6
Broadcast = 2
64
• What impact does a bridge have on
a network?
– Breaks up collision domains
• What happens with switched full-
duplex transmissions?
– No collisions domains
• What is STP and what 2 tasks does
it perform?
– Spanning Tree Protocol
– elect root bridge & decide designated
ports
65
Broadcast Domains
1. A broadcast domain is a grouping of collision
domains that are connected by ________
Layer 2 devices.
2. Smaller collision domains increase the opportunity
for each host in the network to
____________________.
gain access to the media
3. _________ are forwarded by Layer 2 devices and
Broadcasts
if excessive, can reduce the efficiency of the entire
LAN.
4. Broadcasts have to be controlled at Layer __.
3
5. _______ do not forward broadcasts.
Routers
6. Layer 3 forwarding is based on the destination
__________ and not the MAC address.
IP address 66
Collision Domains
collision domains
1. Layer 1 devices do not break up _______________.
2. _______ and _______ devices do break up collision domains.
Layer 2 Layer 3
3. Breaking up, or increasing the number of collision domains with Layer 2 and 3
devices is also known as _____________.
4. Layer 1 devices, such as repeaters and hubs extend segmentation
cable segments so
__________ can be added.
5. More hosts __________. More traffic _____________.
more
6. The final hosts
result is diminished _____________________.
more traffic
7. Repeater latency, propagation delay, and NIC latency allmore collisions
contribute to the
________________.
8. Exceeding the four repeater rule can lead network performance
to violating the _____________________.
9. When this delay limit is exceeded, the number of ____________ dramatically
increases.
four repeater rule
10. Late collision frames add delay that is referred to as ____________ delay.
consumption
67
Segmentation
How many collision domains are there? 14
How many broadcast domains are there?4
68
Fill in the blanks
Port Status Purpose
Blocked
Receives BPDUs only
Listening
Building “active” topology
Learning
Create bridge table
Forwarding Sending & receiving
Disable Administrator decided
69
What are the 3 types of shared
media environment?
Type Description
70
• Breaking up collision domains is called
_____________
segmentation
• What would relieve the problems of
excessive collisions?
– Reduce collisions domains & replace hubs
with switches or bridges
• What is the area that controls frame
propagation within that area?
– Collision domain
• What is the only device that breaks up
broadcast domains? Describe how it
works at each layer?
– Routers—do not forward broadcasts
• What does a router use to make
forwarding decisions?
– Destination IP address
71
Fill in the blanks
Layer Name Frame
Switching Rules
Layer 1
Physical Always forwards
frames
Layer 3
Network Will not forward
unless it must
72
• Name the four devices above, the layer of the OSI
model they operate at, and the method they base their
addressing on to forward packets on a network.