# VidBlock: A Web3.0-Enabled Decentralized Blockchain Architecture for Live Video Streaming
## 4 Experiment and Evaluation
### Performance Test
#### 4.2.1 Main Process Performance Evaluation  
Figure 7 presents a comprehensive analysis of latency across different global regions for VidBlock operations. The analysis consists of two subfigures:  
* (a) Region-wise ping test results;
* (b) Total latency breakdown for VidBlock operations in various relay regions. (a) Region-Wise Ping Test Results  
Figure 7a displays the baseline latency (ping test latency) between the following regions: Seoul, Tokyo, California, and Frankfurt. These results indicate the network delay solely based on geographical distance, which serves as a foundational metric for understanding potential latency in VidBlock operations. * Seoul shows the lowest latency at 8 ms, with minimal delay, reflecting close proximity and strong network infrastructure. * Tokyo follows with moderately low latency at 39 ms, though higher than Seoul due to the slightly greater distance. * California and Frankfurt exhibit relatively higher latencies of 143 ms and 242 ms, with Frankfurt showing the highest delay among the four regions. This high latency indicates the considerable geographical distance from Seoul and Tokyo. These baseline results provide a benchmark for assessing additional latency caused by specific VidBlock operations in each region. Figure 7b illustrates the total latency breakdown for VidBlock operations across four relay regions: Seoul, Tokyo, California, and Frankfurt. The latency for each region is further divided into key operational stages within the VidBlock framework:  
Figure 7: Comprehensive latency analysis for VidBlock operations across global regions: (**a**) region-wise ping test results and (**b**) total latency breakdown in various relay regions. * **ViB creator:*
* The ViB creator nodes are responsible for producing and initiating live streaming content in the VidBlock system. * IPFS upload: The ViB creator node plays a key role in making live streaming content discoverable on a decentralized network. During this step, the creator node uploads the metadata of the live streaming content to the IPFS (InterPlanetary file system) rather than the full content itself. This process generates a unique hash associated with the metadata, which serves as a reference for later retrieval by consumer nodes. The IPFS upload time represents the latency required for the creator node to upload this metadata and make it accessible on the IPFS network. * Hash transfer: After uploading the metadata to IPFS, the ViB creator node records the resulting hash on the blockchain. This hash transfer operation involves submitting the hash to the blockchain, where it is securely stored, providing a verifiable reference point for the content metadata. By recording the hash on the blockchain, the system ensures that consumer nodes can access the metadata reliably, with data integrity and immutability guaranteed. The hash transfer latency indicates the time taken for the creator node to complete this recording on the blockchain. * **ViB consumer:*
* The ViB consumer node is a viewer or client node in the VidBlock network, tasked with accessing and viewing the live streaming content created by the creator node. * Hash call: The ViB consumer node retrieves the content hash from the blockchain to locate the metadata of the streaming content. In this hash call operation, the consumer node requests the hash stored on the blockchain, which serves as a pointer to the content metadata on IPFS. The hash call latency measures the time required for the consumer node to obtain this hash from the blockchain. Once retrieved, the hash allows the consumer node to fetch the metadata from IPFS and display the available content in its streaming list. * IPFS download: After obtaining the content hash, the ViB consumer node uses it to download the metadata of the streaming content from IPFS. This IPFS download step enables the consumer node to access the metadata directly from the decentralized storage network, ensuring up-to-date information about the live stream.