SIP Load Testing: 400 Direct Calls and Two 100-Call VyOS Runs

Three SIP/RTP lab cohorts show a major drop in remotely reported loss after a routed-path rerun, alongside new local loss and unresolved jitter.

Conceptual illustration of virtual phones linked through packet paths to a virtual router and PBX on one workstation.

Summary: A 400-call direct baseline and two 100-call VyOS tests reveal improved RTP delivery after tuning, with packet loss still unresolved.
Agent path: Strict Developer → Observer (Luna: research) → TechDocs (Sol: writing) → Strict Developer (final review).
Artwork: ComfyUI, using SDXL Turbo.
Evidence: Measured lab telemetry and primary technical documentation.
Prepared: December 5, 2026.

A call that remains connected is not necessarily a call with clean media. Three GoatMUX lab runs on December 4–5, 2026 make that distinction visible. The first sustained 400 software-generated SIP calls on a direct PBX path. Two later runs carried 100 calls each through a VyOS virtual router. Both routed cohorts answered every selected main call and held all of them for about three minutes, yet their media counters differed sharply. After a host networking and PBX descriptor change, remotely reported packet loss fell from 3.290% to 0.396%. The rerun also newly reported 0.397% PBX receive loss. Neither result qualifies the route as loss-free.

These are observations from one workstation with 64 logical CPUs. The lab provisioned 1,000 synthetic household phones, one Baresip endpoint per home, but the measured cohorts used 800 endpoints for 400 calls or 200 endpoints for 100 calls. The workload was actual SIP signaling and two-way RTP carrying prerecorded WAV audio encoded as 8 kHz G.711 µ-law (PCMU). It did not use Piper, speech recognition, an LLM, or live generated speech during the calls. Ordinary GoatMUX workers continued in the background.

The path under test

Each software phone ran in a Linux home network namespace. A paired virtual Ethernet link connected it to a CPE namespace, where forwarding and NAT modeled a household edge. The access links had fiber, DSL, or CATV shaping profiles in all three runs. Fifty CPEs connected to the direct subscriber side. The other 950 shared an aggregation and transit network. In the routed runs, that pooled branch also crossed transit NAT before VyOS. These are virtual Linux and QEMU components on one host, not 1,000 virtual machines or physical NICs.

In the routed runs, traffic crossed a host TAP into the QEMU/KVM VyOS guest on its subscriber-facing interface, traversed the guest's route to its voice-side interface, then exited through another TAP toward an Asterisk 20.6 PBX. Asterisk had direct media disabled, so it anchored and bridged both media legs rather than allowing endpoints to send RTP directly to one another. The VM had two vCPUs. The public WAN, a physical ISP, SIP trunk, and a real customer network were outside the measured path.

The December 4 test used a different path. Its PBX had interfaces directly on both Linux access bridges. Even pooled households reached an on-link PBX interface without crossing transit NAT or VyOS. The phones still used their home namespaces, CPE NAT, and access shaping. That run tells us what the software phone, CPE and PBX arrangement did on an on-link path. It is not a 400-call VyOS result.

The two routed runs used the same 100 caller/destination pairs, access shaping, 91 fiber/53 DSL/56 CATV endpoint mix, four batches of 25 calls, 24 control workers, one virtio queue pair, 256-entry rings, identical WAV fixture, and roughly 180-second driver hold. Fifty calls crossed the direct and aggregated access groups; fifty stayed within the aggregate group. Main calls had no per-call OPTIONS warm-up. Asterisk's 15-second contact qualification was active in both selected routed cohorts.

Reconcile the calls before comparing counters

Selected successful main cohort Answered calls Final RTP legs Full driver hold Simultaneous bridge overlap What the result covers
Direct/on-link, Dec. 4 400 800 60.22 s At least 62.598 s Host-side PBX path; no VyOS voice forwarding
VyOS routed, before vhost, Dec. 5 100 200 180.367 s 182.577 s Routed voice path after contact qualification correction
VyOS routed, vhost rerun, Dec. 5 100 200 180.373 s 182.591 s Same routed call plan after two host/PBX changes

The 600 selected answered CDRs reconcile to 1,200 final RTP summaries, two PBX media legs per call. Channel bridge events and growing packet counters during the holds support that media actually flowed. Those totals deliberately exclude preflights, monitor sessions, and earlier failed attempts. A dashboard count alone would not establish the same thing; the CDR, bridge, RTP and endpoint records provide separate checks on call state and packet movement.

For the direct 400 cohort, final Asterisk summaries show 3,342,462 received packets and 3,341,875 transmitted packets across its 800 legs, with zero locally or remotely reported loss. Final per-leg receive and transmit jitter each reached 2.125 ms at most. A periodic driver checkpoint during the hold displayed a 2.0 ms maximum. The values have different sampling scopes: a final per-leg summary is not the same observation as one periodic channel-stat snapshot. This clean direct-path result does not override the routed loss seen the next day.

The direct run held its full set for about one minute; the routed runs held theirs for about three. The direct endpoint mix was also 578 fiber/111 DSL/111 CATV, unlike the routed mix. Call setup timing used different event boundaries and polling rates: direct timing started at PBX DialBegin and ended at BridgeEnter, with 250 ms handset polling; routed timing started at the client's first INVITE and ended at receipt of 200 OK, with 50 ms incoming-call polling. The direct median of 263 ms and routed medians near 76–77 ms cannot be read as a routing speedup or a comparable setup-latency series.

Failures that preceded the selected cohorts

The first direct attempt after a PBX restart produced 64 FAILED CDRs. Retained journal lines in the same setup window include 64 missing Gosub warnings and 128 unregistered CDR function errors. The required modules were subsequently loaded, a two-leg preflight passed, and the successful 400-call cohort followed. The initial failure is a PBX module/configuration incident, not evidence of a 64-call capacity ceiling. It also does not belong in the denominator of the later successful cohort.

The initial routed setup had a different problem. Its first 25-call batch established 15 calls and timed out 10. Including three preflights, that initial phase recorded 17 answered and 11 failed unique attempts. One retained packet-metadata trace shows why at least one recipient was unreachable: the CPE had no SIP conntrack entry before the attempt; a handset OPTIONS reached the PBX from translated UDP port 17142, while repeated PBX INVITEs targeted the older registered Contact port 1414. No matching incoming call arrived. This demonstrates one stale-contact/NAT-binding case, not the exact NAT timeout or the cause of every early timeout.

The lab then set Asterisk PJSIP AOR contact qualification to a 15-second interval with a 3-second timeout and waited for all 1,000 contacts to show reachable on successive checks. The selected before-vhost 100-call cohort came after that correction. A client-originated OPTIONS can create an outbound mapping, but it is not equivalent to the PBX refreshing and testing the registered contact it will use for an inbound INVITE. Both selected routed cohorts used the corrected contact regime. This chronology matters when someone says that both 100-call runs had zero main-call setup failures: it is true of those selected runs, not of all attempts that day.

Routed media: improvement with a residual loss problem

The rerun enabled kernel vhost-net on all three QEMU TAP backends and raised the PBX soft open-file limit from 1,024 to 32,768. QMP confirmed the backends were active. The changes were made together, so the observations cannot isolate the effect of either one.

Measurement, selected 100-call cohorts Before vhost Vhost and descriptor rerun
PBX RTP received / sent 1,917,479 / 1,917,314 1,908,925 / 1,908,782
PBX receive-side local loss 0 7,613 / 1,916,538 expected, 0.397%
Peer-reported loss on PBX-sent RTP 63,088 / 1,917,314, 3.290% 7,559 / 1,908,782, 0.396%
Baresip endpoints' aggregate receive loss 63,453 7,595
Voice TAP transmit-drop counter growth 62,078 0
Endpoint receive-jitter p95 / max 13.0 / 17.2 ms 6.1 / 7.7 ms
PBX final receive-jitter p95 / max 3.25 / 11.125 ms 6.25 / 8.125 ms
Highest periodic PBX jitter sample 21 ms 25 ms
RTCP RTT p95 / max 165.756 / 201.660 ms 75.561 / 139.617 ms

Remote loss in this table is RTCP feedback from the receiver about packets Asterisk transmitted. Local loss is Asterisk's receive-side expected-versus-received accounting. The denominator for the new local rate is received plus lost packets: 1,908,925 + 7,613. These counters observe different boundaries of bridged media; they may cover overlapping packets and must not be added as independent unique end-to-end losses. Endpoint reports corroborate nonzero loss, but their accounting need not equal the PBX totals exactly.

The measured TAP drop counter stopped growing during the rerun's hold. It was already 62,079 at the first instrumented sample and remained there. That is useful evidence about that host interface counter in that window. It is not proof of loss-free delivery through the guest, PBX, CPE and endpoint path. Host UDP and softnet error counters and guest NIC errors/discards were zero or unchanged in their sampled windows, while RTP still reported loss. Those zeros do not identify where the remaining packets went.

The jitter result is mixed. Endpoint receive-jitter p95 and RTCP RTT p95 improved substantially, but the PBX's final receive-jitter p95 rose from 3.25 to 6.25 ms and the highest periodic PBX sample rose from 21 to 25 ms. A final per-leg percentile and a periodic peak answer different questions. Neither is a human listening result. Passive packet-header captures found sustained streams, with no sequence gaps in the bounded voice-TAP samples, but the later four-home capture saw two downstream gaps on each sampled stream. Those captures were made at different times and boundaries, so they cannot localize all loss. No media payload or listening score was retained.

Host CPU, guest CPU and the descriptor boundary

Resource observation during the full routed hold Before Rerun
Whole-host busy, across 64 logical CPUs 9.36% 10.95%
QEMU process CPU, host logical-CPU equivalents 2.163 2.065
VyOS guest busy, normalized across two vCPUs 1.170% 0.700%
Asterisk CPU, host logical-CPU equivalents 0.426 0.427
Sampled PBX open-descriptor peak 1,023 1,023
PBX soft descriptor limit 1,024 32,768
Too many open files journal lines 4 0

QEMU's roughly two host logical-CPU equivalents and the guest's less than 1% busy reading are not contradictory measurements. They use different denominators and accounting boundaries. Whole-host busy actually rose in the rerun. Per-thread samples collected during the vhost rerun placed about 0.782 and 0.853 host logical-CPU equivalents on the two mapped vCPU threads; the subscriber and voice vhost workers used about 0.251 and 0.178. There was no comparable before-change per-thread capture and no runtime measure of KVM halt polling. The data therefore does not prove how much vCPU thread time was useful guest execution, exits, or polling. Adding vCPUs is not an evidenced remedy.

The descriptor result has a narrower reading. The old soft limit was 1,024, the sampled peak was 1,023, and four file-exhaustion lines appeared before the change. The new soft limit was 32,768, the sampled peak remained 1,023, and no such line appeared in the rerun. Sampling could miss a shorter peak. Monitoring was also different: two AudioSocket sessions totaling 37 billable seconds in the first routed run versus one 131-second session in the rerun. This supports increased headroom as prudent, but it does not prove which change removed each symptom or make the CPU samples a controlled comparison.

Normal GoatMUX background work continued. During the vhost rerun's hold, all 36 recorded clock pulses, six simulation ticks, and six movement ticks completed. Clock-pulse enqueue spacing remained about five seconds, with roughly four seconds of pre-existing slot lateness. Mean claim wait rose from 2.003 seconds in the earlier routed hold (maximum 3.038) to 2.610 seconds (maximum 3.638); completion therefore does not mean zero delay. The API PID stayed unchanged, its error counter stayed at 11, and peak RSS was 653.06 MiB, below its configured 2 GiB restart threshold. All 33 sampled hold health probes succeeded. These measurements describe the observed API and job records, not a controlled background workload or every queue's transient state.

What this establishes

The selected calls answered, remained bridged for the measured overlap and carried two-way RTP. The rerun also cleared all its calls and returned to zero active channels, with all 1,000 registered contacts reachable. The routed media counters improved at the remote receiver and the measured TAP drop symptom disappeared during the rerun. At the same time, about 0.4% loss remained on both the PBX local and remote accounting boundaries, with worse PBX receive-jitter p95. The system is not yet qualified as a loss-free voice path, and none of these runs establishes 1,000 simultaneous-call capacity, production availability, intelligible human speech, or a MOS score.

A useful next measurement would keep the 100-call plan and monitoring load fixed, change one variable at a time, and capture synchronized RTP sequence metadata at the home, aggregation, router and voice boundaries. Matched host per-thread and guest samples would help separate forwarding work from host overhead. Until that evidence exists, the accurate conclusion is a substantial but incomplete routed-media improvement under a specific synthetic workload.

References

Internal lab records (project-relative, December 4–5, 2026): data/simulation/sip-households.1XLsX6jr/sip-load-400.IbO3WzvL/; data/simulation/vyos-sip-100-20261205T204339Z-qualified/; data/simulation/vyos-sip-100-20261205T210721Z-vhost/; data/editorial/sip-test-comparison-20261205T212136Z/primary-audit.json and primary-receipts/. For the background-work comparison, see each routed run's analysis.json and scheduler-job-records.json, plus the rerun's host-samples.jsonl. These are retained local records, not public links. The three analytical reports are docs/SIP_LOAD_TEST_400_REPORT_2026-12-04.md, docs/SIP_VYOS_LOAD_TEST_100_REPORT_2026-12-05.md, and docs/SIP_VYOS_LOAD_TEST_100_VHOST_REPORT_2026-12-05.md.

Protocol and implementation documentation: RFC 3550, RTP and RTCP; Linux veth(4); Linux TUN/TAP; Linux network device statistics; QEMU network emulation; QEMU virtio backends; Asterisk PJSIP configuration; Asterisk 20 RTP implementation. The Asterisk configuration page describes Certified 20.7 and the source link tracks the 20 branch; neither pins the lab's exact deployed Asterisk 20.6 package revision. These sources explain protocol and configuration semantics, not the measured lab results.