Enterprise Switch Memory Buffers Explained: A Complete Guide

Enterprise Switch Memory Buffers Explained: A Complete Guide

Last Updated: November 28, 2026

Quick Summary

Switch memory buffers are the temporary storage areas inside an Ethernet switch that hold packets when the egress port they need is busy, absorbing speed mismatch, traffic bursts, and congestion without losing frames. Buffer memory splits into packet admission and memory allocation, and can be port-based or shared across all ports.

  • Packet buffering stores frames between the ingress port that received them and the egress port that will transmit them.
  • Port-based buffering guarantees fairness but wastes memory on idle ports; shared memory buffering is more efficient but one flow can starve others.
  • Size buffers against the worst burst you expect, not the average load, since average load never fills a buffer.
  • Deep buffers help bursty, non-latency-sensitive traffic but worsen bufferbloat for interactive, voice, and control-plane traffic.
  • Pull per-queue drop counters first, because aggregate interface counters hide queue-level overflow.
Need deep buffers and 100G ports?See the CRS518-16XS-2XQ-RM: 2× 100G QSFP28, 16× 25G SFP28, 1.2 Tbps switching capacity.
View CRS518-16XS-2XQ-RM

Table of Contents

What Switch Memory Buffers Actually Do

Switch memory buffers are the temporary storage areas inside an Ethernet switch that hold packets when the egress port they need is busy. Without them, a switch would have to drop traffic the instant two flows collide. According to Purdue University research presented at ACM SIGCOMM 2026, packet buffers in data-center switches are shared across switch ports specifically to make better use of available switch memory.

A white networking device with four Ethernet ports and a PoE uplink port, shown at an angle on a plain background.
A white networking device with four Ethernet ports and a PoE uplink port, shown at an angle on a plain background.

Here is the short version: buffer memory is where a network switch absorbs speed mismatch, traffic bursts, and congestion without losing frames.

Why a Switch Cannot Forward Instantly

Forwarding takes time. The switch must receive enough of an Ethernet frame to read the destination MAC address, run the lookup, and commit the frame to an egress queue. If that queue is already full because the destination port is saturated, the frame waits. Buffer memory is the waiting room.

The Two Jobs of Buffer Memory

Buffer management splits into two distinct functions, and conflating them causes most sizing mistakes we encounter:

  1. Packet admission decides which arriving packets get to occupy buffer space at all.
  2. Memory allocation decides where in the buffer those admitted packets are written.

A switch that admits aggressively but allocates poorly will starve well-behaved ports. A switch that allocates generously but admits without discipline will let one heavy flow consume the whole pool.

How Packet Buffering Works From Ingress to Egress

Packet buffering is the process of storing frames between the ingress port that received them and the egress port that will transmit them. The sequence is consistent across store-and-forward switches:

  1. A frame arrives on an ingress port and the PHY hands it to the switch ASIC.
  2. The ASIC parses the header and performs the forwarding lookup.
  3. The frame is written to buffer memory and assigned to an egress queue.
  4. The scheduler selects that queue and the frame is transmitted.
  5. Buffer space is released back to the pool.

Ingress buffering absorbs bursts arriving faster than the lookup pipeline can process them. Egress buffering absorbs bursts arriving faster than the destination link can transmit them. Egress is where most real congestion lives, because that is where a 25 Gigabit ingress stream meets a 10 Gigabit uplink. For teams that want to see this behavior on real hardware, our Hap Ac configuration walkthrough shows Layer 3 switching and inter-VLAN routing in practice.

hAP ac²
hAP ac²

Port-Based vs Shared Memory Buffering

Port-based buffering gives each switch port a fixed, dedicated slice of buffer memory. Shared memory buffering pools the same memory across all ports and lets any port draw from the total.

Under port-based buffering, a single congested port can only use its own allocation. If that allocation is exhausted, frames drop even when the rest of the switch has gigabytes of memory sitting idle.

Buffer Architecture Allocation Strength Weakness
Port-based Fixed per port Predictable fairness Wasted memory on idle ports
Shared memory Dynamic pool High memory efficiency One flow can starve others
Hybrid with thresholds Pooled plus per-queue caps Balances both Requires tuning

Shared Memory Buffering and Buffer Allocation

Shared memory buffering is a design in which all switch ports draw from one common packet buffer pool, with allocation governed by admission rules and per-queue limits.

Broadcom's Smart-Buffer technology paper by S. Das and colleagues identifies the switch memory management unit, including packet-buffer resources, as a key element in addressing network-design challenges.

What most guides miss is that shared memory does not automatically mean fair memory.

Ethernet Switch Buffer Size and Bandwidth-Delay Calculations

Ethernet switch buffer size is the total packet memory available in the switch, usually quoted in megabytes or gigabytes, and it must be large enough to cover the bandwidth-delay product of the links it serves.

The bandwidth-delay product is the amount of data in flight on a link at any moment. It equals link speed multiplied by round-trip time. If a switch must absorb a burst while a downstream link drains, the buffer needs to cover that in-flight volume or frames drop.

A Simple Sizing Example

Take a 10 Gigabit link with a 1 millisecond round-trip time. The bandwidth-delay product is 10 Gbps × 0.001 s = 10 Megabits, or roughly 1.25 megabytes. A switch port with only a few hundred kilobytes of dedicated buffer cannot hold that much in flight, so a burst will overflow the queue. Shared memory buffering helps here, because the pool can be far larger than any single port's slice.

The practical rule: size buffers against the worst burst you expect, not the average load. Average load never fills a buffer.

Cut-Through Switching and What It Costs You in Buffer Headroom

Cut-through switching begins forwarding a frame before the entire frame has arrived, which cuts latency but reduces the switch's ability to absorb bursts. Store-and-forward waits for the full frame, checks it, and then forwards, which costs latency but keeps buffer behavior predictable.

The cost of cut-through is buffer headroom. If you are troubleshooting latency on live hardware, our guide on how to troubleshoot high latency on managed switches walks through the diagnostic sequence.

Buffer Behavior Under Modern Workloads

Modern workloads break buffer assumptions that held for years. Microbursts from many-to-one traffic patterns, storage replication, virtualization, and AI cluster fabrics all produce short, intense bursts that average utilization statistics never reveal. What separates a switch that survives these workloads from one that does not is rarely raw buffer size. It is the queue-management and congestion-control machinery wrapped around that buffer.

Why Bursts Beat Averages

A link can average 30 percent utilization and still drop frames every few seconds if traffic arrives in dense microbursts. A 100 Gigabit port transmits roughly 12.5 GB per second, so a 100-microsecond burst can deliver about 1.25 MB before the scheduler has a chance to drain anything. If the egress queue cannot absorb that burst, frames drop even though the link looks idle on a five-minute graph.

The Queue-Management Toolbox

Every enterprise switch exposes some subset of these mechanisms. Knowing which ones matter for your traffic shape is more useful than comparing buffer capacity on a datasheet.

  • Tail drop. The simplest policy: when the queue is full, drop everything that arrives. It is cheap and predictable, but it punishes well-behaved flows equally with aggressive ones and can cause global synchronization when many TCP flows back off together.
  • Weighted Random Early Detection (WRED). Starts dropping a fraction of packets before the queue is completely full, which signals TCP senders to slow down early and avoids the full-queue cliff. It works best for TCP-heavy traffic and poorly for latency-sensitive UDP.
  • Explicit Congestion Notification (ECN). Marks packets instead of dropping them when the queue crosses a threshold, letting ECN-capable senders reduce their rate without retransmission. ECN is increasingly the default for data-center fabrics because it avoids the retransmission cost of drop-based signaling.
  • Priority Flow Control (PFC). Pauses a specific priority class on a link when its buffer crosses a threshold, rather than dropping. PFC is what makes lossless Ethernet possible for storage and RDMA traffic, but it can propagate congestion upstream and, if misconfigured, cause head-of-line blocking across the fabric.

These mechanisms interact. Enabling PFC without per-queue caps can turn a single congested flow into a fabric-wide pause storm. Enabling ECN without tuning thresholds can leave the buffer doing nothing useful. The buffer is the resource; the queue-management policy is what decides who gets it and when.

When Deep Buffers Help and When They Hurt

Deep buffers help when the traffic is bursty but not latency-sensitive: backup windows, storage replication, and bulk transfers that can tolerate queueing delay in exchange for avoiding drops.

The practical rule most practitioners apply: size buffers for the burst you expect, then use queue management to keep latency-sensitive traffic out of the deep queue entirely. A switch with a modest buffer and well-tuned ECN and QoS will outperform a switch with a huge buffer and tail-drop-only policy on almost every modern workload.

Matching Architecture to Workload

For east-west data-center traffic and AI fabrics, look for switches that expose per-queue ECN thresholds, PFC per priority, and buffer occupancy telemetry. For service-provider edge and aggregation roles, look for shared-memory architectures with per-queue caps and WRED, because the traffic mix is broader and the cost of a single starved queue is higher.

The switch that handles your workload is the one whose buffer architecture and queue-management policy match your traffic shape, not the one with the biggest number on the datasheet.

Diagnosing Buffer Problems in Production

Buffer problems rarely announce themselves as "buffer problems." They surface as latency spikes, retransmissions, application stalls, and frame drops that do not correlate with average link utilization.

The workflow below is the one most practitioners converge on after a few painful incidents. It moves from cheapest signal to most expensive, so you rule out the obvious before you start capturing traffic.

Step 1: Separate Aggregate Counters From Queue Counters

Aggregate interface counters hide queue-level overflow. A 25 Gigabit uplink can show 40 percent average utilization while one priority queue inside it is pinned at its threshold and dropping. Pull per-queue drop counters first:

  • Output queue drops per port and per queue (sometimes labeled tx-queue-drops or qos-drop).
  • Tail-drop vs. WRED/ECN drop counters, counted separately where the ASIC exposes them.
  • PFC pause frames transmitted and received per priority, if priority flow control is enabled.
  • Buffer occupancy high-water marks per queue, if the platform exposes them.

If the switch only reports aggregate drops, that is itself a finding: you cannot tune what you cannot see, and the platform may not be suitable for a latency-sensitive role.

Step 2: Localize the Congestion Point

Drops cluster in two recognizable patterns:

  • Single egress port drops with many ingress sources feeding it. This is classic egress congestion or a many-to-one pattern (storage replication, backup jobs, AI collective traffic). The fix is usually queue policy or path diversity, not more buffer.
  • Drops spread across many egress ports that share an uplink or a shared-memory pool. This points to head-of-line blocking or a shared-pool exhaustion event, where one aggressive flow consumed memory other ports needed. The fix is per-queue caps and admission control, not a bigger pool.

A third pattern worth checking: drops that appear only during short windows (sub-second) and drain immediately. Those are microbursts. They are normal behavior for a correctly sized buffer and are usually harmless unless the dropped traffic is latency-sensitive.

Step 3: Correlate Drops With Burst Windows

Compare drop timestamps against known burst sources: backup schedules, VM migration events, storage sync jobs, and application batch windows. A queue that hits its threshold during a two-second window and drains immediately is behaving as designed.

Watch out: tuning queue thresholds without first capturing the burst profile usually makes things worse, because you are adjusting a limit you have not measured against. Capture first, then tune.

Step 4: Measure Latency, Not Just Drops

Drops are the visible failure. Queueing delay is the invisible one. Sample egress queue depth over time and convert it to time-in-queue using the egress link rate.

If latency rises while drops stay flat, the buffer is doing its job but the queueing policy is wrong for the traffic. That is a QoS and queue-management problem, not a buffer-size problem.

Step 5: Confirm With a Controlled Test

Before and after any change, run a controlled burst test against the suspect path: a known burst size, a known duration, and a known destination. Compare queue occupancy and drop counters before and after.

A common pattern is that teams replace a switch to "get more buffer" when the real issue was a single queue with no per-queue cap letting one flow starve the rest.

Choosing an Enterprise Switch With the Right Buffer Architecture

Choosing an enterprise switch comes down to matching buffer architecture to traffic pattern, then confirming the switch exposes the queue controls you need to manage it. Port density and switching capacity get the headlines, but buffer behavior decides whether the network stays stable under load.

For high-capacity deployments, the CRS518-16XS-2XQ-RM pairs 2× 100 Gigabit QSFP28 ports with 16× 25 Gigabit SFP28 ports and 1.2 Tbps switching capacity, with dual-redundant hot-swappable power supplies and fans. Teams that need more processing headroom should look at the CRS520-4XS-16XQ-RM, which adds a CCR-series CPU and 4 GB of DDR4 RAM across 16× 100 Gigabit ports. If you are still shortlisting, our roundup of high-performance network switches compares nine enterprise options side by side, and you can browse our MikroTik wholesale lineup for current availability.

CRS518-16XS-2XQ-RM
CRS518-16XS-2XQ-RM
CRS520-4XS-16XQ-RM
CRS520-4XS-16XQ-RM

Buffer architecture is the part of switch selection that rarely makes the datasheet comparison and almost always decides whether a deployment holds up under real traffic.

Frequently Asked Questions

What two types of memory buffering techniques are used by switches?

Switches use port-based buffering, where each port gets a fixed slice of memory, and shared memory buffering, where all ports draw from one common pool. Port-based buffering is predictable but wastes memory when a port sits idle. Shared memory buffering lets a busy port borrow capacity from idle ones, which is why most enterprise switches use it. Many designs combine both: a shared pool with per-port limits so one flow cannot consume everything.

How does shared memory buffering differ from port-based buffering?

In port-based buffering, each switch port owns a dedicated buffer, so a burst on one port cannot affect another, but unused memory on idle ports is stranded. Shared memory buffering pools the buffer across all ports and allocates it on demand, which handles traffic bursts and speed mismatches far better. The trade-off is that without per-port caps, one congested port can consume the pool and cause frame drops elsewhere. Shared memory buffering usually wins for enterprise and data-center workloads.

How much buffer memory does an enterprise switch need?

There is no single number. Size the buffer around the bandwidth-delay product of your links and the burstiness of your traffic. A 10 Gbps port sending into a 1 Gbps port can build a queue fast, so deeper buffers help at aggregation points and WAN edges. For dense 25G, 100G, and 400G fabrics, per-port buffer depth matters less than total shared capacity and how the switch allocates it. Check the vendor datasheet for total packet buffer and per-port allocation rules.

How do switch buffers help prevent packet loss during congestion?

When a destination port is busy, the switch holds incoming frames in buffer memory instead of dropping them immediately. That temporary storage absorbs traffic bursts and speed mismatches, so the switch can forward frames as soon as the egress port frees up. Once the buffer fills, queue overflow occurs and the switch drops frames. Buffers reduce loss during short bursts; they do not fix sustained oversubscription, which needs more uplink bandwidth or traffic management.

What is the difference between switch buffering and cut-through switching?

Buffering is about where frames wait when an egress port is busy. Cut-through switching is about when a switch starts forwarding: it reads only the destination MAC and forwards the frame immediately, cutting latency. Store-and-forward switching receives the whole frame, checks it, then forwards it. Cut-through lowers latency but cannot absorb bursts as well and passes bad frames. Many enterprise switches let you choose per port, so you can favor latency on some links and buffering on others.

When should I choose a switch with larger packet buffers?

Choose deeper buffers at aggregation and WAN edge points where fast ports feed slower ones, in storage and AI fabrics where bursts are large, and anywhere you see frame drops during short traffic spikes. Also look at total shared buffer capacity when you run many ports at high utilization. If your traffic is steady and uplinks are not oversubscribed, a shallow-buffer switch is fine and often cheaper. Match buffer depth to the workload, not to the biggest number on a datasheet.

Questions? Talk to Mikrotik Wholesale / BI-DISTRIBUTION