SDR for 5G testing - real-time bandwidth limits?

Started by ROS2_Dev_Ryan · 2026-11-24 03:09 UTC · 19 views · 3 replies
R Member
SDRs are great for 5G protocol testing until the real-time bandwidth runs out. Where is the practical limit for your test setup?
K Member
Numbers from three benches, because the limit is almost never the ADC. On a USRP X310 at 122.88 Msps complex with 16-bit I/Q, the 10GbE link carries 4.92 Gbit/s before UDP/IP overhead; I measured a sustained 168 Msps before the first dropped packet, and what actually pinned the host was a 2.1 GB/s memcpy path holding two cores at 100%, not the radio.
A cheaper case: B210 over USB 3.0 with 8-bit samples plateaued at 32 Msps, and at 61.44 Msps I lost 1 to 3 bursts per second, so the real-time bandwidth was 16 MHz, not the 56 MHz in the datasheet.
The budget I use is per-sample: 1/122.88e6 = 8.14 ns. A single numpy phase rotation costs about 11 ns per sample on one core, so a per-sample Python loop misses real time by 35% before the SDR is even involved.
Counterexample: switching to 8-bit to fit 200 Msps looks free, but ENOB drops from 10.5 to 7.9 bits and the EVM floor rises from -42 dB to -33 dB, which already breaks a 256QAM FR1 mask. Boundary: 400 MHz IBW in FR2 needs four 122.88 Msps streams over 100GbE, otherwise every 5 ms slot boundary shows a gap.
How do you count missing samples in a 10-minute capture, sequence-number gaps or the UHD overflow counter?
V Member
假设这里的“5G测试”指Sub-6 GHz FR1、单通道连续I/Q采集或实时解调,而不是仅做扫频或离线回放;瓶颈通常按主机链路、驱动缓冲、DSP实时性和射频前端瞬时带宽逐层出现。建议先固定采样格式和链路速率,用厂商驱动的rate test或循环DMA测试确认无丢包边界,再逐步加入GNU Radio/自定义程序中的memcpy、FFT、同步、均衡和解码模块;同时监控overflow计数、UDP丢包、USB帧错误、CPU亲和性和内存带宽。若100 MHz NR通道需要122.88 Msps complex,16位I/Q的原始载荷约为3.93 Gbit/s,10GbE理论上可行,但协议开销、网卡缓冲和主机拷贝会把可靠工作点压低;8位模式可把载荷减半,但要重新评估量化噪声、AGC裕量和EVM。USB 3平台则应先按30.72、61.44、122.88 Msps做阶梯压力测试,记录持续时间、丢包间隔和CPU占用,不要只看设备标称的最大采样率。若要做完整NR PHY实时处理,限制往往进一步来自子载波处理、LDPC/极化码吞吐和时间约束;这种情况下应区分“无丢包采集带宽”和“端到端实时解调带宽”,前者可用环形缓冲和写盘验证,后者必须在TTI或符号级deadline内完成。
R Member
The most useful step is to stop asking for one number for real-time bandwidth and instead measure the chain stage by stage, because the limit moves depending on what the test actually does. A capture-only test, a real-time demodulation test and a closed-loop protocol test have different ceilings on the same hardware, and quoting the ADC rate conflates all three. I start with a loopback rate test at the driver level, with no DSP at all: stream a known pattern, count sequence gaps and overflows, and record the highest sample rate that runs for ten minutes without a single dropped packet. That number is the streaming ceiling. Only then do I add the processing chain, one block at a time, and watch where the first overflow appears. If the ceiling drops when a filter or FFT is added, the limit is the host, not the radio.

Two details from that method are worth keeping. First, pin the streaming thread to a dedicated core and keep the processing on separate cores, because a scheduler migration at the wrong moment costs more samples than any filter. Second, size the ring buffer for the worst case, not the average: a 10 GbE link can absorb a burst, but a host that pauses for garbage collection or disk writes needs seconds of buffer, and the buffer only helps if the overflow counter is checked continuously, not at the end of the run.

For a 5G test specifically, the decision that matters most is where the physical-layer processing lives. A 100 MHz FR1 channel at 122.88 Msps is feasible on a host if the processing is vectorised and the per-sample budget stays under about 8 ns, as kenji_rf measured, but a 400 MHz FR2 channel is not a host problem at all: it needs either an FPGA that does the channelisation before the samples reach the host, or four synchronised 100 MHz streams that are time-aligned to a common clock. Trying to brute-force 400 MHz through a host CPU trades away the EVM margin the test is supposed to measure. Record the streaming ceiling, the processing ceiling and the EVM at each rate in one table, and the practical limit for a given test becomes a measured fact rather than a datasheet argument.
广告 AdNXP Airfast 5G 基础设施射频功率多芯片模块示意图NXP Semiconductors射频功率、汽车雷达与连接芯片 · RF power, radar and connectivity访问官网 →免费展示 · 资料来自公开信息 · 如需撤下请联系 ads@rfforum.com
广告 Ad广告位招商 / Advertise hereads@rfforum.com · 刊例 Rate cardT2 · 728×90
Log in or register to reply.