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.
Step 1 of 7 · Observation 0
Observation 0
Pending transactions
0
Dropped per second
0
Served per second
5
Observation 10
Pending transactions
0
Dropped per second
0
Served per second
5
Observation 20
Pending transactions
0
Dropped per second
0
Served per second
5
Observation 30
Pending transactions
0
Dropped per second
0
Served per second
5
Observation 39
Pending transactions
0
Dropped per second
0
Served per second
0
Observation 49
Pending transactions
0
Dropped per second
0
Served per second
0
Observation 59
Pending transactions
0
Dropped per second
0
Served per second
0
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.
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.
Set batch to 1. Compare transaction arrivals and ledger backlog; raw sample generation must not change.
Use queue capacity 20 and service 5 tx/s with batch 1. Inspect dropped and pending transactions and verify generated = served + dropped + pending.
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.
Trial
Changed setting
Fixed settings
Predicted result
Actual observation / units
Evidence / uncertainty
A: baseline
Reference
Record
Predict
Record
Record
B: one change
Record
Same as A
Predict
Record
Record
A: repeat
Restore
Same as A
Predict
Record
Record
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
Explain the mechanism using the actual intermediate states in this experiment.
Predict and verify the reference and modified conditions described below.
Interpret the acceptance criteria and identify the limits of the model.
Module flashcards · 12 questions
Browse all 12 questions and explanationsWhat 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.
Loading experiment-specific apparatus…Previous model / additional reference tools
Loading computational workbench…
Independent theoretical exercises
Before the simulation or practical, solve both experiment-specific tasks. List the given inputs, show the intermediate calculation or state trace, identify the expected observation, and state a limitation. Show formulas and intermediate calculations where relevant, or draw the requested state/sequence diagram. These are independent classroom fixtures; where they differ from the reference configuration below, do not treat them as measured values. Compare your predictions with the corresponding experiment afterwards.
01 · Predict and derive using the given inputs
For 100 nodes sampling every 5 s over a 60 s interval excluding endpoint, calculate records, batches of 20 and mean arrival rate. Compare with 10 tx/s.
Engineering method — 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. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
02 · Compare or justify using evidence
Calculate raw bytes at 64/record versus 32-byte commitments; discuss batch waiting time and finite-buffer drops during a burst.
Engineering method — 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. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
03 · Experimental design
Experimental design · Independent work
40 sensors sample every 3 s for 90 s (exclude endpoint). Compare 10 versus 40 records per anchor. Count anchors and identify controlled variables.
Experimental design — 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. Apply this method to the assigned values independently; compare your reasoning with the relevant simulator or practical implementation.
Work is saved locally when browser storage is available. Export it for submission; no remote upload or automatic grade is assigned.
Expanded independent theoretical exercise bank
Progress from calculation and interpretation to diagnosis and controlled engineering design. Complete the questions without opening the simulation first; show intermediate steps.
Intermediate · Explain a changed-input result
Independent theoretical exercise · BC-M14-01
Use the 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), but change Sensor nodes = 102. The model reports Generated samples = 1224. Explain the governing rule and assumptions that make this output plausible; identify an independent verification method.
Intermediate · Quantitative comparison
Independent theoretical exercise · BC-M14-02
Two model observations of Generated samples are 1200 (reference) and 1224 (changed condition). Compute signed change and, when the reference is nonzero, percentage change. Explain why units matter.
Intermediate · Interpret a technical trace
Independent theoretical exercise · BC-M14-03
For Sample period (s) = 7, the model supplies this excerpt from Per-second queue accounting:
Second · Samples · New tx · Served · Pending · Dropped · Unflushed records
0 · 100 · 5 · 5 · 0 · 0 · 0
1 · 0 · 0 · 0 · 0 · 0 · 0
2 · 0 · 0 · 0 · 0 · 0 · 0
3 · 0 · 0 · 0 · 0 · 0 · 0
4 · 0 · 0 · 0 · 0 · 0 · 0
Compute the range (maximum minus minimum) of the Samples column in these rows. Identify the maximum observation. Do not extrapolate beyond these rows.
Advanced · Reverse reasoning
Independent theoretical exercise · BC-M14-04
An observation is Generated samples = 900. Candidate A uses 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. Candidate B changes the listed settings (Sample period (s) = 7) and keeps the remaining settings fixed. Which is consistent with the observation? If both can explain it, say what additional evidence is required.
Advanced · Diagnose a reported mismatch
Independent theoretical exercise · BC-M14-05
A student configures Observation window (s) = 62 while preserving all other reference settings, but copies the reference report of Generated samples = 1200. Evaluate whether the report is justified. Identify the first configuration/output check to perform.
Challenging · Design a controlled verification
Independent theoretical exercise · BC-M14-06
Design a controlled comparison for IoT–blockchain integration research: architecture trade-offs using reference 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 and test Sensor nodes = 102. Specify the changed setting(s), measured metric Generated samples, controls, repetitions, an acceptance check and what evidence can distinguish an actual implementation from the model.
Step-by-step experimental procedure
Compare edge aggregation and raw versus commitment storage under finite workload and ledger-service constraints.
1 · Reference workbench configuration
Use the named reference workbench and its reference inputs. Additional live instruments may have different controls; use the matching instrument. Record virtual and practical results separately.
Sensor nodes100
Sample period (s)5
Observation window (s)60
Records per commitment20
Ledger service (transactions/s)10
Pending transaction capacity100
Raw bytes/record64
On-chain data placementcommitment
2 · Perform the investigation in order
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.
Set batch to 1. Compare transaction arrivals and ledger backlog; raw sample generation must not change.
Use queue capacity 20 and service 5 tx/s with batch 1. Inspect dropped and pending transactions and verify generated = served + dropped + pending.
Restore reference and choose raw placement; compare accepted ledger payload bytes with commitments and retained off-chain bytes.
Increase batch size above the first sampling burst; inspect buffered samples and explain batching delay.
Propose which IoT devices act as light clients, gateway/edge aggregators or full nodes. Discuss privacy, throughput, storage and latency trade-offs together.
Model boundary: Discrete one-second service and finite queue, synchronous sensor sampling and explicit payload-only costs. No measured Ethereum/Fabric performance.
Controlled investigation · reproducible evidence
Method. Use the existing reference workbench configuration and the named controlled changes below. A controlled variable stays fixed while the independent variable is intentionally changed; the dependent variable is the resulting observed output. First predict each trial from the Concepts page. Run the baseline, then change only the specified setting and record the outcome. For deterministic traces one execution per case and a repeated verification are sufficient; for timing or stochastic measurements repeat at least five times, recording each run, median and range. Reset to the reference state between independent comparisons.
Trial
Independent change
Dependent observation
Batched reference
Use reference inputs above
Record actual outcome and units
Unbatched
Records per commitment = 1
Record actual outcome and units
Congested queue
Records per commitment = 1; Pending transaction capacity = 20; Ledger service (transactions/s) = 5
Record actual outcome and units
Raw on chain
On-chain data placement = raw
Record actual outcome and units
Evidence: attach the completed comparison table, one trace or screenshot per condition, and actual practical terminal/hardware evidence where applicable. Explain any prediction mismatch and distinguish modeled behavior from measured results.
Download this notebook and open Google Colab. Select File → Upload notebook and choose the downloaded .ipynb.
Read the Markdown instructions before each executable cell. Use a Python runtime, run cells from top to bottom, and resolve imports if necessary.
Perform the baseline and controlled changes. Save the notebook with actual outputs and your written interpretation.
Execution scope: Fixed payload 64 B/digest 32 B, no protocol overhead, gas, mining or empirical latency. Default computational cells passed isolated local Python execution; physical equipment and live services require separate verification.
01Instructions · Markdown
# BC-M14 · IoT–blockchain integration research: architecture trade-offs
**PSUT IoT Engineering Studio — Dr. Mohammad Alja’afreh**
## 1. Scientific objective
Compare edge aggregation and raw versus commitment storage under finite workload and ledger-service constraints.
Complete the analytical worksheet in the portal first. Record your predictions before running this notebook. This notebook is a bounded local computational investigation; use the portal’s separate WSL, hardware or Remix procedure for real interfaces.
02Instructions · Markdown
## Experiment-specific preparation
Compare direct on-chain samples, per-sample gateway digests and gateway batch commitments using identical workloads.
**Reference procedure (use the matching simulator/WSL tool where named, not an unrelated service):**
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.
5. Increase batch size above the first sampling burst; inspect buffered samples and explain batching delay.
**Evidence:** Sample count is conserved; batching reduces commitments using ceil(samples/batch). Overload grows backlog if arrivals exceed service.
**Boundary:** Fixed payload 64 B/digest 32 B, no protocol overhead, gas, mining or empirical latency.
03Instructions · Markdown
## 2. Reference configuration and investigation
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.
5. Increase batch size above the first sampling burst; inspect buffered samples and explain batching delay.
6. Propose which IoT devices act as light clients, gateway/edge aggregators or full nodes. Discuss privacy, throughput, storage and latency trade-offs together.
Run cells in order; do not substitute model results for physical measurements.
04Instructions · Markdown
## 3. Calculate arrivals and batch transaction count.
05Python · executable cell
PYTHON · Code cell
# =====================================================================
# BC-M14 | Code cell 01 | IoT–blockchain integration research: architecture trade-offs
# Purpose: 3. Calculate arrivals and batch transaction count.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
# Set nodes for the next computation or reference condition.
nodes=100; period=5; duration=60; batch=20
# Set samples for the next computation or reference condition.
samples=nodes*(duration//period)
# Check the expected invariant so a mismatch fails visibly instead of appearing successful.
assert samples==1200 and samples//batch==60
## 4. Compare queue backlog with a 10-transaction/s teaching server.
07Python · executable cell
PYTHON · Code cell
# =====================================================================
# BC-M14 | Code cell 02 | IoT–blockchain integration research: architecture trade-offs
# Purpose: 4. Compare queue backlog with a 10-transaction/s teaching server.
# Inputs: the explicit fixture/settings below and any preceding cell state.
# Output: inspect printed values, returned records or assertions; record evidence.
# =====================================================================
import math
# Repeat the same operation for each configured input so observations are comparable.
for batch in (1,20):
transactions=math.ceil(samples/batch)
print(batch,transactions,max(0,transactions-10*duration))
## Experimental analysis and submission
1. Record the reference input, predicted output and actual result.
2. Modify one independent variable and run the relevant cells again.
3. Explain the result using the theory and identify model limitations.
4. Save the notebook with outputs and retain the separate theoretical worksheet.
**Your derivation and conclusion:**
(Complete independently.)
09Instructions · Markdown
## Guided reasoning and evidence
A controlled comparison changes one independent input while keeping the other relevant inputs fixed; the dependent variable is the recorded output. Use this lab’s reference condition above.
**Independent task:** 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.
| Trial | Input/configuration | Prediction | Observation | Evidence / limitation |
|---|---|---|---|---|
| A | Reference | | | |
| B | Changed input | | | |
| A repeat | Reference | | | |
A conclusion is supported only when it cites the recorded values or observed states and explains them with the experiment theory.
Formative assessment
Explain the following without looking at the simulation output, then reveal the reference response.
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.
Applied task
Increase device count to 80; record capacity overload and queued transactions per minute.
Submit your reference and modified observations with a justification.
The original tutor and adaptive examination retain their existing 102-lab catalogue. Use the module-specific study questions above and copy this contextual prompt into your chosen AI assistant if needed.
Explain the engineering mechanism in BC-M14 · IoT–blockchain integration research: architecture trade-offs. My task: Compare direct on-chain samples, per-sample gateway digests and gateway batch commitments using identical workloads.. Acceptance: 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.. Ask me for my actual observations and distinguish model predictions from real measurements.
Shared research workbenches · network designer & advanced studiesConcurrent-device simulation & Monte Carlo research