Performance Comparison of Hyper-V and KVM for Cryptographic Tasks in Cloud Computing
2024-03-13NaderAbdelKarimOsamaKhashanWaleedAbdulraheemMoutazAlazabHasanKanakerMahmoudFarfouraandMohammadAlshinwan
Nader Abdel Karim ,Osama A.Khashan ,Waleed K.Abdulraheem ,Moutaz Alazab ,Hasan Kanaker ,Mahmoud E.Farfoura and Mohammad Alshinwan,6
1Department of Intelligent Systems,Faculty of Artificial Intelligence,Al-Balqa Applied University,Al-Salt,1705,Jordan
2Research and Innovation Centers,Rabdan Academy,P.O.Box 114646,Abu Dhabi,United Arab Emirates
3Department of Information Systems and Networks,The World Islamic Sciences and Education University,Amman,11947,Jordan
4Department of Cyber Security,Isra University,Amman,1162,Jordan
5Faculty of Science and Information Technology,Al-Zaytoonah University of Jordan,Amman,11733,Jordan
6Middle East University Research Unit,Middle East University,Amman,11831,Jordan
ABSTRACT As the extensive use of cloud computing raises questions about the security of any personal data stored there,cryptography is being used more frequently as a security tool to protect data confidentiality and privacy in the cloud environment.A hypervisor is a virtualization software used in cloud hosting to divide and allocate resources on various pieces of hardware.The choice of hypervisor can significantly impact the performance of cryptographic operations in the cloud environment.An important issue that must be carefully examined is that no hypervisor is completely superior in terms of performance;Each hypervisor should be examined to meet specific needs.The main objective of this study is to provide accurate results to compare the performance of Hyper-V and Kernel-based Virtual Machine(KVM)while implementing different cryptographic algorithms to guide cloud service providers and end users in choosing the most suitable hypervisor for their cryptographic needs.This study evaluated the efficiency of two hypervisors,Hyper-V and KVM,in implementing six cryptographic algorithms: Rivest,Shamir,Adleman (RSA),Advanced Encryption Standard (AES),Triple Data Encryption Standard (TripleDES),Carlisle Adams and Stafford Tavares (CAST-128),BLOWFISH,and TwoFish.The study’s findings show that KVM outperforms Hyper-V,with 12.2%less Central Processing Unit(CPU)use and 12.95%less time overall for encryption and decryption operations with various file sizes.The study’s findings emphasize how crucial it is to pick a hypervisor that is appropriate for cryptographic needs in a cloud environment,which could assist both cloud service providers and end users.Future research may focus more on how various hypervisors perform while handling cryptographic workloads.
KEYWORDS Cloud computing;performance;virtualization;hypervisors;Hyper-V;KVM;cryptographic algorithm
1 Introduction
Authors are required to adhere to this Microsoft Word template in preparing their manuscripts for submission.It will speed up the review and typesetting process.In recent years,various sectors have adopted cloud computing,making it more and more common.These sectors include governments,financial markets,businesses,and industries.This is primarily because cloud computing offers cost-effective and scalable solutions for storing,handling,and administering data.It also allows collaboration and remote access to resources from anywhere.The growing number of smartphone devices,the Internet of Things,and big data analytics have raised the need for cloud computing to process and manage enormous amounts of data in a timely and efficient manner.Cloud computing provides an affordable solution for companies and individuals with varying computing needs by enabling remote computing devices to collaborate on data processing tasks[1].
Cloud computing is thoroughly described by the National Institute of Standards and Technology(NIST),including key features,service models,and deployment options.According to [2],cloud computing is a model that allows access to a shared pool of reconfigurable computing resources from anywhere and at any time that is most convenient for you.With the idea of cloud computing,users and companies have access to a model that makes it easier to provision and release a variety of resources,including networks,servers,storage,applications,and services,without putting a lot of management work into it or requiring direct contact with service providers.This approach offers several advantages,including the ability to quickly scale up or down the number of resources and a pay-per-use model that is effective and affordable [3,4].The most notable characteristics of cloud computing include on-demand self-service,widespread network access,resource pooling,quick elasticity,and measured service.These features all contribute to the scalability,effectiveness,and cost-effectiveness of cloud computing.Additionally,the NIST lists private,public,community,and hybrid clouds as the top four cloud computing deployment options[3,5].Private clouds are only available to one company,whereas many companies share public,community,and hybrid clouds with similar goals.Users can access cloud computing resources in a way that satisfies their preferences,needs,and requirements due to the numerous service models and deployment options available.
Cloud computing has developed to the point where it is an essential component of the computing infrastructure.Numerous advantages,including adaptability,affordability,and flexibility,come with cloud computing.With over 90% of global enterprises using cloud computing in some form,these advantages have helped to accelerate its adoption[6].A survey conducted in 2020 found that 83% of business applications were hosted in the cloud,with 41% of enterprise workloads employing public cloud platforms [7].In addition,there are 7.5 million active internet users every second,3.5 million active smartphone users every second,and more than 2 billion mobile game players who save their data in the cloud[8].
Governments have also been quick to adopt cloud computing [9].The United States federal government is making significant efforts to increase cloud computing adoption through policies and programs such as the Cloud Smart plan,which aims to accelerate the transition to cloud computing across all government agencies[10].Significant advancements in cloud computing usage have also been undertaken by major countries such as the United Kingdom,Australia,New Zealand,and Canada[9].Governments using cloud computing are expected to stimulate innovation and enhance the quality of services supplied to citizens.
Virtualization is a fundamental concept in cloud computing,Virtualization is creating a virtual version of something at the same abstraction level,including virtual computer hardware platforms,storage devices,and computer network resources.It allows for more efficient utilization of physical computer hardware and is the foundation of cloud computing[11,12].
Virtualization is critical to cloud computing since it enhances workloads by making traditional computing more efficient,flexible,and cost-effective[5].Cloud computing virtualization implementations include virtual servers,hardware virtualization,and operating system virtualization [13].To reap the full advantages of virtualization,system administrators must select the best hypervisor for their organization’s needs among various commercial and open-source alternatives based on diverse underlying technologies.This selection procedure should consider several critical variables:performance,features,and cost.For instance,Amazon Web Services virtualizes its Elastic Compute Cloud (EC2) machines using the XEN hypervisor platform.In contrast,Microsoft Azure uses the Hyper-V hypervisor platform for its Infrastructure as a Service (IaaS) cloud.Google’s recent entry into the IaaS cloud market is based on the KVM hypervisor platform.Multiple hypervisors’availability enables customers to select the one that best meets their organization’s needs while using its services[14].
Hypervisor performance plays a crucial role in cloud computing since it has a vital effect on the performance of the running virtual machines (VMs) [15,16].It acts as a bottleneck affecting performance in the cloud computing environment[17].Hence,Numerous studies have been conducted to investigate the impact of hypervisor performance on VMs.Regarding architecture,Kernel-based Virtual Machine (KVM) is better than Hyper-V regarding VMs performance,such as Central Processing Unit (CPU),memory,disk,and network,since KVM runs as a Linux kernel,so it gets the full capabilities of the hardware infrastructure.In addition,KVM is open-source,and its opensource nature allows the whole community to improve the product regarding software security and performance[18].KVM is supported by Linux vendors such as RedHat and the open-source community[19].At the same time,Hyper-V is a Windows-based kernel that requires more abstraction layers which reduces the overall performance[18–20].The authors in[19,21]compared the performance of different hypervisors such as KVM,Hyper-V,Xen,and vSphere.They found that no hypervisor is superior in terms of performance,and each hypervisor should be examined to meet a particular need.Moreover,some studies show that performance for VMs,while deploying Hyper-V is better than KVM in some processes,such as in[22–24].Studies like[25,26]compare KVM and Hyper-V hypervisors(see Table 1).Comparing the performance of the VMs processes between KVM and Hyper-V,especially in the virtualization performance,is related to CPU,time,network,and memory as in[18,24].
Table 1:Comparison between KVM and Hyper-V
Businesses that utilize cloud computing services must implement privacy and security protocols as an essential requirement [27,28].As a result of an increasing amount of cyberattacks and data breaches,security is a vital part of cloud usage and acceptance for both cloud service providers and customers [29].Cloud computing provides a dependable and practical multipurpose solution that allows businesses to access,store,and manage data from anywhere,anytime,using any device.However,the advantages of cloud computing are vulnerable to being attacked by the dangers posed by hacking attempts,which can include unauthorized access,the loss of data,and the compromise of security systems.Therefore,cloud security measures such as encryption,authentication,and access control are vital for maintaining the confidentiality,integrity,and availability of sensitive data and services[24,30–32].
Cryptography is one of the oldest and most widely used methods for protecting sensitive digital data in computers,and cloud computing environments.In cloud environments,where data is transmitted and stored across multiple servers and networks,cryptography is essential in securing the data against unauthorized access,tampering,or theft[33].Employing various cryptographic technologies,including symmetric and asymmetric encryption,aids in maintaining data confidentiality,integrity,and authenticity and can be used to lower the danger of data breaches and cybercrimes.Additional security measures such as access control,monitoring,and audit trails are also necessary to maintain cloud computing.While Hyper-V and KVM are considered two of the most used hypervisors,this research examined the capabilities of the Hyper-V and KVM hypervisors while adopting six different cryptographic algorithms in this research.Rivest-Shamir-Adleman (RSA),Advanced Encryption Standard (AES),Triple Data Encryption Algorithm (TripleDES),Carlisle Adams and Stafford Tavares (CAST-128),BLOWFISH,and TwoFish are among these algorithms.Martin et al.[34]presented comparisons between these six popular algorithms as shown in Table 2.
Table 2:Comparison of six common cryptographic algorithms
In this research,the main objective is to assess the above algorithms’performance in terms of cloud security and establish how effectively they work.Furthermore,the study aims to resolve the debate on which hypervisor performs better for VMs,KVM,or Hyper-V.
This study is expected to provide the following contributions:
• Examine the performance of the two most prominent hypervisors,KVM as an open-source and Hyper-V,when using six cryptographic algorithms.
• Compare CPU usage and the time required for encryption and decryption methods with different key sizes,data sizes,and core counts.
• Add substantial new information to virtualization by evaluating the impact of cryptographic algorithms on KVM and Hyper-V’s overall performance(CPU and Time).
• Present advice for identifying the best hypervisor and cryptographic method for specific use scenarios based on performance measurements.
The subsequent sections of this manuscript are organized as follows: Section 2 offers related works;Section 3 demonstrates the evaluation method;Section 4 presents the results and discussion.Finally,the conclusion with some future recommendations is presented in Section 5.
2 Related Works
This section of the research summarizes previous studies that examined diverse types of hypervisors,especially KVM and Hyper-V,and their impact on improving the performance of VMs in the cloud environment.Moreover,studies exploring ways to enhance cloud computing security were reviewed.Additionally,this section explored the latest encryption techniques used in cloud computing,as encryption plays a vital role in protecting cloud computing.
Regarding the studies that dealt with hypervisors,authors[24]compared two hypervisors,Xen and Hyper-V,in terms of the performance of the VMs while using eight different cryptosystems.He found that Xen is better than Hyper-V regarding CPU and time response in most processes,while Hyper-V is better in some results and algorithms.di Pietro et al.[35]analyzed the advantages and drawbacks of using virtualization technologies,including Xen,KVM,VMWare ESX,Hyper-V,and VirtualBox in cloud environments.The authors discussed the benefits of virtualization technology,including better resource use,flexibility,scalability,and potential security issues.Studies [15] investigated the performance of the hypervisor.They stated that it plays an essential role in cloud computing since it has a vital effect on the performance of the running VMs.Several studies [18] that dealt with hypervisor performance within cloud environments specifically,KVM and Hyper-V,and their distinctive characteristics are already discussed in the introduction section.
The existing literature proposed various defense methodologies,such as encryption,access control,and data obfuscation,to protect sensitive data from unauthorized access and potential threats to improve the security and privacy of cloud-based data storage and processing.Multiple studies have offered innovative approaches,including homomorphic encryption,attribute-based encryption,and secure multi-party computing.Thabit et al.[36] investigated the security and performance features of a unique lightweight cryptographic algorithm for cloud computing.The findings showed that the suggested method outperforms standard cryptographic algorithms and provides adequate protection against various security risks.Bhandari et al.[37]proposed a model approach for creating a cloud-based client relationship management(CRM)service employing independent encryption and decryption procedures using the Blowfish algorithm to improve the security and privacy of client data.The study’s findings indicated that the suggested strategy considerably decreases the risks of data breaches and illegal access,resulting in a safe and dependable CRM solution for enterprises.
The healthcare sector has great hope for the future of cloud computing in terms of improving the standard and effectiveness of healthcare services.Cloud computing can assist healthcare organizations in streamlining their operations,reducing expenses,and improving patient outcomes by facilitating simple access to medical data and fostering collaboration among healthcare providers.However,implementing resilient regulatory and governance frameworks that protect patient information privacy,confidentiality,and security is necessary to successfully integrate cloud computing in healthcare.In this regard,various access control and encryption schemes have been proposed to enhance the security and privacy of patient data in healthcare clouds.Chinnasamy et al.[38]proposed a novel access control scheme that combines hybrid cryptographic techniques with attribute-based access control to secure the retrieval of electronic health records in healthcare clouds.On the other hand,Dwivedi et al.[39]proposed a secure healthcare monitoring sensor cloud system that utilizes attribute-based elliptical curve cryptography for data protection.Both proposed schemes exhibit better performance than existing techniques,and their adoption is recommended for enhancing data security and privacy in healthcare cloud systems.
Other studies have focused on key management systems in cloud cryptography.Vinothkumar et al.[40] employed a systematic literature review methodology to analyze the current state-of-theart in the field of cryptography and key management-based security in cloud computing to support cloud cryptography client and key management service interoperability.Their results highlight the importance of key management protocols,encryption algorithms,and the need for secure key storage mechanisms to ensure data confidentiality and integrity in cloud computing environments.
Several studies have also suggested hybrid cryptographic solutions to the security issues with cloud computing.A method for improving data protection in cloud computing was put forth by Suresha et al.[41] using key derivation.This cryptographic technique creates three secret keys from a single master key,each used for a particular purpose.To protect the confidentiality and integrity of their data,the authors advise organizations to adopt key derivation techniques as part of their cloud computing security strategy.To preserve users’privacy and security in the cloud,Orobosade et al.[42]examined the effectiveness of hybrid encryption by implementing symmetric and asymmetric cryptography techniques using elliptic curve cryptography and AES.According to their research,hybrid encryption can improve the confidentiality and integrity of cloud-based applications,hence enhancing security.
A research study on enhancing cloud data security with hybrid encryption and steganography techniques was published by Abbas et al.[43].The authors in this research combined the AES symmetric encryption algorithm and the RSA asymmetric encryption algorithm to create hybrid encryption.The encrypted data was then embedded in an image using the LSB technique,and the data’s authenticity was verified using the SHA hashing method.Before hiding the data in the image,they suggested compressing it using the LZW method.They also suggested employing a hybrid approach in cloud-based systems to increase the security of sensitive data.To evaluate the effectiveness of cryptographic and hybrid security measures for cloud computing systems,Chaudhary et al.[44]suggested a thorough methodology.The study provides in-depth information and findings demonstrating how hybrid solutions offer more security than cryptography.By demonstrating the effectiveness of hybrid solutions compared to cloud computing cryptography security implementation in algorithm execution,their research study solves the security issues associated with cloud computing.
Zaineldeen et al.[45]offered an overview of cloud computing cryptography,comparing various methods,tools,and conclusions.The authors investigate several cloud computing cryptography techniques,including homomorphic encryption,symmetric and asymmetric key encryption,and proxy re-encryption.They discuss issues like key management,data confidentiality,and data integrity arising when incorporating cryptography with cloud computing.They contend that even though cryptography might improve cloud computing security,significant challenges must be overcome.The findings give a thorough picture of the state of cryptography in cloud computing and emphasize the need for more research,mainly focusing on the difficulty of encryption implementation at the hypervisor layer.
Ogiela [46] developed hybrid CAPTCHA codes employing a hybrid techniques approach to examine the possibilities of cognitive cryptography.The results of the study indicated that cognitive cryptography has the potential to improve the security and integrity of cloud data.
Singh et al.[47] proposed a novel authentication approach based on mutual authentication for secure data-sharing in a federated cloud services environment.The proposed method combines cryptography and machine learning techniques ensemble voting classifier to achieve an essential level of security and privacy,as demonstrated by the experimental results.
An innovative AI-based encryption method for cloud computing,known as AI-Enc,was developed by Wang et al.in a report published in 2021[48].AI-Enc uses deep neural networks to encrypt and decode data safely and effectively.The authors asserted that traditional encryption techniques cannot match AI-Enc’s ability to deliver more robust security and lower computational overhead,nor can it be integrated with existing hypervisors.In 2020,Mrbullwinkle et al.introduced the RL-Hyper framework,which uses reinforcement learning to optimize the performance of hypervisors.Throughput,latency,and energy consumption can all be significantly improved because of the framework’s ability to dynamically modify hypervisor parameters based on workload factors and system conditions[49].
Table 3 summarizes some of the collected literature within three sections:reference,description,and results.
Table 3:Summary of related literature
3 Evaluation Method
In this research,authors examined the average response time for encryption and decryption of different encryption algorithms to verify the correlation between time and performance,evaluated the effect of changes in the number of CPU cores,examined the impact of varying key sizes,and finally,evaluate the effect of data size on performance.
As shown in Fig.1,the proposed evaluation method involves deploying two servers,each utilizing a distinct hypervisor:Hyper-V and KVM.A VM running Windows 7 is instantiated on each server,and six cryptographic algorithms,including RSA,TripleDES,AES,CAST-128,TwoFish,and Blowfish,are implemented using tools on each VM instance to evaluate the different cryptographic algorithms’performance.
Figure 1:Evaluation method
3.1 Environment Setup
The proposed environment in this study includes two different data centers(i.e.,servers),both of which have an i7 CPU at 2.7 GHz and 16 GB of DDR RAM.For each server,the VM is implemented using Windows 7.The VM is allocated 4 GB of DDR RAM and a variable number of cores,depending on the experiment.Additionally,the VMs were deployed with the following subsequent software tools:
1.HsCipherSDK v2.1 tool that provides RSA,CAST-128,TwoFish,and Blowfish cryptographic algorithms while encryption and decryption with different keys using Python programming.
2.Rijndael tool that provides AES cryptographic algorithm.
3.PyCryptodome tool that provides TripleDES cryptosystem using Python programming language.
4.Windows 7 Performance Monitor is used to measure CPU usage over a specific period of time and is measured in percentage%.
5.Time is measured by minutes and seconds m:s using a stopwatch.
3.2 Performance Metrics and Dataset
In this research,authors used HsCipherSDK v2.1 as a cryptographic tool to encrypt RSA,DES,TripleDES,CAST-128,TwoFish,and Blowfish algorithms.In contrast,the Rijndael tool is used to encrypt and decrypt the AES algorithm.For both tools,a different key can be chosen among various data.Meanwhile,other file types are selected from among the algorithms,such as PDF files,Images,and compressed files.The file sizes differ from 1 KB in RSA to 5 GB in AES.
CPU core in cloud computing can be changed among different VMs.So,the authors used two different cores during experiments 2 and 4.
Based on[50],the following equation(Eq.(1))is used to calculate the overall ratio performance of the results:
4 Result Analysis
This study investigates the performance of six popular encryption algorithms:RSA,TripleDES,AES,CAST-128,TwoFish,and Blowfish.Experiments were conducted several times for each algorithm in different contexts to ensure that the results were accurate and reliable.Below is a brief description of the algorithms used in the study,along with their evaluation results:
4.1 RSA
The RSA algorithm is a cornerstone of modern cryptography and offers a safe way to send sensitive data over open networks.Because RSA fundamentally depends on the difficulty of factoring large numbers,it is a vital instrument for data encryption.The algorithm is based on a mathematical equation involving two large prime numbers,p and q,and their product,n.The selection of public and private key exponents,e and d,respectively,involves using Euler’s totient function of n.RSA encryption involves raising the message to the power of e modulo n,while decryption requires raising the encrypted message to the power of d modulo n.The strength of RSA lies in its asymmetry,which makes it computationally infeasible to derive the private key from the public key.The recommended key size for RSA by NIST in 2015 was 2048 bits[51],and it is widely used in cloud computing[52].
Table 4 compares the performance of the Hyper-V and KVM hypervisors in terms of duration time,and CPU usage among different key sizes during the encryption and decryption operations.The first experiment indicates that with a key size of 64 and one core with a file size of 606 k,the Hyper-V hypervisor required 40.3 and 51 s,respectively,for encryption and decryption,and a CPU use was 61%for both encryption and decryption.The KVM hypervisor required 26.2 and 29.2 s for encryption and decryption,with CPU use of 59% and 60%,respectively.Since KVM consumes less time duration and CPU usage while encryption and decryption than Hyper-V,the results indicate that KVM outperformed Hyper-V regarding both response time and CPU utilization.
Table 4:RSA experimental results
Table 5 compares the average response time and CPU utilization of two hypervisors,KVM and Hyper-V,during the encryption and decryption processes using the RSA cryptographic algorithm.The results reveal that KVM outperforms Hyper-V regarding time and CPU consumption for encryption and decryption operations.Specifically,KVM demonstrates a 3.7 and 3.4 difference in time and CPU utilization for encryption and a 7.6 and 3.6 difference for decryption.These results show that KVM is a more efficient and effective hypervisor for cryptographic operations using the RSA algorithm,even when changing the key,data size,or core numbers.It can be helpful for companies and individuals looking to improve their performance and security.
Table 5:RSA performance
4.2 AES
Modern cryptographic systems frequently use the symmetric block cipher known as the AES[53].The Data Encryption Standard (DES) was chosen as its replacement by the National Institute of Standards and Technology (NIST) in 2001.AES is developed to be secure against various attacks,such as side-channel attacks,differential and linear cryptanalysis,and brute-force attacks.AES utilizes a key that is either 128,192,or 256 bits long and operates on fixed block sizes of 128 bits [53].The algorithm comprises rounds with several smaller steps,including substitution,permutation,and XOR operations.The key schedule is the same for all rounds except the final round,which differs slightly from the earlier rounds.The overall strength of AES comes from its use of a substitution-permutation network(SPN)structure and the extensive diffusion of input bits throughout the rounds.
Galois field arithmetic,especially the finite field GF(2∧8),is the foundation of the mathematical formula utilized in AES[54].This finite field consists of 256 elements and represents bytes in the input block and elements of the key schedule.The AES algorithm uses a set of standard operations,including the substitution of bytes,shift rows,mixing columns,and adding round keys.The substitution step involves replacing each byte of the input block with another byte based on a fixed lookup table called the S-box.The shift rows step involves cyclically shifting the bytes in each row of the input block by a fixed amount.The mix columns step involves multiplying each column of the input block by a fixed matrix,resulting in a diffusion of input bits throughout the block.The add-round key step involves XORing the input block with a key schedule derived from the encryption key.Together,these steps create a highly secure cloud security environment and efficient encryption algorithm widely used in applications ranging from secure communication to data storage.This paper presents a detailed analysis of the AES algorithm using(128,192,and 256),CPU core numbers(2 to 4),and its performance in ten repeated experiments as in Table 6 below.
Table 6:AES experimental results
Table 7 compares the average response time and CPU utilization of two hypervisors,KVM and Hyper-V,during the encryption and decryption processes using the AES cryptographic algorithm.The results reveal that KVM outperforms Hyper-V regarding time and CPU consumption for encryption and decryption operations.Specifically,KVM demonstrates a 0.4 and 4.4 difference in time and CPU utilization for encryption and a 0.5 and 4.8 difference for decryption.These findings suggest that KVM is a more efficient and effective hypervisor for performing cryptographic tasks using the AES algorithm,even when changing the key,data size,or core numbers.It can significantly benefit organizations and individuals seeking to enhance their security and performance capabilities.
Table 7:AES performance
4.3 TripleDES
The Triple Data Encryption Standard (TripleDES) is a cryptographic technique that uses a symmetric block cipher.Three DES keys comprise a key bundle,also known as a key[55].
The authors have performed ten different experiments for both Hyper-V and KVM hypervisors.Different CPU core numbers (2 and 4) and file sizes with fixed key size (192-bit) were used.Table 8 shows the average time and CPU usage while encryption and decryption using TripleDES cryptographic algorithm.
Table 8:TripleDES performance
As presented in Table 8,the performance of two hypervisors,KVM and Hyper-V,was evaluated during the encryption and decryption processes using the TripleDES cryptographic algorithm.The analysis indicates that KVM has superior CPU performance for encryption compared to Hyper-V,but Hyper-V exhibits better encryption response time.On the other hand,KVM has better CPU utilization and time response for decryption than Hyper-V.
4.4 CAST-128
CAST-128,often known as CAST5,is a 1996-designed member of the CAST family.The technique is based on a traditional Feistel/DES network with 16 rounds,64-bit block,and up to 128-bit keys.CAST-128 has 16 subkey pairs,three types of round functions,and eight distinct S-boxes[56].
The authors have performed ten different experiments for both Hyper-V and KVM hypervisors.The key(128-bit),CPU core numbers(2 and 4),and different file sizes were used.Table 9 shows the average time and CPU usage while encryption and decryption using the CAST-128 cryptographic algorithm.
Table 9:CAST-128 performance
Table 9 compares the average response time and CPU utilization of two hypervisors,KVM and Hyper-V,during the encryption and decryption processes using the CAST-128 cryptographic algorithm.The results reveal that KVM outperforms Hyper-V regarding time and CPU consumption for encryption and decryption operations.Specifically,KVM shows a 0.2 and 6 difference in time and CPU utilization for encryption and a 0.1 and 7.3 difference for decryption.These findings suggest that KVM is a more efficient and effective hypervisor for performing cryptographic tasks using the CAST-128 algorithm,even when changing the key,data size,or core numbers.It can significantly benefit organizations and individuals seeking to enhance their security and performance capabilities.
4.5 BLOWFISH
Blowfish is a symmetric block cipher designed to provide secure encryption of digital data.Bruce Schneier created it in 1993,and it gained popularity due to its flexibility and high level of security.Blowfish is a cipher well-suited for encrypting enormous amounts of data owing to its block length of 64 bits.It utilizes four substitution boxes,often known as“S-Boxes,”and eighteen permutation arrays,or“P-Boxes,”.Blowfish is appropriate for applications requiring high-speed encryption since it supports various keys ranging from 32 bits to 448 bits[56].The Feistel network,a prominent topology used in many block ciphers,is the basis for Blowfish’s mathematical formula.Blowfish encrypts data in rounds or iterations,including a replacement step,a permutation step,and a key mixing step.The substitution step is performed using the S-Boxes,which replace blocks of data with other blocks according to a predetermined table.The permutation step is performed using the P-Boxes,which scramble the order of the data.Finally,the key mixing step involves XORing the data with a portion of the secret key.This process is repeated for several rounds,resulting in encrypted data.The strength of Blowfish lies in its complex key schedule,which ensures that each key bit affects many parts of the encryption process,making it highly resistant to attacks.
The authors have performed ten different experiments for both Hyper-V and KVM hypervisors.A 64-bit key size,CPU core numbers(2 and 4),and different file sizes were used.
Table 10 compares the average response time and CPU utilization of two hypervisors,KVM and Hyper-V,during the encryption and decryption processes using the BLOWFISH cryptographic algorithm.The results reveal that KVM outperforms Hyper-V regarding time and CPU consumption for encryption and decryption operations.Specifically,KVM demonstrates a 1.1 and 4.8 difference in time and CPU utilization for encryption and a 1.1 and 4.5 difference for decryption.These findings suggest that KVM is a more efficient and effective hypervisor for performing cryptographic tasks using the BLOWFISH algorithm,even when changing the key,data size,or core numbers.It can significantly benefit organizations and individuals seeking to enhance their security and performance capabilities.
Table 10:BLOWFISH performance
4.6 TwoFish
Twofish is a symmetric block encryption algorithm developed in 1998 [56,57].The algorithm works with fixed-size data blocks with a key length of 128,192,or 256 bits.Twofish’s design combines several characteristics to make it secure and efficient.Using the Feistel cipher structure,a popular method for block ciphers is one such aspect.TwoFish employs four S-boxes,which replace input bits with output bits based on the key and round number.The S-boxes are developed from extended Rijndael S-boxes,which depend on the properties of finite fields.
The authors performed ten tests for the Hyper-V and KVM hypervisors using various keys(128,192,and 256-bit),CPU core counts(2 and 4),and file sizes.Table 11 compares the average response time and CPU usage of two hypervisors,KVM and Hyper-V,during encryption and decryption.The findings show that KVM consumes fewer CPU for encryption and takes the same time for Hyper-V.KVM surpasses Hyper-V regarding both time and CPU use for decryption operations.KVM reveals a 3.3 difference in CPU use for encryption and a 0.1 in time.These results imply that KVM is a more efficient and effective hypervisor for completing cryptographic operations using the TWOFISH technique,even if the key,data size,or core counts are modified.
Table 11:TWOFISH performance
4.7 Overall Results
The overall performance time and CPU utilization during encryption and decryption for both Hyper-V and KVM hypervisors of all cryptosystems and all previous tables are presented in Table 12 and Fig.2.
Table 12:Overall algorithms
After applying Eq.(1) to compare Hyper-V and KVM,the results show that KVM performs better than Hyper-V in terms of encryption time by 10.5% ((8.1 -7.3)/7.3) and decryption time by 15.4%((9.7-8.4)/8.4),resulting in an overall average of 12.95%.Similarly,KVM shows lower CPU utilization than Hyper-V during encryption with a ratio of 10.5%((51.4-46.5)/46.5)and 9.9%((51.8-47.1)/47.1)during decryption,resulting in an overall average of 10.2%.
Figure 2:Performance of all algorithms in terms of time(A),and CPU usage(B)
Moreover,Table 13 demonstrates a performance comparison of the six cryptography algorithms being compared(i.e.,RSA,AES,TripleDES,CAST-128,BlowFish,and TwoFish Algorithms)using KVM and Hyper-V.Fig.3 shows the overall time performance in m:s for each algorithm while encryption and decryption,and Fig.4 shows the CPU utilization in%while encryption and decryption.
Table 13:Performance of cryptographic algorithms on KVM and Hyper-V
To compare our results with other studies,we choose the paper[24]published in 2022 as a relevant reference,because it also investigated the performance of different cryptographic algorithms on VMs.In [24],the authors studied eight different cryptographic algorithms;RSA,AES,RC4,CAST-128,TripleDES,DES,TwoFish,and BlowFish,while this study excluded the DES and RC4 algorithms because they are no longer safe.The authors in [24] compared Xen and Hyper-V,while this study compares Hyper-V and KVM,as they are the most commonly used hypervisors.In[24],they found that Hyper-V outperforms Xen for most results during encryption and decryption operations,while this study shows that KVM outperforms Hyper-V in terms of time duration and CPU usage for all encryption and decryption operations.Table 14 shows the comparison of this study with[24]:
Figure 3:Overall time performance of cryptography algorithms in m:s during encryption and decryption
Figure 4:Overall CPU utilization of cryptography algorithms in%during encryption and decryption
Table 14:Comparison with other studies
5 Conclusion
Cryptographic methods are essential for preserving data security and privacy in the cloud environment.This study evaluated the efficiency of two widely used hypervisors,Hyper-V and KVM,in implementing six cryptographic algorithms:RSA,AES,TripleDES,CAST-128,BLOWFISH,and TwoFish.The study measured response time and CPU utilization during encryption and decryption processes.The results show that KVM surpasses Hyper-V in terms of time duration for all the experiments and CPU utilization for all algorithms,especially with more cores.It is important to remember that various variables might affect how well virtualization solutions work,including the hardware and software configurations utilized in the study.The results also support the prevailing view that using the KVM hypervisor is better than using Hyper-V for VMs since KVM works with the Linux kernel,making it more lightweight than the Windows kernel.Thus,it is essential to conduct further research to confirm these findings and explore other factors that may impact the performance of virtualization technologies.The following future works can also be undertaken:
• Examine the performance of using other hypervisors,such as VMware or VMWare ESX.
• Examine the performance of other cryptographic algorithms,such as Salsa20 and Curve25519,in cloud environments.
• Study and compare the performance of different versions of Hyper-V and KVM.
• Study the possibility of improving the effectiveness of encryption and decryption on the hypervisor using artificial intelligence.
The study had some limitations,such as:
• Specific software and hardware configurations were used during the study.Different settings may produce different results.
• The effects of network congestion,bandwidth,and latency on the encryption and decryption operations were not taken into account in this investigation.These factors could have an impact on cloud environments’quality of service and user experience,particularly for apps that need data transmission and communication in real-time or almost real-time.
Acknowledgement:Not applicable.
Funding Statement:The authors received no specific funding for this study.
Author Contributions:Study conception and design: Nader Abdel Karim,Waleed K.Abdulraheem,Osama A.Khashan;data collection: Hasan Kanaker,Mahmoud Farfoura,Mohammad Alshinwan;analysis and interpretation of results: Waleed K.Abdulraheem,Nader Abdel Karim,Osama A.Khashan,Moutaz Alazab;draft manuscript preparation:Nader Abdel Karim,Waleed K.Abdulraheem,Osama A.Khashan,Moutaz Alazab.All authors reviewed the results and approved the final version of the manuscript.
Availability of Data and Materials:Not applicable.
Conflicts of Interest:The authors declare they have no conflicts of interest to report regarding the present study.
杂志排行
Computers Materials&Continua的其它文章
- ASLP-DL—A Novel Approach Employing Lightweight Deep Learning Framework for Optimizing Accident Severity Level Prediction
- A Normalizing Flow-Based Bidirectional Mapping Residual Network for Unsupervised Defect Detection
- Improved Data Stream Clustering Method:Incorporating KD-Tree for Typicality and Eccentricity-Based Approach
- MCWOA Scheduler:Modified Chimp-Whale Optimization Algorithm for Task Scheduling in Cloud Computing
- A Review of the Application of Artificial Intelligence in Orthopedic Diseases
- IR-YOLO:Real-Time Infrared Vehicle and Pedestrian Detection