viewof numMotors = Inputs.range([1, 1000], {
label: "Number of Motors",
step: 1,
value: 600
})
viewof signalsPerMotor = Inputs.range([1, 20], {
label: "Signals per Motor",
step: 1,
value: 10
})
viewof samplingRate = Inputs.range([1, 10000], {
label: "Sampling Rate (Hz)",
step: 1,
value: 1000
})
viewof edgeReduction = Inputs.range([1, 10000], {
label: "Feature Reduction Factor",
step: 1,
value: 1000
})
viewof unitCostPerGB = Inputs.range([0, 0.25], {
label: "Illustrative Transfer Cost per GB",
step: 0.01,
value: 0.09
})
bandwidthCalc = {
const samplesPerSecond = numMotors * signalsPerMotor * samplingRate;
const bytesPerSample = 4; // 32-bit float
const rawBytesPerSecond = samplesPerSecond * bytesPerSample;
const rawMBPerSecond = rawBytesPerSecond / 1_000_000;
const rawTBPerDay = (rawMBPerSecond * 86400) / 1_000_000;
const processedBytesPerSecond = rawBytesPerSecond / edgeReduction;
const processedKBPerSecond = processedBytesPerSecond / 1000;
const processedGBPerDay = (processedKBPerSecond * 86400) / 1_000_000;
const rawMonthlyCost = rawTBPerDay * 30 * 1000 * unitCostPerGB;
const processedMonthlyCost = processedGBPerDay * 30 * unitCostPerGB;
const reductionPercent = ((rawMonthlyCost - processedMonthlyCost) / rawMonthlyCost) * 100;
return {
samplesPerSecond: samplesPerSecond.toLocaleString(),
rawMBPerSecond: rawMBPerSecond.toFixed(2),
rawTBPerDay: rawTBPerDay.toFixed(2),
processedKBPerSecond: processedKBPerSecond.toFixed(2),
processedGBPerDay: processedGBPerDay.toFixed(2),
reductionFactor: edgeReduction.toLocaleString() + 'x',
rawMonthlyCost: rawMonthlyCost.toFixed(2),
processedMonthlyCost: processedMonthlyCost.toFixed(2),
reductionPercent: reductionPercent.toFixed(1)
};
}
html`<div style="background: #f8f9fa; border-left: 4px solid #E67E22; padding: 16px; margin: 20px 0; border-radius: 4px;">
<h3 style="color: #2C3E50; margin-top: 0;">Industrial IoT Data Bandwidth Calculator</h3>
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 16px 0;">
<div style="background: white; padding: 16px; border-radius: 4px; border: 1px solid #e0e0e0;">
<h4 style="color: #E74C3C; margin-top: 0; margin-bottom: 12px;">Raw Data (Pre-Processing)</h4>
<div style="display: grid; gap: 8px;">
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px; background: #fef5f1; border-radius: 4px;">
<span style="color: #7F8C8D;">Samples/sec:</span>
<span style="color: #E74C3C; font-weight: bold;">${bandwidthCalc.samplesPerSecond}</span>
</div>
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px; background: #fef5f1; border-radius: 4px;">
<span style="color: #7F8C8D;">Bandwidth:</span>
<span style="color: #E74C3C; font-weight: bold;">${bandwidthCalc.rawMBPerSecond} MB/sec</span>
</div>
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px; background: #fef5f1; border-radius: 4px;">
<span style="color: #7F8C8D;">Daily volume:</span>
<span style="color: #E74C3C; font-weight: bold;">${bandwidthCalc.rawTBPerDay} TB/day</span>
</div>
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px; background: #fef5f1; border-radius: 4px;">
<span style="color: #7F8C8D;">Monthly transfer index:</span>
<span style="color: #E74C3C; font-weight: bold;">$${bandwidthCalc.rawMonthlyCost}</span>
</div>
</div>
</div>
<div style="background: white; padding: 16px; border-radius: 4px; border: 1px solid #e0e0e0;">
<h4 style="color: #16A085; margin-top: 0; margin-bottom: 12px;">Processed Data (Post-Edge)</h4>
<div style="display: grid; gap: 8px;">
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px; background: #f0f9f7; border-radius: 4px;">
<span style="color: #7F8C8D;">Reduction:</span>
<span style="color: #16A085; font-weight: bold;">${bandwidthCalc.reductionFactor}</span>
</div>
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px; background: #f0f9f7; border-radius: 4px;">
<span style="color: #7F8C8D;">Bandwidth:</span>
<span style="color: #16A085; font-weight: bold;">${bandwidthCalc.processedKBPerSecond} KB/sec</span>
</div>
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px; background: #f0f9f7; border-radius: 4px;">
<span style="color: #7F8C8D;">Daily volume:</span>
<span style="color: #16A085; font-weight: bold;">${bandwidthCalc.processedGBPerDay} GB/day</span>
</div>
<div style="display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 8px; background: #f0f9f7; border-radius: 4px;">
<span style="color: #7F8C8D;">Monthly transfer index:</span>
<span style="color: #16A085; font-weight: bold;">$${bandwidthCalc.processedMonthlyCost}</span>
</div>
</div>
</div>
</div>
<div style="background: linear-gradient(135deg, #16A085 0%, #2C3E50 100%); color: white; padding: 20px; border-radius: 8px; text-align: center; margin-top: 16px;">
<div style="font-size: 14px; opacity: 0.9; margin-bottom: 8px;">Monthly Transfer Index Reduction</div>
<div style="font-size: 36px; font-weight: bold;">${bandwidthCalc.reductionPercent}%</div>
<div style="font-size: 14px; opacity: 0.9; margin-top: 8px;">Difference: $${(parseFloat(bandwidthCalc.rawMonthlyCost) - parseFloat(bandwidthCalc.processedMonthlyCost)).toFixed(2)}/month at the selected illustrative unit price</div>
</div>
</div>`Bandwidth Calculator for Case Study
Bandwidth Calculator for Case Study
animation
iiot
isa95
Try Increase Feature Reduction Factor while keeping Number of Motors and Sampling Rate (Hz) fixed. Then press Calculate bandwidth.
Observe After pressing Calculate bandwidth, watch processed bandwidth and daily volume as Feature Reduction Factor increases.
Explain Describe how Illustrative Transfer Cost per GB changes the monthly transfer index after you press Calculate bandwidth.
Technical boundaries. The calculation uses 4 bytes per sample and 30 days per month. Transfer outputs are a planning comparison at an illustrative unit price, not a current cloud-price quote.
Try it: Adjust the number of motors, signals per motor, sampling rate, feature-reduction factor, and illustrative transfer price to see how bandwidth assumptions change. Treat the output as a planning comparison, not a current cloud-price quote.
Key architectural decisions:
- Edge processing: FFT, statistical features, and event extraction at Level 2 reduce the data published beyond the control zone.
- Time-series storage: A historian or time-series database handles high-rate process values with timestamp, compression, and quality rules.
- OPC-UA server: Provides a governed namespace for selected values and context.
- Data lake: Raw or summarized data retention follows quality, compliance, and cost requirements.
- Security: Network segmentation, OPC-UA encryption, VLANs separate control and IT networks
Bandwidth calculation:
- 600 motors × 10 signals × 1 ms sampling = 6 million samples/second
- At 4 bytes/sample = 24 MB/second raw data
- After edge processing: 10 features per motor per second = 24 kB/second to cloud
- Reduction factor: 1,000×