Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. ·...
Transcript of Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. ·...
![Page 1: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/1.jpg)
Applicability of Cryptographic Protocols to Support Service Level
AgreementsInternet Economics Talk 4
Alexander Mülli, Mohit Narang
![Page 2: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/2.jpg)
Agenda
● SLAs● Blockchain● SLA Compensations with Bitcoin● Enforcement of SLAs with Ethereum ● Possible Solutions for Distributed
SLA Monitoring
![Page 3: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/3.jpg)
Service Level Agreements
Service Provider Customer
![Page 4: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/4.jpg)
Service Level AgreementsAmazon EC2 Service Level Agreement
Monthly Uptime Percentage Service Credit Percentage
Less than 99.95% but equal to or greater than
99.0%
10%
Less than 99.0% 30%
In order to reclaim the service credit, a case has to be opened with the support manually.
Source: https://aws.amazon.com/ec2/sla/
![Page 5: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/5.jpg)
How it works with Amazon
● Amazon is the one who monitors the service● It also decides whether the SLA was met or
not. ● Its not in favor of Amazon to report SLA
breaches by itself.● Even if an SLA breach support case is
opened by a client it is up to Amazon to accept it or not.
![Page 6: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/6.jpg)
How could this problem of support cases be solved?
● Trusted Third Party● Automatic SLA compensation
![Page 7: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/7.jpg)
Problems of SLAs
● Compensation● Enforcement● Monitoring
![Page 8: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/8.jpg)
Compensation
● Whenever an SLA is breached by one of the parties there has to be a compensation to the other.
● It involves a considerable amount of work to calculate and carry out a transaction regarding the compensation.
![Page 9: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/9.jpg)
Compensation
An example is if you are using Amazon you have to open a case with the support team:● Open a case● Someone analyzes the validity of case● Payment or refund is initiated but a client
only gets credit for future usage which is how the Internet Economics works here
![Page 10: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/10.jpg)
Enforcement
● Enforcement of SLA can sometimes be hard because all the parties have to agree.
● It is also very inefficient to resolve the issues with the help of a third party like a court or an independent consultancy.
![Page 11: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/11.jpg)
Monitoring
● Monitoring of the SLA parameters is one of the most challenging tasks
● Whenever two parties agree on an SLA there need to be valid facts they can both use to determine whether an SLA is breached.
![Page 12: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/12.jpg)
Monitoring Approaches
Service Provider Customer
3rd Party
Monitoring Monitoring
Monitoring
![Page 13: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/13.jpg)
Problems of Monitoring
● Customer can misreport for financial gain● Provider can also misreport for financial gain● Trusted third party - possible solution, but
can be swayed by Customer and/or Provider
A viable solution to tackle all possible cases is challenging and not yet widely implemented
![Page 14: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/14.jpg)
Cryptographic protocols
Possible technologies we found to support SLAs and solve the aforementioned problems:
● Bitcoin● Ethereum
![Page 15: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/15.jpg)
Bitcoin based automated payments
Sender(Customer)
Receiver(Service Provider)
Third Party(Authoritative
signatory)
![Page 16: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/16.jpg)
Bitcoin based transaction
Service Provider Customer
3rd Party
C
C,T
C,T,S
Broadcast C,T,SC,T,S
![Page 17: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/17.jpg)
Compensations of SLA breach with Bitcoin Smart Contracts
Bitcoin contracts can be either scripted or done in multiple steps.Independent third party Oracles (Key-Value stores) can be used as real world facts regarding SLAs. The Bitcoin contracts can read these Oracles for the SLA monitoring facts to ensure SLA compensations, so that no party can back off from the agreed SLA, hence no need of third parties to resolve payments.
![Page 18: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/18.jpg)
Bitcoin transaction using Oracle
Service Provider Customer
Oracle
C
C,T
C,T,S
Broadcast C,T,SC,T,S
![Page 19: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/19.jpg)
Ethereum● crowdfunded project● based on the bitcoin blockchain technology ● decentralized publishing platform featuring
stateful user-created digital contracts● Turing-complete contract programming
language
![Page 20: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/20.jpg)
Ethereum (cont.)
How does it compare to Bitcoin?
Let’s have a look at the bitcoin blockchain again.
![Page 21: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/21.jpg)
Blockchain
Source: https://github.com/ethereum/wiki/wiki/White-Paper
![Page 22: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/22.jpg)
Network timeline consists of broadcasts
BlockchainNode
![Page 23: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/23.jpg)
Blockchain as a State Transition System
Source: https://github.com/ethereum/wiki/wiki/White-Paper
![Page 24: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/24.jpg)
Blockchain as a State Transition System
Source: https://github.com/ethereum/wiki/wiki/White-Paper
![Page 25: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/25.jpg)
Ethereum Applications
What could it be used for?
● Implementing an alternative cryptocurrency● Smart multisignature escrow● Crop insurance / Financial derivatives● A decentralized data feed (SchellingCoin)
![Page 26: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/26.jpg)
Enforcement of SLAs with Ethereum
Smart contracts based on an oracle that tells whether an SLA is violated or not can be run on the ethereum network itself
![Page 27: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/27.jpg)
Decentralized monitoring oracle
The oracle that the SLA contract is based on could be decentralized with an implementation based on the ShellingCoin
e.g. n parties provide the information whether a service is available or not.
![Page 28: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/28.jpg)
Decentralized monitoring oracle
Service Provider Customer
Monitoring
3rd Party
![Page 29: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/29.jpg)
Conclusion
P2P monitoring of SLAs is a promising fact based and more truthful solution to the problem of SLA monitoringThere is still considerable amount of work to be done in this area.
![Page 30: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/30.jpg)
Questions
![Page 31: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/31.jpg)
Discussion points
● Who is familiar with SLAs?● What are your experiences with SLAs?● How do you monitor the SLAs? ● Any third parties you use?● Would you like to publish your monitoring
contracts on a P2P network rather than third parties?
![Page 32: Applicability of Cryptographic Protocols to Support Service Level … · 2015. 2. 20. · Decentralized monitoring oracle The oracle that the SLA contract is based on could be decentralized](https://reader035.fdocuments.net/reader035/viewer/2022071514/6135af250ad5d20676478892/html5/thumbnails/32.jpg)
Possible solutions for blockchain based distributed monitoring
What if we would get our service from a consensus based network?
Ethereum theoretically allows you to run any kind of computation on it.
Would it be possible to have a network of nodes running your service that monitor themselves?