Ethernet Switching & MAC Sublayer

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

In which layers of the OSI model does Ethernet operate?

  • Session and Presentation layers
  • Physical and Data Link layers (correct)
  • Network and Transport layers
  • Data Link and Network layers

The preamble field is included when describing the size of an Ethernet frame.

False (B)

What happens to Ethernet frames that are smaller than the minimum size?

  • They are flagged for retransmission.
  • They are forwarded without modification.
  • They are padded with extra bytes.
  • They are automatically discarded. (correct)

An Ethernet MAC address is a ______-bit address expressed using 12 hexadecimal digits.

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

What is the purpose of the Organizationally Unique Identifier (OUI) in a MAC address?

<p>To ensure that all MAC addresses are unique. (C)</p> Signup and view all the answers

A receiving NIC will only accept frames with a destination MAC address that exactly matches its own MAC address.

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

What type of MAC address is used when a frame is sent from a single device to a single destination?

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

What hexadecimal value is used for a destination MAC address in an Ethernet broadcast frame?

<p>FF-FF-FF-FF-FF-FF</p> Signup and view all the answers

Which MAC address type is exclusively used as the destination address and identifies a group of devices?

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

An Ethernet switch makes its forwarding decisions based on Layer 3 IP addresses.

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

When a switch is first turned on, the MAC address table is ______.

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

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

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

A switch populates its MAC address table by examining the destination MAC address of every frame.

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

What is the main benefit of store-and-forward switching over cut-through switching?

<p>Error checking before forwarding. (C)</p> Signup and view all the answers

The cut-through switching method forwards the frame before it is entirely received, but it must at least read the ______ address.

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

Which switching method has the lowest latency?

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

Fast-forward switching performs error checking on the frame before forwarding it.

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

What is one way to describe a compromise between store-and-forward and fast-forward switching?

<p>Fragment-free switching (A)</p> Signup and view all the answers

Port-based memory buffering deposits all frames into a common memory buffer to be used by all switch ports.

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

Which memory buffering method can transmit larger frames with fewer dropped frames, especially with asymmetric switching?

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

In full-duplex communication, only one end of the connection can send data at a time.

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

What is the term for a situation where one port on a link operates at half-duplex while the other operates at full-duplex?

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

Match the following protocols or technologies with their corresponding description or purpose:

<p>Address Resolution Protocol (ARP) = The process that a source host uses to determine the destination MAC address associated with an IPv4 address Neighbor Discovery (ND) = The process that a source host uses to determine the destination MAC address associated with an IPv6 address Spanning Tree Protocol (STP) = Reserved multicast destination MAC address QoS (Quality of Service) = Store-and-Forward switching is required for its analysis on converged networks</p> Signup and view all the answers

Why is store-and-forward switching required for quality of service analysis?

<p>It enables frame classification for traffic prioritization. (D)</p> Signup and view all the answers

Gigabit Ethernet ports can operate in either full-duplex or half-duplex mode.

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

Most switch devices utilize the ______________ feature to automatically detect the type of cable attached to the port and configure the interfaces accordingly.

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

What is the Ethernet frame filed responsible for error detection?

<p>Frame Check Sequence (FCS) (A)</p> Signup and view all the answers

In legacy Ethernet, LANs of today use hubs that operate in full-duplex.

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

What is the minimum and maximum size of an Ethernet frame?

<p>Minimum 64 bytes, maximum 1518 bytes (D)</p> Signup and view all the answers

The IEEE 802 LAN/MAN standards, including Ethernet, use ______ separate sublayers of the data link layer to operate

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

What is the LLC sublayer responsible for?

<p>Identifying which network layer protocol is used for the frame (D)</p> Signup and view all the answers

The MAC sublayer is responsible for identifying which network layer protocol is used for the frame

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

What is not included in the IEEE 802.3 data encapsulation?

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

All MAC addresses must be unique to the Ethernet device or Ethernet interface.

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

Why is store-and-forward switching advantageous in detecting errors?

<p>It computes the CRC (Cyclic Redundancy Check) before forwarding. (C)</p> Signup and view all the answers

Flashcards

Ethernet

Operates in the data link and physical layers, defining Layer 2 protocols and Layer 1 technologies.

LLC Sublayer

Places information in the frame to identify the network layer protocol used.

MAC Sublayer

Responsible for data encapsulation, media access control, and data link layer addressing.

Encapsulation

Process of enclosing data within a protocol's frame format.

Signup and view all the flashcards

IEEE 802.3 MAC sublayer

Specifications for different Ethernet communication standards over various media.

Signup and view all the flashcards

Legacy Ethernet

A shared, half-duplex medium using contention-based access.

Signup and view all the flashcards

Ethernet LANs using switches

Operate in full-duplex, not requiring access control through CSMA/CD.

Signup and view all the flashcards

Ethernet Error Detection

Ensures data integrity with a frame check sequence (FCS).

Signup and view all the flashcards

Minimum Ethernet frame size

64 bytes

Signup and view all the flashcards

Maximum Ethernet frame size

1518 bytes

Signup and view all the flashcards

Ethernet MAC address

An Ethernet MAC address consists of a 48-bit binary value expressed using 12 hexadecimal values.

Signup and view all the flashcards

Ethernet MAC Address

Address expressed using 12 hexadecimal digits or 6 bytes in length.

Signup and view all the flashcards

Organizationally Unique Identifier (OUI)

A unique 6 hexadecimal code obtained by vendors from the IEEE.

Signup and view all the flashcards

Ethernet header

The header includes a source MAC address and a destination MAC address.

Signup and view all the flashcards

NIC

Examines the destination MAC address to see if it matches its own physical MAC address.

Signup and view all the flashcards

Unicast MAC address

Unique address used for transmission from a single device to a single destination.

Signup and view all the flashcards

Broadcast MAC Address

Address received and processed by every device on the Ethernet LAN.

Signup and view all the flashcards

Multicast MAC Address

Address received and processed by a group of devices belonging to the same multicast group.

Signup and view all the flashcards

Reserved Multicast Destination MAC Addresses

Used for when encapsulated data is not IP, such as Spanning Tree Protocol (STP).

Signup and view all the flashcards

MAC address table

Helps filter frames and forward only out of certain ports.

Signup and view all the flashcards

Layer 2 Ethernet switch

Makes forwarding decisions using Layer 2 MAC addresses.

Signup and view all the flashcards

Switch

Dynamically builds it by examining the source MAC address of frames received on a port.

Signup and view all the flashcards

Learning the Source MAC Address

Examines source MAC and port number to add to table. Updates refresh timer if source MAC address exists.

Signup and view all the flashcards

Forwarding the Destination Mac Address

If the destination MAC address is in the table, it will forward the frame out the specified port

Signup and view all the flashcards

Store-and-forward switching

A forwarding method that receives the entire frame and computes the CRC.

Signup and view all the flashcards

Cut-through switching

A forwarding method that forwards the frame before it is entirely received.

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 of the frame before forwarding.

Signup and view all the flashcards

Buffering

Technique to store frames before forwarding them or when the destination port is busy.

Signup and view all the flashcards

Port-based memory

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

Signup and view all the flashcards

Shared memory

Deposits all frames into a shared common memory buffer.

Signup and view all the flashcards

Basic settings on a switch

Bandwidth and duplex settings.

Signup and view all the flashcards

Common performance issue

Duplex mismatch.

Signup and view all the flashcards

Auto-MDIX

Automated detection and configuration.

Signup and view all the flashcards

Ethernet sublayers

Ethernet uses the LLC and MAC sublayers of the data link layer to operate.

Signup and view all the flashcards

Study Notes

Ethernet Switching Basics

  • Explains Ethernet functionality in a switched network.
  • Relevant topics: Ethernet frames, MAC addresses, address tables, switch speeds, and forwarding.

Ethernet Frame

  • Operates in the data link and physical layers.
  • Aligns with IEEE 802.2 and 802.3 standards.
  • The 802 LAN/MAN standards, like Ethernet, contain two sublayers.
  • LLC Sublayer: Uses IEEE 802.2 to specify which network layer protocol a frame uses.
  • MAC Sublayer: Adheres to IEEE 802.3, 802.11, or 802.15, handling data encapsulation, media access control, and data link layer addressing.

MAC Sublayer Essentials

  • Data encapsulation and media access are its responsibilities.
  • IEEE 802.3 data encapsulation includes the frame structure, addressing, and error detection.
  • Addressing involves source and destination MAC addresses for LAN communication.
  • Error detection uses a frame check sequence (FCS) trailer.
  • The MAC sublayer follows IEEE 802.3 specifications.
  • Specifications vary based on media like copper or fiber.

Media Access & Legacy Ethernet

  • In legacy setups with bus topology or hubs, Ethernet used a shared, half-duplex medium, which manages access through CSMA/CD.
  • Modern Ethernet LANs use full-duplex switches, removing the need for CSMA/CD.

Ethernet Frame Size

  • Frame size has a range: 64 bytes minimum, 1518 bytes maximum.
  • The preamble field is not considered when determining frame size.
  • Frames shorter than 64 bytes are considered "collision fragments" or "runt frames" and are discarded automatically.
  • Frames exceeding 1500 bytes are "jumbo" or "baby giant frames".
  • The frame is dropped if the transmitted frame size goes below the minimum or exceeds the maximum.
  • Dropped frames often result from unwanted signals or collisions, marking them as invalid.

MAC Address Structure

  • A 48-bit binary value is displayed as 12 hexadecimal values.
  • An 8-bit byte translates to a hexadecimal range of 00 to FF.
  • Leading zeroes are always shown.
  • 0x precedes the hexadecimal value in documentation.
  • Hexadecimal can be shown as a subscript 16 or with "H" (e.g., 73H).
  • In an Ethernet LAN, MAC addressing identifies devices at OSI data link layer
  • A MAC address uses 48 bits, shown in 12 hexadecimal digits, which equals 6 bytes.
  • MAC addresses must be unique, requiring vendors to register with IEEE for a unique 6-hexadecimal OUI code.
  • A MAC address has a 6-hexadecimal vendor OUI code, plus a 6-hexadecimal vendor-assigned value.

Frame Processing

  • Ethernet headers include both Source and Destination MAC Addresses.
  • NICs check destination MAC addresses against stored addresses in RAM.
  • Frames are discarded if there's no match.
  • Matched frames proceed to OSI layers for de-encapsulation.
  • NICs accept broadcast or multicast frames from subscribed groups.
  • All devices that source or receive Ethernet frames, like workstations or routers, have a MAC address and an Ethernet NIC.

MAC Addresses

  • Unicast, broadcast, and multicast addresses are used for layer 2 communication.
  • A unicast MAC address is exclusive to single devices.
  • Address Resolution Protocol (ARP) locates IPv4 destination MAC addresses.
  • Neighbor Discovery (ND) locates IPv6 destination MAC addresses.
  • The source MAC address needs to be unicast only.

Broadcast MAC Addresses

  • Ethernet broadcast frames reach every device on the LAN.
  • Its destination MAC address is FF-FF-FF-FF-FF-FF (48 ones in binary).
  • Except for the incoming port, all Ethernet switch ports get flooded. Routers don't forward it.
  • For IPv4 broadcasts, the packet has an address using all ones (1s) within the host portion. All local network hosts receive and handle the said packet.

Multicast MAC Addresses

  • Multicast frames are received and processed by devices in the defined multicast group.
  • The encapsulated IPv4 multicast packet's destination MAC address: 01-00-5E.
  • If IPv6 is encapsulated, the destination MAC address: 33-33.
  • Other reserved multicast MAC addresses are used when data is not IP, such as Spanning Tree Protocol (STP).
  • Flooding occurs on all Ethernet switch ports, excluding the incoming one, unless multicast snooping is active. Routers do not forward unless configured.
  • Multicast addresses act as host groups and are exclusive to the destination of a packet, which requires a unicast source address.
  • Multicast IP addresses need a matching multicast MAC address.

Switch Fundamentals

  • Layer 2 switch relies solely on MAC addresses to make forwarding decisions.
  • The switch is unaware of any protocol in the data portion.
  • To make forwarding decisions, a switch consults its MAC address table.
  • When a switch is powered on, the MAC address table is empty.
  • A MAC address table is a content addressable memory (CAM) table.

Learning and Forwarding

  • Switches assess each frame for new info.
  • The switch learns by checking out: The source MAC address & the receiving port number .
  • New MAC addresses are added to the MAC address table.
  • Upon recognition of a prior source address, only the refresh timer is updated.
  • Entries are kept for 5 minutes.
  • A source MAC address on a different port is considered a new entry.

Destination MAC Addresses

  • A unicast will cause the switch to seek match between frame and MAC address table.
  • If it exists, the frame goes to that specified port.
  • Otherwise, an unknown unicast floods all ports except for the incoming port.
  • Broadcast and multicast frames also flood all ports but the incoming port.

Filtering frames

  • Switches build out their MAC address table using the source MAC address of every frame.
  • Frames are filtered and forwarded out a single port when the destination MAC address is known.

Frame Forwarding

  • Store-and-forward switching receives the entire frame, computes the CRC, determines the outgoing interface, then forwards the frame.
  • Cut-through switching forwards the frame before receiving all of it, reading only the destination address.
  • A store-and-forward benefit includes checking for errors before propagation.
  • Store-and-forward is used for quality of service (QoS).

Cut-Through Switching Particulars

  • Under cut-through switching, switches act fastest due to not waiting for total receipt.
  • Only enough frame data is buffered to read the destination's MAC address.
  • All cut-through switches avoid error checking.
  • Fast-forward switching has lowest latency as it forwards post address read.
  • Because of fast forwarding, packets might relay with errors, with error correction being up to the destination NIC.
  • Fragment-free switching balances the integrity of store-and-forward, but minimizes latency by storing, then checking the first 64 bytes for errors.

Memory Buffering

  • Buffering is used to store frames before forwarding during congestion.
  • Port-based memory contains frame queues that go to specific ports; frames wait transmission until all prior frames send.
  • Shared memory involves switch ports sharing a buffer and allocating memory dynamically.
  • Frames are dynamically linked to destination ports and transmitted.
  • Shared memory buffering transmits bigger frames with less drops under asymmetric switching.

Duplex and Speed Settings

  • Bandwidth and duplex settings are key to switch ports.
  • They must match on both ends.
  • Full-duplex allows simultaneous sending/receiving.
  • Half-duplex allows one-way communication.
  • Auto-negotiation finds the best settings.
  • Gigabit Ethernet ports only use full-duplex.

Common Issues

  • Having a duplex mismatch can lead to performance complications.
  • These mismatches emerge after resetting one or both ports or forgetting to reconfigure.
  • It is best to configure both Ethernet switch ports for full-duplex or enable autonegotiation on both sides.

Auto-MDIX Functionality

  • Crossover or straight-through cables were once necessary based on the devices.
  • A direct router-to-host now needs a crossover cable.
  • Auto-MDIX auto-detects cables and sets interfaces.
  • It has been automatically in use with Cisco IOS Release 12.2(18)SE or later and can be re-enabled via mdix auto.

Key Aspects from the Module

  • Ethernet standards define both the Layer 2 protocols and the Layer 1 technologies, and operates via the LLC and MAC sublayers.
  • Frames have a preamble, destination/source MAC addresses, and an FCS.
  • MAC addresses identify devices in the OSI model.
  • Addresses are 48 bits using 12 hex digits.
  • The Ethernet header contains source/destination MAC addresses. They are used for unicast, broadcast, and multicast.
  • Layer 2 Ethernet switch forwarding decisions use Layer 2 Ethernet MAC addresses dynamically built via source MAC address analysis.

Core Concepts

  • Switch forwarding uses the destination MAC address through a MAC address table.
  • Switches use store-and-forward or cut-through methods, the latter also includes fast-forward and fragment-free.
  • Memory buffering includes port-based and shared memory.
  • Duplex settings include full-duplex and half-duplex.

Labs

  • Lab 7.1.6 explores Ethernet topology using Wireshark.
  • Lab 7.2.7 highlights MAC addresses network devices.
  • Lab 7.3.7 focuses on switch MAC address tables.

Studying That Suits You

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

Quiz Team

Related Documents

More Like This

Ethernet Switching and LAN Technologies
40 questions
2101 Ch07: Ethernet Switching
25 questions
Ethernet Switching Overview
37 questions
Use Quizgecko on...
Browser
Browser