Walrus 백서

Walrus

원문

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

First, the shard recovery cost on the sending node must weakly exceed the shard recovery cost on the receiving node. This ensures the transfer onus remains on the sending node. Second, the cost associated with a node failing 50% or more of data challenges must also weakly exceed the shard recovery cost on the receiving node. This ensures that receiving nodes are incentivized to report a failed shard transfer correctly. 6.5 Incentivized Reads W alrusis designed first and foremost for robust storage of blobs. To access the data, W alrusencourages storage nodes to provide free and rapid read access, but there are no strict requirements and any offering is on a best-effort basis only. This should work since storage nodes are broadly aligned in making W alrusa successful system. In addition, we foresee other providers, such as caches or content distribution networks (CDNs), offering high-quality read access to data potentially for a fee payed by the reader or even the writer. But strictly speaking, a rational storage node might only hold the data but not serve them in the hopes that other storage nodes will reply (since only𝑓+ 1 replies are sufficient). This is a classic public goods problem [ 36] which could devolve into no storage nodes replying to the client. The dynamic will render the system unusable. There are a few possible solutions to this problem. This paper briefly outlines three: node service models, on-chain bounties, and inclusion of light nodes formally in W alrus. Node Service Models. One solution is to have users strike paid bilateral contracts with storage nodes to read data. These can take many forms beyond this simple partnership. For instance, a set of nodes could offer direct paid endpoints for users to pay for reads with some service level guarantees. Either readers may pay, or writers of blobs that want to make them available to all (such as in 13 The MystenLabs Team the case of publishing a website). Alternatively, those nodes could strike enterprise-level deals for parties to access data and resell access onwards. Indeed, this pathway is likely the default way that caches, publishers, and other content providers built atop W alrus will interact with the system, handling day-to-day user accesses for a targeted set of files and turning to W alrusto refresh and update that set over longer horizons. While this mechanism does not provide a static incentive for nodes to return data, it does provide a dynamic one. Nodes who de- fault on obligations will get bad reputations and will earn fewer fu- ture business opportunities. We foresee read infrastructures around serving reads reliably, with very low latency, in a geo-distributed manner, based on caches and content distribution networks (CDN) to develop around W alrus. The primary advantage of this mechanism is that it does not require any change to W alrusitself. The actual mechanism, with- out further development, may be somewhat complex for end users (who may not know how to locate their encoded data across shards nor how to negotiate with nodes directly). But intermediaries can abstract much of that away. In doing so, they offer rich long-term business relationships to nodes and so provide stronger incentives for nodes to honor contracts. On-Chain Bounties. Another solution is for users to post on- chain bounties to access data from W alruswhen best-effort reads fail (this can also be done by publishers and caches if they are paid to provide a certain SLA). Specifically, a user that needs data posts a bounty, and either allocates the bounty to replying storage nodes once it receives data or posts a challenge to reclaim the bounty if it does not receive sufficient data. This incentivizes storage nodes to reply and earn bounties; and if a user fraudulently attempts to reclaim the bounty, nodes would overturn the user’s challenge by posting the data on-chain and thus provide the data to the user. This solution again requires no change to W alrusitself. These bounties are intermediated through smart contracts on Sui. The disadvantages are twofold. First, this is potentially a cumbersome way of receiving data, particularly if there are frequent disputes on whether the bounties should be paid. Second, this is complex for end users, who need to post bounties, allocate credit, post challenges, and download data post-challenge. 6.6 Decentralized Security Through Light-Node Sampling A final way we can address the extreme case that data is unavail- able in the system is by enabling and incentivizing a second class of participants, which play the same role as light nodes in Data Availability systems [1]. These light nodes provide a second, more decentralized layer of security. Storage nodes would face certain requirements to interact with these other participants, and could be slashed for failing to make data available to them. This is naturally more complex in terms of ensuring security guarantees are met, but it is more robust. In addition, it offers a pathway for the community to be involved in the operation of W alruswithout having to run full storage nodes. Finally, this could also be combined with the on-chain bounties solution. Protocol. This is another place were our 2D encoding shines. Since the size of each symbol is only O(|𝐵|𝑛2) light nodes simply store randomly sampled symbols of files they consider important and expect bounties to be posted in case of unavailability. They can also post blames in a rate limited fashion if storage nodes do not send the symbols requested, similar to how on-chain bounties work. The protocol is very simple; from the time the data is written, we allow light nodes to sample symbols from the storage nodes directly by performing best-effort reads, or download blobs through caches and re-encode them. Then, when an on-chain bounty is posted, the first light node to send a missing symbol to the client with a signature will be included in a resolution transaction (we can use the chain if we want fairness otherwise the client can simply reward itself as a Sybil). The resolution transaction is simply the addresses of all the light nodes that helped (with the number of symbols they provided) in order to recover the data. The reward is then split proportionally between the validators who helped with the incentivized read and the light nodes. The reward per symbols should be proportional to the reward per sliver such that the storage nodes are not incentivized to generate Sybil light nodes to earn more rewards. In the future we will design even more efficient protocols based on off-chain channels to facilitate payments to light nodes that meaningfully contribute to shard recovery after reconfiguration. 7 Evaluation We implement a production-ready networked multi-core W alrus storage node in Rust. All networking uses HTTPS through axum [35], it uses fastcrypto [21] for cryptography, rocksdb [28] for storage, and reed-solomon-simd [24] for erasure coding. We opt to connect our implementation to Sui [41] as an example of fast blockchain. We release the codebase as open-source12. We evaluate W alrus’s performance and scalability on the real, publicly available, testnet. This is the most realistic evaluation set- ting, exposing the system to real-world conditions, real users, and infrastructure outside our control. We observe the W alrustestnet over a period of 60 days, ending the 22nd of March. Our evaluation aims at demonstrating the following claims: (1) C1 (low latency): W alrusachieves low latency, bounded by network delay. (2) C2 (throughput): W alrusclients achieve high read and write throughput. (3) C3 (scalability): W alrus’s total capacity scales with the num- ber of storage nodes. 7.1 Experimental Setup The W alrustestbed is decentralized, comprising 105 independently operated storage nodes and 1,000 shards. All reported measure- ments are based on data voluntarily shared by node operators. Shards are allocated based on each operator’s stake, reflecting the mainnet deployment model. Satisfying the𝑓+ 1 quorum requires collaboration from at least 19 nodes; the 2𝑓+ 1 quorum requires 38 nodes. No operator controls more than 18 shards. Nodes span at least 17 countries, including Lithuania, USA, France, Canada, Netherlands, Thailand, Ireland, Russia, and others. Eleven operators did not disclose their location. Figure 6 details the shard distribution 12 Link omitted for blind review. 14 W alrus: An Efficient Decentralized Storage Network eu-northeu-easteu-westca-centralus-westus-eastsa-east ap-southeast unknown 0 100 200 300Shards Figure 6: Geo-distribution of shards. Hetzner Cherry servers Leaseweb Ovh Webnx WorldstreamSkyskipper Synlinq InterserverUnknown Terraswitch baremetal Reg.ru Atomic servers Teraswitch Latitude Aws Colocation Alibaba cloudData packet Gcp Self-Hosted Interserver.net Velia 0 50 100 150Shards Figure 7: Distribution of shards by hosting providers. by region. The “eu-west” region aggregates shards from at least five countries. Roughly 220 shards are labeled “unknown” due to missing regional data. Figure 7 shows shard distribution by hosting providers. “Self-Hosted” nodes run on-premises, while “Unknown” indicates missing provider information. Most nodes run Ubuntu (22.04 or 24.04) with at least 16 CPU cores, 128 GB RAM, and 1 Gbps bandwidth. Hardware varies across Intel and AMD CPUs and HDD, SSD, and NVMe storage. Node storage ranges from 15 to 400 TB (median 56.9 TB, P90 69.98 TB). 7.2 System Performance We evaluate performance from the client’s perspective, deploying two clients on AWS m5d.8xlarge instances (10 Gbps bandwidth, 32 vCPUs, 128 GB RAM, Ubuntu 22.04). One client runs in US East (N. Virginia), the other in Canada Central. W alrusLatency. Figure 8 illustrated the end-to-end latency expe- rienced by the client. We start measuring before the client encodes the blob and finish when it observes a proof-of-availability con- firmation on the blockchain. Each point represents the p50 over 5 minutes of runs; error bars indicate p90. The graph shows that read latency remains low, even for large blobs. For small blobs (less than 20 MB), the latency stays below 15 seconds. For large blobs (130 MB), the latency increases to around 30 seconds. Write latency is consistently higher than read latency. For small blobs (less than 20 MB), write latency remains relatively flat and stays under 25 seconds. This overhead is primarily due to the 0 20M 40M 60M 80M 100M 120M 140M Blob Size (B) 0 25 50 75 100 125Latency (s) read write Figure 8: Latency for different blob sizes. Encoding Check Status Get Info Store Publish PoA 0 2 4 6Latency (s) Figure 9: Latency breakdown for small blobs (1KB). Encoding Check Status Get Info Store Publish PoA 0 25 50 75 100 125Latency (s) Figure 10: Latency breakdown for large blobs (130MB). blockchain interaction and the need to upload metadata to all stor- age nodes, rather than the blob size itself. For large blobs (greater than 40 MB), latency grows linearly with the blob size as network transfer becomes the dominant cost. Figure 9 and Figure 10 illus- trate this behavior by breaking down the latency for small blobs (1 KB) and large blobs (130 MB), respectively. Each write operation consists of five key steps: encoding (time to erasure-code the blob), check status (time to check the blob’s current state),get info (time to fetch blob status and reserve space), store (time to upload slivers to storage nodes), and publish PoA (time to commit the proof of avail- ability to the blockchain). For small blobs, the fixed overhead from metadata handling and blockchain publication dominates, adding roughly 6 seconds—about 50% of the total write latency. For large blobs, the storage phase dominates due to network transfer, while metadata operations and blockchain interaction remain relatively constant. These results validate our claimC1: W alrusachieves low latency and is bounded by network delays. Single Client Throughput. Figure 11 illustrates the throughput that can be achieved by a single client in bytes per second. As expected, read throughput scales linearly with blob size as it is mostly network interactions. Write throughput plateaus around 18 MB/s because of the need to interact with the blockchain and the storage nodes multiple times. This does not mean that a user 15 The MystenLabs Team 0 20M 40M 60M 80M 100M 120M 140M Blob Size (B) 0 20M 40M 60MClient Throughput (B/s) read write Figure 11: Single client throughput for different blob sizes. 0 20 40 60 80 100 Storage Nodes 0 1P 2P 3P 4P 5PStorage Capacity (B) Figure 12: Storage capacity versus committee size. cannot upload faster, as Sui supports a much higher throughput in transactions per second, but that a single blob cannot be uploaded faster. For much larger blobs, a user can deploy multiple clients, each uploading a chunk of data in parallel, effectively creating a fan-out pattern. These results validate C2: W alrusenables clients to read and write at high throughput. 7.3 Scalability Over 60 days, W alrusstores a median of 1.18 TB of slivers (P90 1.08 TB) and 221.5 GB of blob metadata (P90 46.34 GB). As described in Section 7.1, each storage node contributes between 15 and 400 TB of capacity. Yet, the system as a whole can store over 5 PB—a key feature of W alrus. Figure 12 illustrates howW alrus’s total storage capacity scales with the committee size. This result supports our final claim C5: the system’s capacity grows proportionally with the number of storage nodes. 8 Related Work Censorship resistant storage and blob data dissemination motivated much of the early peer-to-peer movement and the need for decen- tralization. Within academia Anderson proposed the Eternity ser- vice [3] in 1996, to ensure documents cannot be suppressed. Within the commercial and open source communities systems like Nap- ster [9], Gnutella [33], and Free Haven [15] and early Freenet [11] used nodes in an unstructured topology to offer storage, routing and distribution largely of media files. These systems operated on the basis of centralized or flood fill algorithms for lookup and search; and full replication of files, often on node used to route responses. These provide best effort security and poor performance. Later research, in the early 2000s, proposed structured peer-to- peer topologies in the form of distributed hash tables (DHT), such as Chord [38], Pastry [34], Kademlia [26], largely to improve lookup performance, as well as reduce the replication factor for each file. DHTs remarkably do not require consensus or full state machine replication to operate. However, have been shown to be susceptible to a number of attacks: Sybil attacks [16] were named and identified within the context of these systems first; and they are hard to defend against routing attacks [44]. Many attacks affect current systems that use them [42]. Bittorrent [12] eventually came to dominate the file dissemination application space, in part due to its simplicity and built-in incentives. It initially used a full replication strategy for storage and centralized trackers for node coordination. It later added decentralized trackers based on Kademlia. In contrast to these early system Walrus maintains a full and consistent list of all nodes through using the Sui [8] blockchain, as well as their latest meta-data. It assumes these are infrastructure grade nodes and will not suffer great churn, but rather operate to get incentives and payments, and come in and out of the system based on a reconfiguration protocol. In the blockchain era, IPFS [ 5] provides a decentralized store for files, and is extensively being used by blockchain systems and decentralized apps for their storage needs. It provides content ad- dressable storage for blocks, and uses a distributed hash table (DHT) to maintain a link between file replicas and nodes that store them. Publishers of files need to pin files to storage nodes, to ensure files remain available, usually against some payment. The underlying storage uses full replication on a few nodes for each file. Filecoin [30] extends IPFS, using a longest chain blockchain and a cryptocurrency (FIL) used to incentivize storage nodes to maintain file replicas. Publishers acquire storage contracts with a few nodes, and payments are made in the cryptocurrency. Filecoin mitigates the risk that these nodes delete the replicas by requiring storage nodes to hold differently encoded copies of the file, and performing challenges against each other for the encoded files. These copies are encoded in such a way that it is slow to reproduce them from the original copy, to avoid relay attacks. As a result, if the user wants to access the original file, it needs to wait a long time for the decoding of a copy, unless some storage node has a hot copy. Since, there is no in-built incentive for storing hot copies, this service usually costs extra. Arweave [46] mitigates slow reads through a Proof-of-Access algorithm that incentives storage nodes to have as many files as possible locally to maximise rewards. This is implemented in con- junction with a full replication strategy, and results in replication levels almost equal to classic state machine replication. Addition- ally, the system only allows file to be stored ‘for ever’, through a mechanisms of pre-payment - which lacks the flexibility to control lifetime and deletion, and is capital inefficient since payment is upfront. In contrast to Filecoin and Arweave, Walrus uses erasure coding to maintain a very low overhead of 4.5x while ensuring data sur- vives up to 2/3 of any shards being lost, and continues to operate by allowing writes even if up to 1/3 of shards are unresponsive. Furthe- more, Walrus does not implement its own separate blockchain to do node management and provide incentives, but uses Sui instead. Storj [39] represents another decentralized storage solution that leverages encoding to achieve a low replication factor. The system implements a Reed-Solomon based erasure coding scheme with a 29/80 configuration, wherein a file is encoded into 80 parts, with any 29 sufficient for reconstruction. This approach results in a2.75𝑥 16 W alrus: An Efficient Decentralized Storage Network replication factor, offering a substantial reduction in storage costs compared to prior systems. However, a key limitation of Storj lies in its inability to efficiently heal lost parts. The system relies on users to reconstruct the full file and subsequently re-encode it to facilitate the recovery of lost parts. In contrastW alrus’s use of Red Stuff incorporates an efficient reconstruction mechanism which is critical for the efficient healing of the erasure coding scheme, especially due to churn which is naturally occuring in a permission- less system. Red Stuff builds on the Twin-code framework [31], which uses two linear encodings of data to enhance the efficiency of sliver recovery. However, unlike the Twin-code framework [25], Red Stuff encodes data across differently sized dimensions and integrates authenticated data structures, achieving Completeness (as defined in Section 2) and ensuring Byzantine Fault Tolerance. Modern blockchains provide some storage, but it is prohibitively expensive to store larger blobs due to the costs of full replication across all validators, as well as potentially long retention times to allow verifiability. Within the Ethereum eco-system specifically, the current scaling strategy around L2s involves posting blobs of trans- actions on the main chain, representing bundles of transactions to be executed, and verified either via zero-knowledge or fraud proofs. Specialised networks, such as Celestia based on availability sam- pling [2], have emerged to fulfill this need off the main Ethereum chain. In Celestia, two dimensional Reed-Solomon codes are used to encode blobs, and code words distributed to light nodes to support ‘trustless’ availability. However, all blobs are fully replicated across the valida
프로젝트로 돌아가기