ExplainExplain why Messages per second changes the base traffic rate after you press Calculate bandwidth overhead.
Technical boundaries. Bandwidth uses fixed message overhead for each policy. CPU time requires measured per-message timings; policy selection alone is not compliance.
OPC-UA Security Policy Comparison
Compare security policies to understand the tradeoffs between performance and protection level.
policyData = ({"None": {encryption:"None",signing:"None",keySize:0,overhead:0,cpuFactor:1.0,security:0,color:"#E74C3C",recommendation:"Only isolated lab testing. Do not use on plant or enterprise networks.",compliance:"No production assurance; no signing, encryption, or endpoint identity." },"Basic128Rsa15": {encryption:"AES-128-CBC",signing:"HMAC-SHA1",keySize:1024,overhead:48,cpuFactor:1.15,security:40,color:"#E67E22",recommendation:"Legacy exception only. Document scope, owner, and replacement path.",compliance:"Compatibility profile; review against current site policy before use." },"Basic256Sha256": {encryption:"AES-256-CBC",signing:"HMAC-SHA256",keySize:2048,overhead:64,cpuFactor:1.25,security:75,color:"#16A085",recommendation:"Commonly supported baseline when site policy permits it.",compliance:"Policy selection alone is not compliance; roles, trust lists, audit, and change control still matter." },"Aes256-Sha256-RsaPss": {encryption:"AES-256-CBC",signing:"HMAC-SHA256",keySize:4096,overhead:80,cpuFactor:1.40,security:100,color:"#2C3E50",recommendation:"Prefer for new critical systems when endpoint support and timing tests are acceptable.",compliance:"Stronger cryptographic profile; still requires lifecycle, authorization, and audit evidence." }})policy = policyData[selectedPolicy]// Calculate traffic volume; CPU time requires measured per-message timings for each policy.baseTrafficBytesPerSecond = messageSize * messagesPerSec // bytes/s// Calculate bandwidth overheadbaseBandwidth = (messageSize * messagesPerSec *8) /1_000_000// MbpssecureBandwidth = ((messageSize + policy.overhead) * messagesPerSec *8) /1_000_000// MbpsbandwidthOverhead = ((secureBandwidth - baseBandwidth) / baseBandwidth) *100html`<div style="background: #f8f9fa; border-left: 4px solid ${policy.color}; padding: 20px; margin: 20px 0; border-radius: 4px; font-family: Arial, sans-serif;"> <h4 style="margin: 0 0 15px 0; color: ${policy.color}; font-size: 18px;">${selectedPolicy}</h4> <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px;"> <div style="background: white; padding: 12px; border-radius: 4px;"> <div style="font-size: 11px; color: #7F8C8D; text-transform: uppercase;">Encryption</div> <div style="font-size: 16px; font-weight: bold; color: #2C3E50;">${policy.encryption}</div> </div> <div style="background: white; padding: 12px; border-radius: 4px;"> <div style="font-size: 11px; color: #7F8C8D; text-transform: uppercase;">Signing</div> <div style="font-size: 16px; font-weight: bold; color: #2C3E50;">${policy.signing}</div> </div> <div style="background: white; padding: 12px; border-radius: 4px;"> <div style="font-size: 11px; color: #7F8C8D; text-transform: uppercase;">RSA Key Size</div> <div style="font-size: 16px; font-weight: bold; color: #2C3E50;">${policy.keySize||'N/A'} bits</div> </div> <div style="background: white; padding: 12px; border-radius: 4px;"> <div style="font-size: 11px; color: #7F8C8D; text-transform: uppercase;">Message Overhead</div> <div style="font-size: 16px; font-weight: bold; color: #2C3E50;">${policy.overhead} bytes</div> </div> </div> <div style="background: white; padding: 15px; border-radius: 4px; margin-bottom: 15px;"> <div style="font-size: 12px; color: #7F8C8D; margin-bottom: 10px;">Relative Protection Score</div> <div style="background: #ecf0f1; height: 24px; border-radius: 12px; overflow: hidden; position: relative;"> <div style="background: ${policy.color}; width: ${policy.security}%; height: 100%; border-radius: 12px; transition: width 0.3s;"></div> <div style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-weight: bold; color: white; text-shadow: 0 1px 2px rgba(0,0,0,0.3); font-size: 12px;">${policy.security}%</div> </div> </div> <div style="display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px;"> <div style="background: white; padding: 12px; border-radius: 4px; text-align: center;"> <div style="font-size: 11px; color: #7F8C8D; text-transform: uppercase;">Base Traffic Rate</div> <div style="font-size: 20px; font-weight: bold; color: #E67E22;">${baseTrafficBytesPerSecond.toLocaleString()} bytes/s</div> </div> <div style="background: white; padding: 12px; border-radius: 4px; text-align: center;"> <div style="font-size: 11px; color: #7F8C8D; text-transform: uppercase;">Bandwidth Overhead</div> <div style="font-size: 20px; font-weight: bold; color: #E67E22;">+${bandwidthOverhead.toFixed(1)}%</div> <div style="font-size: 11px; color: #7F8C8D; margin-top: 4px;">${secureBandwidth.toFixed(4)} Mbps</div> </div> </div> <div style="background: ${policy.security<50?'#FADBD8': policy.security<75?'#FCF3CF':'#D5F4E6'}; padding: 12px; border-radius: 4px; margin-bottom: 10px;"> <div style="font-weight: bold; margin-bottom: 5px; color: #2C3E50;">Recommendation:</div> <div style="color: #2C3E50; font-size: 14px;">${policy.recommendation}</div> </div> <div style="background: white; padding: 12px; border-radius: 4px; border: 1px solid #E8E8E8;"> <div style="font-weight: bold; margin-bottom: 5px; color: #2C3E50; font-size: 12px;">Assurance Note:</div> <div style="color: #7F8C8D; font-size: 13px;">${policy.compliance}</div> </div></div>`
ImportantSecurity Policy Selection Guidelines
For critical infrastructure (power plants, pharmaceuticals, water treatment): use the strongest site-approved security policy that both endpoints support, then validate timing and recovery behavior on representative hardware.
For standard industrial applications (manufacturing, logistics): prefer policies with signing, encryption, managed application certificates, named user identities, and tested trust-list operations.
Avoid Basic128Rsa15 unless a legacy device forces a time-bounded exception with compensating controls and an owner.
Never use “None” in any production environment. Measure the overhead of secure modes instead of assuming the insecure mode is operationally necessary.