Orbs 백서

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 11쪽 중 7쪽

usion was that SLAs are sorely needed. 61 Consumer applications require an environment with predictable performance, transaction rate, confirmation time and fee cost. A spike of 20% increase in traffic is difficult to handle by any infrastructure, centralized or not. However, an infrastructure solution that applies SLA rules and isolation among applications would have had minor impact on existing applications and would be more likely to contain this impact in agreed-upon boundaries. For example, isolation would assure a surge in CryptoKitties traffic would not cause congestions in other dApps. SLA in a Decentralized Context One challenge in providing an SLA in an open and decentralized platform is that platform users don’t have direct agreements with infrastructure providers, so they don’t have a natural counterparty with which to make such an agreement. Basic service on the Orbs platform is provided by shared resources, but as shared resources get overloaded, the service level cannot be guaranteed. The platform introduces a service level mechanism by allowing application developers using the platform to acquire dedicated resources. By default, the Orbs platform can provide users interested in dedicated resources with a minimal quality-of-service enforced by smart contract code. In case the service provided falls below the requested service level, the user will be automatically compensated at the expense of network nodes that did not contribute the processing performance expected from them. A smart contact based scheme should be sufficient for most consumer applications, alleviating the need for direct legally binding agreements between parties. Some users of the platform may require legally binding agreements, for example applications that need to provide such SLA to their own users. If such requirement arises, the Orbs platform could provide a mechanism in which application developers purchase dedicated resources directly from operators of network nodes. By acquiring sufficient resources to support the throughput required for the operation of their application, developers can guarantee a minimal service level for their users, backed by a user agreement. This can be conducted in a marketplace where app developers and node operators can trade directly. Such external agreements can be facilitated by the protocol by indicating the usage agreement on a transaction alongside the signature used to authorize it. Of course, acquisition of dedicated resources does not come in place of decentralization. The acquired capacity will not be provided directly to the purchaser, but rather added to the shared resource pool. So, in practice, acquiring the resources establishes an SLA between the node operator and the shared pool back-to-back with an SLA between the shared pool and the 61 ​ https://medium.com/kinfoundation/insights-from-kin-initial-product-launch-441c458a4ece#479b 55 purchaser. In case the node operator fails to deliver the required capacity when the system is under load, a compensation amount will automatically be deducted from their fees. Regardless, it is still possible that other providers on the shared pool have vacant resources and the quality of service with the purchaser can be maintained. Predictable Fee Models As discussed in the CryptoKitties case study, one of the main challenges witnessed during the launch of Kin by Kik Interactive on top of Ethereum is unpredictability of fees. Kin took it upon itself to subsidize infrastructure costs for Kik power users, in order to encourage end users to adopt the token with minimal friction. The main problem, as it turned out, wasn’t that the fees were high, but that they were impossible to plan and budget for in advance. CryptoKitties traffic drove up the price of both ether and gas on the network, imposing higher transaction fees on end-users. Under the Orbs model, transaction fees are not handled by the dApp developers. dApp developers purchase storage and processing capacity on a monthly subscription. Monthly payments also bill for transaction fees monthly, rather than on every transaction, thus saving computing power. Budgeting is crucial for the success of consumer applications: product development is expensive, and entrepreneurs or companies want to know in advance, that if their app succeeds, they will get a return on their investment. To know that, they need to weigh in their operating costs. During the first few months of the Kin launch, Ethereum fees changed in a full order of magnitude. First, the USD price of Ether, notorious for being volatile, increased by 200% during the launch period. Since fees are paid in Ether, this exchange rate fluctuation translated directly to an increase in costs. Second, Ethereum fees are determined by market forces, where transactions offering higher fees will be processed first. During the Kin launch, the Ethereum network became congested, resulting in higher bids from users across the network. To get its transactions across, the Kik app had to offer significantly higher fees. The Orbs platform is designed to provide a pricing and fee model that is predictable and can be calculated in advance. We believe that such certainty is a fundamental requirement from a platform. The industry standard from centralized infrastructure solutions, such as AWS, is to provide accurate pricing calculators . Prices of on-demand services and subscriptions are 62 listed in ORBS tokens. The fact that services are listed in ORBS, a token with floating exchange rate, creates risks for both service sellers and buyers. In case of exchange-rate fluctuations, ORBS tokens may increase in value, effectively raising the infrastructure costs to Orbs platform users, or decrease in value, possibly making the operation of a validating node non-economical. 62 ​https://calculator.s3.amazonaws.com/index.html 56 Additionally, operation expenditures are exposed to price fluctuations of the underlying IT infrastructure (storage, processing, network access etc), but their prices have tended to decline gradually over time. As for exchange-rate fluctuations, we expect them to be slow-paced. Economic models predict that high rate of economic activity in a cryptocurrency attenuates exchange rate fluctuations , this should be the case with ORBS tokens, thanks to 63 the amount of activity expected from the launch partners. To accommodate potential price fluctuations and provide service cost stability to users, on-demand service prices will be normalized periodically to match changes in IT service costs. This is done by pegging the on-demand tariffs to an index of storage and compute unit prices, as published by major third party cloud service providers such as AWS. In the future, it may be possible to replace the cloud services index with an index of dedicated capacity prices, as these are determined by supply and demand in free market settings. Such a solution would be more sustainable over time than a cloud services index, because it is directly linked to de-facto costs of node operators, but its implementation requires some experience in terms of how the marketplace for dedicated capacity behaves. Dedicated, Reserved and On-Demand Resources One of the challenges in dynamic resource management is the inherent trade-off between the ability to share resources and the ability to guarantee their availability. In general, we differentiate between three main schemes of resource allocation: Dedicated resources- A physical resource is dedicated to the application, providing maximum isolation, high predictability and visibility. Dedicated resources are guaranteed to always be available for the customer. These resources must be paid for, even when unused, making this scheme of allocation the most expensive of the three. Reserved resources- An amount of resources is provisioned in advanced. Reserved resources may be guaranteed under some restrictions or prioritized over on-demand resources. As reserved resources are provisioned in advance and allow the service provider to plan better, they are typically provided with a significant discount over on-demand resources. On-demand resources - Resources are shared between applications and are allocated on-the-fly based on availability. Payment is normally based on actual usage. On-demand resources are recommended for low cost applications or for application with unpredictable workloads. A common strategy for an application looking to optimize is to allocate a mix of resources. For example, an application may allocate dedicated resources to guarantee the minimum performance required for basic operation, reserved resources to meet a typical workload and on-demand resources to accommodate peak usage. 63 ​https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2842557 57 Virtual Chains and Blockchain Virtualization Blockchain virtualization implemented over the Orbs platform provides the illusion of a dedicated blockchain for every app running over Orbs while simultaneously running on top of a shared physical node infrastructure, thus enjoying the same security and decentralization provided by the shared environment. Virtualization separates the resources available to applications from the underlying physical ones. The properties of blockchain virtualization include isolation, quality of service, SLA, control, governance, and elastic resource capacity. The majority of blockchain implementations today, like Ethereum, are shared, where multiple decentralized applications run side by side without isolation, suffering from unpredictable performance. Blockchain virtualization allows us to overcome these limitations without compromising on the risks of a centralized or private infrastructure. Almost two decades ago, the industry started to shift towards server virtualization. Today, almost every consumer application runs on virtual machines. A similar shift started a decade ago in networking, where virtualization enabled large networks with flexible topologies to run as virtual networks over an underlying shared infrastructure, providing the look and feel of a dedicated private network. We expect the same industry shift to take place in the field of blockchain. The term “virtualization” broadly describes a layer of abstraction that provides separation of a logical resource from the underlying physical delivery of its function. With blockchain virtualization, each component of the blockchain infrastructure – such as the consensus, the state and block storage, and the virtual machine (compute) layer – are virtualized. This allows virtual consensus instances to be allocated with a desired transaction confirmation rate that can differ across virtual chains. Moreover, different virtual consensus instances can operate concurrently, scale gracefully and provide better utilization of resources. Unlike private blockchains, virtual consensus instances enjoy the security, resilience, decentralization and compliance benefits of the underlying shared infrastructure. 58 Dedicated physical infrastructure - First generation (Bitcoin). Each application runs over dedicated infrastructure and has its own separate blockchain. Shared infrastructure - ​Second generation (Ethereum). Multiple applications run on top of shared infrastructure. The consensus, storage and compute services are shared across applications without isolation or SLA commitments. Blockchain virtualization - ​Third generation (Orbs). Each dominant application runs on a separate virtual blockchain, relying on virtual instances of the consensus, storage and compute services, but sharing the same physical infrastructure. Design Principles Blockchain virtualization addresses some of the challenges that decentralized applications are facing and provides properties that resemble the familiar operation over centralized IaaS or cloud platforms. The full architecture details are published in a separate technical white paper. The design principles of the solution include: Service Level Agreement (SLA)- Each virtual chain may guarantee a service level to meet its needs. Adhering to an SLA is a commitment to reduce the performance impact of other applications that share the same physical infrastructure. Isolation - The separation of block storage and state of each virtual chain creates isolation from faults and errors that occur on other chains. For example, a bug in an application’s smart contract may lead the virtual chain to fork but will not impact other virtual chains on the network. 59 Sharding and scalability- Virtualization enables ​inherent sharding of the consensus, and a first level of sharding for compute services and state storage. As there is no synchronization dependency among different virtual chains, their consensus and storage can be handled separately and run concurrently. Governance - While some configuration parameters have to align across all virtual chains, many can be controlled independently. This allows every virtual chain to optimize and cater to its application’s needs and reduces governance conflicts between stakeholders. Elastic capacity - Separation between physical and virtual resources allows a virtual chain to add resources on demand in order to meet evolving usage patterns. Moreover, elastic capacity allows temporary allocation of resources during unexpected bursts. Security and decentralization- While virtual chains can be dedicated to a single application, the multitude of physical nodes operated by independent organizations and applications are used in practice to process its consensus, capitalizing on the security in decentralization. Cross virtual chain smart contracts- While isolation is important for transactions within an application or virtual chain, simple cross-chain interoperability proves useful. This requires synchronization of all involved chains. Such operations are slower and require more resources than a standard operation. 60 Consumer Scale Throughput and Latency The first challenge when designing a blockchain infrastructure for consumer scale is meeting consumer expectations regarding throughput and latency. Successful consumer products have the potential to reach millions of end users performing billions of interactions. This massive scale regularly pushes traditional centralized infrastructure to its limit, making the challenge for consensus-based decentralized infrastructure that much greater. Throughput is defined as the number of messages per second the network can accommodate. In the field of blockchain, the number often taken into account is the number of ​transactions per second that the network can confirm. Traditional blockchain implementations, such as the current production version of Ethereum, can confirm about a dozen transactions per second . The gap is significant, but this isn’t surprising since 64 decentralization comes at a price. For example, transactions over blockchain are notoriously difficult to parallelize, because the result of one transaction may depend on another. Performing transactions synchronously adds a significant constraint and makes the implementation much harder to scale out. Moreover, contrary to centralized systems, the consensus process involves a number of independent nodes that must reach agreement over every transaction. This process incurs significant overhead that centralized systems are not required to deal with. Latency is defined as the amount of time it takes to process a single message over the network. In the field of blockchain, the number often perceived by users is ​confirmation time​. If, for instance, Netflix was a consumer product on the blockchain, then a request to stream a video must be confirmed immediately so that the user would not have to wait to start enjoying the video. Traditional blockchain implementations, such as the current production version of Ethereum, take dozens of seconds to confirm a transaction . This number often grows to 65 minutes or even hours when the network becomes congested. The gap here is not surprising as well. First, performing transactions synchronously means a transaction must wait in line 64 ​https://blog.ethereum.org/2018/01/02/q4-roundup/ 65 ​https://etherscan.io/chart/blocktime 61 CONSUMER SCALE and will only be processed once every previous transaction has been processed. Second, the consensus process between a group of independent nodes usually requires several roundtrips and is constrained by propagation time of the network which increases as more nodes participate. Third, long block intervals are essential for security in some consensus algorithms. In models that rely on eventual consensus, actual confirmation is only reached when an arbitrary number of subsequent blocks are generated. Failure to meet consumer expectations in both of these regards threatens the very success of the product. Consumers are notorious for having low tolerance for bad user experience. Their expectations are determined by the experience they are used to getting from current, centralized applications. It is reasonable to expect that most consumers will not be aware of whether the application they use is decentralized or not. Scalable Fee Models Scalability of a system goes beyond raw network parameters like throughput and latency. According to Kin by Kik Interactive, the main barrier to scale when launching on Ethereum was infrastructure fees . The CAC (Customer Acquisition Cost) rose above $10 in transaction fees 66 alone . It is quite clear that a successful consumer app cannot flourish in this environment. 67 Reaching ten million users would cost over $100 million - beyond the total funding of the project. An obvious solution is to reduce infrastructure fees dramatically. The high costs of Ethereum are closely linked to its reliance on PoW consensus; in PoW, the operation costs grow proportionally to the total value of assets on the network. In case the value grows, the process becomes more wasteful to maintain the proportion. In addition, the number of nodes in the Ethereum network that validate every transaction is more than 20,000 , orders of magnitude 68 more than reasonably required in a distributed system. Both of these cost factors can be eliminated by moving away from PoW and using committees to reduce the number of participants in consensus. There’s more to fee scalability than reducing absolute amounts. Network usage peaks may cause fees to spiral out of control. In general, although market pricing is seemingly the most efficient for determining fees, it is problematic when markets are too volatile. For instance, it may cause entire apps to experience outages. Consider two popular consumer apps with millions of users running side by side when demand exceeds the network capacity. Once the first app modifies its client and increases the transaction fee bid over the other, at one instant its millions of users will have precedence over those of the other app, causing an overwhelming outage for that app. 66 ​ https://medium.com/kin-contributors/kins-blockchain-considerations-ebd0b60aebd5#2340 67 ​ https://medium.com/kinfoundation/insights-from-kin-initial-product-launch-441c458a4ece 68 ​ https://www.ethernodes.org/network/1 62 In Orbs, app developers can purchase reserved capacity in advance, protecting themselves from price fluctuations; they can procure dedicated resources, isolating themselves from peaks in demand; and they can use monthly subscriptions, reducing the overall exposure to price volatility. Another fee-related decision that takes a significant toll over scalability is charging fees ​ per transaction – the common approach taken by general-purpose blockchains such as Ethereum. This imposes a large overhead on the
프로젝트로 돌아가기