Chapter 7 Flash Cards - Ethernet LAN Switching
What are the 3 primary jobs of a LAN switch?
- Deciding when to forward a frame or when to filter(not forward) a frame, based on the destination MAC address.
- Learning MAC addresses by examining the source MAC address of each frame received by the bridge.
- Creating a (Layer 2) loop-free environment with other bridges by using Spanning Tree Protocol (STP)
Describe the following switching method: Store-and-Forward
The switch fully receives all bits in the frame (store) before forwarding the frame (forward). This allows the switch to check the FCS before forwarding the frame.
Describe the following switching method: Cut-Through
The switch forwards the frame as soon as it can. This reduces latency but does not allow the switch to discard frames that fail the FCS check.
Describe the following switching method: Fragment-Free
The switch forwards the frame after receiving the first 64 bytes of the frame, thereby avoiding forwarding frames that were errored due to a collision.
What are some of the benefits offered by a switch that were not offered by older LAN devices?
- Switch ports connected to a single device microsegment the LAN, providing dedicated bandwidth to that single device.
- Switches allow multiple simultaneous conversations between devices on different ports.
- Switch ports connected to a single device support full duplex, in effect doubling the amount of bandwidth available to the device.
- Switches support rate adaptation, which means that devices that use different Ethernet speeds can communicate through the switch (hubs cannot).
Explain the layer 2 logic that switches use to process frames.
- Switches forward frames based on the destination address:
a. If the destination address is a broadcast, multicast, or unknown destination unicast (a unicast not listed in the MAC table), the switch floods the frame.
b. If the destination address is a known unicast address (a unicast address found in the MAC table):
i. If the outgoing interface listed in the MAC address table is different from the interface in which the frame was received, the switch forwards the frame out the outgoing interface.
ii. If the outgoing interface is the same as the interface in which the frame was received, the switch filters the frame, meaning that the switch simply ignores the frame and does not forward it. - Switches use the following logic to learn MAC address table entries:
a. For each received frame, examine the source MAC address and note the interface from which the frame was received.
b. If they are not already in the table, add the address and interface, setting the inactivity timer to 0.
c. If it is already in the table, reset the inactivity timer for the entry to 0. - Switches use STP to prevent loops by causing some interfaces to block, meaning that they do not send or receive frames.
Define Collision Domain
A collision domain is a set of network interface cards (NIC) for which a frame sent by one NIC could result in a collision with a frame sent by any other NIC in the same collision domain.
Define Broadcast Domain
A broadcast domain is a set of NICs for which a broadcast frame sent by one NIC is received by all other NICs in the same broadcast domain.
Which of the following benefits are gained by using a hub/switch/router between Ethernet devices?
- Greater cabling distances are allowed
- Creates multiple collision domains
- Increases bandwidth
- Creates multiple Broadcast domains.
- Hub/Switch/Router
- Switch/Router
- Switch/Router
- Router
What are some of the motivations to use VLANs?
- To create more flexible designs that group users by departments, or by groups that work together, instead of by physical location.
- To segment devices into smaller LANs (broadcast domains) to reduce overhead caused to each host in the VLAN.
- To reduce the workload for STP by limiting a VLAN to a single access switch.
- To enforce better security by keeping hosts that work with sensitive data on a separate VLAN.
- To separate traffic sent by an IP phone from traffic sent by PCs connected to the phones.
Describe the following campus switch role: Access
Provides a connection point (access) for end-user devices. Does not forward frames between two other access switches under normal circumstances.
Describe the following campus switch role: Distribution
Provides an aggregation point for access switches, forwarding frames between switches, but not connecting directly to end-user devices.
Describe the following campus switch role: Core
Aggregates distribution switches in very large campus LANs, providing very high forwarding rates.
Define Broadcast Domain
A set of all devices that receive broadcast frames originating from any device with the set. Devices in the same VLAN are in the same broadcast domain.
Define Broadcast Frame
An Ethernet frame sent to destination address FFFF.FFFF.FFFF, meaning that the frame should be delivered to all hosts on that LAN.