Ethernet Switch Address Learning CPU Workload Reduction
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Ethernet switches burdened with excessive notification messages to the CPU during controlled address learning, leading to unnecessary workload and potential denial-of-service attacks, due to multiple packets with new source MAC addresses being received before CPU response.
Innovation Solution
Implementing a method where only one notification message is sent to the CPU for each new source MAC address, by creating an unapproved association in the forwarding database and marking it until CPU approval, ensuring that only approved associations are used for packet processing.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If the switch sends a notification message to the CPU for every packet with a new source MAC address, then the CPU can learn about all address changes, but the CPU becomes burdened with excessive workload and vulnerable to denial-of-service attacks
Solution Approach 1:
The switch performs partial notification by sending a single notification message to the CPU for each new source MAC address, rather than notifying for every packet. This partial action is sufficient for the CPU to learn the address change while avoiding excessive notification traffic that would burden the CPU.
Solution Approach 2:
The switch creates a temporary association entry in the forwarding database before receiving CPU approval. This preliminary action allows the switch to immediately begin using the new MAC address for packet forwarding while still seeking CPU confirmation, thereby reducing notification overhead while maintaining learning capability.
2Speed
If the switch creates an association in the FDB immediately upon receiving a packet with a new source MAC address, then packet forwarding can begin immediately, but the association may be incorrect and cause routing errors
Solution Approach 1:
The switch creates a preliminary association entry in the forwarding database with a temporary status when a new source MAC address is detected. This allows packet forwarding to begin immediately using this temporary entry, while the switch simultaneously sends a notification to the CPU for final approval. The association is confirmed or corrected based on CPU response, ensuring both speed and accuracy.
Data Source
AI summary
A method, apparatus, and computer-readable media for a switch comprising a plurality of network ports and a central processing unit (CPU) interface comprises receiving, on one of the network ports, a packet comprising a source media access control (MAC) address; sending, to the CPU interface, a request to approve an association between the one of the network ports and the source MAC address when no request to approve the association between the one of the network ports and the source MAC address has been sent to the CPU interface; and sending, to the CPU interface, the request to approve the association between the one of the network ports and the source MAC address when an association between the source MAC address and a different one of the network ports has been approved.


