<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/dynamic-mac-learning-hardware-or-cpu-activity-ipspace-net-blog-bzdxn9vzw" -->

---
title: Dynamic MAC Learning: Hardware or CPU Activity? «...
description: Dynamic MAC learning in hardware switches is more nuanced than commonly assumed. Rather than a simple hardware-vs-CPU binary, most modern ASICs support both:...
canonical: https://daily.dev/posts/dynamic-mac-learning-hardware-or-cpu-activity-ipspace-net-blog-bzdxn9vzw
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Dynamic MAC Learning: Hardware or CPU Activity? « ipSpace.net blog | daily.dev
og:description: Dynamic MAC learning in hardware switches is more nuanced than commonly assumed. Rather than a simple hardware-vs-CPU binary, most modern ASICs support both:...
og:url: https://daily.dev/posts/dynamic-mac-learning-hardware-or-cpu-activity-ipspace-net-blog-bzdxn9vzw
og:image: https://api.daily.dev/og/posts/bZdxn9vzw.png
og:image:alt: Dynamic MAC Learning: Hardware or CPU Activity? « ipSpace.net blog
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Dynamic MAC Learning: Hardware or CPU Activity? « ipSpace.net blog

**[ipSpace.net Blog](https://daily.dev/sources/ipspace)** · 5 min read · 0 upvotes · 0 comments

## Summary

Dynamic MAC learning in hardware switches is more nuanced than commonly assumed. Rather than a simple hardware-vs-CPU binary, most modern ASICs support both: hardware can autonomously update MAC hash tables, but hash collision handling (e.g., cuckoo hashing) is complex enough that many implementations offload it to a CPU — either one embedded in the ASIC or the main NOS CPU. Broadcom ASICs, for example, offer configurable 'CPU managed learning' modes. In multi-ASIC or chassis environments, the NOS CPU gets involved regardless to propagate MAC entries across all ASICs. EVPN's BGP-based MAC learning is contrasted with this traditional approach, where a L2manager communicates with L2RIB/BGP to distribute RT-2 routes. The post synthesizes community input from FPGA designers, ASIC engineers, and networking experts, including a pointer to the public Broadcom Jericho2 programming guide.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.ipspace.net/2023/03/dynamic-mac-learning-hw-cpu>

## Questions this post answers

### Is dynamic MAC learning done in hardware or does it require CPU involvement in modern switches?

It depends on the ASIC and configuration. Many modern ASICs can update MAC hash tables autonomously in hardware, but hash collision handling is complex enough that implementations often offload it to a CPU — either one embedded in the ASIC or the main NOS CPU. Broadcom ASICs offer configurable modes including 'CPU managed learning'. In chassis or multi-ASIC switches, the NOS CPU is always involved to propagate entries across all ASICs.

_Network engineers evaluating switching architectures track these ASIC-level tradeoffs on daily.dev._

### Why would a switch punt MAC learning to the CPU instead of handling it entirely in the ASIC?

Two main reasons: hash collisions and security policy. As the MAC table fills, collision resolution algorithms like cuckoo hashing become too complex for efficient hardware implementation, so many ASICs hand off to a CPU. Additionally, some deployments — particularly at the access/edge — require software to vet every new MAC-to-port entry before updating the forwarding table, to prevent DoS or security issues.

_Developers and engineers building or evaluating switching platforms find discussions like this on daily.dev._

## Similar posts on daily.dev

- [Designing an Ethernet Switch ASIC](https://daily.dev/posts/designing-an-ethernet-switch-asic-rmi8a0xuo) · Hacker News · 0 upvotes · 0 comments
- [Back to the Metal: AI’s Networking Shift](https://daily.dev/posts/back-to-the-metal-ai-s-networking-shift-jeye2krkn) · The New Stack · 1 upvotes · 0 comments
- [Converged north-south networks: the critical path for AI success](https://daily.dev/posts/converged-north-south-networks-the-critical-path-for-ai-success-heod2pxf8) · Cisco · 0 upvotes · 0 comments

---

Tags: [#fpga](https://daily.dev/tags/fpga)

[View this post on daily.dev](https://daily.dev/posts/dynamic-mac-learning-hardware-or-cpu-activity-ipspace-net-blog-bzdxn9vzw)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Dynamic MAC Learning: Hardware or CPU Activity? « ipSpace.net blog","url":"https://daily.dev/posts/dynamic-mac-learning-hardware-or-cpu-activity-ipspace-net-blog-bzdxn9vzw","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/dynamic-mac-learning-hardware-or-cpu-activity-ipspace-net-blog-bzdxn9vzw"},"datePublished":"2026-08-11T08:54:53.498Z","dateModified":"2026-08-11T09:16:45.351Z","description":"Dynamic MAC learning in hardware switches is more nuanced than commonly assumed. Rather than a simple hardware-vs-CPU binary, most modern ASICs support both:...","image":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","thumbnailUrl":"https://media.daily.dev/image/upload/s--ZrL_HSsR--/f_auto/v1722860399/public/Placeholder%2006","isAccessibleForFree":true,"articleSection":"ipSpace.net Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"ipSpace.net Blog","logo":"https://media.daily.dev/image/upload/s--xS7E82MT--/f_auto,q_auto/v1786438303/logos/ipspace?_a=BAMAMicg0","url":"https://daily.dev/sources/ipspace"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/dynamic-mac-learning-hardware-or-cpu-activity-ipspace-net-blog-bzdxn9vzw","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"fpga","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"ipSpace.net Blog","item":"https://daily.dev/sources/ipspace"},{"@type":"ListItem","position":3,"name":"Dynamic MAC Learning: Hardware or CPU Activity? « ipSpace.net blog"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/dynamic-mac-learning-hardware-or-cpu-activity-ipspace-net-blog-bzdxn9vzw#faq","mainEntity":[{"@type":"Question","name":"Is dynamic MAC learning done in hardware or does it require CPU involvement in modern switches?","acceptedAnswer":{"@type":"Answer","text":"It depends on the ASIC and configuration. Many modern ASICs can update MAC hash tables autonomously in hardware, but hash collision handling is complex enough that implementations often offload it to a CPU — either one embedded in the ASIC or the main NOS CPU. Broadcom ASICs offer configurable modes including 'CPU managed learning'. In chassis or multi-ASIC switches, the NOS CPU is always involved to propagate entries across all ASICs. Network engineers evaluating switching architectures track these ASIC-level tradeoffs on daily.dev."}},{"@type":"Question","name":"Why would a switch punt MAC learning to the CPU instead of handling it entirely in the ASIC?","acceptedAnswer":{"@type":"Answer","text":"Two main reasons: hash collisions and security policy. As the MAC table fills, collision resolution algorithms like cuckoo hashing become too complex for efficient hardware implementation, so many ASICs hand off to a CPU. Additionally, some deployments — particularly at the access/edge — require software to vet every new MAC-to-port entry before updating the forwarding table, to prevent DoS or security issues. Developers and engineers building or evaluating switching platforms find discussions like this on daily.dev."}}]}
```

