Skip to main content
Cyber Defense StudioIoT Security and PrivacyExperimentsWorkspaces
IoTPSUT IoT Engineering StudioPrincess Sumaya University for Technology · Dr. Mohammad Alja’afreh
BLOCKCHAIN FOR IoT · BC-M14
Blockchain for IoT

IoT–blockchain integration research: architecture trade-offs

Dr. Mohammad Alja’afreh · Princess Sumaya University for Technology

SensorsBatch gatewayLedger
Design experiment & verify evidence →
BC-M14 · Laboratory mentorAsk about the current experiment, its algorithms or Python notebook.
Ask Dr. MohammadAdaptive practice

← Lecture-aligned module experiments · All blockchain labs · Setup wizard

Introduction

Scientific architecture · IoT integration, batching and finite-window ledger capacity

Finite-window ledger capacity — IoT arrivals / rate λ; Batch fill / n reports; Service / finite transaction capacity; Backlog / if arrivals exceed service; Measure / throughput, delay, drops
Scientific concept map: IoT report stream — Arrival rate; Batcher — Interval / batch size; Gateway — Queue and submission; Ledger service — Finite capacity; Trade-offs — Delay / throughput / cost.

Scientific foundations and analytical reasoning

Sampling produces records at a rate; batching converts them to transactions; service rate and finite queue capacity determine backlog.

Before operating the equipment or executing the program, derive the expected outcome using the required theoretical work in Experiment. Use the diagram to identify the variables and system boundaries.

BC-M14 · Academic orientation

Scope and objectives

Scope of the experiment

Compare direct on-chain samples, per-sample gateway digests and gateway batch commitments using identical workloads.

The focus of this experiment is to compare on-chain, off-chain and gateway integration architectures. Students then trace data and trust boundaries in an IoT system, and justify trade-offs using measurable storage, latency and privacy criteria. The Concepts view explains the operation before the practical work; the Simulation view is used to examine reference and changed inputs, not to substitute for actual measurements.

Learning objectives

  • Compare on-chain, off-chain and gateway integration architectures.
  • Trace data and trust boundaries in an IoT system.
  • Justify trade-offs using measurable storage, latency and privacy criteria.
  • Identify the configured inputs (Sensor nodes; Sample period (s); Observation window (s); Records per commitment; Ledger service (transactions/s)) and record the corresponding observed outputs with units where applicable.
  • Compare the reference calculation or decision with an independent implementation or authorized observation; state any discrepancy and the applicable model boundary.

Expected learning outcomes

On completion, students can compare on-chain, off-chain and gateway integration architectures, trace data and trust boundaries in an IoT system, and justify trade-offs using measurable storage, latency and privacy criteria.

Required deliverables

Submit the derivation or state trace for the named operation, the exact reference and changed configurations, the associated simulator or practical evidence, and a short validation statement addressing justify trade-offs using measurable storage, latency and privacy criteria. Separate predicted values from observations.

Prerequisite knowledge and related learning

Review the foundational terminology in Concepts and confirm readiness using the existing setup instructions. After completion, continue to Historical IOTA 2.0: Mana and access incentives.

Environment and experimental methodology

The listed browser model and experiment-specific local Python, Solidity or EVM workflow, where provided. Do not treat a model as a deployed ledger.

Begin with a manual prediction, record the baseline, change one independent condition at a time, and compare the resulting trace or measurements with the original prediction. Record observations and uncertainty separately from reference values. Follow the experiment’s specific procedure, safety limits, and acceptance checks.

Scientific theory · IoT ledger workload and queues

Sampling creates data records at an arrival rate; batching converts a group of records into a transaction. Finite transaction queues accumulate backlog when arrivals exceed processing capacity. Confirmation latency, data availability and per-record cost are different metrics. A parameter sweep must hold workload and policy explicit.

Worked example and engineering interpretation

At 20 records/s with batches of five, full batches arrive at 4 transactions/s. A service processing 3 transactions/s accumulates about one transaction/s under steady assumptions. Larger batches may reduce transaction rate while increasing waiting time and payload size.

Engineering principles · additional worked teaching example

Workload is nodes×observations per node. If 20 sensors sample every 2 s for 60 s excluding the endpoint, 600 records result. Batching 30 records per anchor uses 20 anchors; it reduces on-chain operations but increases wait time and reliance on off-chain availability.

From theory to experiment

Predict the reference result before operating the workbench; check the actual intermediate state, units and constraints. The existing simulation, implementation and procedure below are distinct sources of evidence.

Worked engineering reasoning and boundary conditions

Engineering reference configuration: Sensor nodes = 100; Sample period (s) = 5; Observation window (s) = 60; Records per commitment = 20; Ledger service (transactions/s) = 10; Pending transaction capacity = 100; Raw bytes/record = 64; On-chain data placement = commitment. In the classroom model, Generated samples = 1200; Generated transactions = 60; Committed transactions = 60; Dropped transactions = 0; Pending transactions = 0; On-chain payload bytes = 1920 B. Service occurs after arrivals each second; arrivals beyond the bounded pending queue are dropped. Partial batches remain at the edge. Discrete one-second service and finite queue, synchronous sensor sampling and explicit payload-only costs. No measured Ethereum/Fabric performance.

Use the diagram to follow the calculation or state progression. Keep the teaching configuration separate from the independent exercise values; compare observations with the actual model and implementation.

Concept animation · progressive data plot

Explore the teaching example independently of the simulator. Each step reveals an operation, data relationship or calculated state. The Simulation view has separate editable inputs.

IoT–blockchain integration research: architecture trade-offs: progressive data plot01.252.53.755Pending transacti…Dropped per secondServed per second0590

Step 1 of 7 · Observation 0

Observation 0

Pending transactions
0
Dropped per second
0
Served per second
5

Teaching example only; inspect live calculations or real practical evidence separately.

How to investigate IoT–blockchain integration research: architecture trade-offs

Compare direct on-chain samples, per-sample gateway digests and gateway batch commitments using identical workloads.

Analytical investigation means collecting an observation, identifying the mechanism, using a calculation or state trace to explain it, and checking your conclusion against evidence. Controlled comparison means changing one independent variable, holding the remaining relevant conditions constant, and measuring a dependent variable against a baseline. Experimental validation means comparing a predicted result to a reproducible observation or assertion; agreement inside a model does not certify hardware. Evidence-based reasoning connects a specific observation to a theoretical rule and states uncertainty, not merely an opinion. Performance characterization records a named metric and its units across conditions; sensitivity analysis changes one parameter across several values. A threat assessment links an asset, threat, consequence and evidence to a mitigation.

Experiment-specific guided practice

Objective: Compare direct on-chain samples, per-sample gateway digests and gateway batch commitments using identical workloads.

  1. Run 100 nodes, period 5 s, duration 60 s, batch 20 and service 10 tx/s. Confirm 1,200 samples and 60 complete transactions, and inspect the time-series queue.
  2. Set batch to 1. Compare transaction arrivals and ledger backlog; raw sample generation must not change.
  3. Use queue capacity 20 and service 5 tx/s with batch 1. Inspect dropped and pending transactions and verify generated = served + dropped + pending.
  4. Restore reference and choose raw placement; compare accepted ledger payload bytes with commitments and retained off-chain bytes.

Reference check: Sample count is conserved; batching reduces commitments using ceil(samples/batch). Overload grows backlog if arrivals exceed service.

Model boundary: Fixed payload 64 B/digest 32 B, no protocol overhead, gas, mining or empirical latency.

Independent task and submission evidence

2. Set batch to 1. Compare transaction arrivals and ledger backlog; raw sample generation must not change. Record the named input, prediction, actual output and one limitation; restore the original condition and repeat.

Before execution write the independent variable and its levels, dependent observation with units where applicable, baseline, controlled variables, measurement method and expected result. For a state machine use state/event/output rather than inventing a numeric metric. Record failures and repeat the baseline. A weak conclusion is “it works”; a supported conclusion names the changed setting, observed value/state, corresponding rule and one limitation.

TrialChanged settingFixed settingsPredicted resultActual observation / unitsEvidence / uncertainty
A: baselineReferenceRecordPredictRecordRecord
B: one changeRecordSame as APredictRecordRecord
A: repeatRestoreSame as APredictRecordRecord

Completion: submit the filled table, relevant simulator screenshot or terminal/notebook output, reasoning with units/assumptions, and one limitation. Preserve the independent assessment questions; this guide does not fill their answers.

Compare direct on-chain samples, per-sample gateway digests and gateway batch commitments using identical workloads.

Learning goals

  1. Explain the mechanism using the actual intermediate states in this experiment.
  2. Predict and verify the reference and modified conditions described below.
  3. Interpret the acceptance criteria and identify the limits of the model.

Module flashcards · 12 questions

Browse all 12 questions and explanations
What is the raw transaction rate?

Devices multiplied by samples per device per minute.

What does batching change?

The number of commitments, not the number of original samples.

What does ceil(samples/batch) count?

The number of batches including any partial last batch.

What happens if demand exceeds service capacity?

Backlog accumulates in the bounded workload accounting model.

Why hold workload constant when comparing architectures?

Otherwise differences cannot be attributed to the chosen storage or batching strategy.

Does a digest reduce the number of transactions if committed individually?

No. It reduces payload bytes but still generates one transaction per sample.

What does a partial batch require?

A final commitment for the remaining records.

What is omitted from payload byte estimates?

Protocol framing, storage overhead, indexes, signatures and execution costs.

How many samples per minute do 20 devices at six samples per minute produce?

120 samples per minute.

How many commitments are needed for 120 samples in batches of eight?

15 commitments per minute.

With 120 unbatched arrivals and capacity of 100 per minute, how much backlog grows in one minute?

20 transactions, assuming an initially empty queue.

Does batching eliminate the raw samples?

No, it reduces commitments while preserving the sample count.

Shared research workbenches · network designer & advanced studies
Concurrent-device simulation & Monte Carlo research
Distributed digital twin · topology, protocol & battery research