# Blockchain Based Delay and Energy Harvest Aware Healthcare Monitoring System in WBAN Environment
## 5 Experimental Results and Discussion
### Simulation Environment  
The proposed B-DEAH model is constructed using the OMNeT++ simulator, which is suitable for body area networks. The programming language supported in this tool is C++. Furthermore, WBAN is modeled by the network description (NED) language, and it uses the special network module MiXiM. It provides useful built-in modules such as battery, channels, packets, messages, mobility, mac, PHY, network models, application layers and several examples for WBAN. The role of the physical WBAN environment is to establish the data transmission from the source to the destination. In this work, five WBANs are considered, and each WBAN has distinct characteristics as follows,  
* Communication Type: Off-body, on-body, body to body, off to off;
* Scenario Condition: Same room. The simulation environment is illustrated in Figure 5. The following table represents the simulation configuration for the proposed B-DEAH model. Furthermore, a detailed description of body sensors for a single BAN configuration is represented in Table 4.  
Figure 5 shows the simulation setup for the proposed B-DEAH using the OMNeT++ simulator. Figure 6 shows the network construction, and their components are represented. Likewise, each BAN user is connected with the two sink nodes for both emergency and \begin{table}
\begin{tabular}{c c} \hline \hline
**Parameters** & **Specifications** \\ \hline \multicolumn{2}{c}{**Simulation Parameters**} \\ \hline Simulation Environment & \(1000\times 1000\) m \\ Number of WBANs & 1-5 \\ Number of Body Sensors (Each BAN) & 12 \\ MAC type & IEEE 80215.6 MAC \\ Sensing Interval & 0.1 s \\ Multiple access technique & CSMA/CA \\ Packet size & 512 bits \\ Bandwidth & 20 MHz \\ Transmission rate & 20 kpbs \\ Modulation (Data Rate) & DQPSK (1000 Kpps) \\ Energy consumption & 0.5 mW \\ Simulation time & 50 s \\ Number of Sink Nodes & 2(1-Emergency, 2-Periodical) \\ Transmission Rate & 5 Packets/s \\ Number of PBA (each WBAN) & 5 \\ MAC Header Length & 32 \\ Number of Frame Slots & 20 \\ Slot Duration & 1 s \\ Buffer Capacity & 32 \\ Block Size & 2 KB \\ Block Chain Type & Linear/Non-Linear \\ Key Size & 80 bits \\ Passwords & Alphabets/integer \\ \hline \multicolumn{2}{c}{**System Setup**} \\ \hline Operating System & Windows 7 (32-bit) \\ Processor & Dual core \\ RAM & 4 GB and above \\ \hline \hline \end{tabular}
\end{table} 
Table 4: B-DEAH configurations. Figure 5: Network topology. periodical data transmission via PBA. Based on the sensed data transmitted to the sink nodes, the analysis was taken into account for the proposed work. The performance analysis, such as _QoS_, security and energy efficiency, is described in the following section in detail. The considered body sensors used for the implementation of B-DEAH are adjusted with the dynamic threshold values for data type differentiation. Therefore, emergency and periodical values for each body sensor are computed and depicted in Table 5.  
**Use case (Cardiac Vascular Disease):** Body sensors are specifically developed for the purpose of collecting, monitoring, diagnosing and controlling human medical information. From the body sensors, various health symptoms are periodically collected or in an emergency state. A heart attack is a serious threat in almost all countries. Among all the types of heart attacks, cardiovascular disease is the most prevalent disease worldwide. For this disease, the death rate is growing gradually every year. In this paper, the application of _cardiac vascular disease_ is demonstrated for patients. The prototype testing uses distinct sensors such as Heart BPM, ECG, blood pressure, glucose, cholesterol, etc. The B-DEAH architecture is designed with node clustering, data aggregation, and secure data transmission. In the PBA, emergency events are predicted and transmitted to the cloud server and corresponding authority (ambulance, doctor or clinics) via the emergency sink node. Sequential communication is performed, which is started at the body sensors.