To connect our theoretical model with the simulation setup, we link the performance metrics in the simulation and the analytical modeling presented before. In this section, we give an account of the evaluations we performed to evaluate the performance of the
PaB-PIF architecture. We run the simulator on a laptop with an 11th Gen Intel(R) Core(TM) i7-1165g7 2.80 GHz processor and 16 gigabytes of RAM. We compared
PaB-PIF against a traditional IoT-Fog-Cloud architecture that lacks blockchain infrastructure [
20]. The standard model has three layers: cloud, fog, and device. User devices create transactions and send them to a fog gateway at the edge of the network. The fog gateway processes the requests, coordinates the IoT devices in its area, and forwards tasks to a cloud broker. We used
Fobsim [
21,
22], a Python-based discrete-event simulator, to implement Fog-blockchain integration scenarios to evaluate our architecture. It models architecture behavior by processing events sequentially over time, handling transaction validation, block generation, and network communication with minimal computational overhead.
The reported latency values do not depend on the laptop hardware used for the simulation. Since a discrete event simulation has been performed, simulation results depend only on the simulator setup and not on the hardware it runs. Of course simulation time is affected by the computational power available to simulation. On the other hand, values obtained as simulation outcome depends on the type of machines assumed in the simulated system. In a real-world system or on dedicated servers, the latency values would be much lower when better processing power is assumed. However, the performance trends and the differences between the mutable and immutable blockchains would remain the same. These trends depend on the network size and the cryptography rules, not just the hardware.
5.4. Implementation Results
In this section, we explain the implementation results for the PaB-PIF architecture and other architecture in the mentioned scenarios. First, we explain the evaluation of different attack rates.
As first step, we evaluated the
PaB-PIF architecture fog layer latency, which uses the chameleon method with a Fog-enabled IoT architecture without any security mechanism. The IoT architecture without blockchain has significantly lower latency (5.04 s) compared to
PaB-PIF (mutable blockchain with chameleon hashing redaction), because it does not require blockchain-related computations such as cryptographic hashing, consensus validation, and redaction processing. In contrast,
PaB-PIF latency is much higher (ranging from 35 s to 55 s) due to transaction validation delays, miner competition, and consensus overhead, which have computational and communication bottlenecks. The confidence interval (CI) for
PaB-PIF latency is significant because blockchain operations can be highly variable, depending on network congestion, block finalization times, and adversarial interference. Meanwhile, IoT latency has a very small CI across all attack rates since it follows a deterministic execution model without blockchain delays; it has consistent task completion times regardless of network conditions or attack levels.
Table 3 shows the fog layer latency for a non-blockchain IoT architecture and the chameleon hashing redaction method.
We also evaluated the
PaB-PIF architecture cloud layer latency, which uses the SHA-256 method with the IoT architecture. The IoT architecture without blockchain exhibits consistently lower latency (60 s) than
PaB-PIF (immutable blockchain using SHA-256) because it processes tasks directly without blockchain-related overhead.
PaB-PIF latency is significantly higher (ranging from 117 s to 152 s) due to computationally expensive cryptographic hashing (SHA-256), consensus mechanisms, and transaction verification, all of which have additional processing and communication delays. The confidence interval (CI) for
PaB-PIF is significant, especially at
,
, and
attack rates, because blockchain operations depend on variable factors such as miner availability, block validation times, and network conditions. As a result, it causes fluctuations in latency. In contrast, IoT latency has an extremely small CI, remaining nearly constant across all attack rates, as it follows a deterministic execution model without blockchain constraints; it has stable task execution and minimal processing variation.
Table 4 shows the cloud layer latency for a non blockchain IoT architecture and SHA-256 method for immutable blockchain.
Third experiment evaluated the
PaB-PIF architecture Fog layer throughput, which uses the Chameleon reduction method with the IoT architecture. The IoT architecture without blockchain achieves significantly higher throughput (47.56–47.64 TPS) compared to
PaB-PIF (mutable blockchain using chameleon hashing redaction, 5.16–6.89 TPS) because it processes transactions directly without the computational and communication overhead of blockchain.
PaB-PIF throughput is lower due to the additional time required for block creation, consensus validation, cryptographic hashing, and redaction operations. The confidence interval (CI) for
PaB-PIF is large because blockchain processing is highly variable, depending on factors such as miner workload, block finalization time, and attack disruptions. In contrast, IoT throughput has a very small CI, remaining stable across all attack rates since transactions are processed straightforwardly and deterministically without waiting for block confirmation or consensus. Accordingly, it leads to minimal variation in performance.
Table 5 indicates the Fog layer throughput for a non blockchain IoT architecture and chameleon method for mutable blockchain.
Our fourth experiment evaluated the
PaB-PIF architecture cloud layer throughput, which uses the SHA-256 method with the IoT architecture. The IoT architecture without blockchain achieves consistently higher throughput (3.99 TPS) compared to
PaB-PIF (immutable blockchain using SHA-256, 1.71–2.06 TPS) because it processes transactions directly without the computational overhead of blockchain.
PaB-PIF throughput is significantly lower because of the time-consuming processes of SHA-256 hashing, consensus mechanisms, block validation, and transaction finalization, which have delays in confirming transactions. The confidence interval (CI) for
PaB-PIF is significant, particularly at
,
, and
attack rates, because blockchain transaction processing time varies due to miner competition, block propagation delays, and attack disruptions affecting consensus efficiency. In contrast, IoT throughput remains stable with an extremely small CI across all attack rates. Its transactions are processed deterministically without waiting for blockchain-related validation. As a result, it has consistent throughput across different scenarios.
Table 6 indicates the cloud layer throughput for a non blockchain IoT architecture and SHA-256 for immutable blockchain.
We evaluated the
PaB-PIF architecture fog layer tamper resistance, which uses the chameleon method with the IoT architecture, in the fifth simulated scenario. The
PaB-PIF architecture (mutable blockchain with chameleon hashing redaction) demonstrates a consistent tamper resistance of
across all attack rates, with a narrow confidence interval of 0.57, 0.59, showing that the blockchain mechanism provides a stable level of protection against unauthorized modifications. The immutability feature of chameleon hashing controlled redaction and prevented arbitrary tampering. In contrast, the IoT architecture without blockchain or security defence mechanisms has a tamper resistance of 0 across all attack rates, meaning it is fully vulnerable to attacks, as there are no cryptographic safeguards, consensus validation, or data integrity enforcement. The CI for IoT tamper resistance is also 0.
Table 7 indicates the fog layer tamper resistance for a non blockchain iot architecture and chameleon method for mutable blockchain.
Finally, we evaluated the
PaB-PIF architecture cloud layer tamper resistance, which uses the SHA-256 method with the IoT architecture. The
PaB-PIF architecture (immutable blockchain using SHA-256) demonstrates an extremely high tamper resistance of
across all attack rates, with a negligible confidence interval, indicating near-perfect protection against unauthorized modifications. This is due to the strong cryptographic integrity of SHA-256, coupled with the immutability of the blockchain, which prevents data from being altered once recorded. In contrast, the IoT architecture without blockchain has a tamper resistance of 0, meaning it is completely vulnerable to attacks, as there are no intrusion detection systems (IDSs) or security defense mechanisms.
Table 8 indicates the cloud layer tamper resistance for a non blockchain IoT architecture and SHA-256 method for immutable blockchain.
In
Table 7 and
Table 8, the tamper resistance stays at 0.58 for the fog layer and 0.99 for the cloud layer. These numbers do not change when the attack rate changes. This is because tamper resistance depends on the hash method, not on network traffic. In the fog layer, we use chameleon hashing to edit data. Here, changing one block only changes the next block (
), so the value stays at 0.58. In the cloud layer, SHA-256 connects each block to all older blocks (
), so the value stays high at 0.99. Changing the attack rate makes the network slower, but the hash security stays the same.
The difference in tamper resistance comes from how hashes connect blocks in each blockchain type. In the immutable blockchain (SHA-256), each block’s hash depends on all previous blocks. If someone changes one block, all following blocks become invalid, making tampering almost impossible. That is why its tamper resistance is . In the mutable blockchain (chameleon hashing), only the previous block’s hash connects to the current block. It controls changes without breaking the whole chain but makes tampering easier. Because of this, its tamper resistance is , which is lower than the immutable blockchain.
5.5. Quantitative Comparison with State-of-the-Art Designs
To provide a clear understanding of system performance, we first present a general comparison between our proposed architecture and existing models (
Table 1). Following this comparison, we analyze how varying attack rates impact specific performance metrics, including latency and throughput.
The comparison in
Table 1 is a qualitative one. It shows the design choices of the related works, but it does not give measured numbers. To add a measured comparison, we implemented two state-of-the-art baselines in the same simulation environment, with the same parameters of
Table 2 and the same metric definitions of
Section 5. In this way, the numbers can be compared in a fair way. We chose these two baselines because they cover the two main design ideas in the related works that are different from
PaB-PIF.
The first baseline is a fully mutable single-chain design (Baseline A). It keeps all the data on one public chain and allows on-demand redaction and deletion, in the same spirit as Tulkinbekov and Kim [
12] and Kottursamy et al. [
13], and it uses chameleon-hash style redaction [
23]. There is no fog offloading, so the consensus is global, but the cryptography is light. We implemented it with light hashing, global consensus, and an on-chain redaction step.
The second baseline is a hybrid on-chain and off-chain design (Baseline B), in the same spirit as Can et al. [
18]. Most operations run on a fast central off-chain database, and only periodic Merkle-root anchors are written on-chain with SHA-256. We implemented it with a fast off-chain write and a small amortized anchoring cost.
For reference, we also report our own measured results for the immutable chain (the immutable design used by Latif et al. [
14], Gomez et al. [
16], Hewa et al. [
17], and Rahman et al. [
15]), the mutable sidechain of
PaB-PIF, and the non-blockchain IoT base line [
20]. We ran every configuration with the same number of nodes, the same delays, and the same attack rates from
to
, and we report the average over all attack rates with a
confidence interval.
Table 9 shows the results.
The results show clear trade-offs. The non-blockchain baseline is the fastest and gives the highest throughput, but its tamper resistance is 0, so it has no protection at all. Baseline B (hybrid off-chain) is also fast, with about TPS and 9.89 s latency, because most work runs off-chain. But its tamper resistance is only about , because the sensitive data sits in one central off-chain database. This database is a single point of failure, and the blockchain can only detect a change, not stop it. Baseline A (single mutable chain) gives a medium speed of about TPS and 65.57 s latency. Its tamper resistance is about . It is a bit slower and a bit less safe than our mutable sidechain ( TPS, 44.32 s, ), because it runs one global chain and allows on-demand deletion, which makes a larger attack surface. The immutable chain is the safest, with a tamper resistance of about , but it is the slowest, with about TPS and 134.60 s latency, because of SHA-256 hashing and global consensus. So no single design is good in every metric at the same time.
PaB-PIF uses two engines in one architecture. It runs the mutable sidechain in the fog layer for speed and the immutable mainchain in the cloud layer for strong protection. So
PaB-PIF is faster than the immutable chain in the fog layer, it is safer than the hybrid off-chain baseline, and it avoids the larger attack surface of the single mutable chain. In this way,
PaB-PIF reaches a better balance than any single baseline. None of the related works in
Table 1 does this, because each of them uses only one design.
We also note one limitation. We implemented the two main alternative designs, but we did not re-implement each of the seven systems exactly. Their source code is not public, and they were built for different domains and report different metrics. For example, Tulkinbekov and Kim [
12] report delete latency and block height, not throughput in TPS, so their own numbers cannot be placed next to ours in a fair way. For this reason, we implemented the two design families that they share, under one common setup. A full per-system replication of all seven systems is a part of our future work.