Podcast
Questions and Answers
What criteria does a Layer 2 Ethernet switch primarily use to make forwarding decisions?
What criteria does a Layer 2 Ethernet switch primarily use to make forwarding decisions?
- MAC Addresses (correct)
- IP Addresses
- VLAN IDs
- Port Numbers
A switch examines its MAC address table to make a forwarding decision for each frame.
A switch examines its MAC address table to make a forwarding decision for each frame.
True (A)
What is the state of the MAC address table when a switch is first turned on?
What is the state of the MAC address table when a switch is first turned on?
empty
The MAC address table is sometimes referred to as a content addressable memory, also known as a ______ table.
The MAC address table is sometimes referred to as a content addressable memory, also known as a ______ table.
What action does a switch take when it receives a frame with a destination MAC address that is not in its MAC address table?
What action does a switch take when it receives a frame with a destination MAC address that is not in its MAC address table?
If a source MAC address of a frame exists in the MAC table but on a different port, the switch treats this as a new entry.
If a source MAC address of a frame exists in the MAC table but on a different port, the switch treats this as a new entry.
How long do most Ethernet switches typically keep an entry in the MAC address table by default?
How long do most Ethernet switches typically keep an entry in the MAC address table by default?
If the destination MAC address is a broadcast or multicast, the frame is ______ out all ports except the incoming port.
If the destination MAC address is a broadcast or multicast, the frame is ______ out all ports except the incoming port.
Match each switch forwarding method with its description:
Match each switch forwarding method with its description:
What type of switching determines if a frame has errors before propagating the frame?
What type of switching determines if a frame has errors before propagating the frame?
Cut-through switching performs error checking on the frame before forwarding it.
Cut-through switching performs error checking on the frame before forwarding it.
What is the primary benefit of using store-and-forward switching in terms of network performance?
What is the primary benefit of using store-and-forward switching in terms of network performance?
______ switching is required for quality of service (QoS) analysis on converged networks.
______ switching is required for quality of service (QoS) analysis on converged networks.
Which cut-through switching method offers the lowest level of latency?
Which cut-through switching method offers the lowest level of latency?
Fragment-free switching checks the entire frame for errors before forwarding it.
Fragment-free switching checks the entire frame for errors before forwarding it.
What is the significance of checking the first 64 bytes in fragment-free switching?
What is the significance of checking the first 64 bytes in fragment-free switching?
In port-based memory buffering, it is possible for a single frame to delay the transmission of all frames in memory because of a ______ destination port.
In port-based memory buffering, it is possible for a single frame to delay the transmission of all frames in memory because of a ______ destination port.
Which type of memory buffering shares a common memory buffer among all switch ports?
Which type of memory buffering shares a common memory buffer among all switch ports?
Shared memory buffering can result in fewer dropped frames for larger transmissions.
Shared memory buffering can result in fewer dropped frames for larger transmissions.
What is asymmetric switching, and how does shared memory buffering support it?
What is asymmetric switching, and how does shared memory buffering support it?
Two of the most basic switch settings are the bandwidth ('speed') and ______ settings for each individual switch port.
Two of the most basic switch settings are the bandwidth ('speed') and ______ settings for each individual switch port.
Gigabit Ethernet ports operate in which duplex mode?
Gigabit Ethernet ports operate in which duplex mode?
Duplex mismatch can occur when only one port on a link is reset and the autonegotiation process fails to correctly configure both link partners.
Duplex mismatch can occur when only one port on a link is reset and the autonegotiation process fails to correctly configure both link partners.
What is the best practice regarding the configuration of autonegotiation on both sides of an Ethernet link?
What is the best practice regarding the configuration of autonegotiation on both sides of an Ethernet link?
Auto-______ detects the type of cable attached to the port and configures the interfaces accordingly.
Auto-______ detects the type of cable attached to the port and configures the interfaces accordingly.
Flashcards
Layer 2 Ethernet switch
Layer 2 Ethernet switch
A Layer 2 Ethernet switch uses Layer 2 MAC addresses to make forwarding decisions.
How Switch makes forwarding decisions
How Switch makes forwarding decisions
The switch examines its MAC address table to make forwarding decisions.
Initial state of MAC table
Initial state of MAC table
The MAC address table is empty when a switch is turned on.
How a switch learns MAC Addresses
How a switch learns MAC Addresses
Signup and view all the flashcards
New MAC address
New MAC address
Signup and view all the flashcards
MAC address refresh timer
MAC address refresh timer
Signup and view all the flashcards
Source MAC on different Port
Source MAC on different Port
Signup and view all the flashcards
Destination MAC address (Unicast)
Destination MAC address (Unicast)
Signup and view all the flashcards
Destination MAC address (unknown unicast)
Destination MAC address (unknown unicast)
Signup and view all the flashcards
Destination MAC address (broadcast/multicast)
Destination MAC address (broadcast/multicast)
Signup and view all the flashcards
Filtering Frames
Filtering Frames
Signup and view all the flashcards
Store-and-Forward switching
Store-and-Forward switching
Signup and view all the flashcards
Cut-through switching
Cut-through switching
Signup and view all the flashcards
Advantage of store-and-forward
Advantage of store-and-forward
Signup and view all the flashcards
Fast-forward switching
Fast-forward switching
Signup and view all the flashcards
Fragment-free switching
Fragment-free switching
Signup and view all the flashcards
Port-based memory buffering
Port-based memory buffering
Signup and view all the flashcards
Shared memory buffering
Shared memory buffering
Signup and view all the flashcards
Full-duplex
Full-duplex
Signup and view all the flashcards
Half-duplex
Half-duplex
Signup and view all the flashcards
Autonegotiation
Autonegotiation
Signup and view all the flashcards
Duplex mismatch
Duplex mismatch
Signup and view all the flashcards
Auto-MDIX
Auto-MDIX
Signup and view all the flashcards
Switch
Switch
Signup and view all the flashcards
Study Notes
Ethernet Switching Overview
- Explains how Ethernet functions within a switched network
- Aims to clarify relationship between Ethernet sublayers and frame fields
- Describes Ethernet MAC addresses
- Explains how a switch constructs its MAC address table and forwards frames
- Explores switch forwarding methods and port settings for Layer 2 switch ports
Switch Fundamentals
- Layer 2 Ethernet switches forward packets using Layer 2 MAC addresses
- They are not aware of the carried data, such as IPv4, ARP, or IPv6 ND packets
- Forwarding decisions rely solely on Layer 2 Ethernet MAC addresses
- Ethernet switches utilize the MAC address table for forwarding decisions
- Legacy Ethernet hubs differ by repeating bits out of all ports except the incoming port
- When a switch starts, its MAC address table is initially empty
- The MAC address table is also known as a content addressable memory (CAM) table
Switch Learning and Forwarding
- Switches examine the source MAC address to learn new information
- The source MAC address and incoming port are examined for each entering frame
- If source MAC address is new, it is added to MAC address table along with the port number
- If the source MAC address exists, the switch updates the refresh timer for that entry
- Most Ethernet switches maintain an entry in the table for 5 minutes by default
- If source MAC address exists on a different port, it is treated as a new entry
- The entry is replaced using the same MAC address but with the current port number
- If the destination MAC address is a unicast address the switch searches for a match in its MAC address table
- If the destination MAC address exists in the table, traffic is forwarded via the specified port.
- If the destination MAC address is not in the table, the frame is forwarded out all ports except the incoming one, known as an unknown unicast
- If the destination MAC address is a broadcast or multicast, the frame floods out all ports except the incoming one
Filtering Frames
- Switches populates MAC addresses table by examining source MAC addresses in the received frames
- If the destination MAC address exists in the table, frame is filtered and forwarded using a single port
MAC Address Tables on Connected Switches (Video)
- Topic covers how switches construct MAC address tables
- Topic covers how switches forward frames using the content of their MAC address tables
Sending the Frame to the Default Gateway (Video)
- Topic covers what happens when a destination MAC address is not listed in the switch's MAC address table
- Topic covers what happens when a source MAC address is not listed in the switch's MAC address table
Lab - View the Switch MAC Address Table
- Part 1: Build and configure the network
- Part 2: Examine the switch MAC address table
- Downloadable lab guide available from cisco LMS or YJ LMS: 7.3.7-lab---view-the-switch-mac-address-table.pdf
Frame Forwarding Methods on Cisco Switches
- Switches use store-and-forward switching or cut-through switching methods
- Store-and-forward switching receives the entire frame and computes the CRC
- Valid CRC results in the switch looking up the destination address to find the proper outgoing interface
- Cut-through switching forwards the frame before it is fully received
- Reading the destination address of the frame is the bare minimum required to forward
- Store-and-forward switching identifies errors before propagating frames, discarding any detected errors.
- Discarding erroneous frames reduces consumed bandwidth by corrupted data.
- Store-and-forward switching enables quality of service (QoS) analysis
- Congregated networks require frame classifcation for traffic prioritization, like VoIP over web browsing
Cut-Through Switching Variants:
- Switch acts as soon as the data is received, even if the transmission isn't complete
- The switch buffers enough to determine which port to forward the data
- No error checking on the frame
- Fast-forward switching offers lowest latency by immediately forwarding packets after reading the destination address
- Packets may be relayed with errors, later discarded by the destination NIC
- Fast-forward switching is a typical cut-through method
- Fragment-free switching is a compromise to reduce latency, storing and checking the first 64 bytes of the frame for errors before forwarding it.
- By checking first 64 bytes, switch ensures a collision has not occurred before forwarding the frame
Memory Buffering on Switches
- Ethernet switches store frames using buffering during forwarding or if the destination port is busy
- Port-based memory involves queues linked to specific incoming and outgoing ports
- Frames transmit to the outgoing port after successful transmission of all ahead frames
- Possibility of single frame delay despite other frames being transmittable to open ports
- Shared memory involves common buffer shared by all switch ports with dynamically allocated buffer memory
- The frames get linked to the destination, enabling reception and transmission in different ports without queuing
- Shared memory buffering results in larger transmittable frames with fewer drops
- Asymmetric switching is important with different data rates, plus dedicated bandwidth to certain ports like server ports.
Duplex and Speed Settings
- Bandwidth ("speed") and duplex settings are crucial for each individual port on a switch
- Duplex and bandwidth settings need to match the switch port and connected devices
- Full-duplex allows both ends to send and receive simultaneously
- Half-duplex allows only one end to send at a time
- Autonegotiation is on most Ethernet switches and NICs
- Autonegotiation allows two devices to negotiate best speed and duplex capabilities
- Gigabit Ethernet ports operate only in full-duplex
Duplex and Speed Settings Issues
- Duplex mismatch is common on 10/100 Mbps Ethernet links
- Mismatch occurs when one port operates at half-duplex and other at full-duplex
- Reason for mismatches is resetting ports
- It is best to configure both Ethernet switch ports as full-duplex
Auto-MDIX
- Connections once depended on crossover or straight-through cables based on interconnecting devices
- Direct connections between a router and a host require cross-over connection
- Most switch devices support automatic medium-dependent interface crossover (auto-MDIX)
- auto-MDIX automatically detects the cable type and configures the interfaces
- Feature enabled by default on switches running Cisco IOS Release 12.2(18)SE or later but can be disabled
- Use the correct cable type. Do not rely on auto-MDIX
- Auto-MDIX can be re-enabled using the mdix auto interface configuration command
Quiz Questions
- Host will discard a frame with a unicast destination MAC address that does not match its own MAC address
- Switch is the network device that makes forwarding decisions based on the destination MAC address contained in the frame
Module Summary
- Layer 2 Ethernet switches make forwarding decisions based on Layer 2 Ethernet MAC addresses
- Switches dynamically build the MAC address table by examining the source MAC address of the frames received on a port
- Switches forward frames by searching for a match between the destination MAC address in the frame and an entry in the MAC address table
- Switches use store-and-forward or cut-through switching as forwarding methods; cut-through variants are fast-forward and fragment-free
- Use port-based memory and shared memory as memory buffering methods
- Two types of duplex settings used for communications on an Ethernet network: full-duplex and half-duplex
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.