Docsity

Pastiche: Making Backup Cheap and Easy - Distributed Computing | CS 7210, Study notes of Computer Science

Partial preview of the text

Download Pastiche: Making Backup Cheap and Easy - Distributed Computing | CS 7210 and more Study notes Computer Science in PDF only on Docsity!

Pastiche: Making Backup Cheap

and Easyand Easy

Landon Cox, Christopher D. Murray

and Brian D. Noble

University of Michigan, Ann Arbor

Presented by Danesh Irani

Outline

-^

Motivation

-^

Goals

-^

Enabling Technologies

-^

Design^ –

Data Chunks – File Meta

  • Data -^

File Meta

  • Data -^

Backup / Deletion

-^

Finding redundancy

-^

Finding buddies

-^

Backup protocol

-^

Restoration

-^

Detecting Failure and Malice

-^

Preventing Greed

-^

Limitations

-^

Conclusion

Goals

•^

Decentralized, efficient, cost-free,administration-free system.

-^

Peer-to-peer backup system.^ –

Nodes may come and go.

Nodes may come and go.

Unreliable and untrusted, possibly malicious.

-^

Leverage common data where possible (e.g.Windows, Office, Linux, Open Office).

-^

Preserve privacy.

Enabling Technologies

•^

Content-Based Indexing – minimizes storageoverhead by finding redundant data acrossfiles, files in a system or distinct files.

-^

Peer

  • to
  • peer routing

Use pastry a scalable,

•^

Peer

  • to
  • peer routing

Use pastry a scalable,

self-organizing, routing and object locationinfrastructure for peer-to-peer applications.

-^

Sharing with Confidentiality – Use convergentencryption for all on-disk chunks.

Data Chunks (cont...)

•^

Chunking takes place when a file is closedafter update/creation.

•H

c^

  • Chunk handle
    • I -^

Chunk ID

•^

Complete set Chunk IDs on a node forms asignature.

c

  • I

c^

-^

Chunk ID

•K

c^

  • Encryption Key

File Meta Data

•^

Encrypted, mutable and not chunked.

-^

List of handles H

c^

for the chunks comprising

the file.

-^

Reference count.

-^

Reference count.

-^

Plus the usual…^ –

Ownership,

Permissions,

Creation and modification times,

Etc.

Backup / Deletion

•^

Backup Request^ –

Remote hosts must supply public key with backup request.

If chunk exists, add requesting host to owner list.

Local reference count is incremented.

-^

Delete Request

-^

Delete Request^ –

Requests from remote hosts must be signed by secret key.

Check against public key.

When reference count = 0, chunk is removed.

Finding redundancy

•^

Signatures are large. 20 bytes per chunk, soapproximately 1.3MB per GB.

-^

Instead of sending a complete signature send a small, random subset of their signaturesa small, random subset of their signatures called an abstract.

-^

Evaluation shows that anything above a 1%sampling rate is great.

Finding buddies

•^

Nodes should have substantial overlap toreduce storage overhead.

-^

Most buddies should be nearby to reduce global network load and improve restoreglobal network load and improve restore performance.

-^

One buddy must be located elsewhere toprovide geographic diversity.

-^

As a rule of thumb, maintain five buddies

Finding buddies (cont..)

•^

Uses two overlays to facilitate buddy discovery^ –

Network proximity

Filesystem overlay

-^

NodeID

is a hash of fully

  • qualified domain

•^

NodeID

is a hash of fully

  • qualified domain

name.

-^

Pick a random NodeID and route a discoveryrequest (includes abstract).

-^

Each node on the route computes its coverageand returns it.

Backup protocol

•^

Skeleton is a representation of a machine’scurrent file system state.

-^

Stored both on the machine and all of its backup buddies.backup buddies.

-^

Snapshot - a discreet backup event.

-^

State necessary for new snapshot:^ •^

Add set,

-^

Delete set,

-^

Meta-data list

Restoration

•^

Partial restores are straight forward. Findchunks correspond to the restore request andobtain them from nearest buddy.

-^

Full restore slightly more complicated.

-^

Full restore slightly more complicated.^ –

When a node rejoins the network, it keeps thesame NodeID, obtains its skeleton from a buddy.

Decrypts it with the key generated from apassphrase.

Since the root block contains the set of buddies ineffect when it was replicated, all state can berecovered.

Detecting failure and malice (cont..)

•^

Since buddies expect to be spot-checkedperiodically, if the buddy does not hear from acorresponding host for a long period of time,assume host decommissioned or re-installed.

-^

Done conservatively, incase a long-lived failureis mistaken for a voluntary removal.

Preventing Greed

•^

Greedy hosts can consume excess storage.

-^

Three solutions:^ –

Group backup clients based on resources^ consumed.consumed.

Cryptographic puzzles according to storageconsumed.

Electronic currency (atomicity in the exchange ofbackup state and currency).