2302-Ch02: LAN Switching Concepts
25 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to Lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the term used to describe the port where a frame enters a device?

  • Transit
  • Access
  • Egress
  • Ingress (correct)

What type of address does a switch use to direct network communications?

  • IP Addresses
  • Port Numbers
  • Domain Names
  • MAC Addresses (correct)

What is the purpose of a MAC address table in a LAN switch?

  • To maintain a list of MAC address to port mappings (correct)
  • To store IP addresses
  • To filter out unwanted network traffic
  • To record the physical location of the switch

In what type of memory is the MAC address table typically stored?

<p>Content Addressable Memory (CAM) (D)</p> Signup and view all the answers

What factor dictates how a switch forwards traffic?

<p>The flow of the traffic (B)</p> Signup and view all the answers

What does a switch use to send frames to a specific device?

<p>MAC address table (D)</p> Signup and view all the answers

How does a switch learn about new devices on the network?

<p>By analyzing the source MAC address of incoming frames (C)</p> Signup and view all the answers

What does a switch do if the destination MAC address is not in the MAC address table?

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

What type of circuit is responsible for the fast Layer 2 forwarding decisions?

<p>ASIC (D)</p> Signup and view all the answers

Which switching method makes a forwarding decision after receiving the entire frame and checking for errors?

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

What is the primary purpose of the FCS (Frame Check Sequence) in store-and-forward switching?

<p>To ensure the frame is free of errors (B)</p> Signup and view all the answers

What does a store-and-forward switch do if a frame fails the FCS check?

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

Which type of switching allows for different Ethernet speeds between ingress and egress ports?

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

Which switching method makes a forwarding decision after only reading the destination MAC address?

<p>Cut-through switching (B)</p> Signup and view all the answers

What is a collision domain?

<p>A network segment where devices share the same bandwidth and compete for access. (B)</p> Signup and view all the answers

Which of the following is a drawback of cut-through switching?

<p>Potential forwarding of invalid frames (D)</p> Signup and view all the answers

Which type of switching is better for high-performance computing (HPC) applications requiring very low latency?

<p>Cut-through switching (C)</p> Signup and view all the answers

Which device can divide a Layer 2 broadcast domain?

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

What MAC address is used when a device sends a Layer 2 broadcast?

<p>All binary ones (A)</p> Signup and view all the answers

What is a benefit of fragment free switching over traditional cut-through switching?

<p>Improved error checking (A)</p> Signup and view all the answers

In which mode of operation do switch ports avoid collisions?

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

When might cut-through switching negatively impact network bandwidth?

<p>When the network has a high error rate (C)</p> Signup and view all the answers

What happens when a switch receives a broadcast frame?

<p>It forwards the frame out of all ports except the ingress port. (C)</p> Signup and view all the answers

What is the primary function of LAN switches in relation to network congestion?

<p>To alleviate network congestion (A)</p> Signup and view all the answers

What happens to the broadcast domain when two switches are connected?

<p>It increases. (C)</p> Signup and view all the answers

Flashcards

Ingress Port

The port where a frame enters a network device.

Egress Port

The port that frames use when leaving a network device.

MAC Address Table

A table maintained by a LAN switch to forward traffic; it associates MAC addresses to specific ports.

How a LAN Switch Forwards Traffic

Forwards traffic based on the ingress port and the destination MAC address of an Ethernet frame.

Signup and view all the flashcards

Content Addressable Memory (CAM)

Special high-speed memory in switches, that stores the MAC address table.

Signup and view all the flashcards

Switch Frame Forwarding

The switch uses the MAC address table to send frames to a specific device via the mapped port.

Signup and view all the flashcards

Switch Learning Step

Examines the source MAC address of incoming frames to update its MAC address table. If the MAC address doesn't exist it adds to the table. If it exists, it updates the refresh timer.

Signup and view all the flashcards

Switch Forwarding Step

Looks for a match between the destination MAC address and its MAC address table. If found, it forwards the frame. If not found, floods all ports (except the incoming one).

Signup and view all the flashcards

Store-and-Forward Switching

Receives the entire frame, checks for errors using CRC, then forwards the frame. Used by Cisco LAN switches.

Signup and view all the flashcards

Cut-Through Switching

Forwards the frame as soon as the destination MAC address and egress port are determined.

Signup and view all the flashcards

Collision Domain

Network segments where devices share bandwidth, leading to potential data collisions.

Signup and view all the flashcards

Data Collision

Occurs when two or more devices in the same collision domain transmit simultaneously.

Signup and view all the flashcards

Full-Duplex

An Ethernet connection where devices can send and receive data simultaneously without collisions.

Signup and view all the flashcards

Half-Duplex

An Ethernet connection where devices can only send or receive data at one time, leading to potential collisions.

Signup and view all the flashcards

Broadcast Domain

A collection of interconnected switches that forward broadcast frames to all devices.

Signup and view all the flashcards

Router

A network layer device that segments broadcast and collision domains by using routing.

Signup and view all the flashcards

Broadcast MAC Address

The MAC address used in a frame for Layer 2 broadcasts; all binary ones.

Signup and view all the flashcards

Frame Check Sequence (FCS)

Verifies the integrity of the received frame, ensuring it's free from physical and data-link errors before forwarding.

Signup and view all the flashcards

Automatic Buffering

Store-and-forward switches temporarily hold incoming frames in a buffer to accommodate speed mismatches between ports.

Signup and view all the flashcards

Fragment-Free Switching

A modified cut-through switching method that starts forwarding after reading a larger portion of the frame, providing better error checking than pure cut-through.

Signup and view all the flashcards

Cut-Through Switching Drawback

May forward corrupted frames due to lack of error checking, potentially wasting bandwidth.

Signup and view all the flashcards

Cut-Through Switching Use Case

Ideal for high-performance applications needing minimal delay, even at the risk of forwarding some errors.

Signup and view all the flashcards

Key Difference: Store-and-Forward vs Cut-Through

Store and forward waits to receive the entire frame and checks for errors, while cut-through forwards immediately, without error checking.

Signup and view all the flashcards

Study Notes

  • Switch operation basics are crucial for effective network troubleshooting.

Switching in Networking

  • Switching and forwarding frames are fundamental in networking and telecommunications.
  • Switches operate in LANs, WANs, and the Public Switched Telephone Network (PSTN).
  • Traffic forwarding is determined by traffic flow, involving two key terms:
  • Ingress: Port where a frame enters the device.
  • Egress: Port used by frames when leaving the device.
  • LAN switches use a table to forward traffic, which relies on the ingress port and the Ethernet frame's destination MAC address.
  • A LAN switch has one primary switching table that strictly links MAC addresses to ports.
  • Ethernet frames with a specific destination address exit via the same egress port, regardless of the ingress port.
  • An Ethernet frame will not be sent out the same port it was received on.

The Switch MAC Address Table

  • A switch consists of integrated circuits and software that manage data paths.
  • Switches use destination MAC addresses to send network communications through the switch, via the correct port, to the destination.
  • Switches learn which devices are on each port to transmit frames, building a MAC address table.
  • The MAC address table is stored in content addressable memory (CAM).
  • CAM is a type of memory used for high-speed searching applications.
  • The MAC address table is sometimes referred to as the CAM table.
  • LAN switches manage incoming data frames using the MAC address table.
  • Switches record the source MAC address of each device connected to its ports to populate this table.
  • The switch uses the MAC address table data to direct frames destined for a specific device out of the appropriate port.

The Switch Learn and Forward Method

  • A two-step process is applied to every Ethernet frame entering a switch.

Step 1. Learn - Examining the Source MAC Address

  • Each frame entering a switch is analyzed for new information by examining the source MAC address and the incoming port number.
  • If the source MAC address isn't in the MAC address table, it is added along with the incoming port number.
  • If the source MAC address exists, the switch updates the refresh timer for that entry.
  • Ethernet switches typically retain an entry for five minutes.
  • If a source MAC address exists in the table but is received on a different port, this is treated as a new entry, replacing the old one with the new port number.

Step 2. Forward - Examining the Destination MAC Address

  • The switch searches for a match between the destination MAC address and an entry in its MAC address table if the destination MAC address is a unicast address.
  • If the destination MAC address is in the table, the frame is forwarded out of the port.
  • The switch sends the frame out of all ports, except the incoming port, if the destination MAC address is not in the table.
  • Called an unknown unicast.
  • Broadcast or multicast destination MAC addresses are also flooded out all ports except the incoming port.

Switching Forwarding Methods

  • Switches make Layer 2 forwarding decisions quickly using software on application-specific integrated circuits (ASICs).

  • ASICs minimize frame-handling time, allowing the device to manage more frames without reducing performance.

  • Layer 2 switches use Store-and-forward switching or Cut-through switching.

  • Store-and-forward switching:

  • Makes a forwarding decision after receiving and checking entire frame using a cyclic redundancy check (CRC) for errors.

  • Cisco's primary LAN switching method.

  • Cut-through switching:

  • Begins forwarding after determining the destination MAC address and egress port of an incoming frame.

Store-and-Forward Switching

  • Store-and-forward switching has two main characteristics:
  • Error checking: Compares the frame check sequence (FCS) value to its own calculations after receiving the entire frame, forwarding error-free frames and dropping others.
  • Automatic buffering: Supports mixed Ethernet speeds by buffering frames, computing the FCS check, forwarding it to the egress port buffer, and then sends it.

Cut-Through Switching

  • Store-and-forward switching drops frames that do not pass the FCS check and does not forward invalid frames.
  • Cut-through switching may forward invalid frames because no FCS check is performed.
  • Can perform rapid frame switching.
  • The switch can decide on forwarding as soon as the destination MAC address is found in its MAC address table.
  • The switch does not need to wait for the rest of the frame to enter the ingress port before deciding to forward.
  • Fragment free switching is a cut-through switching variation that only starts forwarding the frame. Fragment free switching provides better error checking but with practically no increase in latency.
  • The lower latency speed makes it more appropriate for extremely demanding, high-performance computing (HPC) applications that require process-to-process latencies of 10 microseconds or less.
  • Cut-through switching can cause problems if there is a high error rate, with invalid frames clogging bandwidth.

Collision Domains

  • In legacy hub-based Ethernet segments, network devices competed for the shared medium.
  • Network segments sharing bandwidth are known as collision domains
  • A collision will occur when two or more devices communicate at the same time.
  • Each segment is its own collision domain when an Ethernet switch port operates in half-duplex.
  • Collision domains will not ocur in full-duplex.
  • Ethernet switch ports default to auto-negotiate full-duplex when the adjacent device also supports it.
  • If the switch port connects to a half-duplex device like a legacy hub, the switch port will operate in half-duplex.
  • The switch port will be part of a collision domain in half-duplex.

Broadcast Domains

  • Multiple interconnected switches form a single broadcast domain.
  • Routers are used to segment broadcast and collision domains.
  • A device sets the destination MAC address to all binary ones when sending a Layer 2 broadcast.
  • The Layer 2 broadcast domain is referred to as the MAC broadcast domain.
  • The MAC broadcast domain consists of all LAN devices receiving broadcast frames from a host.
  • Switches forward broadcast frames out of all ports except the ingress port upon receipt.
  • Each connected device processes a copy of the broadcast frame.
  • Broadcasts reduce network efficiency and can cause congestion, slowing network performance.
  • Connecting two switches increases the broadcast domain.

Alleviating Network Congestion

  • LAN switches have features that alleviate network congestion.
  • Interconnected switch ports attempt to establish a link in full-duplex by default, which eliminates collision domains.
  • Full-duplex connections double bandwidth and require 1 Gbps Ethernet speeds and higher.
  • Switches interconnect LAN segments, use MAC address tables to determine egress ports, and can lessen or eliminate collisions.
  • Switches with these traits alleviate network congestion:
  • Fast port speeds: Vary by model and purpose (100 Mbps to 100 Gbps).
  • Fast internal switching: Use a fast internal bus or shared memory for high performance.
  • Large frame buffers: Use large memory buffers to temporarily store more received frames without losing frames.
  • High port density: Lowers overall costs by reducing the number of switches needed.

Frame Forwarding

  • The decision on traffic forwarding depends on traffic flow.
  • Ingress describes where frames enter, and egress describes where frames exit.
  • Ethernet frames are never forwarded out the port through which they entered.
  • As switches determine the relationship of ports to devices, a MAC address table is built.
  • The source MAC address and port number learn MAC addresses for new information.
  • The switch checks for matches in the MAC address table for unicast addresses.
  • Switch forwarding methods include store-and-forward (error-checking and buffering) and cut-through (rapid frame switching).
  • Cut-through performs rapid frame switching or error checks.
  • switches make forwarding decisions instantly with the destination MAC address.

Switching Domains

  • Each segment is its own collision domain if an Ethernet switch port operates in half-duplex.
  • There are no collision domains when switch ports are operating in full-duplex.
  • Ethernet switch ports automatically negotiate full-duplex when possible.
  • Connecting switches creates a single broadcast domain divded by a router.
  • LAN devices receive broadcast frames from a host.
  • Receives a copy of the broadcast frame.
  • Switches offer increased performance and reduced network congestion with fast port speeds, fast internal switching, large frame buffers, and high port density.

Studying That Suits You

Use AI to generate personalized quizzes and flashcards to suit your learning preferences.

Quiz Team

Related Documents

Switching in computer networks

Description

Test your knowledge of LAN switching concepts. Questions cover MAC address tables, forwarding decisions, and switching methods like store-and-forward.

More Like This

Use Quizgecko on...
Browser
Browser