Skip to content
All projects

Performance testing of a system with encrypted communication from industrial devices

Project write-up

The client is described by industry and scale, without a name. KPI figures are targets agreed with the client after a baseline measurement.

In brief

Problem
Standard load testing tools support neither the devices' protocol nor its encryption.
Approach
We build a device simulator as an extension of the load testing tool, implementing the protocol and the encryption layer according to the manufacturer's specification, with test keys.
Goal
Throughput at the peak profile: ≥ 150% of the forecast peak; Error rate under load: < 0.1%.

Client context

Industrial plants connect the IT world with the OT world: controllers, SCADA, and MES systems run for years, and every line stoppage costs money. Software changes must respect the rhythm of production. The client is a manufacturer of industrial and automotive technology with a server system that collects data from thousands of field devices over an encrypted, proprietary protocol.

Challenge

Standard load testing tools support neither the devices' protocol nor its encryption. The manufacturer does not know how many devices the new server version can serve at once, and the planned rollout will cover a much larger fleet.

Requirements and constraints

  • The Cyber Resilience Act (EU Regulation 2024/2847) imposes security obligations across the whole life cycle on manufacturers of products with digital elements: vulnerability management, SBOM, and reporting of actively exploited vulnerabilities. (source)
  • IEC 62443 (security of industrial automation systems) divides an installation into zones and conduits, defines security levels (SL), and sets requirements for component suppliers. Every IT–OT connection must pass through a controlled conduit. (source)
  • ISO/IEC 27001:2022 requires a documented information security management system: risk analysis, a statement of applicability, access control, and supplier management. Every element of the project must be traceable to a control from Annex A. (source)
  • Project constraints: work only on anonymized or synthetic data outside production, access to systems through the client's infrastructure, and every element delivered with documentation that the client's team can take over.

Approach and architecture

We start performance testing with a load model, not a tool: from production logs and business data we derive a traffic profile (the transaction mix, peaks, distribution over the day), and only then write scripts. Every test has a hypothesis and a pass criterion, and we analyze results together with infrastructure metrics and APM traces to pinpoint the bottleneck, not just to state that the system is slow.

We build a device simulator as an extension of the load testing tool, implementing the protocol and the encryption layer according to the manufacturer's specification, with test keys. The simulator reproduces real communication patterns: mass reconnection after a network outage, periodic reports, and configuration updates.

Key elements of the solution:

  • A custom protocol plugin in the load testing tool with encryption support
  • Test-only keys and certificates, generated per environment
  • "Connection storm" scenarios after network recovery
  • Analysis of server CPU usage for cryptography

Team and roles

RoleCountResponsibility
Performance test engineer2load model, scripts, bottleneck analysis
Embedded software engineer (C/C++)1device software, HIL tests
Test manager (ISTQB Advanced)1test strategy, entry and exit criteria, quality reporting
Product owner and domain experts (client side)as neededpriorities, business decisions, acceptance

Phased schedule

PhaseWeeksDeliverable
1. Load model and criteria1–2traffic profile, SLA, test plan
2. Preparing scripts and data3–5scripts, data generator, monitoring
3. Test cycles and tuning6–9cycle reports, list of bottlenecks
4. Confirmation test10–11SLA compliance report
5. Performance regression in CI12–12automatic thresholds in the pipeline

Technology stack

Apache JMeter with a custom plugin (Java), Gatling, Grafana, Prometheus, Wireshark.

Risks and how we mitigate them

RiskHow we mitigate it
Performance test environment smaller than productionan environment differences table, scaling results only where behavior is linear, a confirmation test on production in a maintenance window
Delays in hardware and device deliveriessimulators and emulators in testing, earlier orders, HIL tests on prototypes
Undocumented behavior of the legacy systemcharacterization tests (golden master) before the change, old vs. new result comparisons

Measurable goals and KPIs

The values below are targets that we set with the client after a baseline measurement in the first phase.

KPITargetHow it is measured
Throughput at the peak profile≥ 150% of the forecast peakload test
Error rate under load< 0.1%load test, application logs
p95 response time of key transactionswithin the SLA, e.g. ≤ 2 sAPM and test reports

Lessons learned and good practices

The mass reconnection scenario of devices is the most demanding and the most often skipped. Cryptography can dominate server CPU usage, so it has to be measured separately. A load profile built from real logs matters more than the choice of tool.

Why B2B.net

B2B.net S.A. has operated since 2015 and has worked for more than 50 brands, mostly where audit is an everyday matter: in banks, insurance, and critical infrastructure. We are an accredited exam center, so testing methodology is not a claim for us but a working standard. We give a first proposal of specialists within 24 hours, and a team can start within 5 business days.

Acceptance criteria

Every phase ends with a formal acceptance against criteria agreed at the start. In this deployment, acceptance covers: traffic profile, SLA, test plan; scripts, data generator, monitoring; cycle reports, list of bottlenecks; SLA compliance report; automatic thresholds in the pipeline. Final acceptance requires a KPI measurement report against the starting point, complete documentation handed over to the client's team, and a list of recommendations for the next stage, with an estimate of the cost and risk of each.

Next step

Let's talk about your project. Within 24 hours we will get back to you with a quote or a proposal of engineers; a team can start within 5 business days. Contact: office@b2bnetwork.pl.

What would this look like for you?

Book a 30-minute call. We will prepare a plan for the first weeks and a team matched to your system.

Let's talk

B2Bnetwork · B2B.net S.A. · accredited exam center. We describe clients by industry and scale, without names.

More projects: Manufacturing