Switch MAC Address Learning to Prevent Packet Flooding
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Conventional networking systems face issues with packet flooding in switches due to the lack of efficient MAC address learning and database updates, leading to unnecessary packet replication across interconnected switches, which can result in network congestion and reduced quality of service.
Innovation Solution
A method and system where switches communicate discovery requests and responses to update Level 2 (L2) databases with MAC addresses, and utilize host discovery tables to prevent frequent database update requests, ensuring packets are forwarded efficiently along a single path once the destination MAC address is learned, thereby avoiding packet flooding.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If switches replicate packets to all interconnected switches when MAC address is not in database, then packet delivery coverage is improved, but network congestion increases and quality of service deteriorates
Solution Approach 1:
The system performs preliminary MAC address learning by having switches send discovery requests to hosts and store MAC addresses in databases before packet flooding occurs. This preliminary action enables switches to make informed forwarding decisions later, avoiding unnecessary packet replication while ensuring reliable delivery.
Solution Approach 2:
The system implements feedback mechanisms where switches send discovery requests to hosts and receive discovery responses containing MAC address information. This feedback loop allows switches to update their databases continuously, improving forwarding accuracy and reducing network congestion from unnecessary flooding.
2Measurement precision
If switches frequently send database update requests to discover MAC addresses, then MAC address database accuracy is improved, but network traffic overhead increases
Solution Approach 1:
Instead of continuous or frequent database updates, the system uses periodic discovery requests triggered by specific events such as when a switch first encounters a MAC address or when topology changes occur. This periodic action maintains database accuracy while significantly reducing unnecessary network traffic overhead.
3Reliability
If packets are forwarded along multiple paths through interconnected switches, then packet delivery reliability is improved, but network congestion and latency increase
Solution Approach 1:
The system segments the network forwarding process into two distinct phases: MAC address discovery/learning phase and packet forwarding phase. During the forwarding phase, switches use the learned MAC addresses to determine single optimal paths, separating the reliability function (MAC learning) from the efficiency function (directed forwarding).
Data Source
AI summary
Certain aspects of a method and system for avoiding flooding of packets in switches may include a network comprising a plurality of switches interconnected to one or more hosts. One of the plurality of switches may communicate a discovery request to the one or more hosts to determine a MAC address of the one or more hosts. One of the plurality of switches may receive a discovery response from the one or more hosts in response to the communicated discovery request. One of the plurality of switches may update their L2 databases with the MAC addresses of the one or more hosts based on the received discovery response. If the MAC address of a destination host is listed in the L2 database, a switch may communicate a received packet to the destination host using one or more other switches based on the MAC address in the L2 database.


