metasync
play

MetaSync File Synchroniza/on Across Mul/ple Untrusted - PowerPoint PPT Presentation

MetaSync File Synchroniza/on Across Mul/ple Untrusted Storage Services Seungyeop Han (syhan@cs.washington.edu) Haichen Shen, Taesoo Kim*, Arvind Krishnamurthy,


  1. MetaSync ¡ ¡ File ¡Synchroniza/on ¡Across ¡Mul/ple ¡ Untrusted ¡Storage ¡Services ¡ ¡ ¡ Seungyeop ¡Han ¡(syhan@cs.washington.edu) ¡ Haichen ¡Shen, ¡Taesoo ¡Kim*, ¡Arvind ¡Krishnamurthy, ¡ Thomas ¡Anderson, ¡and ¡David ¡Wetherall ¡ University ¡of ¡Washington ¡ *Georgia ¡Ins/tute ¡of ¡Technology ¡ USENIX ¡ATC ¡'15 ¡ 1 ¡

  2. File ¡sync ¡services ¡are ¡popular ¡ 400M ¡of ¡Dropbox ¡users ¡reached ¡in ¡June ¡2015 ¡ USENIX ¡ATC ¡'15 ¡ 2 ¡

  3. Many ¡sync ¡service ¡providers ¡ Dropbox ¡(2GB) ¡ Google ¡Drive ¡(15GB) ¡ Baidu( 2TB ) ¡ MS ¡OneDrive ¡(15GB) ¡ Box.net ¡(10GB) ¡ USENIX ¡ATC ¡'15 ¡ 3 ¡

  4. Can ¡we ¡rely ¡on ¡any ¡single ¡service? ¡ USENIX ¡ATC ¡'15 ¡ 4 ¡

  5. Exis/ng ¡Approaches ¡ • Encrypt ¡files ¡to ¡prevent ¡modifica/on ¡ – Boxcryptor ¡ • Rewrite ¡file ¡sync ¡service ¡to ¡reduce ¡trust ¡ – SUNDR ¡(Li ¡ et ¡al. , ¡04), ¡DEPOT ¡(Mahajan ¡ et ¡al. , ¡10) ¡ ¡ USENIX ¡ATC ¡'15 ¡ 5 ¡

  6. MetaSync ¡ Higher ¡availability, ¡greater ¡capacity, ¡higher ¡performance ¡ MetaSync : ¡ Stronger ¡confiden/ality ¡& ¡integrity ¡ Can ¡we ¡build ¡a ¡beaer ¡file ¡synchroniza/on ¡ ¡ system ¡across ¡mul/ple ¡exis/ng ¡services? ¡ ¡ ¡ USENIX ¡ATC ¡'15 ¡ 6 ¡

  7. Goals ¡ • Higher ¡availability ¡ • Stronger ¡confiden/ality ¡& ¡integrity ¡ • Greater ¡capacity ¡and ¡higher ¡performance ¡ • No ¡service-­‑service, ¡client-­‑client ¡ communica/on ¡ • No ¡addi/onal ¡server ¡ • Open ¡source ¡soeware ¡ USENIX ¡ATC ¡'15 ¡ 7 ¡

  8. Overview ¡ • Mo/va/on ¡& ¡Goals ¡ • MetaSync ¡Design ¡ • Implementa/on ¡ • Evalua/on ¡ • Conclusion ¡ USENIX ¡ATC ¡'15 ¡ 8 ¡

  9. Key ¡Challenges ¡ • Maintain ¡a ¡ globally ¡consistent ¡view ¡of ¡the ¡ synchronized ¡files ¡across ¡mul/ple ¡clients ¡ • Using ¡only ¡the ¡service ¡providers’ ¡ unmodified ¡ APIs ¡ without ¡any ¡centralized ¡server ¡ ¡ • Even ¡in ¡the ¡ presence ¡of ¡service ¡failure ¡ USENIX ¡ATC ¡'15 ¡ 9 ¡

  10. Design ¡Choices ¡ • How ¡to ¡manage ¡files? ¡ – Content-­‑based ¡addressing ¡& ¡hash ¡tree ¡ • How ¡to ¡update ¡consistently ¡with ¡unmodified ¡APIs? ¡ – Client-­‑based ¡Paxos ¡(pPaxos) ¡ • How ¡to ¡spread ¡files? ¡ – Stable ¡determinis/c ¡mapping ¡ • How ¡to ¡protect ¡files? ¡ – Encryp/on ¡from ¡clients ¡ • How ¡to ¡make ¡it ¡extensible? ¡ – Common ¡abstrac/ons ¡ USENIX ¡ATC ¡'15 ¡ 10 ¡

  11. Design ¡Choices ¡ • How ¡to ¡manage ¡files? ¡ – Content-­‑based ¡addressing ¡& ¡hash ¡tree ¡ • How ¡to ¡update ¡consistently ¡with ¡unmodified ¡APIs? ¡ – Client-­‑based ¡Paxos ¡(pPaxos) ¡ • How ¡to ¡spread ¡files? ¡ – Stable ¡determinis/c ¡mapping ¡ • How ¡to ¡protect ¡files? ¡ – Encryp/on ¡from ¡clients ¡ • How ¡to ¡make ¡it ¡extensible? ¡ – Common ¡abstrac/ons ¡ USENIX ¡ATC ¡'15 ¡ 11 ¡

  12. Overview ¡of ¡the ¡Design ¡ 1. ¡File ¡Management ¡ MetaSync ¡ Object ¡ Synchroniza/on ¡ Replica/on ¡ Store ¡ Backend ¡abstrac/ons ¡ Local ¡Storage ¡ Google ¡ Remote ¡ Dropbox ¡ OneDrive ¡ Drive ¡ Services ¡ USENIX ¡ATC ¡'15 ¡ 12 ¡

  13. Object ¡Store ¡ • Similar ¡data ¡structure ¡with ¡version ¡control ¡ systems ¡(e.g., ¡git) ¡ • Content-­‑based ¡addressing ¡ ¡ – File ¡name ¡= ¡hash ¡of ¡the ¡contents ¡ – De-­‑duplica/on ¡ – Simple ¡integrity ¡checks ¡ • Directories ¡form ¡a ¡hash ¡tree ¡ – Independent ¡& ¡concurrent ¡updates ¡ USENIX ¡ATC ¡'15 ¡ 13 ¡

  14. Object ¡Store ¡ head ¡= ¡f12… ¡ Dir1 ¡ Dir2 ¡ Large.bin ¡ abc… ¡ 4c0… ¡ 20e… ¡ small1 ¡ small2 ¡ blob ¡ blob ¡ blob ¡ • Files ¡are ¡chunked ¡or ¡grouped ¡into ¡blobs ¡ • The ¡root ¡hash ¡= ¡f12… ¡ uniquely ¡iden/fies ¡a ¡snapshot ¡ USENIX ¡ATC ¡'15 ¡ 14 ¡

  15. Object ¡Store ¡ old ¡= ¡f12… ¡ head ¡= ¡07c… ¡ Dir1 ¡ Dir2 ¡ Large.bin ¡ Large.bin ¡ abc… ¡ 4c0… ¡ 20e… ¡ 1ae… ¡ small1 ¡ small2 ¡ blob ¡ blob ¡ blob ¡ blob ¡ • Files ¡are ¡chunked ¡or ¡grouped ¡into ¡blobs ¡ • The ¡root ¡hash ¡= ¡f12… ¡ uniquely ¡iden/fies ¡a ¡snapshot ¡ USENIX ¡ATC ¡'15 ¡ 15 ¡

  16. Overview ¡of ¡the ¡Design ¡ MetaSync ¡ 2. ¡Consistent ¡update ¡ Object ¡ Synchroniza/on ¡ Replica/on ¡ Store ¡ Backend ¡abstrac/ons ¡ Local ¡Storage ¡ Google ¡ Remote ¡ Dropbox ¡ OneDrive ¡ Drive ¡ Services ¡ USENIX ¡ATC ¡'15 ¡ 16 ¡

  17. Upda/ng ¡Global ¡View ¡ Head ¡ Current ¡root ¡hash ¡ Client1 ¡ Prev ¡ Previously ¡synchronized ¡point ¡ Global ¡ View ¡ v0 ¡ab1… ¡ Client2 ¡ Prev ¡ Head ¡ master ¡ USENIX ¡ATC ¡'15 ¡ 17 ¡

  18. Upda/ng ¡Global ¡View ¡ v1 ¡c10… ¡ Client1 ¡ Head ¡ Prev ¡ Global ¡ View ¡ v0 ¡ab1… ¡ Client2 ¡ Prev ¡ Head ¡ master ¡ USENIX ¡ATC ¡'15 ¡ 18 ¡

  19. Upda/ng ¡Global ¡View ¡ Head ¡ Client1 ¡ Prev ¡ Global ¡ View ¡ v1 ¡c10… ¡ v0 ¡ab1… ¡ Client2 ¡ Prev ¡ Head ¡ master ¡ USENIX ¡ATC ¡'15 ¡ 19 ¡

  20. Upda/ng ¡Global ¡View ¡ Head ¡ Client1 ¡ Prev ¡ Global ¡ View ¡ v1 ¡c10… ¡ v0 ¡ab1… ¡ Client2 ¡ Prev ¡ Head ¡ master ¡ USENIX ¡ATC ¡'15 ¡ 20 ¡

  21. Upda/ng ¡Global ¡View ¡ v2 ¡f13… ¡ Client1 ¡ Prev ¡ Head ¡ Global ¡ View ¡ v1 ¡c10… ¡ v0 ¡ab1… ¡ Client2 ¡ Prev ¡ Head ¡ v2 ¡7b3… ¡ master ¡ USENIX ¡ATC ¡'15 ¡ 21 ¡

  22. Upda/ng ¡Global ¡View ¡ v2 ¡f13… ¡ Client1 ¡ Prev ¡ Head ¡ Global ¡ View ¡ v1 ¡c10… ¡ v2 ¡7b3… ¡ v0 ¡ab1… ¡ Client2 ¡ Prev ¡ Head ¡ master ¡ USENIX ¡ATC ¡'15 ¡ 22 ¡

  23. Upda/ng ¡Global ¡View ¡ v3 ¡a31… ¡ Client1 ¡ Head ¡ Prev ¡ Global ¡ View ¡ v1 ¡c10… ¡ v2 ¡7b3… ¡ v0 ¡ab1… ¡ Client2 ¡ Prev ¡ Head ¡ master ¡ USENIX ¡ATC ¡'15 ¡ 23 ¡

  24. Consistent ¡Update ¡of ¡Global ¡View ¡ Google ¡ OneDrive ¡ Dropbox ¡ Drive ¡ MetaSync ¡ MetaSync ¡ root= ¡b05… ¡ root= ¡f12… ¡ • Need ¡to ¡handle ¡concurrent ¡updates, ¡ unavailable ¡services ¡based ¡on ¡exis/ng ¡APIs ¡ USENIX ¡ATC ¡'15 ¡ 24 ¡

  25. Paxos ¡ • Mul/-­‑round ¡non-­‑blocking ¡consensus ¡ algorithm ¡ – Safe ¡regardless ¡of ¡failures ¡ – Progress ¡if ¡majority ¡is ¡alive ¡ Proposer ¡ Acceptor ¡ USENIX ¡ATC ¡'15 ¡ 25 ¡

  26. Metasync: ¡Simulate ¡Paxos ¡ • Use ¡an ¡ append-­‑only ¡list ¡to ¡log ¡ Paxos ¡messages ¡ ¡ – Client ¡sends ¡normal ¡Paxos ¡messages ¡ – Upon ¡arrival ¡of ¡message, ¡service ¡appends ¡it ¡into ¡a ¡list ¡ – Client ¡can ¡fetch ¡a ¡list ¡of ¡the ¡ordered ¡messages ¡ • Each ¡service ¡provider ¡has ¡APIs ¡to ¡build ¡append-­‑ only ¡list ¡ – Google ¡Drive, ¡OneDrive, ¡Box: ¡Comments ¡on ¡a ¡file ¡ – Dropbox: ¡Revision ¡list ¡of ¡a ¡file ¡ – Baidu: ¡Files ¡in ¡a ¡directory ¡ USENIX ¡ATC ¡'15 ¡ 26 ¡

  27. Metasync: ¡Passive ¡Paxos ¡(pPaxos) ¡ • Backend ¡services ¡work ¡as ¡passive ¡acceptor ¡ • Acceptor ¡decisions ¡are ¡delegated ¡to ¡clients ¡ New ¡root ¡= ¡1 ¡ S1 ¡ New ¡root ¡= ¡2 ¡ S2 ¡ Accepted ¡root ¡= ¡1 ¡ S3 ¡ fetch(S1) ¡ fetch(S2) ¡ Passive ¡Storage ¡Services ¡ Clients ¡ USENIX ¡ATC ¡'15 ¡ 27 ¡

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend