In-Depth Notes on Ethernet Switches

Overview of Ethernet Switches

  • Layer of operation:
    • Ethernet switches work at the Layer 2 (Data Link Layer) of the OSI model.
    • They make forwarding decisions based on Ethernet header information contained in Ethernet frames.

MAC Address Tables

  • Definition:

    • Each Ethernet switch maintains a MAC address table that tracks the MAC addresses of devices connected to its ports.
  • Functionality:

    • The MAC address table allows the switch to associate MAC addresses with specific ports, which helps in efficiently routing frames to their destinations.
    • In the example given, the MAC address table is already fully populated with the necessary MAC addresses.

Sending an Ethernet Frame

  • Components Involved:

    • Four hosts are designated as h1, h2, h3, and h4.
    • Each host has an abbreviated MAC address:
    • h1: aaaa
    • h4: dddd
  • Process of sending a frame:

    • When h1 wants to send a frame to h4:
    • It builds an Ethernet frame with:
      • Source MAC Address: aaaa (h1's MAC address)
      • Destination MAC Address: dddd (h4's MAC address)
  • Transmission to the switch:

    • The frame from h1 is sent and arrives at the switch on Fast Ethernet port 0/1 (labeled as FA 0/1).

Frame Forwarding by the Switch

  • Frame Processing:

    • The switch examines the Destination MAC Address of the incoming frame, which is dddd.
  • Lookup in MAC Address Table:

    • The switch searches its MAC address table for the entry with the address dddd.
    • It finds this address associated with Fast Ethernet port 0/4.
  • Forwarding the Frame:

    • The switch forwards the frame only out of Fast Ethernet port 0/4, directing it towards the destination, h4.

Conclusion

  • Understanding how Ethernet switches operate and utilize MAC address tables for forwarding decisions is critical for effective network communication and management.