Professional Documents
Culture Documents
Ccna1 Mod8 GW
Ccna1 Mod8 GW
Ethernet Switching
Version 3
Ethernet Switching
Ethernet is a shared media
Ethernet
.
.
.
Version 3
Layer 2 bridging
To accomplish this a bridge keeps a table of MAC addresses and the
associated ports. The bridge then forwards or discards frames based
on the table entries. The following steps illustrate the operation of a
bridge
The bridge has just been started so the bridge table is empty. The bridge
just waits for traffic on the segment. When traffic is detected, it is
processed by the bridge.
Host A pings Host B. Since the data is transmitted on the entire collision
domain segment, both the bridge and Host B process the packet.
The bridge adds the source address of the frame to its bridge table. Since
the address was in the source address field and the frame was received
on Port 1, the frame must be associated with Port 1 in the table.
The destination address of the frame is checked against the bridge table.
Since the address is not in the table, even though it is on the same
collision domain, the frame is forwarded to the other segment. The
address of Host B has not been recorded yet.
Version 3
) (bridge ) MAC
( .
. :
) (bridge .
. ).(bridge
"" ) ping ( "" .
) (bridge
"" .
) (bridge .
) (frame 1
1 .
) (frame .
) (frame
. "" ) (frame.
Version 3
Layer 2 bridging
Host B processes the ping request and transmits a ping reply back to
Host A. The data is transmitted over the whole collision domain. Both
Host A and the bridge receive the frame and process it.
The bridge adds the source address of the frame to its bridge table.
Since the source address was not in the bridge table and was
received on Port 1, the source address of the frame must be
associated with Port 1 in the table.
The destination address of the frame is checked against the bridge
table to see if its entry is there. Since the address is in the table, the
port assignment is checked. The address of Host A is associated with
the port the frame was received on, so the frame is not forwarded.
Host A pings Host C. Since the data is transmitted on the entire
collision domain segment, both the bridge and Host B process the
frame. Host B discards the frame since it was not the intended
destination.
Version 3
Layer 2 bridging
The bridge adds the source address of the frame to its bridge table.
Since the address is already entered into the bridge table the entry is
just renewed.
The destination address of the frame is checked against the bridge
table. Since the address is not in the table, the frame is forwarded to
the other segment. The address of Host C has not been recorded yet.
Host C processes the ping request and transmits a ping reply back to
Host A. The data is transmitted over the whole collision domain. Both
Host D and the bridge receive the frame and process it. Host D
discards the frame since it is not the intended destination.
The bridge adds the source address of the frame to its bridge table.
Since the address was in the source address field and the frame was
received on Port 2, the frame must be associated with Port 2 in the
table.
Version 3
) (bridge )(bridge
. ) (bridge
.
) (frame
.
) (frame . ""
) (frame.
"" ) ping (
ping "" . .
"" ) (bridge . ""
) (frame .
.
) (frame 2
2 .
Version 3
Layer 2 bridging
The destination address of the frame is checked against the
bridge table to see if its entry is present. The address is in the
table but it is associated with Port 1, so the frame is forwarded to
the other segment.
When Host D transmits data, its MAC address will also be
recorded in the bridge table. This is how the bridge controls
traffic between to collision domains.
( frame)
1 .
.
)
MAC ""
.(bridge) (
.( bridge)
Version 3
Layer 2 Bridging
Version 3
10
Layer 2 switching
Generally, a bridge has only two ports and divides a collision
domain into two parts.
All decisions made by a bridge are based on MAC or Layer 2
addresses and do not affect the logical or Layer 3 addresses .
A bridge will divide a collision domain but has no effect on a
logical or broadcast domain.
If a network does not have a device that works with Layer 3
addresses, such as a router, the entire network will share the
same logical broadcast address space.
A bridge will create more collision domains but will not add
broadcast domains
Version 3
11
12
) - (bridge -
.
) (bridge ) MAC
( .
. )(bridge
.
) (router
.
) (bridge .
Version 3
Layer 2 switching
A switch is essentially a fast, multi-port bridge that can contain
dozens of ports. Each port creates its own collision domain. In a
network of 20 nodes, 20 collision domains.
A switch dynamically builds and maintains a content-addressable
memory (CAM) table, which holds all of the necessary MAC
information for each port.
13
.
.
) (switch .
) (switch
) (CAM ) MAC
( .
Version 3
Layer 2 Switching
Version 3
14
Layer 2 Switching
Version 3
15
Switches
A switch is a fast, multi-port bridge
Each port creates its own collision domain
A switch dynamically builds and maintains a ContentAddressable Memory (CAM) table
The CAM holds all of the necessary MAC information
for each port
.
.
( switch)
(CAM)
. ) ( MAC
Version 3
16
Switch Operation
.
.
.
Version 3
17
Version 3
18
Version 3
19
Latency
Latency is the delay between the time a frame begins to leave
the source device and when the first part of the frame reaches its
destination.
A variety of conditions can cause delays:
Media delays may be caused by the finite speed that signals can
travel through the physical media.
Circuit delays may be caused by the electronics that process the
signal along the path.
Software delays may be caused by the decisions that software
must make to implement switching and protocols.
Delays may be caused by the content of the frame and the
location of the frame switching decisions. For example, a device
cannot route a frame to a destination until the destination MAC
address has been read.
Version 3
20
Latency
) (frame
.
) (frame .
21
.
.
.
) (frame
. ) (frame
) MAC ( .
Version 3
Switch modes
Cut through
Version 3
22
Switch Modes
Cut-through switching
A switch transfers the frame as soon as the
destination MAC address is received
( frame) ( switch)
. ) ( MAC
lowest latency
no error checking
Version 3
23
Switch Modes
Store-and-forward switching
Higher latency
)(FCS
.
24
) (switch
Version 3
Switch Modes
Fragment-free switching
A compromise between cut-through and store-andforward switching
64 )(frame
25
.
)(LLC
.
Version 3
Switch Modes
Synchronous switching
The source port and destination port must
be operating at the same bit rate
.
.
26
Version 3
Switch Modes
Asynchronous switching
The bit rates are not the same
The frame must be stored at one bit rate before
it is sent out at the other bit rate
Store-and-forward must be used
( frame)
. .
.
Version 3
27
Switch Modes
Asymmetric switching
Switched connections between ports of unlike bandwidths
Asymmetric switching is optimized for client/server
A server requires more bandwidth dedicated to the server port to
prevent a bottleneck at that port
28
100 1000 .
/
.
Version 3
.
.
29
STP .
Version 3
30
STP
Each port using Spanning-Tree Protocol is in one of the
following five states:
Blocking
Listening
Learning
Forwarding
Disabled
:( switch)
Version 3
31
STP
A port moves through five states as follows:
From initialization to blocking
From blocking to listening or to disabled
From listening to learning or to disabled
From learning to forwarding or to disabled
From forwarding to disabled
:
Version 3
32
STP
Resolving and eliminating loops creates a logical
hierarchical tree with no loops
The alternate paths are available if needed
33
) STP (
.
.
Version 3
Version 3
34
Version 3
35
Version 3
36
37
.
:
38
.
.
.
.
.
Version 3
Version 3
39
Layer 1 Devices
Layer 1 devices
repeaters and hubs
.
Version 3
40
Repeater Rule
Four repeater rule:
No more than four repeaters between any
two computers
Contributing Factors
Repeater latency
Propagation delay
NIC latency
Late collision frames add delay that is
referred to as consumption delay
Version 3
41
Collision Domains
Collision Domains:
Connected physical network segments where
collisions can occur.
Collisions cause:
The network to be inefficient
Transmissions to stops for a period of time
42
. .
.
.
Version 3
Collision domains
Version 3
43
Collision Domains
OSI
.
.
Increasing the number of collision domains is known as
segmentation
44
.
Version 3
Version 3
45
Segmentation
Version 3
46
Network segment
Version 3
47
Layer 2 Broadcasts
Ethernet Broadcasts
When a node needs to communicate with all hosts on the
network
Version 3
48
Layer 2 Broadcasts
Layer 2 devices must flood all broadcast and
multicast traffic
Broadcast Radiation
The accumulation of broadcast and multicast traffic from
each device
Broadcast storm
Circulation of broadcast radiation that saturates the network
There is no bandwidth left for application data
49
. .
Version 3
Layer 2 Broadcasts
Workstations
Workstations broadcast an Address Resolution Protocol (ARP)
request every time they need to locate a MAC address that is not in
the ARP table.
, MAC
(ARP request)
Routers
The routing protocols that are configured on a network can increase
broadcast traffic significantly
Multicast Applications
IP multicast applications can adversely affect the performance of large
) ( IP
Version 3
50
Collision Domain
Collision Domain
Version 3
51
broadcast domain
A broadcast domain is a group of collision domains that are
connected by Layer 2 devices.
Broadcasts are forwarded by Layer 2 devices.
Excessive broadcasts can reduce the efficiency of the entire LAN.
Broadcasts have to be controlled at Layer 3 since Layers 1 and 2
devices cannot control them.
Broadcast domains are controlled at Layer 3 because routers do not
forward broadcasts.
Routers actually work at Layers 1, 2, and 3.
Like all Layer 1 devices, routers have a physical connection and
transmit data onto the media.
Routers also have a Layer 2 encapsulation on all interfaces and
perform the same functions as other Layer 2 devices.
Layer 3 allows routers to segment broadcast domains.
Version 3
52
broadcast domain
.
) (routers
.
) (router .
-
.
.
) (router .
53
Version 3
Broadcast domain
Version 3
54
Data Flow
Data flow in the context of collision and broadcast domains
focuses on how data frames propagate through a network. It
refers to the movement of data through Layers 1, 2 and 3
devices and how data must be encapsulated
55
) (frame MAC
.
) (frame
.
.
.
) (bridge .
Version 3
Data Flow
Layer 3 devices filter data packets based on IP
destination address
A Layer 3 device will not forward the frame unless it has to
Layer 3 device creates multiple collision and broadcast domains
56
) (packet IP
) ( .
) (packet ) IP (
) (router ) .(packet
.
Version 3
Dataflow
Version 3
57