Ethernet Switching & MAC Address Tables

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson
Download our mobile app to listen on the go
Get App

Questions and Answers

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.

True (A)

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.

<p>CAM</p> Signup and view all the answers

What action does a switch take when it receives a frame with a destination MAC address that is not in its MAC address table?

<p>Forwards the frame out all ports except the incoming port. (C)</p> Signup and view all the answers

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.

<p>True (A)</p> Signup and view all the answers

How long do most Ethernet switches typically keep an entry in the MAC address table by default?

<p>5 minutes</p> Signup and view all the answers

If the destination MAC address is a broadcast or multicast, the frame is ______ out all ports except the incoming port.

<p>flooded</p> Signup and view all the answers

Match each switch forwarding method with its description:

<p>Store-and-forward = Receives the entire frame, computes the CRC, and then forwards it. Cut-through = Forwards the frame before it is entirely received. Fast-forward = Offers the lowest level of latency. Fragment-free = Performs an error check on the first 64 bytes of the frame before forwarding.</p> Signup and view all the answers

What type of switching determines if a frame has errors before propagating the frame?

<p>Store-and-forward switching (B)</p> Signup and view all the answers

Cut-through switching performs error checking on the frame before forwarding it.

<p>False (B)</p> Signup and view all the answers

What is the primary benefit of using store-and-forward switching in terms of network performance?

<p>Reduces bandwidth consumption by corrupt data</p> Signup and view all the answers

______ switching is required for quality of service (QoS) analysis on converged networks.

<p>Store-and-forward</p> Signup and view all the answers

Which cut-through switching method offers the lowest level of latency?

<p>Fast-forward switching (D)</p> Signup and view all the answers

Fragment-free switching checks the entire frame for errors before forwarding it.

<p>False (B)</p> Signup and view all the answers

What is the significance of checking the first 64 bytes in fragment-free switching?

<p>Most network errors and collisions occur within the first 64 bytes.</p> Signup and view all the answers

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.

<p>busy</p> Signup and view all the answers

Which type of memory buffering shares a common memory buffer among all switch ports?

<p>Shared memory (A)</p> Signup and view all the answers

Shared memory buffering can result in fewer dropped frames for larger transmissions.

<p>True (A)</p> Signup and view all the answers

What is asymmetric switching, and how does shared memory buffering support it?

<p>Different data rates on different ports; more bandwidth can be dedicated to certain ports (e.g., server port)</p> Signup and view all the answers

Two of the most basic switch settings are the bandwidth ('speed') and ______ settings for each individual switch port.

<p>duplex</p> Signup and view all the answers

Gigabit Ethernet ports operate in which duplex mode?

<p>Full-duplex (C)</p> Signup and view all the answers

Duplex mismatch can occur when only one port on a link is reset and the autonegotiation process fails to correctly configure both link partners.

<p>True (A)</p> Signup and view all the answers

What is the best practice regarding the configuration of autonegotiation on both sides of an Ethernet link?

<p>Both sides should have autonegotiation on, or both sides should have it off.</p> Signup and view all the answers

Auto-______ detects the type of cable attached to the port and configures the interfaces accordingly.

<p>MDIX</p> Signup and view all the answers

Flashcards

Layer 2 Ethernet switch

A Layer 2 Ethernet switch uses Layer 2 MAC addresses to make forwarding decisions.

How Switch makes forwarding decisions

The switch examines its MAC address table to make forwarding decisions.

Initial state of MAC table

The MAC address table is empty when a switch is turned on.

How a switch learns MAC Addresses

Every frame entering is checked for new information by examining the source MAC address and port number.

Signup and view all the flashcards

New MAC address

If the source MAC address doesn't exist, it's added to the table with the incoming port number.

Signup and view all the flashcards

MAC address refresh timer

Switch updates the refresh timer for the MAC entry; Ethernet switches keep entries for 5 minutes.

Signup and view all the flashcards

Source MAC on different Port

The switch replaces the old entry with the new port number.

Signup and view all the flashcards

Destination MAC address (Unicast)

Switch looks for a match in its MAC address table.

Signup and view all the flashcards

Destination MAC address (unknown unicast)

The switch will forward the frame out all ports except the incoming port.

Signup and view all the flashcards

Destination MAC address (broadcast/multicast)

Frame is flooded out all ports except incoming port.

Signup and view all the flashcards

Filtering Frames

The switch contains the destination MAC address, filtering the frame and forward out a single port.

Signup and view all the flashcards

Store-and-Forward switching

The frame forwarding method receives the entire frame and computes the CRC.

Signup and view all the flashcards

Cut-through switching

This frame forwarding method forwards the frame before it is entirely received.

Signup and view all the flashcards

Advantage of store-and-forward

Switches discard frame and reduces bandwidth.

Signup and view all the flashcards

Fast-forward switching

Offers the lowest level of latency by immediately forwarding a packet after reading the destination address.

Signup and view all the flashcards

Fragment-free switching

Stores and performs an error check on the first 64 bytes.

Signup and view all the flashcards

Port-based memory buffering

Frames are stored in queues that are linked to specific incoming and outgoing ports.

Signup and view all the flashcards

Shared memory buffering

Deposits all frames into a common memory buffer shared by all switch ports and the amount of buffer memory required by a port is dynamically allocated.

Signup and view all the flashcards

Full-duplex

Both ends can send and receive simultaneously.

Signup and view all the flashcards

Half-duplex

Only one end of the connection can send at a time.

Signup and view all the flashcards

Autonegotiation

Enables two devices to automatically negotiate the best speed and duplex capabilities.

Signup and view all the flashcards

Duplex mismatch

Occurs when one port on the link operates at half-duplex while the other port operates at full-duplex.

Signup and view all the flashcards

Auto-MDIX

The switch automatically detects the type of cable attached to the port and configures the interfaces accordingly.

Signup and view all the flashcards

Switch

Forwarding decision based on destination MAC address.

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.

Quiz Team

Related Documents

More Like This

Networking Concepts Quiz
45 questions

Networking Concepts Quiz

ProblemFreeThermodynamics avatar
ProblemFreeThermodynamics
Use Quizgecko on...
Browser
Browser